From: Barry Song Date: Tue, 15 Dec 2020 03:05:34 +0000 (-0800) Subject: mm/gup_test.c: mark gup_test_init as __init function X-Git-Tag: v5.11-rc1~170^2~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afaa78886f218d840414c88c2eb7bb80666d79eb;p=thirdparty%2Fkernel%2Fstable.git 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 --- diff --git a/mm/gup_test.c b/mm/gup_test.c index 087ddaf30eb4f..e3cf78e5873e4 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);