Skip to content

Commit 207e03b

Browse files
Saurabh Sengarliuw
authored andcommitted
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: 45bab4d ("tools: hv: Add vmbus_bufring") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Saurabh Sengar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
1 parent 8852ebf commit 207e03b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/hv/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ endif
1717
MAKEFLAGS += -r
1818

1919
override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include
20+
override CFLAGS += -Wno-address-of-packed-member
2021

2122
ALL_TARGETS := hv_kvp_daemon hv_vss_daemon
2223
ifneq ($(ARCH), aarch64)

0 commit comments

Comments
 (0)