Message ID | 20181213180129.1373-1-raj.khem@gmail.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1104926ljp; Thu, 13 Dec 2018 10:01:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/UE0Y1xjSabbpOI2AolwS3NIS5HW5qy7jpQHEseV7Kzuj9W9gNlbPpur8TSiRzhZH3V6DBG X-Received: by 2002:a17:902:a98c:: with SMTP id bh12mr24713781plb.31.1544724108450; Thu, 13 Dec 2018 10:01:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544724108; cv=none; d=google.com; s=arc-20160816; b=VoXK8hyma2SESB3GqoLkhRySHu1TY3z7on4f2bzA/UVMVojimWSIh+S3bT3cvtsJMo GQVJZrcht1T30VGtEb5CPX92vbn21VZqjeE32gVnTKy6y+FLMOPssYwRr3Sm1xst9+gG wOLhjzZuZ2hCiRWjBVLGCKwYYLXYF077EK5+kpNkHs0frV2fqwhKC4eJfvgjRfHtscQv vWUTzxB9NEVV3KiQ4U54M2O/W444L0mFxW1adN9DmsErZAvc44KVx7GdmMI+mXUt/aea rFqG3TxemNLBWPFWs9TF1qCsNt+4AIl+yF3MZ0x6LgDjH0QYJnvclVZnGa0TvoqDqsQw 5G4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MfztylOV0k5Rj79YOKzZ8VdvRVm49wDfHbQ5r2xL8Yc=; b=d5Mq6kkCitxkFOUJ4PN189uRfW4HAdzhdWSbItYY4/xdm2nGIMGbG7CXnieBYNqGB4 5zjoM9UGr89AuV59ubA0hNEIDPs0XofYz0m/Sc1+895nYqM0XG37FlGrASgyKA2xqF73 PZKTqBLZpT1FbxQi/WGKAsl93zBQQZ5KhNiRPp1uaI+UvIHjVJ77uH3p1VsWM7rUu9E/ 0YaEpz24Bx3wJyB/+UuTkEeX1j58mQy37X5lgqYb62okLREVxqh+D4i5bmB3wgmFeE46 B9+okcDyKap+4dKz974lnzaJjq+JZptU3zWu71FhHO8gOr6tKTj+F8BnGoK48BfQoi95 H4zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=usMNei7J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si1884968plr.144.2018.12.13.10.01.47; Thu, 13 Dec 2018 10:01:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=usMNei7J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729521AbeLMSBp (ORCPT <rfc822;igor.opaniuk@linaro.org> + 31 others); Thu, 13 Dec 2018 13:01:45 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:35416 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbeLMSBp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Dec 2018 13:01:45 -0500 Received: by mail-pf1-f195.google.com with SMTP id z9so1483881pfi.2 for <linux-kernel@vger.kernel.org>; Thu, 13 Dec 2018 10:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MfztylOV0k5Rj79YOKzZ8VdvRVm49wDfHbQ5r2xL8Yc=; b=usMNei7JhqGbhh03xwsc5PT/UoqpiO6i+Lu2TyOK+kIhwETvDLM/XADhJusl9NwKNz 1RfcUYqfMGYdvqVDp1g/XqBwbeU//+m6wpFNE8iqdd91jKZ6+Pml8HwC7f2j1MZfghVh mh3MTkfI/C9YMMdGURwS+06V/SqsBiTN3U4McuunQFPJifY0c01FDSRoNEq6QVSjSyOk I1z5L//KziwqdK5m/aT6CxYE+beQLAHejAXsBBrT4zTmAs14chQ2jFSFVKYDt/Ek4iNU k2wjmILC2haEX1vIfPUpjyE2VuZ/gCcg6uHR5kDGo+ATzvCCE7O3dzZq7Z+7OklSGgMS e0jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MfztylOV0k5Rj79YOKzZ8VdvRVm49wDfHbQ5r2xL8Yc=; b=j9iFQkRNvAYZph+nDEZk4SKxU5fBevpEayOCQwY3E2S+clkOWV86Fpx7+x4CnoXeo+ J5m/m/pOHssZSj33OpooKewnhVqck0vFQLzBFhKjdyN5lPIqG06+1b1+lQ4CG84yjqip PL1FotvoASAOtr6zggIckf+8P0bEtSoQ+iY2YUijtpNH5ehjMHP/EeuTSuG6M6RSW5oL gYSj2lW1moEQ3CKEpjX7mVw6kk+8vKV6vU7z+A5Ni+NKjpX8udS12X6LR1sP635v/boS mH4+t4APnUAZISoDknVD1qybHhNcLxKEjypBmyqL2FpHvAsQXq02Aknck7u3Q01POUCP +AsQ== X-Gm-Message-State: AA+aEWZJguP3ULF8SdvmwIMwqThxPHDOjLuAmQSUj3J8Lrj/8eOPe7fK mIewPAyCNwv0l3o5cl/R4IdLODHqRBU= X-Received: by 2002:a62:5486:: with SMTP id i128mr24366388pfb.215.1544724103105; Thu, 13 Dec 2018 10:01:43 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499::6872]) by smtp.gmail.com with ESMTPSA id 196sm10929734pfc.77.2018.12.13.10.01.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Dec 2018 10:01:42 -0800 (PST) From: Khem Raj <raj.khem@gmail.com> To: linux-kernel@vger.kernel.org Cc: Khem Raj <raj.khem@gmail.com>, Philippe Ombredanne <pombredanne@nexb.com>, Kate Stewart <kstewart@linuxfoundation.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Thomas Gleixner <tglx@linutronix.de> Subject: [PATCH] include linux/stddef.h in swab.h uapi header Date: Thu, 13 Dec 2018 10:01:29 -0800 Message-Id: <20181213180129.1373-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
include linux/stddef.h in swab.h uapi header
|
expand
|
diff --git a/include/uapi/linux/swab.h b/include/uapi/linux/swab.h index 23cd84868cc3..acddbe50a20d 100644 --- a/include/uapi/linux/swab.h +++ b/include/uapi/linux/swab.h @@ -3,6 +3,7 @@ #define _UAPI_LINUX_SWAB_H #include <linux/types.h> +#include <linux/stddef.h> #include <linux/compiler.h> #include <asm/swab.h>
swab.h uses __always_inline without including the header where it is defined, this is exposed by musl based distributions where this macro is not defined by system C library headers unlike glibc where it is defined in sys/cdefs.h and that header gets pulled in indirectly via features.h -> sys/cdefs.h and features.h gets pulled in a lot of headers. Therefore it may work in cases where features.h is includes but not otherwise. Adding linux/stddef.h here ensures that __always_inline is always defined independent of which C library is used in userspace Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Philippe Ombredanne <pombredanne@nexb.com> Cc: Kate Stewart <kstewart@linuxfoundation.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> --- include/uapi/linux/swab.h | 1 + 1 file changed, 1 insertion(+) -- 2.20.0