Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tKwvN5KCrzDvvt for ; Fri, 18 Nov 2016 22:37:04 +1100 (AEDT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uAIBYtPn130293 for ; Fri, 18 Nov 2016 06:37:02 -0500 Received: from e23smtp06.au.ibm.com (e23smtp06.au.ibm.com [202.81.31.148]) by mx0a-001b2d01.pphosted.com with ESMTP id 26sytek55c-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 18 Nov 2016 06:37:02 -0500 Received: from localhost by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Nov 2016 21:37:00 +1000 Received: from d23relay09.au.ibm.com (d23relay09.au.ibm.com [9.185.63.181]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 6996E3578053 for ; Fri, 18 Nov 2016 22:36:58 +1100 (EST) Received: from d23av05.au.ibm.com (d23av05.au.ibm.com [9.190.234.119]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uAIBawYa6095218 for ; Fri, 18 Nov 2016 22:36:58 +1100 Received: from d23av05.au.ibm.com (localhost [127.0.0.1]) by d23av05.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uAIBavuO017564 for ; Fri, 18 Nov 2016 22:36:58 +1100 Date: Fri, 18 Nov 2016 17:06:54 +0530 From: "Naveen N. Rao" To: Michael Ellerman Cc: Nicholas Piggin , Anton Blanchard , linuxppc-dev@lists.ozlabs.org, Masami Hiramatsu , Ananth N Mavinakayanahalli Subject: Re: [RFC PATCH 1/4] powerpc: asm: introduce new macros for assembly globals References: <87poltgm6e.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <87poltgm6e.fsf@concordia.ellerman.id.au> Message-Id: <20161118113654.GH4019@naverao1-tp.localdomain> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 2016/11/18 08:41PM, Michael Ellerman wrote: > "Naveen N. Rao" writes: > > > - Introduce _GLOBAL_SYM() for global symbols in assembly. This helps > > reduce verbosity of assembly files. > > Unfortunately you've walked into a bit of mine field here :) > > In user space they use FUNC_START() to declare the start of a function, > and we should do the same. Anton added FUNC_START/END, but didn't quite > get around to converting everything, see 151f25112ff7 ("powerpc: define > FUNC_START/FUNC_END"). > > So what I'd like is all uses of _GLOBAL() to become FUNC_START(), and > then we can change _GLOBAL() to just define a global symbol. Can't say I didn't get tempted to rename _GLOBAL() to _GLOBAL_FUNC() :D I'll convert the files I touch. > > We can probably decouple that from most of this series though, as I > mentioned in my other reply, just by using _ASM_NOKPROBE_SYMBOL(). Sure. Thanks! - Naveen