Skip to content

Commit 0dfa5b5

Browse files
committed
xen/acpi: Fix compile error by missing decleration for xen_domain.
Commit 92e3229 ("xen/acpi: ACPI PAD driver") adds a new function but forgets to use the right header. Without it, we get: In file included from drivers/xen/features.c:15:0: include/xen/interface/version.h: In function ‘xen_running_on_version_or_later’: include/xen/interface/version.h:72:2: error: implicit declaration of function ‘xen_domain’ [-Werror=implicit-function-declaration] Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
1 parent e3aa4e6 commit 0dfa5b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/xen/interface/version.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ struct xen_feature_info {
6363
/* arg == xen_domain_handle_t. */
6464
#define XENVER_guest_handle 8
6565

66+
/* Declares the xen_domain() macros. */
67+
#include <xen/xen.h>
68+
6669
/* Check if running on Xen version (major, minor) or later */
6770
static inline bool
6871
xen_running_on_version_or_later(unsigned int major, unsigned int minor)

0 commit comments

Comments
 (0)