linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: zhang.lyra@gmail.com (Lyra Zhang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs'
Date: Thu, 4 Dec 2014 20:37:56 +0800	[thread overview]
Message-ID: <CAAfSe-umuaCJ947FtiTWjQSjfwHPiwg9ZEine+=vbdGg2EK8qw@mail.gmail.com> (raw)
In-Reply-To: <1417692197-18518-1-git-send-email-chunyan.zhang@spreadtrum.com>

Hi, All

I'm sorry that this is an accident from our IT-service, because they
all use M$ software, and didn't familiar with git send-email.
You can ignore this email.
.
Please forgive that persons who are only able to use M$ products.


Thanks,
Chunyan


2014-12-04 19:23 GMT+08:00 Chunyan Zhang <chunyan.zhang@spreadtrum.com>:
> If I include asm/irq.h on the top of my code, and set ARCH=arm64,
> I'll get a compile warning, details are below:
> warning: ?struct pt_regs?
> declared inside parameter list [enabled by default]
>
> This patch is suggested by Arnd, see:
> http://lists.infradead.org/pipermail/linux-arm-kernel/2014-December/308270.html
>
> Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
> ---
>  arch/arm64/include/asm/irq.h |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/include/asm/irq.h b/arch/arm64/include/asm/irq.h
> index e1f7ecd..acedc7e 100644
> --- a/arch/arm64/include/asm/irq.h
> +++ b/arch/arm64/include/asm/irq.h
> @@ -3,6 +3,8 @@
>
>  #include <asm-generic/irq.h>
>
> +struct pt_regs;
> +
>  extern void (*handle_arch_irq)(struct pt_regs *);
>  extern void migrate_irqs(void);
>  extern void set_handle_irq(void (*handle_irq)(struct pt_regs *));
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

  reply	other threads:[~2014-12-04 12:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-04 11:23 [PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs' Chunyan Zhang
2014-12-04 12:37 ` Lyra Zhang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-12-04 11:24 Chunyan Zhang
     [not found] <zcyirq.h>
2014-12-04  6:29 ` Chunyan Zhang
2014-12-04 10:11   ` 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='CAAfSe-umuaCJ947FtiTWjQSjfwHPiwg9ZEine+=vbdGg2EK8qw@mail.gmail.com' \
    --to=zhang.lyra@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).