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

From: Stephen Rothwell <[email-masked]>
Date: Mon, 20 Aug 2018 08:40:55 +1000

Hi all,

On Mon, 20 Aug 2018 08:16:18 +1000 Stephen Rothwell <[email-masked]> wrote:
>
> On Mon, 20 Aug 2018 08:13:23 +1000 Stephen Rothwell <[email-masked]> 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':
> scripts/unifdef.c:453:28: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
>  static void Mpass (void) { strncpy(keyword, "if  ", 4); Pelif(); }
>                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Note that I only upgraded my (host) powerpc compiler.

-- 
Cheers,
Stephen Rothwell