Re: tipc_config.h requires linux/string.h, which does not exist inexported headers

From: David Miller
Date: Tue Oct 30 2007 - 17:59:58 EST


From: Sam Ravnborg <sam@xxxxxxxxxxxx>
Date: Tue, 30 Oct 2007 22:54:09 +0100

> tipc_config.h uses memcpy in an inline function that is
> never used in the kernel.
> I'm awaiting response from tipc people if we can kill
> that inline or we should make it a macro.
> But davem decided just to include tipc_config.h and will now
> sort it out.

I think the thing to do is just __KERNEL__ protect the
<linux/string.h> include and require userspace to
include <string.h> itself when using these headers.

That's what I'm testing right now.

I'm pretty sure those inlines are indeed used by userspace.
-
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/