RE: [PATCH 1/2] virtio-rng: implement entropy leak feature

From: Elliott, Robert (Servers)
Date: Fri Jan 20 2023 - 10:39:35 EST


> > +#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.