Skip to content

Commit afaa788

Browse files
Barry Songtorvalds
authored andcommitted
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]>
1 parent a26c4c6 commit afaa788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/gup_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static const struct file_operations gup_test_fops = {
236236
.unlocked_ioctl = gup_test_ioctl,
237237
};
238238

239-
static int gup_test_init(void)
239+
static int __init gup_test_init(void)
240240
{
241241
debugfs_create_file_unsafe("gup_test", 0600, NULL, NULL,
242242
&gup_test_fops);

0 commit comments

Comments
 (0)