Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: make mm/asids-debugfs explicitly non-modular

The Makefile/Kconfig currently controlling compilation of this code is:

obj-$(CONFIG_DEBUG_FS) += $(debugfs-y)
debugfs-y := asids-debugfs.o

lib/Kconfig.debug:config DEBUG_FS
lib/Kconfig.debug: bool "Debug Filesystem"

....meaning that it currently is not being built as a module by anyone.

Lets remove the couple traces of modular code, so that when reading the
driver there is no doubt it is builtin-only.

Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Rich Felker <dalias@libc.org>

authored by

Paul Gortmaker and committed by
Rich Felker
f15412aa 7a65a34f

+1 -4
+1 -4
arch/sh/mm/asids-debugfs.c
··· 17 17 * for more details. 18 18 */ 19 19 #include <linux/init.h> 20 - #include <linux/module.h> 21 20 #include <linux/debugfs.h> 22 21 #include <linux/seq_file.h> 23 22 #include <linux/spinlock.h> ··· 69 70 70 71 return PTR_ERR_OR_ZERO(asids_dentry); 71 72 } 72 - module_init(asids_debugfs_init); 73 - 74 - MODULE_LICENSE("GPL v2"); 73 + device_initcall(asids_debugfs_init);