From: Saurabh Sengar Date: Mon, 6 May 2024 05:38:58 +0000 (-0700) Subject: tools: hv: suppress the invalid warning for packed member alignment X-Git-Tag: v6.10-rc5~42^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=207e03b00b47ccbd692941b183510026e1bd6ce9;p=thirdparty%2Fkernel%2Flinux.git tools: hv: suppress the invalid warning for packed member alignment 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 Link: https://lore.kernel.org/r/1714973938-4063-1-git-send-email-ssengar@linux.microsoft.com Signed-off-by: Wei Liu Message-ID: <1714973938-4063-1-git-send-email-ssengar@linux.microsoft.com> --- diff --git a/tools/hv/Makefile b/tools/hv/Makefile index bb52871da3412..2e60e2c212cd9 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)