gup_benchmark_init() is only called during initialization, mark it as __init to save some memory.
Cc: John Hubbard <[email protected]> Cc: Jan Kara <[email protected]> Cc: Jérôme Glisse <[email protected]> Cc: "Matthew Wilcox (Oracle)" <[email protected]> Cc: Al Viro <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Dan Williams <[email protected]> Cc: Dave Chinner <[email protected]> Cc: Jason Gunthorpe <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Barry Song <[email protected]> --- 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

