All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel: pid_namespace: replace deprecated __initcall with device_initcall
@ 2017-03-26 14:20 Gargi Sharma
  0 siblings, 0 replies; only message in thread
From: Gargi Sharma @ 2017-03-26 14:20 UTC (permalink / raw)
  To: mawilcox; +Cc: outreachy-kernel, Gargi Sharma

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

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
---
 kernel/pid_namespace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
index bee22fd..5f29687 100644
--- a/kernel/pid_namespace.c
+++ b/kernel/pid_namespace.c
@@ -452,4 +452,4 @@ static __init int pid_namespaces_init(void)
 	return 0;
 }
 
-__initcall(pid_namespaces_init);
+device_initcall(pid_namespaces_init);
-- 
2.7.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-26 14:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-26 14:20 [PATCH] kernel: pid_namespace: replace deprecated __initcall with device_initcall Gargi Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.