mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[IA64] Fix sparse tree xenoprof/perfmon/oprofile build dependencies
Compile xenoprof perfmon related hypercall even when CONFIG_PERFMON, CONFIG_OPROFILE, CONFIG_OPROFILE_MODULE are disabled. They should be compiled in vmlinux unconditionally because they might be called by other modules in theory. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
1 parent
ac0269d27c
commit
96403247eb
4 files changed
-18
No files matched your search
@@ -304,7 +304,6 @@ xencomm_hypercall_suspend(unsigned long srec)
|
||||
return xencomm_arch_hypercall_suspend(xencomm_create_inline(&arg));
|
||||
}
|
||||
|
||||
#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
|
||||
int
|
||||
xencomm_hypercall_xenoprof_op(int op, void *arg)
|
||||
{
|
||||
@@ -336,9 +335,7 @@ xencomm_hypercall_xenoprof_op(int op, void *arg)
|
||||
return xencomm_arch_hypercall_xenoprof_op(op,
|
||||
xencomm_create_inline(arg));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PERFMON
|
||||
int
|
||||
xencomm_hypercall_perfmon_op(unsigned long cmd, void* arg, unsigned long count)
|
||||
{
|
||||
@@ -366,4 +363,3 @@ xencomm_hypercall_perfmon_op(unsigned long cmd, void* arg, unsigned long count)
|
||||
xencomm_create_inline(arg),
|
||||
count);
|
||||
}
|
||||
#endif
|
||||
@@ -323,7 +323,6 @@ xencomm_mini_hypercall_xen_version(int cmd, void *arg)
|
||||
}
|
||||
EXPORT_SYMBOL(xencomm_mini_hypercall_xen_version);
|
||||
|
||||
#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
|
||||
int
|
||||
xencomm_mini_hypercall_xenoprof_op(int op, void *arg)
|
||||
{
|
||||
@@ -372,9 +371,7 @@ xencomm_mini_hypercall_xenoprof_op(int op, void *arg)
|
||||
return xencomm_arch_hypercall_xenoprof_op(op, desc);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(xencomm_mini_hypercall_xenoprof_op);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PERFMON
|
||||
int
|
||||
xencomm_mini_hypercall_perfmon_op(unsigned long cmd, void* arg,
|
||||
unsigned long count)
|
||||
@@ -418,4 +415,3 @@ xencomm_mini_hypercall_perfmon_op(unsigned long cmd, void* arg,
|
||||
return xencomm_arch_hypercall_perfmon_op(cmd, desc, count);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(xencomm_mini_hypercall_perfmon_op);
|
||||
#endif
|
||||
@@ -399,7 +399,6 @@ HYPERVISOR_expose_p2m(unsigned long conv_start_gpfn,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PERFMON
|
||||
static inline int
|
||||
xencomm_arch_hypercall_perfmon_op(unsigned long cmd,
|
||||
struct xencomm_handle *arg,
|
||||
@@ -408,7 +407,6 @@ xencomm_arch_hypercall_perfmon_op(unsigned long cmd,
|
||||
return _hypercall4(int, ia64_dom0vp_op,
|
||||
IA64_DOM0VP_perfmon, cmd, arg, count);
|
||||
}
|
||||
#endif
|
||||
|
||||
// for balloon driver
|
||||
#define HYPERVISOR_update_va_mapping(va, new_val, flags) (0)
|
||||
|
||||
@@ -46,14 +46,10 @@ extern unsigned long xencomm_hypercall_hvm_op(int cmd, void *arg);
|
||||
|
||||
extern int xencomm_hypercall_suspend(unsigned long srec);
|
||||
|
||||
#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
|
||||
extern int xencomm_hypercall_xenoprof_op(int op, void *arg);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PERFMON
|
||||
extern int xencomm_hypercall_perfmon_op(unsigned long cmd, void* arg,
|
||||
unsigned long count);
|
||||
#endif
|
||||
|
||||
/* Using mini xencomm. */
|
||||
extern int xencomm_mini_hypercall_console_io(int cmd, int count, char *str);
|
||||
@@ -77,14 +73,10 @@ extern int xencomm_mini_hypercall_memory_op(unsigned int cmd, void *arg);
|
||||
|
||||
extern unsigned long xencomm_mini_hypercall_hvm_op(int cmd, void *arg);
|
||||
|
||||
#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
|
||||
extern int xencomm_mini_hypercall_xenoprof_op(int op, void *arg);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PERFMON
|
||||
extern int xencomm_mini_hypercall_perfmon_op(unsigned long cmd, void* arg,
|
||||
unsigned long count);
|
||||
#endif
|
||||
|
||||
/* For privcmd. Locally declare argument type to avoid include storm.
|
||||
Type coherency will be checked within privcmd.c */
|
||||
|
||||