sparse warnings: kernel/crash_core.c:749:1: sparse: sparse: symbol '__crash_hotplug_lock' was not declared. Should it be static?
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -877,7 +877,7 @@ subsys_initcall(crash_notes_memory_init); · 876 unmodified lines | |||
| 877 | * regions are online. So mutex lock __crash_hotplug_lock is used to | 877 | * regions are online. So mutex lock __crash_hotplug_lock is used to |
| 878 | * serialize the crash hotplug handling specifically. | 878 | * serialize the crash hotplug handling specifically. |
| 879 | */ | 879 | */ |
| 880 | DEFINE_MUTEX(__crash_hotplug_lock); | 880 | static DEFINE_MUTEX(__crash_hotplug_lock); |
| 881 | #define crash_hotplug_lock() mutex_lock(&__crash_hotplug_lock) | 881 | #define crash_hotplug_lock() mutex_lock(&__crash_hotplug_lock) |
| 882 | #define crash_hotplug_unlock() mutex_unlock(&__crash_hotplug_lock) | 882 | #define crash_hotplug_unlock() mutex_unlock(&__crash_hotplug_lock) |
| 883 | 883 | ||