* Peter Zijlstra <pet...@infradead.org> wrote:
> > Signed-off-by: Xingxing Su <suxingx...@loongson.cn> > > --- > > v2: update the commit message > > > > include/linux/seqlock.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h > > index 54bc204..4763c13 100644 > > --- a/include/linux/seqlock.h > > +++ b/include/linux/seqlock.h > > @@ -17,6 +17,7 @@ > > #include <linux/lockdep.h> > > #include <linux/compiler.h> > > #include <linux/kcsan-checks.h> > > +#include <linux/smp.h> > > #include <asm/processor.h> > > Wrong place, it's lockdep_assert_preemption_disabled() that requires > asm/percpu.h, and thus lockdep.h should include linux/smp. before > asm/percpu.h It already does that upstream: #ifndef __LINUX_LOCKDEP_H #define __LINUX_LOCKDEP_H #include <linux/lockdep_types.h> #include <linux/smp.h> #include <asm/percpu.h> So it would be interesting to know what kernel version the build error occurs on. Thanks, Ingo