vpci: fix function attributes for vpci_process_pending

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>
This commit is contained in:
Oleksandr Andrushchenko authored and Jan Beulich committed 2021-12-14 09:44:44 +01:00
1 parent d828caa9ae
commit 7dc0233f53
1 file changed
+1 -1
+1 -1
View 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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.