diff options
author | Barry Song <song.bao.hua@hisilicon.com> | 2020-12-15 04:05:34 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-15 21:13:38 +0100 |
commit | afaa78886f218d840414c88c2eb7bb80666d79eb (patch) | |
tree | 635042d66db4b89e039a618f38b9bf5388046e7d /mm/gup_test.c | |
parent | selftests/vm: 2x speedup for run_vmtests.sh (diff) | |
download | linux-afaa78886f218d840414c88c2eb7bb80666d79eb.tar.xz linux-afaa78886f218d840414c88c2eb7bb80666d79eb.zip |
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 <song.bao.hua@hisilicon.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/gup_test.c')
-rw-r--r-- | mm/gup_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |