From: Andrew Morton Cc: Adrian Bunk Cc: Ingo Molnar Signed-off-by: Andrew Morton --- include/linux/profile.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff -puN include/linux/profile.h~build-kernel-profileo-only-when-requested-cleanups include/linux/profile.h --- a/include/linux/profile.h~build-kernel-profileo-only-when-requested-cleanups +++ a/include/linux/profile.h @@ -18,9 +18,11 @@ struct pt_regs; struct notifier_block; #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) -void create_prof_cpu_mask(struct proc_dir_entry *); +void create_prof_cpu_mask(struct proc_dir_entry *de); #else -#define create_prof_cpu_mask(x) do { (void)(x); } while (0) +static inline void create_prof_cpu_mask(struct proc_dir_entry *de) +{ +} #endif enum profile_type { _