linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: bring back /sys/kernel/mm
@ 2014-01-27  2:52 Hugh Dickins
  2014-01-27  4:03 ` Paul Gortmaker
  0 siblings, 1 reply; 4+ messages in thread
From: Hugh Dickins @ 2014-01-27  2:52 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, Paul Gortmaker, linux-mm, linux-kernel

Commit da29bd36224b ("mm/mm_init.c: make creation of the mm_kobj happen
earlier than device_initcall") changed to pure_initcall(mm_sysfs_init).

That's too early: mm_sysfs_init() depends on core_initcall(ksysfs_init)
to have made the kernel_kobj directory "kernel" in which to create "mm".

Make it postcore_initcall(mm_sysfs_init).  We could use core_initcall(),
and depend upon Makefile link order kernel/ mm/ fs/ ipc/ security/ ...
as core_initcall(debugfs_init) and core_initcall(securityfs_init) do;
but better not.

Signed-off-by: Hugh Dickins <hughd@google.com>
---

 mm/mm_init.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 3.13.0+/mm/mm_init.c	2014-01-23 21:51:26.004001378 -0800
+++ linux/mm/mm_init.c	2014-01-26 18:06:40.488488209 -0800
@@ -202,4 +202,4 @@ static int __init mm_sysfs_init(void)
 
 	return 0;
 }
-pure_initcall(mm_sysfs_init);
+postcore_initcall(mm_sysfs_init);

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-27  8:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-27  2:52 [PATCH] mm: bring back /sys/kernel/mm Hugh Dickins
2014-01-27  4:03 ` Paul Gortmaker
2014-01-27  5:02   ` Hugh Dickins
2014-01-27  5:29     ` Paul Gortmaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox