X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=kernel%2Fstatic_call.c;h=723fcc9d20db69fbde09354cd988a2cbfef2847b;hb=0258bdfaff5bd13c4d2383150b7097aecd6b6d82;hp=2c5950b0b90ef16dee7e27e93dfa8d8a230df75a;hpb=5e6720888523eaac7c548df0d263739c56a3c22e;p=linux-2.6-microblaze.git diff --git a/kernel/static_call.c b/kernel/static_call.c index 2c5950b0b90e..723fcc9d20db 100644 --- a/kernel/static_call.c +++ b/kernel/static_call.c @@ -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++) {