From: Matthew Wilcox <willy@infradead.org>
To: Simon Horman <horms@kernel.org>
Cc: Sean Anderson <seanga2@gmail.com>,
Jakub Kicinski <kuba@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
kernel test robot <lkp@intel.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux Memory Management List <linux-mm@kvack.org>,
linux-m68k@lists.linux-m68k.org
Subject: Re: [PATCH net-next] net: sunhme: move asm includes to below linux includes
Date: Wed, 5 Apr 2023 19:07:13 +0100 [thread overview]
Message-ID: <ZC240XCeYCaSCu0X@casper.infradead.org> (raw)
In-Reply-To: <ZC23vf6tNKU1FgRP@kernel.org>
On Wed, Apr 05, 2023 at 08:02:37PM +0200, Simon Horman wrote:
> On Wed, Apr 05, 2023 at 01:34:11PM -0400, Sean Anderson wrote:
> > On 4/5/23 13:29, Simon Horman wrote:
> > > A recent rearrangement of includes has lead to a problem on m68k
> > > as flagged by the kernel test robot.
> > >
> > > Resolve this by moving the block asm includes to below linux includes.
> > > A side effect i that non-Sparc asm includes are now immediately
> > > before Sparc asm includes, which seems nice.
> > >
> > > Using sparse v0.6.4 I was able to reproduce this problem as follows
> > > using the config provided by the kernel test robot:
> > >
> > > $ wget https://download.01.org/0day-ci/archive/20230404/202304041748.0sQc4K4l-lkp@intel.com/config
> > > $ cp config .config
> > > $ make ARCH=m68k oldconfig
> > > $ make ARCH=m68k C=2 M=drivers/net/ethernet/sun
> > > CC [M] drivers/net/ethernet/sun/sunhme.o
> > > In file included from drivers/net/ethernet/sun/sunhme.c:19:
> > > ./arch/m68k/include/asm/irq.h:78:11: error: expected ‘;’ before ‘void’
> > > 78 | asmlinkage void do_IRQ(int irq, struct pt_regs *regs);
> > > | ^~~~~
> > > | ;
> > > ./arch/m68k/include/asm/irq.h:78:40: warning: ‘struct pt_regs’ declared inside parameter list will not be visible outside of this definition or declaration
> > > 78 | asmlinkage void do_IRQ(int irq, struct pt_regs *regs);
> > > | ^~~~~~~
> >
> > This seems like a problem with the header. m68k's asm/irq.h should include linux/interrupt.h before its declarations.
>
> Hi Sean,
>
> I do see your point. But TBH I'm unsure which way to go on this one.
> Geert, do you have any input?
We always include linux/* headers before asm/*. The "sorting" of
headers in this way was inappropriate.
next prev parent reply other threads:[~2023-04-05 18:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-05 17:29 Simon Horman
2023-04-05 17:34 ` Sean Anderson
2023-04-05 18:02 ` Simon Horman
2023-04-05 18:07 ` Matthew Wilcox [this message]
2023-04-05 18:09 ` Sean Anderson
2023-04-05 18:34 ` Matthew Wilcox
2023-04-05 23:25 ` Jakub Kicinski
2023-04-06 12:10 ` Geert Uytterhoeven
2023-04-07 2:10 ` patchwork-bot+netdevbpf
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=ZC240XCeYCaSCu0X@casper.infradead.org \
--to=willy@infradead.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=geert@linux-m68k.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=seanga2@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox