Skip to contentSkip to conversation

kernel: pid_namespace: replace deprecated __initcall with device_initcall

PATCH New Gargi Sharma 1 participant 1 message Mar 26, 2017 Namespaces:

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: pid_namespace: replace deprecated __initcall with device_initcall

__initcall maps onto device_initcall(). Such code should use device_initcall() directly. Issue detected using checkpatch.pl.

---
 kernel/pid_namespace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/pid_namespace.c +1 -1
index bee22fd..5f29687 100644
@@ -452,4 +452,4 @@ static __init int pid_namespaces_init(void)
 	return 0;
 }
 
-__initcall(pid_namespaces_init);
+device_initcall(pid_namespaces_init);
Signature · 1 line
2.7.4