All of lore.kernel.org
 help / color / mirror / Atom feed
* Patches for -stable to improve support for recent gcc versions
@ 2018-05-28 13:48 Guenter Roeck
  2018-05-30  8:38 ` Greg Kroah-Hartman
  2018-05-30  9:27 ` Arnd Bergmann
  0 siblings, 2 replies; 15+ messages in thread
From: Guenter Roeck @ 2018-05-28 13:48 UTC (permalink / raw)
  To: stable, Greg Kroah-Hartman; +Cc: arnd

Hi Greg,

please apply the following patches.

to v4.4-stable and older:

cb36af3e48be sh: New gcc support
	to support gcc 8.1.0 for sh

to v4.9-stable and older:

009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer type
	to support gcc 7.3.0 for sparc

Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any idea ?

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-28 13:48 Patches for -stable to improve support for recent gcc versions Guenter Roeck
@ 2018-05-30  8:38 ` Greg Kroah-Hartman
  2018-05-30 13:18   ` Guenter Roeck
  2018-05-30  9:27 ` Arnd Bergmann
  1 sibling, 1 reply; 15+ messages in thread
From: Greg Kroah-Hartman @ 2018-05-30  8:38 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: stable, arnd

On Mon, May 28, 2018 at 06:48:30AM -0700, Guenter Roeck wrote:
> Hi Greg,
> 
> please apply the following patches.
> 
> to v4.4-stable and older:
> 
> cb36af3e48be sh: New gcc support
> 	to support gcc 8.1.0 for sh

I don't see that commit id in Linus's tree, are you sure it is correct?

> to v4.9-stable and older:
> 
> 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer type
> 	to support gcc 7.3.0 for sparc

Now queued up, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-28 13:48 Patches for -stable to improve support for recent gcc versions Guenter Roeck
  2018-05-30  8:38 ` Greg Kroah-Hartman
@ 2018-05-30  9:27 ` Arnd Bergmann
  2018-05-30  9:44   ` Greg Kroah-Hartman
  2018-05-30 13:31   ` Guenter Roeck
  1 sibling, 2 replies; 15+ messages in thread
From: Arnd Bergmann @ 2018-05-30  9:27 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: stable, Greg Kroah-Hartman

On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> Hi Greg,
>
> please apply the following patches.
>
> to v4.4-stable and older:
>
> cb36af3e48be sh: New gcc support
>         to support gcc 8.1.0 for sh
>
> to v4.9-stable and older:
>
> 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer
> type
>         to support gcc 7.3.0 for sparc
>
> Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any idea

No, sorry. I've just tried it again and couldn't find any problems with my
gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.

       Arnd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30  9:27 ` Arnd Bergmann
@ 2018-05-30  9:44   ` Greg Kroah-Hartman
  2018-05-30  9:52     ` Arnd Bergmann
  2018-05-30 13:31   ` Guenter Roeck
  1 sibling, 1 reply; 15+ messages in thread
From: Greg Kroah-Hartman @ 2018-05-30  9:44 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Guenter Roeck, stable

On Wed, May 30, 2018 at 11:27:50AM +0200, Arnd Bergmann wrote:
> On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> > Hi Greg,
> >
> > please apply the following patches.
> >
> > to v4.4-stable and older:
> >
> > cb36af3e48be sh: New gcc support
> >         to support gcc 8.1.0 for sh
> >
> > to v4.9-stable and older:
> >
> > 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer
> > type
> >         to support gcc 7.3.0 for sparc
> >
> > Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any idea
> 
> No, sorry. I've just tried it again and couldn't find any problems with my
> gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.

So you mean it works, or does not work?

And you are seeing loads of build warnings, right?  I tried your 8.1
binary for s390 and had to just give up looking at the warnings :(

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30  9:44   ` Greg Kroah-Hartman
@ 2018-05-30  9:52     ` Arnd Bergmann
  2018-05-30 10:00       ` Greg Kroah-Hartman
  0 siblings, 1 reply; 15+ messages in thread
