Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4276443imm; Fri, 18 May 2018 02:18:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoShdvX5eYIKITFzZbxutCMvu8lNmJDsiz5fNRmzU7PClfMYzgbyG3vestN/yDqed5R5jFq X-Received: by 2002:a65:610d:: with SMTP id z13-v6mr6928887pgu.260.1526635109154; Fri, 18 May 2018 02:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526635109; cv=none; d=google.com; s=arc-20160816; b=qCFLEPYj9BYn2hbiu2mPixXgSRqJ+O8ytNn3kAIsehGL/9egM315EceYqdDmzwfcQK E1gd7QI9+PRuBadZzX/IhAuk5srWOP4T+h+VtWfqApHA0tgNxFurTapPp2RXOMjyGWZR nR51+Q+dLtyat3r9rAAwSnn8FAm0S1LkMfS1k5ZhDQ4N7t7z99mBt9U6sO38xB6zb1P9 O1TbmHuBbdEwHKOki8NDQk2mlRbM/4oMZTvcsStE0te8rAEJnM7IOq+cN+Op6K40wFaq DEbIzgX31LnRk8t6UGW8VR0gPzyNP3bhpA9lkplr6ECZWGyMbfiv2GtEsJEPs0tFM5pQ /gzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=CgVicKVvy+9gecf93UIuQ4RVmgsVQH0ewT3QcrtKDSU=; b=Gm0aSXvC1Iv0PCEVpJa5D69Wv2WExMsiVJXp+rEZEksaEEJp6h79hoqTs208TU0bNR J3vKANPpa2hAOxucH/3lpaHIQqRbKekInf3LnCI5p6c90CHc3Vg5y9cpJUL8Y2Y2SvNw qD8vjkvG0Bv/QhTxFbaIw8+7QbpZWzIY8GLmmJe29LENUHoKGJwi2Bv+eMXVCWn3c1+r 6GKJ3oG1Zm53PvIDs0MubyKHcTD2Aj078WFp7gJr+7Hmx5VfM+7jpB1IQ0ZUBB51kt7E oDz7EKZ8zoK5RzapdBYAgyXpwfZK52UXwBJW0e7XSd3lsNvLW6oqZtkwOjDEVZLOvCty /yKg== ARC-Authentication-Results: i=1; mx.google.com; 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 g5-v6si6801340plp.108.2018.05.18.02.18.14; Fri, 18 May 2018 02:18:29 -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; 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 S1753304AbeERJSH (ORCPT + 99 others); Fri, 18 May 2018 05:18:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:45410 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924AbeERJR4 (ORCPT ); Fri, 18 May 2018 05:17:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 91D17AF7D; Fri, 18 May 2018 09:17:55 +0000 (UTC) From: Jiri Slaby To: mingo@redhat.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org Subject: [PATCH v6 28/28] x86/asm: replace WEAK uses by SYM_INNER_LABEL Date: Fri, 18 May 2018 11:17:21 +0200 Message-Id: <20180518091721.7604-29-jslaby@suse.cz> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180518091721.7604-1-jslaby@suse.cz> References: <20180518091721.7604-1-jslaby@suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the new SYM_INNER_LABEL for WEAK entries in the middle of x86 assembly functions. And make sure WEAK is not defined for x86 anymore as these were the last users. Signed-off-by: Jiri Slaby Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.org --- arch/x86/kernel/ftrace_32.S | 2 +- arch/x86/kernel/ftrace_64.S | 2 +- arch/x86/kernel/head_32.S | 2 +- include/linux/linkage.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/ftrace_32.S b/arch/x86/kernel/ftrace_32.S index f519c22f6f9e..c98512e59c9b 100644 --- a/arch/x86/kernel/ftrace_32.S +++ b/arch/x86/kernel/ftrace_32.S @@ -98,7 +98,7 @@ ftrace_graph_call: #endif /* This is weak to keep gas from relaxing the jumps */ -WEAK(ftrace_stub) +SYM_INNER_LABEL(ftrace_stub, SYM_L_WEAK) ret SYM_CODE_END(ftrace_caller) diff --git a/arch/x86/kernel/ftrace_64.S b/arch/x86/kernel/ftrace_64.S index 68b8c4b3e543..1902ee43eac8 100644 --- a/arch/x86/kernel/ftrace_64.S +++ b/arch/x86/kernel/ftrace_64.S @@ -186,7 +186,7 @@ SYM_INNER_LABEL(ftrace_graph_call, SYM_L_GLOBAL) #endif /* This is weak to keep gas from relaxing the jumps */ -WEAK(ftrace_stub) +SYM_INNER_LABEL(ftrace_stub, SYM_L_WEAK) retq SYM_FUNC_END(ftrace_caller) diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index 7840ab96bee3..5e9715bafbbf 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S @@ -156,7 +156,7 @@ SYM_CODE_START(startup_32) jmp *%eax .Lbad_subarch: -WEAK(xen_entry) +SYM_INNER_LABEL(xen_entry, SYM_L_WEAK) /* Unknown implementation; there's really nothing we can do at this point. */ ud2a diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 25cba413ee71..e4cbdc034127 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -114,13 +114,13 @@ #endif /* CONFIG_X86 */ #endif /* LINKER_SCRIPT */ +#ifndef CONFIG_X86 #ifndef WEAK /* deprecated, use SYM_FUNC_START_WEAK* */ #define WEAK(name) \ SYM_FUNC_START_WEAK_NOALIGN(name) #endif -#ifndef CONFIG_X86 #ifndef END /* deprecated, use SYM_FUNC_END, SYM_DATA_END, or SYM_END */ #define END(name) \ -- 2.16.3