From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBsW2-0006sX-GI for barebox@lists.infradead.org; Mon, 15 Oct 2018 02:21:55 +0000 Received: by mail-pl1-x644.google.com with SMTP id y15-v6so8497499plr.12 for ; Sun, 14 Oct 2018 19:21:44 -0700 (PDT) From: Andrey Smirnov Date: Sun, 14 Oct 2018 19:21:04 -0700 Message-Id: <20181015022125.24020-2-andrew.smirnov@gmail.com> In-Reply-To: <20181015022125.24020-1-andrew.smirnov@gmail.com> References: <20181015022125.24020-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v3 01/22] ARM: Do not expose ARMv8 functions on ARMv7 To: barebox@lists.infradead.org Cc: Andrey Smirnov Assembly implementing current_el(), read_mpidr(), set_cntfrq(), get_cntfrq() and get_cntpct() is ARMv8 specific, so change #if guard protecting it to reflect that fact. Signed-off-by: Andrey Smirnov --- arch/arm/include/asm/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index 5cf828ea3..2f13e2b98 100644 --- a/arch/arm/include/asm/system.h +++ b/arch/arm/include/asm/system.h @@ -61,7 +61,7 @@ #define CR_TE (1 << 30) /* Thumb exception enable */ #ifndef __ASSEMBLY__ -#if __LINUX_ARM_ARCH__ >= 7 +#if __LINUX_ARM_ARCH__ > 7 static inline unsigned int current_el(void) { unsigned int el; -- 2.17.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox