Re: [PATCH]kernel.h Move warning message about using kernel headers for userspace to types.h

From: Arnd Bergmann
Date: Thu Jul 01 2010 - 11:08:27 EST


On Thursday 01 July 2010, Justin P. Mattock wrote:
> >>
> >> +#ifndef __EXPORTED_HEADERS__
> >> +#ifndef __KERNEL__
> >> +#warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders";
>
> so this is legit with the length of the statement? or should this be
> broken down into a small quick line directing to a file with the address
> or something

Yes, the length of the statement was never the problem, it only went wrong
because the // in the url gets interpreted as the start of a one-line comment.

Arnd
--
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/