Re: [PATCH 05/24] irq & spin_lock: Add counted interrupt disabling/enabling

Boqun Feng <[email protected]> Tue, 4 Aug 2026 05:52:00 -0700
Newsgroups org.kernel.vger.rust-for-linux,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Tue, Aug 04, 2026 at 09:26:40AM +0200, Peter Zijlstra wrote:
> On Mon, Aug 03, 2026 at 09:41:02PM -0700, Boqun Feng wrote:
> 
[...]
> > > +#else
> > > +extern void _local_interrupt_disable(void);
> > > +extern void _local_interrupt_enable(void);
> > > +#endif
> > > +
> > > +#else /* !MODULE */
> > > +extern void _local_interrupt_disable(void);
> > > +extern void _local_interrupt_enable(void);
> > 
> > I think the "extern" keywords are not necessary and ..
> 
> Probably, but I like them (and I know that other people hate on then).
> To me it makes it clear the definition is not here and should be sought
> elsewhere.
> 
> The extern really is needed for variables, but I also use it with
> functions for the same.
> 

Alright I will keep them, thanks!

Regards,
Boqun

> > > +#endif /* !MODULE */
> > >  
> 
[...]