aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Song <[email protected]>2020-12-14 19:05:34 -0800
committerLinus Torvalds <[email protected]>2020-12-15 12:13:38 -0800
commitafaa78886f218d840414c88c2eb7bb80666d79eb (patch)
tree635042d66db4b89e039a618f38b9bf5388046e7d
parenta26c4c62990a3ad5061f72e68f2394a01480265d (diff)
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/[email protected] Signed-off-by: Barry Song <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Cc: John Hubbard <[email protected]> Cc: Ralph Campbell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/gup_test.c2
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);