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

Configure Feed

Select the types of activity you want to include in your feed.

trace/osnoise: Fix return value on osnoise_init_hotplug_support

kernel test robot reported:

>> kernel/trace/trace_osnoise.c:1584:2: error: void function
'osnoise_init_hotplug_support' should not return a
value [-Wreturn-type]
return 0;

When !CONFIG_HOTPLUG_CPU.

Fix it problem by removing the return value.

Link: https://lkml.kernel.org/r/c7fc67f1a117cc88bab2e508c898634872795341.1624872608.git.bristot@redhat.com

Fixes: c8895e271f79 ("trace/osnoise: Support hotplug operations")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Daniel Bristot de Oliveira and committed by
Steven Rostedt (VMware)
498627b4 2a81afa3

+1 -1
+1 -1
kernel/trace/trace_osnoise.c
··· 1586 1586 #else /* CONFIG_HOTPLUG_CPU */ 1587 1587 static void osnoise_init_hotplug_support(void) 1588 1588 { 1589 - return 0; 1589 + return; 1590 1590 } 1591 1591 #endif /* CONFIG_HOTPLUG_CPU */ 1592 1592