Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3654513imm; Mon, 4 Jun 2018 07:14:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLqB1IPeUPLIuyL5SdWREKJ4JlzYOOtUFkYVulNjxJnLkazXsTUokzykKglSXdluCgsN4LH X-Received: by 2002:a17:902:5409:: with SMTP id d9-v6mr10596431pli.0.1528121665048; Mon, 04 Jun 2018 07:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528121665; cv=none; d=google.com; s=arc-20160816; b=gnrYiT+jybeTvWzTn6ZIiRzltUj5RXynE12vhpiv8B43MKDOWO2PBatunSAx46+ETS urG0fAT8mvXyrLz0Eh4h+Fr6OOqoeu2sPs3APH2SAYE3BXVFZSriFjnRiNWGo7+y1cbY 3RDAPFp0/udB1FSQ1lBh5dbn1Hs7ECmIBPz5wXramTcYyOI0c7k4bJ8MrGR0w/3VSs1p g6W7pDMe3lvBmpT/jxUr1+OZh3ttmRmTtJ0V9EpEPzgM5JWLAH5wFuKe2dkMYxGtpPnq IhCCcvVUm4HBgbr39VfF5GIzBgryPpYgzepvIYUe+KoriSQCphUwTdW6d1T2EqVSDABy Oyvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=0xRULrisz3/O/8LnOPmQuQg2ZAYwpDwOlPFE4UKAINc=; b=xde+RbHMdfTKiZLuHoyps91bHra+00kkUHtE2RqhxFBSxcWZ0GwP8g6ChGZ3f0v7aK yhMdrtvD+/3RDvqBehg+eQ6YgCLris2ShH53z0NL/cVrX7ZAQU+m3zUdOeNObVEZMAUR 5zg9FXeghPmo2I0a4O8ZXQDWx0E2JvSHZVmgUAGBnHVcxGBaeL4+hEUiFyZoVso+vVC+ fC+yIt4ZM8fN8fp0gC6ESP304zQKmfu9amLR6LUFdpcV+3YuQOWczu2knuf7ebqlRkwI NQALjcsMhXnu2JiCKaXwfHi2V3Bja7ZQAQlA0Wpmf2W9E4Ypr2bt5jc6EGr3NOGpczsw tWOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6-v6si1084325pfb.204.2018.06.04.07.14.10; Mon, 04 Jun 2018 07:14:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753764AbeFDONE (ORCPT + 99 others); Mon, 4 Jun 2018 10:13:04 -0400 Received: from ozlabs.org ([203.11.71.1]:49143 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753776AbeFDOLQ (ORCPT ); Mon, 4 Jun 2018 10:11:16 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40zxgP0370z9s08; Tue, 5 Jun 2018 00:11:11 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: c95998811807d897ca112ea62d66716ed733d058 In-Reply-To: To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [v2] powerpc/64: Fix build failure with GCC 8.1 Message-Id: <40zxgP0370z9s08@ozlabs.org> Date: Tue, 5 Jun 2018 00:11:11 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-05-29 at 06:03:53 UTC, Christophe Leroy wrote: > CC arch/powerpc/kernel/nvram_64.o > arch/powerpc/kernel/nvram_64.c: In function 'nvram_create_partition': > arch/powerpc/kernel/nvram_64.c:1042:2: error: 'strncpy' specified bound 12 equals destination size [-Werror=stringop-truncation] > strncpy(new_part->header.name, name, 12); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > CC arch/powerpc/kernel/trace/ftrace.o > In function 'make_field', > inlined from 'ps3_repository_read_boot_dat_address' at arch/powerpc/platforms/ps3/repository.c:900:9: > arch/powerpc/platforms/ps3/repository.c:106:2: error: 'strncpy' output truncated before terminating nul copying 8 bytes from a string of the same length [-Werror=stringop-truncation] > strncpy((char *)&n, text, 8); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/c95998811807d897ca112ea62d6671 cheers