History

kernel/crash_core.c: make __crash_hotplug_lock static

sparse warnings: kernel/crash_core.c:749:1: sparse: sparse: symbol '__crash_hotplug_lock' was not declared. Should it be static?

Andrew Morton committed 2 years ago

Commit 4e87ff51 parent 7ea6ec41 file · +1 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/crash_core.c+1−1
@@ -877,7 +877,7 @@ subsys_initcall(crash_notes_memory_init); · 876 unmodified lines
877877 * regions are online. So mutex lock __crash_hotplug_lock is used to
878878 * serialize the crash hotplug handling specifically.
879879 */
880−DEFINE_MUTEX(__crash_hotplug_lock);
880+static DEFINE_MUTEX(__crash_hotplug_lock);
881881 #define crash_hotplug_lock() mutex_lock(&__crash_hotplug_lock)
882882 #define crash_hotplug_unlock() mutex_unlock(&__crash_hotplug_lock)
883883