From patchwork Mon Feb 4 16:34:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10796083 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AFF16C2 for ; Mon, 4 Feb 2019 16:35:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAC972BA0D for ; Mon, 4 Feb 2019 16:35:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC0712BA1E; Mon, 4 Feb 2019 16:35:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D4A32ADDA for ; Mon, 4 Feb 2019 16:35:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731688AbfBDQfG (ORCPT ); Mon, 4 Feb 2019 11:35:06 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58042 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729127AbfBDQfG (ORCPT ); Mon, 4 Feb 2019 11:35:06 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B7107EBD; Mon, 4 Feb 2019 08:35:05 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CA5F73F589; Mon, 4 Feb 2019 08:35:04 -0800 (PST) From: Andre Przywara To: Will Deacon Cc: Anisse Astier , kvm@vger.kernel.org Subject: [PATCH kvmtool 0/3] Fix more GCC 8 strncpy warnings Date: Mon, 4 Feb 2019 16:34:55 +0000 Message-Id: <20190204163458.188070-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP My build of GCC 8.2 from the FSF vanilla sources triggered more GCC 8 warnings, which are turned into errors and break the build. Fix them, mostly by using strlcpy() instead of strncpy. Those three patches go on top of Anisse's series and allow a clean build with GCC 8.2.0 for me. Cheers, Andre. Andre Przywara (3): builtin-run: Replace strncpy calls with strlcpy virtio: use strlcpy net/dhcp: avoid misleading strncpy builtin-run.c | 4 ++-- net/uip/dhcp.c | 2 +- virtio/net.c | 5 +++-- virtio/scsi.c | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-)