]> xenbits.xensource.com Git - xen.git/commitdiff
vpci: fix function attributes for vpci_process_pending
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Tue, 14 Dec 2021 08:44:44 +0000 (09:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Dec 2021 08:44:44 +0000 (09:44 +0100)
vpci_process_pending is defined with different attributes, e.g.
with __must_check if CONFIG_HAS_VPCI enabled and not otherwise.
Fix this by defining both of the definitions with __must_check.

Fixes: 14583a590783 ("7fbb096bf345 kconfig: don't select VPCI if building a shim-only binary")
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/include/xen/vpci.h

index 9ea66e033f117858e2a0400ac8f51e4f0a6c8a03..3f32de9d7eb334e3c8f5ab9f5902e7d6a84cfcb9 100644 (file)
@@ -247,7 +247,7 @@ static inline void vpci_write(pci_sbdf_t sbdf, unsigned int reg,
     ASSERT_UNREACHABLE();
 }
 
-static inline bool vpci_process_pending(struct vcpu *v)
+static inline bool __must_check vpci_process_pending(struct vcpu *v)
 {
     ASSERT_UNREACHABLE();
     return false;