From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933846AbdBQKuM (ORCPT ); Fri, 17 Feb 2017 05:50:12 -0500 Received: from mx2.suse.de ([195.135.220.15]:44843 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932134AbdBQKsD (ORCPT ); Fri, 17 Feb 2017 05:48:03 -0500 From: Jiri Slaby To: mingo@redhat.com Cc: tglx@linutronix.de, hpa@zytor.com, x86@kernel.org, jpoimboe@redhat.com, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 04/10] linkage: introduce ENTRY_LOCAL Date: Fri, 17 Feb 2017 11:47:51 +0100 Message-Id: <20170217104757.28588-4-jslaby@suse.cz> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170217104757.28588-1-jslaby@suse.cz> References: <20170217104757.28588-1-jslaby@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This will be used for local assembler functions, which do not want the ".globl" annotation. Sometimes we see: === .align 4 some_function: ... ENDPROC(some_function) === which is not nice towards tools trying to analyze the assembly. (DWARF generation in particular.) So let us have ENTRY_LOCAL which is going to annotate these cases including the alignment. Signed-off-by: Jiri Slaby --- include/linux/linkage.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/linux/linkage.h b/include/linux/linkage.h index a6a42dd02466..ca5d5c01009b 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -78,11 +78,16 @@ #define ALIGN __ALIGN #define ALIGN_STR __ALIGN_STR +#ifndef ENTRY_LOCAL +#define ENTRY_LOCAL(name) \ + ALIGN ASM_NL \ + name: +#endif + #ifndef ENTRY #define ENTRY(name) \ .globl name ASM_NL \ - ALIGN ASM_NL \ - name: + ENTRY_LOCAL(name) #endif #endif /* LINKER_SCRIPT */ -- 2.11.1