Skip to content

Commit 4e87ff5

Browse files
committed
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? Fixes: e2a8f20 ("Crash: add lock to serialize crash hotplug handling") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202401080654.IjjU5oK7-lkp@intel.com/ Cc: Baoquan He <bhe@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 7ea6ec4 commit 4e87ff5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/crash_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ subsys_initcall(crash_notes_memory_init);
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

0 commit comments

Comments
 (0)