gup_benchmark_init() is only called during initialization, mark it as
__init to save some memory.

Cc: John Hubbard <jhubb...@nvidia.com>
Cc: Jan Kara <j...@suse.cz>
Cc: Jérôme Glisse <jgli...@redhat.com>
Cc: "Matthew Wilcox (Oracle)" <wi...@infradead.org>
Cc: Al Viro <v...@zeniv.linux.org.uk>
Cc: Christoph Hellwig <h...@infradead.org>
Cc: Dan Williams <dan.j.willi...@intel.com>
Cc: Dave Chinner <da...@fromorbit.com>
Cc: Jason Gunthorpe <j...@ziepe.ca>
Cc: Jonathan Corbet <cor...@lwn.net>
Cc: Michal Hocko <mho...@suse.com>
Cc: Mike Kravetz <mike.krav...@oracle.com>
Cc: Shuah Khan <sh...@kernel.org>
Cc: Vlastimil Babka <vba...@suse.cz>
Signed-off-by: Barry Song <song.bao....@hisilicon.com>
---
 mm/gup_benchmark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/gup_benchmark.c b/mm/gup_benchmark.c
index 8b3e5b5..1d10553 100644
--- a/mm/gup_benchmark.c
+++ b/mm/gup_benchmark.c
@@ -199,7 +199,7 @@ static const struct file_operations gup_benchmark_fops = {
        .unlocked_ioctl = gup_benchmark_ioctl,
 };
 
-static int gup_benchmark_init(void)
+static int __init gup_benchmark_init(void)
 {
        debugfs_create_file_unsafe("gup_benchmark", 0600, NULL, NULL,
                                   &gup_benchmark_fops);
-- 
2.7.4

Reply via email to