linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: ijc@hellion.org.uk (Ian Campbell)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: kirkwood: add missing kexec.h include
Date: Tue, 10 Apr 2012 11:27:10 +0100	[thread overview]
Message-ID: <1334053630.12209.180.camel@dagon.hellion.org.uk> (raw)
In-Reply-To: <20120410100038.GP24211@n2100.arm.linux.org.uk>

On Tue, 2012-04-10 at 11:00 +0100, Russell King - ARM Linux wrote:
> On Fri, Apr 06, 2012 at 02:10:38PM +0100, Ian Campbell wrote:
> > On Fri, 2012-04-06 at 16:50 +0400, Sergei Shtylyov wrote:
> > > On 06.04.2012 16:30, Ian Campbell wrote:
> > > > Fixes build the following error when CONFIG_KEXEC is enabled:
> > > 
> > >     Maybe "the following build error" instead?
> > 
> > Done.
> > 
> > > >    CC      arch/arm/mach-kirkwood/board-dt.o
> > > > arch/arm/mach-kirkwood/board-dt.c: In function 'kirkwood_dt_init':
> > > > arch/arm/mach-kirkwood/board-dt.c:52:2: error: 'kexec_reinit' undeclared (first use in this function)
> > > > arch/arm/mach-kirkwood/board-dt.c:52:2: note: each undeclared identifier is reported only once for each function it appears in
> > > 
> > > > kexec.h also needs string.h.
> > > 
> > >     Why it doesn't include it?
> > 
> > Not sure, but actually I should be using linux/kexec.h not asm/kexec.h
> > anyway which solves the problem too:
> 
> Because you should not be using asm/kexec.h directly but using linux/kexec.h
> instead,

Agreed.

>  which will include it via this path:
> 
> linux/kexec.h -> linux/compat.h -> linux/sem.h -> linux/rcupdate.h
>  -> linux/cpumask.h -> linux/bitmap.h -> linux/string.h
> 
> checkpatch has been nobbled not to complain by default about using asm/%.h
> includes when linux/%.h includes are also present, which is a backwards
> step imho.

Yes, I'm not sure what the point of that test would be if it isn't
complaining about that case...

-- 
Ian Campbell


MS-DOS, you can't live with it, you can live without it.
		-- from Lars Wirzenius' .sig

  reply	other threads:[~2012-04-10 10:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06 12:30 [PATCH] ARM: kirkwood: add missing kexec.h include Ian Campbell
2012-04-06 12:50 ` Sergei Shtylyov
2012-04-06 13:10   ` Ian Campbell
2012-04-06 17:45     ` Sergei Shtylyov
2012-04-06 18:32       ` Ian Campbell
2012-04-10 10:00     ` Russell King - ARM Linux
2012-04-10 10:27       ` Ian Campbell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-04-29 13:40 Ian Campbell
2012-04-30 14:21 ` Arnd Bergmann
2012-05-08 18:20   ` Jason Cooper

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=1334053630.12209.180.camel@dagon.hellion.org.uk \
    --to=ijc@hellion.org.uk \
    --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).