From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtprelay.hostedemail.com (smtprelay0113.hostedemail.com [216.40.44.113]) by lists.ozlabs.org (Postfix) with ESMTP id 023BE1A04E0 for ; Fri, 10 Apr 2015 00:01:01 +1000 (AEST) Date: Thu, 9 Apr 2015 10:00:55 -0400 From: Steven Rostedt To: Anton Blanchard Subject: Re: [PATCH 1/3] jump_label: Allow asm/jump_label.h to be included in assembly Message-ID: <20150409100055.00c3834e@gandalf.local.home> In-Reply-To: <1428551492-21977-1-git-send-email-anton@samba.org> References: <1428551492-21977-1-git-send-email-anton@samba.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: peterz@infradead.org, heiko.carstens@de.ibm.com, paulus@samba.org, hpa@zytor.com, mingo@kernel.org, linux@arm.linux.org.uk, mingo@redhat.com, mgorman@suse.de, catalin.marinas@arm.com, liuj97@gmail.com, linux-kbuild@vger.kernel.org, will.deacon@arm.com, jbaron@akamai.com, tglx@linutronix.de, mmarek@suse.cz, linux-kernel@vger.kernel.org, ralf@linux-mips.org, schwidefsky@de.ibm.com, akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org, davem@davemloft.net List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 9 Apr 2015 13:51:30 +1000 Anton Blanchard wrote: > Wrap asm/jump_label.h for all archs with #ifndef __ASSEMBLY__. > Since these are kernel only headers, we don't need #ifdef __KERNEL__ > so can simplify things a bit. > > If an architecture wants to use jump labels in assembly, it > will still need to define a macro to create the __jump_table > entries (see ARCH_STATIC_BRANCH in the powerpc asm/jump_label.h > for an example). > > Signed-off-by: Anton Blanchard > --- > arch/arm/include/asm/jump_label.h | 5 ++--- > arch/arm64/include/asm/jump_label.h | 8 ++++---- > arch/mips/include/asm/jump_label.h | 7 +++---- > arch/s390/include/asm/jump_label.h | 3 +++ > arch/sparc/include/asm/jump_label.h | 5 ++--- > arch/x86/include/asm/jump_label.h | 5 ++--- > 6 files changed, 16 insertions(+), 17 deletions(-) > > diff --git a/arch/arm/include/asm/jump_label.h b/arch/arm/include/asm/jump_label.h Acked-by: Steven Rostedt -- Steve