From patchwork Thu Sep 13 00:56:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146588 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp11062ljw; Wed, 12 Sep 2018 17:57:23 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdad/14DprjBi5pCF40pD5XdLE4agV+OiYst8WcNx6IXFu2HDGJ1odmmrbGiRcPM0HbF20ZH X-Received: by 2002:a17:902:82c9:: with SMTP id u9-v6mr4789318plz.138.1536800243170; Wed, 12 Sep 2018 17:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536800243; cv=none; d=google.com; s=arc-20160816; b=CXg2P00TelS8UPVtmGj2SSjmkmdRkHLJ5OLSPvKEYrSX4XroSS6O3lmnpL3NhTuF+k cuwJsiyNkExJ4s2OYn2MOZmnB6ChmFlQYWN0GahqDjZLbq6DaIFfSjOZ4K5LyUGImuTA y+N27FwHSJ7APq+r/P9PNzIV2hZSKsYY6fdshK4IP33y39naOM43swpIjTlQJPBoYw3W W8WtpjE2yRQ6xW923ZcrsmHZWimpm3a6T7qUtKhLU3WmxLpypQXdtlEibOwhdmHPDvSc szT4HoBcEGg1lOKyx1V1kRq5kt+fvT4mjydDbglHoi19vUsbqiLBhxb7cDV71GAM5jtH o4cw== 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=z30FbZgOsqXYtT0pAvQC4ivHRNCwlSGvoFd+d8WiBIc=; b=Ci5Somhv+Y5GTs8iIa2Hzd8yzSgfKB2cz3Jge10z4ye9jZvw/ETHpKtgJqEb3djDCO 1vD6vcz2N0cnqGqLyAytAXVUPD7idhONo7SgaE66zC9gPhvG3YEBzgdvwsbBIcbjzwpy /ltHGtHRW8Y3AD8zZxY2dHzAqUQsv8M2QrPuZniWw1SJ3NrDFZHm2/038jLXGEK+wHXr XDNAmjqUhomIfJOUZtURKpgKCOg+VsHPbvEaBQcYLwVGAwfJnIFrmVD/UgqXTvriuyuS +29lSFWuMEtBEimGcWODdCGSMVwAZCE9QPWqkPa4/OLHAFseW7nSPEXqSiXfLuyyA2ZR 10Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C0xY3ytC; 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 b8-v6si2526351ple.171.2018.09.12.17.57.22; Wed, 12 Sep 2018 17:57:23 -0700 (PDT) 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=C0xY3ytC; 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 S1727409AbeIMGET (ORCPT + 32 others); Thu, 13 Sep 2018 02:04:19 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38452 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbeIMGET (ORCPT ); Thu, 13 Sep 2018 02:04:19 -0400 Received: by mail-pg1-f193.google.com with SMTP id t84-v6so1903059pgb.5 for ; Wed, 12 Sep 2018 17:57:16 -0700 (PDT) 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=z30FbZgOsqXYtT0pAvQC4ivHRNCwlSGvoFd+d8WiBIc=; b=C0xY3ytC2YCsoh3LnG7/PZuA0PCYN04qAT7PIK4m/r9RwYTVxINTpcARZ15qFvKhQP mgtYrNcEky7a1ENKE02XBrKmL+urhRSkOs/38IZ0IQfq1xaHUDNFXqpXpgfzyDxLERV2 inAEi8eAw3MEx7OJwAhqrj/R0OunQhCOa+KqsrNEOF80bDw/twJmD77ZtpiY/Trk8ple YvrcHcFAgbPtgakyGN6aaRWOGQdgbTiMB3AZlX+ZOulACtXx5HWdAgxI7o487z96l7sF cxKvgEc4PI09j3fPUFrsLIP/WiYcks1SDZ/lVUNdqTXopJZkX9sqV9LkeHd/70es0QTH eTvA== 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=z30FbZgOsqXYtT0pAvQC4ivHRNCwlSGvoFd+d8WiBIc=; b=WPBzr15rQvLhRw8/1t3xdrOtaFvu5sx7tuZtqTif3CtFnu8dkQ/R3HVK6KghEcnZPo lwJh3ir8uhdRE4qDPIaiOLvKB793aOpOMn1RZIiT/32wH71jCr/qHWbh9qvYBLJ7CZqv 5NwUhyjUdBrgSQUP8WY08VwnI4hYZ7ifahF7gSk4mLjpbaxen4zj57xusEdsr7hVvyPD Z9dL6ydk1FpIcypX/LlAo5IpahhT69RiCeWK6rXcHgxvvTTQWUlXjEhCLGYktxlUMwhK qovQYGc2Uhjbqenx6RhJc1RjYKDVwYlEy7zp0R7+ZV2nLuQH2Gcz+dUFTFENQTOep1gl O6XA== X-Gm-Message-State: APzg51ASh85vDNaoRpOGGkW5iLptdX/dBj8sIB0/m5rurivml9veTvaJ RW8t+i3l3VyhUHIgy1rrhDTUoBgY X-Received: by 2002:a62:d544:: with SMTP id d65-v6mr4901660pfg.107.1536800235136; Wed, 12 Sep 2018 17:57:15 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::2887]) by smtp.gmail.com with ESMTPSA id b14-v6sm3620602pfc.178.2018.09.12.17.57.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 17:57:14 -0700 (PDT) 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: Wed, 12 Sep 2018 17:56:54 -0700 Message-Id: <20180913005654.39976-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 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(+) -- 2.19.0 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