From 576d6195779d479667d46c433426dd0a8696b2cc Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Thu, 21 Jun 2012 10:44:08 -0400 Subject: [PATCH] xen/oprofile: Fix compile issues when CONFIG_XEN is not defined. Signed-off-by: Konrad Rzeszutek Wilk --- include/xen/xenoprof.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/xen/xenoprof.h b/include/xen/xenoprof.h index 2a9a119756a2..3bc0d40f2b34 100644 --- a/include/xen/xenoprof.h +++ b/include/xen/xenoprof.h @@ -24,10 +24,6 @@ #define __XEN_XENOPROF_H__ #ifdef CONFIG_XEN -#if 0 -#include -#endif - #if defined(CONFIG_X86) || defined(CONFIG_X86_64) /* xenoprof x86 specific */ struct super_block; @@ -62,8 +58,11 @@ struct xenoprof_shared_buffer { struct xenoprof_arch_shared_buffer arch; }; #else -#define xenoprofile_init(ops) (-ENOSYS) -#define xenoprofile_exit() do { } while (0) +static int xenoprofile_init(struct oprofile_operations *ops) +{ + return -ENOSYS; +} +static void xenoprofile_exit(void) { } #endif /* CONFIG_XEN */ #endif /* __XEN_XENOPROF_H__ */ -- 2.50.1