Skip to content

Commit cee672e

Browse files
Paul GortmakerMartin Schwidefsky
authored andcommitted
s390: hypfs: make inode explicitly non-modular
The Kconfig currently controlling compilation of this code is: arch/s390/Kconfig:config S390_HYPFS_FS arch/s390/Kconfig: def_bool y ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, 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. Also note that MODULE_ALIAS is a no-op for non-modular code. We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments. Build testing indicated the presence of module.h was masking an implicit include of kobject.h, hence the addition of that. Cc: linux-s390@vger.kernel.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent aae175d commit cee672e

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

‎arch/s390/hypfs/inode.c‎

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*
44
* Copyright IBM Corp. 2006, 2008
55
* Author(s): Michael Holzheu <holzheu@de.ibm.com>
6+
* License: GPL
67
*/
78

89
#define KMSG_COMPONENT "hypfs"
@@ -18,7 +19,8 @@
1819
#include <linux/time.h>
1920
#include <linux/parser.h>
2021
#include <linux/sysfs.h>
21-
#include <linux/module.h>
22+
#include <linux/init.h>
23+
#include <linux/kobject.h>
2224
#include <linux/seq_file.h>
2325
#include <linux/mount.h>
2426
#include <linux/uio.h>
@@ -443,7 +445,6 @@ static struct file_system_type hypfs_type = {
443445
.mount = hypfs_mount,
444446
.kill_sb = hypfs_kill_super
445447
};
446-
MODULE_ALIAS_FS("s390_hypfs");
447448

448449
static const struct super_operations hypfs_s_ops = {
449450
.statfs = simple_statfs,
@@ -497,21 +498,4 @@ static int __init hypfs_init(void)
497498
pr_err("Initialization of hypfs failed with rc=%i\n", rc);
498499
return rc;
499500
}
500-
501-
static void __exit hypfs_exit(void)
502-
{
503-
unregister_filesystem(&hypfs_type);
504-
sysfs_remove_mount_point(hypervisor_kobj, "s390");
505-
hypfs_diag0c_exit();
506-
hypfs_sprp_exit();
507-
hypfs_vm_exit();
508-
hypfs_diag_exit();
509-
hypfs_dbfs_exit();
510-
}
511-
512-
module_init(hypfs_init)
513-
module_exit(hypfs_exit)
514-
515-
MODULE_LICENSE("GPL");
516-
MODULE_AUTHOR("Michael Holzheu <holzheu@de.ibm.com>");
517-
MODULE_DESCRIPTION("s390 Hypervisor Filesystem");
501+
device_initcall(hypfs_init)

0 commit comments

Comments
 (0)