linux-next: build warnings from Linus' tree

2019-08-29 Thread Stephen Rothwell
Hi all, With just Linus' tree, today's linux-next build (ppc64le perf) produced these warnings: util/parse-events.y:1.1-12: warning: deprecated directive, use '%define api.pure' [-Wdeprecated] 1 | %pure-parser | ^~~~ util/parse-events.y: warning: fix-its can be applied. Rerun

Re: linux-next: build warnings from Linus' tree

2018-08-20 Thread Miguel Ojeda
Hi Ted, On Mon, Aug 20, 2018 at 2:02 AM, Theodore Y. Ts'o wrote: > P.S. It's really, really too bad there isn't a simpler way to shut up > gcc. You need the #ifdef __GNUC_PREREQ nonsense because otherwise > older versions of gcc that don't understand the particular warning > you're trying to

Re: linux-next: build warnings from Linus' tree

2018-08-20 Thread Miguel Ojeda
Hi Ted, On Mon, Aug 20, 2018 at 2:02 AM, Theodore Y. Ts'o wrote: > P.S. It's really, really too bad there isn't a simpler way to shut up > gcc. You need the #ifdef __GNUC_PREREQ nonsense because otherwise > older versions of gcc that don't understand the particular warning > you're trying to

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Theodore Y. Ts'o
On Mon, Aug 20, 2018 at 03:33:19AM +0200, Adam Borowski wrote: > Valid uses of strncpy() do exist (such as SCSI structs), but those deal with > fixed-width fields. Thus, gcc is right for warning for at least some of > misuse of strncpy() for C strings. The function wasn't designed for them. The

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Theodore Y. Ts'o
On Mon, Aug 20, 2018 at 03:33:19AM +0200, Adam Borowski wrote: > Valid uses of strncpy() do exist (such as SCSI structs), but those deal with > fixed-width fields. Thus, gcc is right for warning for at least some of > misuse of strncpy() for C strings. The function wasn't designed for them. The

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Adam Borowski
On Sun, Aug 19, 2018 at 04:21:57PM -0700, Linus Torvalds wrote: > On Sun, Aug 19, 2018 at 3:13 PM Stephen Rothwell > wrote: > > > > Today's linux-next build (powerpc ppc64_defconfig) produced these > > warnings: > > > > fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Adam Borowski
On Sun, Aug 19, 2018 at 04:21:57PM -0700, Linus Torvalds wrote: > On Sun, Aug 19, 2018 at 3:13 PM Stephen Rothwell > wrote: > > > > Today's linux-next build (powerpc ppc64_defconfig) produced these > > warnings: > > > > fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Theodore Y. Ts'o
On Mon, Aug 20, 2018 at 08:13:23AM +1000, Stephen Rothwell wrote: > fs/ext4/super.c: In function '__save_error_info': > fs/ext4/super.c:344:2: warning: 'strncpy' specified bound 32 equals > destination size [-Wstringop-truncation] > strncpy(es->s_last_error_func, func,

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Theodore Y. Ts'o
On Mon, Aug 20, 2018 at 08:13:23AM +1000, Stephen Rothwell wrote: > fs/ext4/super.c: In function '__save_error_info': > fs/ext4/super.c:344:2: warning: 'strncpy' specified bound 32 equals > destination size [-Wstringop-truncation] > strncpy(es->s_last_error_func, func,

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Linus Torvalds
On Sun, Aug 19, 2018 at 3:13 PM Stephen Rothwell wrote: > > Today's linux-next build (powerpc ppc64_defconfig) produced these > warnings: > > fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region of > size 1 overflows the destination [-Wstringop-overflow=] >

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Linus Torvalds
On Sun, Aug 19, 2018 at 3:13 PM Stephen Rothwell wrote: > > Today's linux-next build (powerpc ppc64_defconfig) produced these > warnings: > > fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region of > size 1 overflows the destination [-Wstringop-overflow=] >

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi all, On Mon, 20 Aug 2018 08:16:18 +1000 Stephen Rothwell wrote: > > On Mon, 20 Aug 2018 08:13:23 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next build (powerpc ppc64_defconfig) produced these > > warnings: > > > ... > > > > Presumably caused by my update to gcc 8.2.0. > >

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi all, On Mon, 20 Aug 2018 08:16:18 +1000 Stephen Rothwell wrote: > > On Mon, 20 Aug 2018 08:13:23 +1000 Stephen Rothwell > wrote: > > > > Today's linux-next build (powerpc ppc64_defconfig) produced these > > warnings: > > > ... > > > > Presumably caused by my update to gcc 8.2.0. > >

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi all, On Mon, 20 Aug 2018 08:13:23 +1000 Stephen Rothwell wrote: > > Today's linux-next build (powerpc ppc64_defconfig) produced these > warnings: > ... > > Presumably caused by my update to gcc 8.2.0. And this from the x86_64 allmodconfig build: scripts/unifdef.c: In function 'Mpass':

Re: linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi all, On Mon, 20 Aug 2018 08:13:23 +1000 Stephen Rothwell wrote: > > Today's linux-next build (powerpc ppc64_defconfig) produced these > warnings: > ... > > Presumably caused by my update to gcc 8.2.0. And this from the x86_64 allmodconfig build: scripts/unifdef.c: In function 'Mpass':

linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi Linus, Today's linux-next build (powerpc ppc64_defconfig) produced these warnings: fs/cifs/cifssmb.c: In function 'CIFSSMBNegotiate': fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=]

linux-next: build warnings from Linus' tree

2018-08-19 Thread Stephen Rothwell
Hi Linus, Today's linux-next build (powerpc ppc64_defconfig) produced these warnings: fs/cifs/cifssmb.c: In function 'CIFSSMBNegotiate': fs/cifs/cifssmb.c:605:3: warning: 'strncpy' writing 16 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=]