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

From: Stephen Rothwell
Date: Sun Aug 19 2018 - 18:52:03 EST


Hi all,

On Mon, 20 Aug 2018 08:16:18 +1000 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> On Mon, 20 Aug 2018 08:13:23 +1000 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> 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

Attachment: pgpdNIeruyj9f.pgp
Description: OpenPGP digital signature