Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5126218ybi; Tue, 4 Jun 2019 01:31:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpmzgJ7gWSX4/sAz7GK60PQuqXxoe6giwqd3KnGGju/yoW3J9qGCtXggH2T4oR8x4nV3Zo X-Received: by 2002:a63:4045:: with SMTP id n66mr5604075pga.386.1559637088612; Tue, 04 Jun 2019 01:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559637088; cv=none; d=google.com; s=arc-20160816; b=atNG44CBSJC4LqnjscCMLBndsvohUFpP8YQPve/fwtE9wFsCds9Sbwk4YvvjSukZRN 29J8MZgcR6ivIeliEVBq5qPQZulYZWLEanHQu+IXm1IE5he2KPYhm4R2ibK59sjsYiYc HCx5LzLuc3Vvqu8bMju2yXBTlks9OrbxFYy2GSu2jLqDDdTUQt3wr1AovNyMnPfWTmiD BYm8szPkyvXZH2lcTQ9DFEmhUCSg7yEKWkevQDVdstknd1RvlWHVQWUrGoci40cLpk3A jKV4ap/vAOUDXgm1uGYfKpnEGLavYNqKTNucozNA1JmZ1QrfN+Y22vBXcmCF2N3MkpMl ODog== 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:dkim-filter; bh=wgPN+vEMC9yLs8VRlcnC/BEteIcw2sS7DW+DFAzIrnw=; b=PIyh8m/54jlafdEmmSdvVDG+Pt1A9/Vw219j5Eu7X51S21Yxv6IlAaixx4W3s1Dk7O IT+0btCo3PNa9VPHtvAut5cHWysb8DyTMFecQqRhHNhkAwdp1eBIe0qJLS5sX54O8jnH 8d0SZr37GSjVvw8yi0IlDSGdPIqfjRSF4I7H4rL8kAvlnQZWiJQ4utniYYO69DJMtV+3 tRnaLzTGIJpKAIzxLcMOD+Y7g+HzyggXcRg+0SMUyqgskA7u0uldO8PQU+aID6+LFgja 99ZT1wVsX2Rgp06fTuWNaHZpghHR3EBR+ntgbr225zLv3LRcgttXr8gkzwJe5Fd6lY3A 12gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Lsu3ucxm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u126si18239191pgu.117.2019.06.04.01.31.10; Tue, 04 Jun 2019 01:31:28 -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=@nifty.com header.s=dec2015msa header.b=Lsu3ucxm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726976AbfFDI37 (ORCPT + 99 others); Tue, 4 Jun 2019 04:29:59 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:57331 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726642AbfFDI37 (ORCPT ); Tue, 4 Jun 2019 04:29:59 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id x548TsXm016165; Tue, 4 Jun 2019 17:29:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x548TsXm016165 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1559636994; bh=wgPN+vEMC9yLs8VRlcnC/BEteIcw2sS7DW+DFAzIrnw=; h=From:To:Cc:Subject:Date:From; b=Lsu3ucxmcI56axCWBnGH1GAVLRjnf2cYY2dVKvHvwZ2Yng20JRUEDX0u4KuBItlEb /56vFgqvVDnLuDIFa/cGtaE90vX+4/ECuTGXybjnWsO5LoFiRLQS4QGRFIxC7lJRyR LJ0YEFknuivGha9fvxRYwmzGWNFwTgGvSMSC2/4024Ynmc/wZY3r+t0eR444t7e5BM wJRT7ZYog/AGyOXkQ8uchHcDGaiFwVuUt0w4zKPf/0Qg8ZV7dL9RzPheSRoQdS6AqK t0lt7/Ba/aQahCr7NLvw1+8lSEPmCtlPxPaghg14hUdb1VJDxRqQ+Wukkq9OQRZxxU igyid8NLlS6mw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] s390: fix unrecognized __aligned() in uapi header Date: Tue, 4 Jun 2019 17:29:47 +0900 Message-Id: <20190604082947.26328-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __aligned() is a shorthand that is only available in the kernel space because it is defined in include/linux/compiler_attributes.h, which is not exported to the user space. Detected by compile-testing exported headers. ./usr/include/asm/runtime_instr.h:60:37: error: expected declaration specifiers or ‘...’ before numeric constant } __attribute__((packed)) __aligned(8); ^ Signed-off-by: Masahiro Yamada --- arch/s390/include/uapi/asm/runtime_instr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/include/uapi/asm/runtime_instr.h b/arch/s390/include/uapi/asm/runtime_instr.h index 45c9ec984e6b..455da46e3193 100644 --- a/arch/s390/include/uapi/asm/runtime_instr.h +++ b/arch/s390/include/uapi/asm/runtime_instr.h @@ -57,7 +57,7 @@ struct runtime_instr_cb { __u64 sf; __u64 rsic; __u64 reserved8; -} __packed __aligned(8); +} __attribute__((__packed__, __aligned__(8))); static inline void load_runtime_instr_cb(struct runtime_instr_cb *cb) { -- 2.17.1