]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - kernel/static_call.c
Merge tag 'mmc-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[mirror_ubuntu-jammy-kernel.git] / kernel / static_call.c
index 2c5950b0b90ef16dee7e27e93dfa8d8a230df75a..723fcc9d20db69fbde09354cd988a2cbfef2847b 100644 (file)
@@ -165,13 +165,13 @@ void __static_call_update(struct static_call_key *key, void *tramp, void *func)
 
                stop = __stop_static_call_sites;
 
-#ifdef CONFIG_MODULES
                if (mod) {
+#ifdef CONFIG_MODULES
                        stop = mod->static_call_sites +
                               mod->num_static_call_sites;
                        init = mod->state == MODULE_STATE_COMING;
-               }
 #endif
+               }
 
                for (site = site_mod->sites;
                     site < stop && static_call_key(site) == key; site++) {