Skip to content

Commit

Permalink
xen/acpi: Fix compile error by missing decleration for xen_domain.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Konrad Rzeszutek Wilk committed Nov 27, 2012
1 parent e3aa4e6 commit 0dfa5b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/xen/interface/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ struct xen_feature_info {
/* arg == xen_domain_handle_t. */
#define XENVER_guest_handle 8

/* Declares the xen_domain() macros. */
#include <xen/xen.h>

/* Check if running on Xen version (major, minor) or later */
static inline bool
xen_running_on_version_or_later(unsigned int major, unsigned int minor)
Expand Down

0 comments on commit 0dfa5b5

Please sign in to comment.