All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Anton Blanchard <anton@samba.org>
Cc: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au,
	mmarek@suse.cz, akpm@linux-foundation.org, jbaron@akamai.com,
	peterz@infradead.org, 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,
	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
Date: Thu, 9 Apr 2015 10:00:55 -0400	[thread overview]
Message-ID: <20150409100055.00c3834e@gandalf.local.home> (raw)
In-Reply-To: <1428551492-21977-1-git-send-email-anton@samba.org>

On Thu,  9 Apr 2015 13:51:30 +1000
Anton Blanchard <anton@samba.org> 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 <anton@samba.org>
> ---
>  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 <rostedt@goodmis.org>

-- Steve

WARNING: multiple messages have this Message-ID (diff)
From: Steven Rostedt <rostedt@goodmis.org>
To: Anton Blanchard <anton@samba.org>
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
Subject: Re: [PATCH 1/3] jump_label: Allow asm/jump_label.h to be included in assembly
Date: Thu, 9 Apr 2015 10:00:55 -0400	[thread overview]
Message-ID: <20150409100055.00c3834e@gandalf.local.home> (raw)
In-Reply-To: <1428551492-21977-1-git-send-email-anton@samba.org>

On Thu,  9 Apr 2015 13:51:30 +1000
Anton Blanchard <anton@samba.org> 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 <anton@samba.org>
> ---
>  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 <rostedt@goodmis.org>

-- Steve

  parent reply	other threads:[~2015-04-09 14:01 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09  3:51 [PATCH 1/3] jump_label: Allow asm/jump_label.h to be included in assembly Anton Blanchard
2015-04-09  3:51 ` Anton Blanchard
2015-04-09  3:51 ` [PATCH 2/3] jump_label: Allow jump labels to be used " Anton Blanchard
2015-04-09  3:51   ` Anton Blanchard
2015-04-09  7:08   ` Peter Zijlstra
2015-04-09  7:08     ` Peter Zijlstra
2015-04-09  9:01   ` [tip:locking/core] " tip-bot for Anton Blanchard
2015-04-09 14:03   ` [PATCH 2/3] " Steven Rostedt
2015-04-09 14:03     ` Steven Rostedt
2015-04-09  3:51 ` [PATCH 3/3] powerpc: Include linux/jump_label.h to get HAVE_JUMP_LABEL define Anton Blanchard
2015-04-09  3:51   ` Anton Blanchard
2015-04-09  7:08   ` Peter Zijlstra
2015-04-09  7:08     ` Peter Zijlstra
2015-04-09  7:33   ` Michael Ellerman
2015-04-09  7:33     ` Michael Ellerman
2015-04-09  9:01   ` [tip:locking/core] powerpc, jump_label: Include linux/ jump_label.h " tip-bot for Anton Blanchard
2015-04-09 14:04   ` [PATCH 3/3] powerpc: Include linux/jump_label.h " Steven Rostedt
2015-04-09 14:04     ` Steven Rostedt
2015-04-09  7:08 ` [PATCH 1/3] jump_label: Allow asm/jump_label.h to be included in assembly Peter Zijlstra
2015-04-09  7:08   ` Peter Zijlstra
2015-04-09  9:00 ` [tip:locking/core] jump_label: Allow asm/ jump_label.h " tip-bot for Anton Blanchard
2015-04-09 14:00 ` Steven Rostedt [this message]
2015-04-09 14:00   ` [PATCH 1/3] jump_label: Allow asm/jump_label.h " Steven Rostedt
  -- strict thread matches above, loose matches on Subject: below --
2015-04-09  3:50 Anton Blanchard
2015-01-07 10:35 Anton Blanchard
2015-01-07 10:35 ` Anton Blanchard
2015-01-07 11:30 ` Will Deacon
2015-01-07 11:30   ` Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150409100055.00c3834e@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=anton@samba.org \
    --cc=benh@kernel.crashing.org \
    --cc=catalin.marinas@arm.com \
    --cc=davem@davemloft.net \
    --cc=heiko.carstens@de.ibm.com \
    --cc=hpa@zytor.com \
    --cc=jbaron@akamai.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=liuj97@gmail.com \
    --cc=mgorman@suse.de \
    --cc=mingo@kernel.org \
    --cc=mingo@redhat.com \
    --cc=mmarek@suse.cz \
    --cc=mpe@ellerman.id.au \
    --cc=paulus@samba.org \
    --cc=peterz@infradead.org \
    --cc=ralf@linux-mips.org \
    --cc=schwidefsky@de.ibm.com \
    --cc=tglx@linutronix.de \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.