Skip to content

Commit

Permalink
mm/gup_test.c: mark gup_test_init as __init function
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Barry Song authored and torvalds committed Dec 15, 2020
1 parent a26c4c6 commit afaa788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/gup_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit afaa788

Please sign in to comment.