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

2018-09-13 Thread Al Viro
On Fri, Sep 14, 2018 at 12:27:49AM +0100, David Howells wrote: > Al Viro wrote: > > > It's too early for AFD postings. And you *are* tempting > > me to throw into the tree as many anti-C++ devices as can be > > done tastefully, just to stop somebody attempting that insanity > > in the earnes

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

2018-09-13 Thread David Howells
Al Viro wrote: > It's too early for AFD postings. And you *are* tempting > me to throw into the tree as many anti-C++ devices as can be > done tastefully, just to stop somebody attempting that insanity > in the earnest. You would deliberately break the UAPI header files to make sure that

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

2018-09-13 Thread Al Viro
On Fri, Sep 14, 2018 at 01:01:24AM +0300, Alexey Dobriyan wrote: > > Don't tempt me... > > <= g++-8 doesn't support C99 style initializers. > g++-8 mostly does: for example > > .foo = { > [BAR] = 1, > }, > > doesn't work, but regular .foo = 42 does. > Additionally, g++

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

2018-09-13 Thread Alexey Dobriyan
On Wed, Sep 05, 2018 at 11:22:47PM +0100, Al Viro wrote: > On Wed, Sep 05, 2018 at 10:31:11PM +0300, Alexey Dobriyan wrote: > > On Wed, Sep 05, 2018 at 09:26:36PM +0200, Greg KH wrote: > > > On Wed, Sep 05, 2018 at 09:59:22PM +0300, Alexey Dobriyan wrote: > > > > > On Wed, Sep 05, 2018 at 04:54:27P

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

2018-09-06 Thread David Howells
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++). Note that it's based on a commit from the sound tree to fix usage of u32 and co.. Most of the patches perform fixup

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

2018-09-06 Thread Yann Droneaud
Le mercredi 05 septembre 2018 à 19:33 +0200, Yann Droneaud a écrit : > Le mercredi 05 septembre 2018 à 18:55 +0200, Greg KH a écrit : > > On Wed, Sep 05, 2018 at 04:54:27PM +0100, David Howells wrote: > > > > > > Here's a set of patches that inserts a step into the build > > > process to make > >

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

2018-09-05 Thread Al Viro
On Wed, Sep 05, 2018 at 10:31:11PM +0300, Alexey Dobriyan wrote: > On Wed, Sep 05, 2018 at 09:26:36PM +0200, Greg KH wrote: > > On Wed, Sep 05, 2018 at 09:59:22PM +0300, Alexey Dobriyan wrote: > > > > On Wed, Sep 05, 2018 at 04:54:27PM +0100, David Howells wrote: > > > > > > > > > > Here's a set o

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

2018-09-05 Thread David Howells
Greg KH wrote: > "struct class" is going to be a hard one to overcome :) Already done: https://lkml.org/lkml/2018/4/1/126 David

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

2018-09-05 Thread Alexey Dobriyan
On Wed, Sep 05, 2018 at 09:26:36PM +0200, Greg KH wrote: > On Wed, Sep 05, 2018 at 09:59:22PM +0300, Alexey Dobriyan wrote: > > > On Wed, Sep 05, 2018 at 04:54:27PM +0100, David Howells wrote: > > > > > > > > Here's a set of patches that inserts a step into the build process to > > > > make > > >

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

2018-09-05 Thread Greg KH
On Wed, Sep 05, 2018 at 09:59:22PM +0300, Alexey Dobriyan wrote: > > On Wed, Sep 05, 2018 at 04:54:27PM +0100, David Howells wrote: > > > > > > 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 > >

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

2018-09-05 Thread Alexey Dobriyan
> On Wed, Sep 05, 2018 at 04:54:27PM +0100, David Howells wrote: > > > > 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 fixu

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

2018-09-05 Thread Yann Droneaud
Hi, Le mercredi 05 septembre 2018 à 18:55 +0200, Greg KH a écrit : > On Wed, Sep 05, 2018 at 04:54:27PM +0100, David Howells wrote: > > > > 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 > > comp