Re: [RFC] UAPI: Check headers by compiling all together as C++

From
David Howells <dhowells@redhat.com>
Date
2018-09-05 22:21:58
Also in
alsa-devel, dri-devel, keyrings, linux-fsdevel, linux-kbuild, lkml, netfilter-devel
Reply to
Greg KH, 2018-09-05
Greg KH [off-list ref] wrote:
quoted
Here's a set of patches that inserts a step into the build process to make
sure that the UAPI headers can all be built together with C++ (if the
compiler being used supports C++).  All but the final patch perform fixups,
including:
Wait, why do we care?  What has recently changed to start to directly
import kernel uapi files into C++ code?
There's at least one outstanding bug due to a C++ identifier in the kernel
UAPI headers.

Are you saying you explicitly don't want people to be able to use the kernel
UAPI headers in C++?
And if userspace wants to do this, can't they do the C namespace trick
themselves when they do the import?  That must be how they are doing it
today, right?
No, because there's no such trick (except with the preprocessor).

David
Thread (37 messages) 37 messages, 9 authors, last reply 2018-10-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help