From: Arnd Bergmann @ 2018-05-30  9:52 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Guenter Roeck, stable

On Wed, May 30, 2018 at 11:44 AM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Wed, May 30, 2018 at 11:27:50AM +0200, Arnd Bergmann wrote:
>> On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@roeck-us.net> wrote:
>> > Hi Greg,
>> >
>> > please apply the following patches.
>> >
>> > to v4.4-stable and older:
>> >
>> > cb36af3e48be sh: New gcc support
>> >         to support gcc 8.1.0 for sh
>> >
>> > to v4.9-stable and older:
>> >
>> > 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer
>> > type
>> >         to support gcc 7.3.0 for sparc
>> >
>> > Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any idea
>>
>> No, sorry. I've just tried it again and couldn't find any problems with my
>> gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.
>
> So you mean it works, or does not work?
>
> And you are seeing loads of build warnings, right?  I tried your 8.1
> binary for s390 and had to just give up looking at the warnings :(

It does work, but yes, there are many warnings. I still need to revisit
my patch for the system call entry points: I posted one a long time
ago, but then the mainline implementation changed and I never got
around to sending an updated version. Similarly, I planned to send
a patch that disables all the -Wstringop-truncated warnings unless
'make W=1' is used, but that ended up in my long backlog of minor
fixes after my initial plan to fix address those warnings didn't work out.

       Arnd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30  9:52     ` Arnd Bergmann
@ 2018-05-30 10:00       ` Greg Kroah-Hartman
  0 siblings, 0 replies; 15+ messages in thread
From: Greg Kroah-Hartman @ 2018-05-30 10:00 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Guenter Roeck, stable

On Wed, May 30, 2018 at 11:52:14AM +0200, Arnd Bergmann wrote:
> On Wed, May 30, 2018 at 11:44 AM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> > On Wed, May 30, 2018 at 11:27:50AM +0200, Arnd Bergmann wrote:
> >> On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> >> > Hi Greg,
> >> >
> >> > please apply the following patches.
> >> >
> >> > to v4.4-stable and older:
> >> >
> >> > cb36af3e48be sh: New gcc support
> >> >         to support gcc 8.1.0 for sh
> >> >
> >> > to v4.9-stable and older:
> >> >
> >> > 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer
> >> > type
> >> >         to support gcc 7.3.0 for sparc
> >> >
> >> > Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any idea
> >>
> >> No, sorry. I've just tried it again and couldn't find any problems with my
> >> gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.
> >
> > So you mean it works, or does not work?
> >
> > And you are seeing loads of build warnings, right?  I tried your 8.1
> > binary for s390 and had to just give up looking at the warnings :(
> 
> It does work, but yes, there are many warnings. I still need to revisit
> my patch for the system call entry points: I posted one a long time
> ago, but then the mainline implementation changed and I never got
> around to sending an updated version. Similarly, I planned to send
> a patch that disables all the -Wstringop-truncated warnings unless
> 'make W=1' is used, but that ended up in my long backlog of minor
> fixes after my initial plan to fix address those warnings didn't work out.

Given the recent mess that just happened yesterday when 0-day tried to
use gcc-8 and started emailing tons of innocent developers, it might be
good to dust those off soon :)

If you have a pointer to them, and are busy with other stuff, I can look
at getting them merged.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30  8:38 ` Greg Kroah-Hartman
@ 2018-05-30 13:18   ` Guenter Roeck
  2018-05-30 13:46     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 15+ messages in thread
From: Guenter Roeck @ 2018-05-30 13:18 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: stable, arnd

On 05/30/2018 01:38 AM, Greg Kroah-Hartman wrote:
> On Mon, May 28, 2018 at 06:48:30AM -0700, Guenter Roeck wrote:
>> Hi Greg,
>>
>> please apply the following patches.
>>
>> to v4.4-stable and older:
>>
>> cb36af3e48be sh: New gcc support
>> 	to support gcc 8.1.0 for sh
> 
> I don't see that commit id in Linus's tree, are you sure it is correct?
> 
Oops, sorry, that was the sha after I test-applied it. Correct is

940d4113f330 sh: New gcc support

Guenter

>> to v4.9-stable and older:
>>
>> 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer type
>> 	to support gcc 7.3.0 for sparc
> 
> Now queued up, thanks.
> 
> greg k-h
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30  9:27 ` Arnd Bergmann
  2018-05-30  9:44   ` Greg Kroah-Hartman
@ 2018-05-30 13:31   ` Guenter Roeck
  2018-05-30 13:55     ` Arnd Bergmann
  1 sibling, 1 reply; 15+ messages in thread
From: Guenter Roeck @ 2018-05-30 13:31 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: stable, Greg Kroah-Hartman

On 05/30/2018 02:27 AM, Arnd Bergmann wrote:
> On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@roeck-us.net> wrote:
>> Hi Greg,
>>
>> please apply the following patches.
>>
>> to v4.4-stable and older:
>>
>> cb36af3e48be sh: New gcc support
>>          to support gcc 8.1.0 for sh
>>
>> to v4.9-stable and older:
>>
>> 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer
>> type
>>          to support gcc 7.3.0 for sparc
>>
>> Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any idea
> 
> No, sorry. I've just tried it again and couldn't find any problems with my
> gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.
> 

Interesting. With sparc64-linux-gcc (GCC) 8.1.0 from kernel.org:

make ARCH=sparc64 CROSS_COMPILE=sparc64-linux- allmodconfig
make ARCH=sparc64 CROSS_COMPILE=sparc64-linux- arch/sparc/kernel/sys_sparc_64.o

results in:

./include/linux/syscalls.h:233:18: error:
	'sys_sparc64_personality' alias between functions of incompatible types
	'long int(long unsigned int)' and 'long int(long int)' [-Werror=attribute-alias]

and many more.

Presumably this is due to

arch/sparc/kernel/Makefile:ccflags-y := -Werror

Guenter

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30 13:18   ` Guenter Roeck
@ 2018-05-30 13:46     ` Greg Kroah-Hartman
  0 siblings, 0 replies; 15+ messages in thread
From: Greg Kroah-Hartman @ 2018-05-30 13:46 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: stable, arnd

On Wed, May 30, 2018 at 06:18:10AM -0700, Guenter Roeck wrote:
> On 05/30/2018 01:38 AM, Greg Kroah-Hartman wrote:
> > On Mon, May 28, 2018 at 06:48:30AM -0700, Guenter Roeck wrote:
> > > Hi Greg,
> > > 
> > > please apply the following patches.
> > > 
> > > to v4.4-stable and older:
> > > 
> > > cb36af3e48be sh: New gcc support
> > > 	to support gcc 8.1.0 for sh
> > 
> > I don't see that commit id in Linus's tree, are you sure it is correct?
> > 
> Oops, sorry, that was the sha after I test-applied it. Correct is
> 
> 940d4113f330 sh: New gcc support

Thanks, that worked.

greg k-h

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30 13:31   ` Guenter Roeck
@ 2018-05-30 13:55     ` Arnd Bergmann
  2018-05-30 18:46       ` Guenter Roeck
  0 siblings, 1 reply; 15+ messages in thread
From: Arnd Bergmann @ 2018-05-30 13:55 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: stable, Greg Kroah-Hartman

On Wed, May 30, 2018 at 3:31 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> On 05/30/2018 02:27 AM, Arnd Bergmann wrote:
>>
>> On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@roeck-us.net> wrote:
>>>
>>> Hi Greg,
>>>
>>> please apply the following patches.
>>>
>>> to v4.4-stable and older:
>>>
>>> cb36af3e48be sh: New gcc support
>>>          to support gcc 8.1.0 for sh
>>>
>>> to v4.9-stable and older:
>>>
>>> 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible
>>> pointer
>>> type
>>>          to support gcc 7.3.0 for sparc
>>>
>>> Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any
>>> idea
>>
>>
>> No, sorry. I've just tried it again and couldn't find any problems with my
>> gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.
>>
>
> Interesting. With sparc64-linux-gcc (GCC) 8.1.0 from kernel.org:
>
> make ARCH=sparc64 CROSS_COMPILE=sparc64-linux- allmodconfig
> make ARCH=sparc64 CROSS_COMPILE=sparc64-linux-
> arch/sparc/kernel/sys_sparc_64.o
>
> results in:
>
> ./include/linux/syscalls.h:233:18: error:
>         'sys_sparc64_personality' alias between functions of incompatible
> types
>         'long int(long unsigned int)' and 'long int(long int)'
> [-Werror=attribute-alias]
>
> and many more.
>
> Presumably this is due to
>
> arch/sparc/kernel/Makefile:ccflags-y := -Werror

Right, I have disabled that warning locally, so I didn't get
it despite the -Werror.

       Arnd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30 13:55     ` Arnd Bergmann
@ 2018-05-30 18:46       ` Guenter Roeck
  2018-05-30 19:24         ` Greg Kroah-Hartman
  0 siblings, 1 reply; 15+ messages in thread
From: Guenter Roeck @ 2018-05-30 18:46 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: stable, Greg Kroah-Hartman

On Wed, May 30, 2018 at 03:55:04PM +0200, Arnd Bergmann wrote:
> On Wed, May 30, 2018 at 3:31 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> > On 05/30/2018 02:27 AM, Arnd Bergmann wrote:
> >>
> >> On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> >>>
> >>> Hi Greg,
> >>>
> >>> please apply the following patches.
> >>>
> >>> to v4.4-stable and older:
> >>>
> >>> cb36af3e48be sh: New gcc support
> >>>          to support gcc 8.1.0 for sh
> >>>
> >>> to v4.9-stable and older:
> >>>
> >>> 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible
> >>> pointer
> >>> type
> >>>          to support gcc 7.3.0 for sparc
> >>>
> >>> Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any
> >>> idea
> >>
> >>
> >> No, sorry. I've just tried it again and couldn't find any problems with my
> >> gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.
> >>
> >
> > Interesting. With sparc64-linux-gcc (GCC) 8.1.0 from kernel.org:
> >
> > make ARCH=sparc64 CROSS_COMPILE=sparc64-linux- allmodconfig
> > make ARCH=sparc64 CROSS_COMPILE=sparc64-linux-
> > arch/sparc/kernel/sys_sparc_64.o
> >
> > results in:
> >
> > ./include/linux/syscalls.h:233:18: error:
> >         'sys_sparc64_personality' alias between functions of incompatible
> > types
> >         'long int(long unsigned int)' and 'long int(long int)'
> > [-Werror=attribute-alias]
> >
> > and many more.
> >
> > Presumably this is due to
> >
> > arch/sparc/kernel/Makefile:ccflags-y := -Werror
> 
> Right, I have disabled that warning locally, so I didn't get
> it despite the -Werror.
> 

Would it make sense to add
	KBUILD_CFLAGS += $(call cc-option,-Wno-attribute-alias)
to the sparc Makefile ? It seems to fix the problem for me, and it would
be easier to backport than a more comprehensive fix.

Guenter

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30 18:46       ` Guenter Roeck
@ 2018-05-30 19:24         ` Greg Kroah-Hartman
  2018-05-30 19:34           ` Arnd Bergmann
  0 siblings, 1 reply; 15+ messages in thread
From: Greg Kroah-Hartman @ 2018-05-30 19:24 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Arnd Bergmann, stable

On Wed, May 30, 2018 at 11:46:45AM -0700, Guenter Roeck wrote:
> On Wed, May 30, 2018 at 03:55:04PM +0200, Arnd Bergmann wrote:
> > On Wed, May 30, 2018 at 3:31 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> > > On 05/30/2018 02:27 AM, Arnd Bergmann wrote:
> > >>
> > >> On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> > >>>
> > >>> Hi Greg,
> > >>>
> > >>> please apply the following patches.
> > >>>
> > >>> to v4.4-stable and older:
> > >>>
> > >>> cb36af3e48be sh: New gcc support
> > >>>          to support gcc 8.1.0 for sh
> > >>>
> > >>> to v4.9-stable and older:
> > >>>
> > >>> 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible
> > >>> pointer
> > >>> type
> > >>>          to support gcc 7.3.0 for sparc
> > >>>
> > >>> Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any
> > >>> idea
> > >>
> > >>
> > >> No, sorry. I've just tried it again and couldn't find any problems with my
> > >> gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.
> > >>
> > >
> > > Interesting. With sparc64-linux-gcc (GCC) 8.1.0 from kernel.org:
> > >
> > > make ARCH=sparc64 CROSS_COMPILE=sparc64-linux- allmodconfig
> > > make ARCH=sparc64 CROSS_COMPILE=sparc64-linux-
> > > arch/sparc/kernel/sys_sparc_64.o
> > >
> > > results in:
> > >
> > > ./include/linux/syscalls.h:233:18: error:
> > >         'sys_sparc64_personality' alias between functions of incompatible
> > > types
> > >         'long int(long unsigned int)' and 'long int(long int)'
> > > [-Werror=attribute-alias]
> > >
> > > and many more.
> > >
> > > Presumably this is due to
> > >
> > > arch/sparc/kernel/Makefile:ccflags-y := -Werror
> > 
> > Right, I have disabled that warning locally, so I didn't get
> > it despite the -Werror.
> > 
> 
> Would it make sense to add
> 	KBUILD_CFLAGS += $(call cc-option,-Wno-attribute-alias)
> to the sparc Makefile ? It seems to fix the problem for me, and it would
> be easier to backport than a more comprehensive fix.

Why is that not an option enabled for all arches right now for gcc-8?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30 19:24         ` Greg Kroah-Hartman
@ 2018-05-30 19:34           ` Arnd Bergmann
  2018-05-30 20:04             ` Greg Kroah-Hartman
  0 siblings, 1 reply; 15+ messages in thread
From: Arnd Bergmann @ 2018-05-30 19:34 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Guenter Roeck, stable

On Wed, May 30, 2018 at 9:24 PM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Wed, May 30, 2018 at 11:46:45AM -0700, Guenter Roeck wrote:
>> On Wed, May 30, 2018 at 03:55:04PM +0200, Arnd Bergmann wrote:
>> > On Wed, May 30, 2018 at 3:31 PM, Guenter Roeck <linux@roeck-us.net> wrote:
>> > > On 05/30/2018 02:27 AM, Arnd Bergmann wrote:

>> > > Presumably this is due to
>> > >
>> > > arch/sparc/kernel/Makefile:ccflags-y := -Werror
>> >
>> > Right, I have disabled that warning locally, so I didn't get
>> > it despite the -Werror.
>> >
>>
>> Would it make sense to add
>>       KBUILD_CFLAGS += $(call cc-option,-Wno-attribute-alias)
>> to the sparc Makefile ? It seems to fix the problem for me, and it would
>> be easier to backport than a more comprehensive fix.
>
> Why is that not an option enabled for all arches right now for gcc-8?

I would still want this warning enabled by default in future kernels,
just disabled
for the system call definitions (until we decide to rework the way
they are defined).

What I'd suggest we do is a series of patches:

1. disable both -Wno-attribute-alias and -Wstringop-truncation by
default, but leave them
    enabled in 'make W=1'. Mark this one for stable backports
2. add a macro to let users disable warnings locally within a file,
based on _Pragma("GCC
    diagnostic ...")
3. change the system call macros to disable -Wno-attribute-alias inside of the
    SYSCALL_DEFINEx() macros
4. turn on -Wno-attribute-alias again by default.

        Arnd

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30 19:34           ` Arnd Bergmann
@ 2018-05-30 20:04             ` Greg Kroah-Hartman
  2018-05-30 20:37               ` Guenter Roeck
  0 siblings, 1 reply; 15+ messages in thread
From: Greg Kroah-Hartman @ 2018-05-30 20:04 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Guenter Roeck, stable

On Wed, May 30, 2018 at 09:34:34PM +0200, Arnd Bergmann wrote:
> On Wed, May 30, 2018 at 9:24 PM, Greg Kroah-Hartman
> > Why is that not an option enabled for all arches right now for gcc-8?
> 
> I would still want this warning enabled by default in future kernels,
> just disabled
> for the system call definitions (until we decide to rework the way
> they are defined).
> 
> What I'd suggest we do is a series of patches:
> 
> 1. disable both -Wno-attribute-alias and -Wstringop-truncation by
> default, but leave them
>     enabled in 'make W=1'. Mark this one for stable backports
> 2. add a macro to let users disable warnings locally within a file,
> based on _Pragma("GCC
>     diagnostic ...")
> 3. change the system call macros to disable -Wno-attribute-alias inside of the
>     SYSCALL_DEFINEx() macros
> 4. turn on -Wno-attribute-alias again by default.

That sounds like a good plan to me.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Patches for -stable to improve support for recent gcc versions
  2018-05-30 20:04             ` Greg Kroah-Hartman
@ 2018-05-30 20:37               ` Guenter Roeck
  0 siblings, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2018-05-30 20:37 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Arnd Bergmann, stable

On Wed, May 30, 2018 at 10:04:51PM +0200, Greg Kroah-Hartman wrote:
> On Wed, May 30, 2018 at 09:34:34PM +0200, Arnd Bergmann wrote:
> > On Wed, May 30, 2018 at 9:24 PM, Greg Kroah-Hartman
> > > Why is that not an option enabled for all arches right now for gcc-8?
> > 
> > I would still want this warning enabled by default in future kernels,
> > just disabled
> > for the system call definitions (until we decide to rework the way
> > they are defined).
> > 
> > What I'd suggest we do is a series of patches:
> > 
> > 1. disable both -Wno-attribute-alias and -Wstringop-truncation by
> > default, but leave them
> >     enabled in 'make W=1'. Mark this one for stable backports
> > 2. add a macro to let users disable warnings locally within a file,
> > based on _Pragma("GCC
> >     diagnostic ...")
> > 3. change the system call macros to disable -Wno-attribute-alias inside of the
> >     SYSCALL_DEFINEx() macros
> > 4. turn on -Wno-attribute-alias again by default.
> 
> That sounds like a good plan to me.
> 
Agreed.

Guenter

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-05-30 20:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-28 13:48 Patches for -stable to improve support for recent gcc versions Guenter Roeck
2018-05-30  8:38 ` Greg Kroah-Hartman
2018-05-30 13:18   ` Guenter Roeck
2018-05-30 13:46     ` Greg Kroah-Hartman
2018-05-30  9:27 ` Arnd Bergmann
2018-05-30  9:44   ` Greg Kroah-Hartman
2018-05-30  9:52     ` Arnd Bergmann
2018-05-30 10:00       ` Greg Kroah-Hartman
2018-05-30 13:31   ` Guenter Roeck
2018-05-30 13:55     ` Arnd Bergmann
2018-05-30 18:46       ` Guenter Roeck
2018-05-30 19:24         ` Greg Kroah-Hartman
2018-05-30 19:34           ` Arnd Bergmann
2018-05-30 20:04             ` Greg Kroah-Hartman
2018-05-30 20:37               ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.