Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

oprofile, s390: Cleanups

Remove unused HAVE_HWSAMPLER config option. It is not used anymore,
removing it.

Also make some functions static and some coding style fixes.

Signed-off-by: Robert Richter <robert.richter@amd.com>

+3 -7
-3
arch/Kconfig
··· 30 30 config HAVE_OPROFILE 31 31 bool 32 32 33 - config HAVE_HWSAMPLER 34 - bool 35 - 36 33 config KPROBES 37 34 bool "Kprobes" 38 35 depends on MODULES
-1
arch/s390/Kconfig
··· 115 115 select ARCH_INLINE_WRITE_UNLOCK_BH 116 116 select ARCH_INLINE_WRITE_UNLOCK_IRQ 117 117 select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE 118 - select HAVE_HWSAMPLER 119 118 120 119 config SCHED_OMIT_FRAME_POINTER 121 120 def_bool y
+3 -3
arch/s390/oprofile/init.c
··· 133 133 return 0; 134 134 } 135 135 136 - int oprofile_hwsampler_init(struct oprofile_operations* ops) 136 + static int oprofile_hwsampler_init(struct oprofile_operations *ops) 137 137 { 138 138 if (hwsampler_setup()) 139 139 return -ENODEV; ··· 166 166 return 0; 167 167 } 168 168 169 - void oprofile_hwsampler_exit(void) 169 + static void oprofile_hwsampler_exit(void) 170 170 { 171 171 oprofile_timer_exit(); 172 172 hwsampler_shutdown(); 173 173 } 174 174 175 - int __init oprofile_arch_init(struct oprofile_operations* ops) 175 + int __init oprofile_arch_init(struct oprofile_operations *ops) 176 176 { 177 177 ops->backtrace = s390_backtrace; 178 178