summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorDaniel Kiper <daniel.kiper@oracle.com>2014-07-12 23:09:47 +0200
committerMatt Fleming <matt.fleming@intel.com>2014-07-18 21:24:03 +0100
commit57f7138d760700f56a8aa944376c28ff83c47c26 (patch)
tree24c760c1f47c2e1442606d0941c7522bc57ba431 /include/xen
parentaeffc4928ea21aab3c7be72f00e257799b661c29 (diff)
xen: Silence compiler warnings
Add inline keyword to silence the following compiler warnings if xen_efi_probe() is not used: CC arch/x86/xen/setup.o In file included from arch/x86/xen/xen-ops.h:7:0, from arch/x86/xen/setup.c:31: include/xen/xen-ops.h:43:35: warning: ‘xen_efi_probe’ defined but not used [-Wunused-function] Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com> Reviewed-by: Konrad Rzeszutek Wilk <Konrad.wilk@oracle.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/xen-ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index 771bbba27cc..7491ee5d816 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -40,7 +40,7 @@ bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
#ifdef CONFIG_XEN_EFI
extern efi_system_table_t *xen_efi_probe(void);
#else
-static efi_system_table_t __init *xen_efi_probe(void)
+static inline efi_system_table_t __init *xen_efi_probe(void)
{
return NULL;
}