Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752628AbdFOWgz (ORCPT ); Thu, 15 Jun 2017 18:36:55 -0400 Received: from mail-co1nam03on0076.outbound.protection.outlook.com ([104.47.40.76]:5608 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751667AbdFOWfu (ORCPT ); Thu, 15 Jun 2017 18:35:50 -0400 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=cavium.com; From: David Daney To: Alexei Starovoitov , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, ralf@linux-mips.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Cc: David Daney Subject: [PATCH RFC 1/3] arm64: Gate inclusion of asm/sysreg.h by __EMITTING_BPF__ Date: Thu, 15 Jun 2017 15:35:41 -0700 Message-Id: <20170615223543.22867-2-david.daney@cavium.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170615223543.22867-1-david.daney@cavium.com> References: <20170615223543.22867-1-david.daney@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CO2PR07CA0070.namprd07.prod.outlook.com (10.174.192.38) To MWHPR07MB3501.namprd07.prod.outlook.com (10.164.192.28) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR07MB3501: X-MS-Office365-Filtering-Correlation-Id: 04035878-52ea-4ee5-eeb3-08d4b43ede97 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:MWHPR07MB3501; X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3501;3:vL3GmektZA0mb+ITBjUK9YRk/fZlXnBwltGZtK1f+s8DH8T+yB6b+J/zyl5QGPMbLaXfPPP9aGhXmZtTz6HLuOvGzFBpByG0yuBdzGhR//AL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Cmze80L2pYtb2ZTiz09TkR21jT6AgISon/7f26w5/uv2Ts/vuF8Y9GdOa7FqR8UcYUP/eOUEnIzfEaC67tW0/X80Eh3YaG5J3SU5M4XvBOcGBnF3k0J9hMwijpwpfIWuOGb0A2MQl4BRlzvLSDBK4Fphl6VczWgJ1ZYaEBKizlHMdSWVg3R6q7/jLmyl+DGiytghdK0WpvmwI2FHznfW0R8dri+APascZO/ViU9y40NBH7nMj1lBGWmB7QLKE2ZZKDodaLc0xlkAgbOu8gx/INKQwnTt5Qx4WnurnYVn+Ijgpvwj6RLnYaR5Vds0yahNKmDghHdB+KQiwaGDqGNX0tCAMFpDSZ9IH8GkEjSZbdLZTPQmcwXYEM8bS5Z+lnfGsTKzTv1XrfH6NbSOfsahdxaCxfcz4yD09Nv3AX2A1Ud4QjP X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR07MB3501;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR07MB3501; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR07MB3501;4:7mnhKNd+kOK8lv7ud4vqsDRMGpUkNhmWbCIxFJBHjW?= =?us-ascii?Q?7DUZAs7s+WuAz5wwUZnXtcIvYMQ78ni4wTtE4mebTEJ6l6iD5lqRvtxcOS/Z?= =?us-ascii?Q?A1/7ierCP30jq+HxPv0U0FI50p9e2PWmjWn0Pl8V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OnOYZK0DOxBTeBK60CjY7qNuwv3Z/1nRElOKXSd5WtWp7?= =?us-ascii?Q?vP8HSLCqhy2Bnzfeckaeo/9CA8EI+Yjz9SrzMc4eII2kJCp6Jz9ZqOtK0RAH?= =?us-ascii?Q?mUebbmm1Bvzfx7eJTpEczhQgbEiVI0?= X-Forefront-PRVS: 0339F89554 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39400400002)(39850400002)(39410400002)(39450400003)(39860400002)(39840400002)(81166006)(72206003)(8676002)(47776003)(1076002)(7736002)(305945005)(76176999)(6116002)(50986999)(86362001)(5660300001)(2906002)(36756003)(3846002)(38730400002)(66066001)(2950100002)(53416004)(6506006)(189998001)(478600001)(107886003)(4326008)(6512007)(5003940100001)(42186005)(33646002)(6486002)(50466002)(53936002)(48376002)(25786009)(50226002)(6666003)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB3501;H:ddl.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR07MB3501;23:zxyrhIXfvRMRN62xWIkG7HMLQI3gM3v00LHjAOMaP?= =?us-ascii?Q?4Q3UkEkJrAs8KAJdfK9hsgeqnuOCOQHpBcbUJLzSkMfPQ9FlOJUe9hs0pFlw?= =?us-ascii?Q?tJay8YCg88yJsDkl2KgJu43nQrbPcBSjU17s/f3fiTv8RezSs148+d2jea4E?= =?us-ascii?Q?ls3imqETHx9SLzZfMOLHPQyCyYFKeQcd5EBkdfnm/Nt428S4rfm6XbO44pbt?= =?us-ascii?Q?fLf+j9fhQL9v23akYPnlcgYXPBtqRrHIs1hC5FIge89KPDq9Oix0FBXm445d?= =?us-ascii?Q?3d/jlUEInZqAi/rMOO/LudY8OC8EbKgF4B6Kp23WmmyvZg6lF4v0Bd1sOgye?= =?us-ascii?Q?ShDywLrNEsjb/RZlP2YB1eGVnQbEHWuBDZu0ErTHDKzlb2/Br4bTyvNS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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3501;7:7S1OjozRdmOql59mU5wcyRiHLsABPYqiKSQc6VrhlB/YeX4MXkChlf5ND9YnKFBRLYKvaTSojKO4EoM1oLM/QAvYNK7SGPKFPmYw7zVWdUsttUMbhwM2TchzmPdGUo3X+G5NbCwTj/UR6UWX6FB5rxI+OGoy05qPeHqfROyQ66/gOcNRw/YF2pCAo1I3GhrhxqWw1Tqiv9mVn5Vb2EoA2m0jGehX4SN2lamencPi80O0aPImRUsm4qxwzbNP5+dSP5XAbZHsg7DaVzkKBCdzky07YuflrnfVErF3+TaAajcmzXHT+1iIyDAac8viC1Xi1YOtak+yOvVsKe18Vu05wA== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2017 22:35:47.7959 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3501 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 752 Lines: 30 Compilation to eBPF chokes on the inline asm in asm/sysreg.h, so don't include it when compiling to a BPF target. Signed-off-by: David Daney --- arch/arm64/include/asm/sysreg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 15c142ce991c..faa8f853e369 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -20,6 +20,8 @@ #ifndef __ASM_SYSREG_H #define __ASM_SYSREG_H +#ifndef __EMITTING_BPF__ + #include /* @@ -502,5 +504,5 @@ static inline void config_sctlr_el1(u32 clear, u32 set) } #endif - +#endif /* __EMITTING_BPF__ */ #endif /* __ASM_SYSREG_H */ -- 2.11.0