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

Peter Zijlstra <[email protected]>
Newsgroups gmane.linux.kernel.rust,gmane.linux.kernel
Message-ID <[email protected]>
On Tue, Aug 04, 2026 at 09:26:40AM +0200, Peter Zijlstra wrote:

> > > @@ -88,8 +89,17 @@ EXPORT_PER_CPU_SYMBOL_GPL(hardirqs_enabl
> > >  EXPORT_PER_CPU_SYMBOL_GPL(hardirq_context);
> > >  #endif
> > >  
> > > -DEFINE_PER_CPU(struct interrupt_disable_state, local_interrupt_disable_state);
> > > -EXPORT_PER_CPU_SYMBOL_GPL(local_interrupt_disable_state);
> > > +DEFINE_PER_CPU(unsigned long, local_interrupt_disable_state);
> > > +
> > > +void _local_interrupt_disable(void)
> > > +{
> > > +	__local_interrupt_disable();
> > > +}
> > > +
> > > +void _local_interrupt_enable(void)
> > > +{
> > > +	__local_interrupt_enable();
> > > +}
> > >  
> > 
> > We need to EXPORT_SYMBOL_GPL() for these two functions.
> > 
> > Right?
> 
> Quite so.

Although, I suspect people will come and complain that this should be
!GPL, it being something 'trivial' and all that nonsense, but we'll get
there when we get there I suppose.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.