From patchwork Tue Jun 4 08:29:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 165719 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp5535428ili; Tue, 4 Jun 2019 01:30:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOuEh7NgksvygTXhO2VsMCjWOpg/hD6Mjt0MrWwS6b6nbmRnDHSpuKvYI6lDlr6u427pKr X-Received: by 2002:a17:902:15c5:: with SMTP id a5mr35553278plh.39.1559637000719; Tue, 04 Jun 2019 01:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559637000; cv=none; d=google.com; s=arc-20160816; b=EjIoi9k5Qe/+2I1/kiX52RQpEE5ApeqHOsOdk+XBTBme+Cao03HOJDCC6ant9AfNTg 7kARg3h5hwen9KucYBBBKMzgSHZL3GVcPN6X2KouMRU3Nsx9gClaGYtpDmQkSZHW1cMj 7dR0MoNqck69OFs+y5CFLK6TEPXy656IKCUGtpBA4rgQO418EARwRyZNbySZnMvFVKr2 FIPm/F/zFG5+Zmg2zp2FE5AR24BoCoT9DoWjxW/QuYPoH1LxyjQWCV29NYie/jlFG/HM 6fRnUU3qTyZllBj2+qIbD5+eLI7D1MLWsBOaMxkqopAjy9/9VYhSnCNEoXrkbQ5YI29E U0dg== 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 s1si2989630plp.66.2019.06.04.01.30.00; Tue, 04 Jun 2019 01:30:00 -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 S1726988AbfFDI37 (ORCPT + 30 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 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(-) -- 2.17.1 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) {