IOMMU/x86: work around bogus gcc12 warning in hvm_gsi_eoi()
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Jul 2022 09:10:34 +0000 (11:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Jul 2022 09:10:34 +0000 (11:10 +0200)
commit460b08d6c6c16b3f32aa138e772b759ae02a4479
treeef8c85ffbfc51bd189d560e6cd566477bcd00ef6
parent2e82446cb252f6c8ac697e81f4155872c69afde4
IOMMU/x86: work around bogus gcc12 warning in hvm_gsi_eoi()

As per [1] the expansion of the pirq_dpci() macro causes a -Waddress
controlled warning (enabled implicitly in our builds, if not by default)
tying the middle part of the involved conditional expression to the
surrounding boolean context. Work around this by introducing a local
inline function in the affected source file.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102967
master commit: 80ad8db8a4d9bb24952f0aea788ce6f47566fa76
master date: 2022-06-15 10:19:32 +0200
xen/drivers/passthrough/x86/hvm.c