]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - kernel/configs.c
reboot: checkpatch.pl the new kernel/reboot.c file
[linux-3.10.git] / kernel / configs.c
index b4066b44a99d09996555b8a233855cc3e637559a..c18b1f1ae515a73cf0fe404d413ddcc4bc8f847d 100644 (file)
@@ -79,7 +79,7 @@ static int __init ikconfig_init(void)
        if (!entry)
                return -ENOMEM;
 
-       entry->size = kernel_config_data_size;
+       proc_set_size(entry, kernel_config_data_size);
 
        return 0;
 }
@@ -92,8 +92,8 @@ static void __exit ikconfig_cleanup(void)
 module_init(ikconfig_init);
 module_exit(ikconfig_cleanup);
 
+#endif /* CONFIG_IKCONFIG_PROC */
+
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Randy Dunlap");
 MODULE_DESCRIPTION("Echo the kernel .config file used to build the kernel");
-
-#endif /* CONFIG_IKCONFIG_PROC */