mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonas Bonn <jonas@southpole.se>
To: James Hogan <james.hogan@imgtec.com>
Cc: linux@openrisc.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] openrisc: use kbuild.h instead of defining macros in asm-offset.c
Date: Thu, 25 Oct 2012 15:33:00 +0200	[thread overview]
Message-ID: <1351171980.6232.64.camel@jerome.southpole.se> (raw)
In-Reply-To: <1349946181-27277-1-git-send-email-james.hogan@imgtec.com>

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

On Thu, 2012-10-11 at 10:03 +0100, James Hogan wrote:
> This is modelled on commits such as the one below:
> 
> Commit fc1c3a003edb8a6778e64e10ef671a38c76c969e ("sh: use kbuild.h
> instead of defining macros in asm-offsets.c") introduced in v2.6.26.
> 
> Signed-off-by: James Hogan <james.hogan@imgtec.com>

Thanks, looks good.  Will take this for 3.8.
/Jonas

> ---
> Note I haven't tested compilation on openrisc. I'd appreciate if
> somebody could check it doesn't break anything.
> 
>  arch/openrisc/kernel/asm-offsets.c |    6 +-----
>  1 files changed, 1 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/openrisc/kernel/asm-offsets.c b/arch/openrisc/kernel/asm-offsets.c
> index 1a242a0..ddb7368 100644
> --- a/arch/openrisc/kernel/asm-offsets.c
> +++ b/arch/openrisc/kernel/asm-offsets.c
> @@ -34,15 +34,11 @@
>  #include <linux/mm.h>
>  #include <linux/io.h>
>  #include <linux/thread_info.h>
> +#include <linux/kbuild.h>
>  #include <asm/page.h>
>  #include <asm/pgtable.h>
>  #include <asm/processor.h>
>  
> -#define DEFINE(sym, val) \
> -		asm volatile("\n->" #sym " %0 " #val : : "i" (val))
> -
> -#define BLANK() asm volatile("\n->" : : )
> -
>  int main(void)
>  {
>  	/* offsets into the task_struct */


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

      reply	other threads:[~2012-10-25 13:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11  9:03 James Hogan
2012-10-25 13:33 ` Jonas Bonn [this message]

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=1351171980.6232.64.camel@jerome.southpole.se \
    --to=jonas@southpole.se \
    --cc=james.hogan@imgtec.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@openrisc.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®