> > +#include "asm-generic/errno.h" > > Why are you pulling this in? > If you really need errno the thing to include > is linux/errno.h > > checkpatch has a rule to catch such cases: > > # warn if <asm/foo.h> is #included and <linux/foo.h> is available and includes > # itself <asm/foo.h> (uses RAW line) It's only looking for asm, not variations like asm-generic.