Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp55305imm; Wed, 12 Sep 2018 17:59:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdakJZbeNwdZXE7illkQ8XtWa7ot5VPJchWeEudc+9RvZ5f+McpZKXrC73Et4ZlasR91nFd8 X-Received: by 2002:a17:902:7c0a:: with SMTP id x10-v6mr4774872pll.77.1536800344049; Wed, 12 Sep 2018 17:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536800344; cv=none; d=google.com; s=arc-20160816; b=ZF2U+YEsLsHPNy9OMLNEJB/M5drD9EXTB1s64Du++WBfj7AJPwioXXobx5XzrFO6sf OdCnknGB4wjZ6nduwZqRAV5rJD11oNnjODVkpg3q3NkqnMybnL0TaeCIA1FS04ZMBeZf 12ahcMFzaRbR/uKfcRzrOAz0t7xE6Pd/E9HZflHuDZ6v0s5HmDZbj7foM07dWPo/Gl5W iDtqh3txkt9q1R1Z8YpKWLJz/1DffKTt+YId+agn4a3Y2L5/JhYt0V0r2MMNVQ/iIJAP mHiWvN0HLD+8dbFOV7snjUXzAwHodqncLzlhLlvHh/s/3PpFyV+MqxAC2NVxuD6RDi0A TyAg== 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 e189-v6si2493024pfe.206.2018.09.12.17.58.41; Wed, 12 Sep 2018 17:59:03 -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 S1727332AbeIMGET (ORCPT + 99 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 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.19.0