Re: [PATCH] checkpatch: Warn on #include <uapi/...

From: Joe Perches
Date: Tue Dec 18 2012 - 17:14:40 EST


On Tue, 2012-12-18 at 20:35 +0000, David Howells wrote:
> Joe Perches <joe@xxxxxxxxxxx> wrote:
[]
> > arch/powerpc/include/asm/kvm_para.h
> > ...
> > -#include <linux/types.h>
> > +#include <uapi/asm/kvm_para.h>
>
> No, that is a correct alteration.
>
> The example I gave was:
>
> - #include <asm/epapr_hcalls.h>
> ++#include <uapi/asm/epapr_hcalls.h>
>
> which is to be found in arch/powerpc/include/uapi/asm/kvm_para.h.

Just to verify, any file in any path [.../]include/uapi/...
should not itself have a line like '#include <uapi/...' ?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/