[OpenAFS-devel] Linux kernel buld warnings

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Tue, 14 Jan 2014 07:35:20 -0500


On Mon, 13 Jan 2014 14:02:16 -0600
Andrew Deason <adeason@sinenomine.net> wrote:

> First, it looks to me like the Linux kernel should be passing -nostdinc
> to that gcc runtime probe thing. If someone more familiar with the Linux
> kernel build process would like to take that to them, I would appreciate
> that. (Or tell me I'm wrong and that's not broken.) The relevant code
> cc-disable-warning in Kbuild.include, but I'm not sure what flags
> variable or whatnot -nostdinc should maybe go in, or how it should be
> involved there.

I am not that this is right right path to take.  If you want to test
flags for kernel modules, you should be using AC_CHECK_LINUX_BUILD()
since you have no idea if the gcc you have found via autoconf is the gcc
being used to build kernels.