Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1197689lqh; Sun, 5 May 2024 22:57:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0XKYZWq7KYu3tgcgC/4JuBlJY3O24hlkrcUxwCzFHJS/D3ONtIhFmsBw7Hg1IfRxdTk/q7Kdjm1XEhmq3Wt2/UUttgWSFbPklq0YDoQ== X-Google-Smtp-Source: AGHT+IE2NUQJUCDxuqxHh7ohVii3nepqgIdBuIk9htONHFHdMt3BRuINIsgwfiPxJYcA+7RTaXpw X-Received: by 2002:ac2:58d3:0:b0:516:e8b1:9ed5 with SMTP id u19-20020ac258d3000000b00516e8b19ed5mr5472080lfo.59.1714975036271; Sun, 05 May 2024 22:57:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714975036; cv=pass; d=google.com; s=arc-20160816; b=hJG4QtQAS4Iv+2x5rvdWgAqv1yfPMuItK3OJsNuZtvhofb6hX3hIQ4D++6bIVzntzH ppAwqGzvTHEUTDWmTf268Ugcb9Rffmwp81R+k6XagNCldTiRXi38bkJAJvA6mcPaM41e eznFWAWcPiFDmo/89r9bZEi07k3eS0qgV/F1LnKUwafMYtdb1hw1MBJ18FVWa+MpOajI Der5mnKI8kCybVaeTaLfSLn9oY+6Da/Is2jnt0pkHndxb12K2nPZ63KJPu8g6zN4yQrh J/lEq1LGVhgKPJhsOzTkl1CXaRIzK4TSxOPeWWq0fgJan7n0BjMDLYgzp1h+RXGvrjrv Cz2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=bfHIOF5qZceUtl1oIJPlt2YVFrRSH8tcL6/+A6DJaig=; fh=gusC+tXCAoy9hD1emePcMy36dQf8eEkVWqxbaGI3QTU=; b=zSsZs0qMURDNm4+SCiiF5lBcpwQdK6xcwlFqoj/596VKNV0FaUumyamfciYDgD8/fW VVi1TEr+BAnY22cAvKVvMdIhfqPqyfqhg+BPuVfAJVJ4tc90eJSSvv/a7ZlUF9W8l2qt JybTAO/heKqplLMA95Kua6+3PhxafutHkrTt5AxzoJ0DEyxveg6J0mKwP/SEZU3aueaU 7sZ7s1j485vI6eTM2uYGrof+VC5mp8J5aYu2Pms/P/KH+JbO60HmQdHAq5n25YbGQFsI NLPEh0ZIwlymoCf64mLKUqdO6WI/He5Nfp7gQhdjkLUNadmQWsT2E+/l2QJZMrGX+o1j bNzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=mSTuCBml; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-169324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w24-20020a50fa98000000b00572a8921c4asi4312755edr.17.2024.05.05.22.57.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 22:57:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=mSTuCBml; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-169324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 87A081F24AAA for ; Mon, 6 May 2024 05:39:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1363F47F5B; Mon, 6 May 2024 05:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="mSTuCBml" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0495218E3F; Mon, 6 May 2024 05:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714973952; cv=none; b=RF/N6w9XK9FQgcMR0x9qRBwjlPhI41IlZXNdZp85ra3/7csl+KfGeMArznzUglVXr3MbFeHyaJEl3IdrgbSR/oKmz39dMjrYHxZwczzO8QLysav76KR27S2zrba6LENvJrJaN3Da69RxCofR2bX76XNj2Ur+yVNRMiA9ACX7VRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714973952; c=relaxed/simple; bh=tEvumqwd3KGmnqz/DKjUD8+JIVJDhi1tLnPm2ljTvEM=; h=From:To:Cc:Subject:Date:Message-Id; b=ErkcpUmoqV9ZpTr5ekfuq+xEWbNiSheIGFok+o8M2r/39Hj0zO/rK+hTQ1Gc8Z9847uyxyJ/UoLwNVRMhYGWrKMbmDdIisYPGcK0IiHeRLmK+YIkZjQx6DMIX4H2ZfpCh0N5lZGaua+F9IMpO77hfNq0sxfJX2s0aTjMjhyr+lI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=mSTuCBml; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id D471720B2C82; Sun, 5 May 2024 22:39:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D471720B2C82 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1714973942; bh=bfHIOF5qZceUtl1oIJPlt2YVFrRSH8tcL6/+A6DJaig=; h=From:To:Cc:Subject:Date:From; b=mSTuCBmluUSglx1eiKBWdbqEpLlHFLHPNcq9cxCXLOQlhi48cXfu2EjNk2s5CJqVa cWWDRW1qcXgrXKYcrTCw4cnSjBJ0icmJGW9FpWdwTijbxMS8sknmdf/eoofhgmnYTJ f3TQ27SLePpoKsbusZbCpzhGWlFCsByHvF0Gpfh4= From: Saurabh Sengar To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org Cc: ssengar@microsoft.com, maryhardy@microsoft.com, longli@microsoft.com Subject: [PATCH v2] tools: hv: suppress the invalid warning for packed member alignment Date: Sun, 5 May 2024 22:38:58 -0700 Message-Id: <1714973938-4063-1-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Packed struct vmbus_bufring is 4096 byte aligned and the reporting warning is for the first member of that struct which shouldn't add any offset to create alignment issue. Suppress the warning by adding -Wno-address-of-packed-member flag to gcc. Fixes: 45bab4d74651 ("tools: hv: Add vmbus_bufring") Reported-by: kernel test robot Closes: https://lore.kernel.org/all/202404121913.GhtSoKbW-lkp@intel.com/ Signed-off-by: Saurabh Sengar --- [V2] Added 'Fixes' tag tools/hv/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index bb52871..2e60e2c 100644 --- a/tools/hv/Makefile +++ b/tools/hv/Makefile @@ -17,6 +17,7 @@ endif MAKEFLAGS += -r override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS += -Wno-address-of-packed-member ALL_TARGETS := hv_kvp_daemon hv_vss_daemon ifneq ($(ARCH), aarch64) -- 1.8.3.1