]> www.infradead.org Git - users/dwmw2/linux.git/commit
tools: hv: suppress the invalid warning for packed member alignment
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Mon, 6 May 2024 05:38:58 +0000 (22:38 -0700)
committerWei Liu <wei.liu@kernel.org>
Tue, 28 May 2024 05:27:35 +0000 (05:27 +0000)
commit207e03b00b47ccbd692941b183510026e1bd6ce9
tree9e317d73853cd27242f8af2ce9566941923e9c3b
parent8852ebf1948d94ecaf4d1113032dda7e58e72b84
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 <yujie.liu@intel.com>
Closes: https://lore.kernel.org/all/202404121913.GhtSoKbW-lkp@intel.com/
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://lore.kernel.org/r/1714973938-4063-1-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1714973938-4063-1-git-send-email-ssengar@linux.microsoft.com>
tools/hv/Makefile