From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753060AbbDIHIa (ORCPT ); Thu, 9 Apr 2015 03:08:30 -0400 Received: from casper.infradead.org ([85.118.1.10]:52435 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbbDIHI2 (ORCPT ); Thu, 9 Apr 2015 03:08:28 -0400 Date: Thu, 9 Apr 2015 09:08:13 +0200 From: Peter Zijlstra To: Anton Blanchard Cc: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, mmarek@suse.cz, akpm@linux-foundation.org, jbaron@akamai.com, liuj97@gmail.com, mingo@kernel.org, mgorman@suse.de, linux@arm.linux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, ralf@linux-mips.org, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, rostedt@goodmis.org, linuxppc-dev@lists.ozlabs.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] jump_label: Allow asm/jump_label.h to be included in assembly Message-ID: <20150409070813.GM27490@worktop.programming.kicks-ass.net> References: <1428551492-21977-1-git-send-email-anton@samba.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1428551492-21977-1-git-send-email-anton@samba.org> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 09, 2015 at 01:51:30PM +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 Acked-by: Peter Zijlstra (Intel) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (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 9E3C51A04E0 for ; Thu, 9 Apr 2015 17:08:35 +1000 (AEST) Date: Thu, 9 Apr 2015 09:08:13 +0200 From: Peter Zijlstra To: Anton Blanchard Subject: Re: [PATCH 1/3] jump_label: Allow asm/jump_label.h to be included in assembly Message-ID: <20150409070813.GM27490@worktop.programming.kicks-ass.net> References: <1428551492-21977-1-git-send-email-anton@samba.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1428551492-21977-1-git-send-email-anton@samba.org> Cc: 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, rostedt@goodmis.org, 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, Apr 09, 2015 at 01:51:30PM +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 Acked-by: Peter Zijlstra (Intel)