Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1146493imu; Thu, 13 Dec 2018 10:04:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/VcWDD6AXvG95/79f2qEFiasBKxw6wMc1LpBMZcuNjRPwymGfa+JqrttUeZYtS4XF2jDt58 X-Received: by 2002:a62:7c47:: with SMTP id x68mr25282949pfc.209.1544724295289; Thu, 13 Dec 2018 10:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544724295; cv=none; d=google.com; s=arc-20160816; b=vImYBns5OwhEnT4RYkT/tRgjobYW6Yj4Ed8vQj78DT0xHkTZ7EN37yjQUYY5k60cyQ cgMQsQY9JeZb1UK+y4fexVx496M4ReY87Ab3DbiQeA3AK3n5wzUNlskd0D9RQd7RaitG ibFYm1QTliYSl/GlCvL05St0oQJCMS4qhj8qWT/tjsOZj6PxphaO54OpfydLiGhn6J/D p16WHhAz87/uk3gzAfeW14S30/vgkwDvJ/IVN1/8CqCUjDrx6GrrWvLZkRlzawEalV3c mKy0NpfUpVeJMBrBiHUNEkZ1QNIkUk1l1UTagguWt5Oy9YT7dD13ed5EcxcIt3PKWa0a wEnw== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si1945691pfy.29.2018.12.13.10.04.21; Thu, 13 Dec 2018 10:04:55 -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 S1729472AbeLMSBp (ORCPT + 99 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 ); Thu, 13 Dec 2018 13:01:45 -0500 Received: by mail-pf1-f195.google.com with SMTP id z9so1483881pfi.2 for ; 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 To: linux-kernel@vger.kernel.org Cc: Khem Raj , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman , Thomas Gleixner 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Philippe Ombredanne Cc: Kate Stewart Cc: Greg Kroah-Hartman Cc: Thomas Gleixner --- include/uapi/linux/swab.h | 1 + 1 file changed, 1 insertion(+) 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 +#include #include #include -- 2.20.0