From afaa78886f218d840414c88c2eb7bb80666d79eb Mon Sep 17 00:00:00 2001 From: Barry Song Date: Mon, 14 Dec 2020 19:05:34 -0800 Subject: [PATCH] mm/gup_test.c: mark gup_test_init as __init function gup_test_init() is only called during initialization, mark it as __init to save some memory. Link: https://lkml.kernel.org/r/20201103081016.16532-1-song.bao.hua@hisilicon.com Signed-off-by: Barry Song Reviewed-by: Jason Gunthorpe Cc: John Hubbard Cc: Ralph Campbell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/gup_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/gup_test.c b/mm/gup_test.c index 087ddaf30eb4..e3cf78e5873e 100644 --- a/mm/gup_test.c +++ b/mm/gup_test.c @@ -236,7 +236,7 @@ static const struct file_operations gup_test_fops = { .unlocked_ioctl = gup_test_ioctl, }; -static int gup_test_init(void) +static int __init gup_test_init(void) { debugfs_create_file_unsafe("gup_test", 0600, NULL, NULL, &gup_test_fops);