Received: by 10.223.185.116 with SMTP id b49csp1615649wrg; Sun, 11 Feb 2018 16:48:47 -0800 (PST) X-Google-Smtp-Source: AH8x224QmnKb04Q+V/sJ9gEs1Nn2LgXuJFsWEnXg+rPaBOlDHEsusRE2iK9/+zpqKHjIwGbNgMeI X-Received: by 10.98.68.129 with SMTP id m1mr9713736pfi.171.1518396527148; Sun, 11 Feb 2018 16:48:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518396527; cv=none; d=google.com; s=arc-20160816; b=KY2wldqle3s+85sEPFTp4sxs/ZJpt21UyooOWJFLjv8McATJPP6chAgCt+SUMFD72+ yvdRFmZx4xBrTaP3dpZm0MveaJMEBm7PTlQ7eIpG0+/4eaik3j8wUYnb4lkxHUgAuqkw P26PbHWhL0Sr1NupHuLs4W0QR20795L0VWkY/I4hHnDMtaNVYnboHrX1HYljzeUHRigF dfZR8xqDSroL2cCckFmZJfj91vfnPJCAevduv6e5jgFcG7L55N8PvHPmD0YquLmD16q8 uvd/MtverSqP3aWFH9pKHuddGMgEL/4tQWD0oF4wK32Gh/D+tryGrRoKI2MiZrBdUBLs lI4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=Le2ACXnjdA7T+MNmnFQkKLrRyG8nOx9bpU5FmFBdoFo=; b=cMMWMdIgNknnSjT+XD08fAOTkIZnkqfsMXeihvXjuYZhTQnFkA2jQ7BwE4yx67UHpB KFL9mCPkz8XWfTE1cyx0xvYlerT882+/+vPs1kyTRcQ6QyOmZOaOZ8tSjlxieWmA1Omu ILelto/tcLJXU8uXbXJyY+RG5eM0xGDNu4Ks+lyQBQBLNwsovnNVSaz+nkHoCp/E4nrM Z2vbVk7u5Yq6y/zsarghhfAwfZ/P6t3claTv4JllKi+9LtE2RhlHr1pi6feirtCQDMFe 7BOuVeMnpwNl2C2sUe5vEAEw/A9680v/BDRNsDZnEkiQiCbFA742xtuc4BsJwEUy7n5A wPQg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d21-v6si5055139pll.268.2018.02.11.16.48.33; Sun, 11 Feb 2018 16:48:47 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932431AbeBLArY (ORCPT + 99 others); Sun, 11 Feb 2018 19:47:24 -0500 Received: from a2nlsmtp01-05.prod.iad2.secureserver.net ([198.71.225.49]:47318 "EHLO a2nlsmtp01-05.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932280AbeBLApw (ORCPT ); Sun, 11 Feb 2018 19:45:52 -0500 Received: from linuxonhyperv2.linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id l23sejjRgbXRPl23seVYCX; Sun, 11 Feb 2018 17:33:36 -0700 x-originating-ip: 107.180.71.197 Received: from kys by linuxonhyperv2.linuxonhyperv.com with local (Exim 4.89_1) (envelope-from ) id 1el23s-0001mB-En; Sun, 11 Feb 2018 17:33:36 -0700 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: Dexuan Cui , "K . Y . Srinivasan" Subject: [PATCH 04/12] tools: hv: fix compiler warnings about major/target_fname Date: Sun, 11 Feb 2018 17:33:12 -0700 Message-Id: <20180212003320.6748-4-kys@exchange.microsoft.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180212003320.6748-1-kys@exchange.microsoft.com> References: <20180212002958.6679-1-kys@exchange.microsoft.com> <20180212003320.6748-1-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfGfLzs+4lIQQWJS3NtKpuQDQuHn6mJDvI/GoOSSpt2MSgqIXmewL8IWLJmo6NT35dOTufmrQS9/yvCCZHM96bNQSVvdUsFqUepL8T+h4MZqkl5VZYetC z4ixOdZdd5j28Q7tUcvxTKEEtpKJ8bcgRypNjPQIQrxYV4Y6igIOQF/QP7GkLKf6MH3zarw+UQ61dn1S2Dp/ShBX22sH496kCVTjQKleuvtN0oNwM3U0z1yQ qE7NysJ3Ta2HIA8Kh7rU8lW546b7pkq8wyfwGFxVHUpKgtDs7h3UWC1WxJr5d5QXdBDTZLZ1c8Q3nRB3zxAAEABUWF//LD9p5A02cp/qgibeWyIocHXKSTJA 8yfsOZkXbPmBX0fon5F9pETaMZsjRyvrF4ISpMR0GjocZdQL9SZXuY88AyhURQxuP90DIgdZAx/WGP4x/Na+VgsS9cKCKFlnSgfh9sdIehTyYS2FjHaD9Kyj 36feUfyFiFysgR5/EW5i1AIl747Io7CKsCEUxjbKUxR8EcREreVi9nfqwspko0+gbjuqAnLjHslk53OqV9s3vFiPFGpRQMpS3H38cFEfMQR7Ic+qpxRdTXLU 1DdkPTNGAcAygdwt7IkZOKYX Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dexuan Cui This patch fixes the below warnings with new glibc and gcc: hv_vss_daemon.c:100:13: warning: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. hv_fcopy_daemon.c:42:2: note: 'snprintf' output between 2 and 1040 bytes into a destination of size 260 Signed-off-by: Dexuan Cui Cc: Stephen Hemminger Cc: K. Y. Srinivasan Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_fcopy_daemon.c | 3 ++- tools/hv/hv_vss_daemon.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c index 457a1521f32f..785f4e95148c 100644 --- a/tools/hv/hv_fcopy_daemon.c +++ b/tools/hv/hv_fcopy_daemon.c @@ -23,13 +23,14 @@ #include #include #include +#include #include #include #include #include static int target_fd; -static char target_fname[W_MAX_PATH]; +static char target_fname[PATH_MAX]; static unsigned long long filesize; static int hv_start_fcopy(struct hv_start_fcopy *smsg) diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c index b2b4ebffab8c..34031a297f02 100644 --- a/tools/hv/hv_vss_daemon.c +++ b/tools/hv/hv_vss_daemon.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include -- 2.15.1