lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 3 Nov 2020 21:10:16 +1300 From: Barry Song <song.bao.hua@...ilicon.com> To: <akpm@...ux-foundation.org>, <linux-mm@...ck.org>, <linux-kernel@...r.kernel.org> CC: <linuxarm@...wei.com>, Barry Song <song.bao.hua@...ilicon.com>, "John Hubbard" <jhubbard@...dia.com>, Jan Kara <jack@...e.cz>, Jérôme Glisse <jglisse@...hat.com>, "Matthew Wilcox (Oracle)" <willy@...radead.org>, Al Viro <viro@...iv.linux.org.uk>, "Christoph Hellwig" <hch@...radead.org>, Dan Williams <dan.j.williams@...el.com>, "Dave Chinner" <david@...morbit.com>, Jason Gunthorpe <jgg@...pe.ca>, "Jonathan Corbet" <corbet@....net>, Michal Hocko <mhocko@...e.com>, Mike Kravetz <mike.kravetz@...cle.com>, Shuah Khan <shuah@...nel.org>, Vlastimil Babka <vbabka@...e.cz> Subject: [PATCH] mm/gup_benchmark: mark gup_benchmark_init as __init function gup_benchmark_init() is only called during initialization, mark it as __init to save some memory. Cc: John Hubbard <jhubbard@...dia.com> Cc: Jan Kara <jack@...e.cz> Cc: Jérôme Glisse <jglisse@...hat.com> Cc: "Matthew Wilcox (Oracle)" <willy@...radead.org> Cc: Al Viro <viro@...iv.linux.org.uk> Cc: Christoph Hellwig <hch@...radead.org> Cc: Dan Williams <dan.j.williams@...el.com> Cc: Dave Chinner <david@...morbit.com> Cc: Jason Gunthorpe <jgg@...pe.ca> Cc: Jonathan Corbet <corbet@....net> Cc: Michal Hocko <mhocko@...e.com> Cc: Mike Kravetz <mike.kravetz@...cle.com> Cc: Shuah Khan <shuah@...nel.org> Cc: Vlastimil Babka <vbabka@...e.cz> Signed-off-by: Barry Song <song.bao.hua@...ilicon.com> --- mm/gup_benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/gup_benchmark.c b/mm/gup_benchmark.c index 8b3e5b5..1d10553 100644 --- a/mm/gup_benchmark.c +++ b/mm/gup_benchmark.c @@ -199,7 +199,7 @@ static const struct file_operations gup_benchmark_fops = { .unlocked_ioctl = gup_benchmark_ioctl, }; -static int gup_benchmark_init(void) +static int __init gup_benchmark_init(void) { debugfs_create_file_unsafe("gup_benchmark", 0600, NULL, NULL, &gup_benchmark_fops); -- 2.7.4
Powered by blists - more mailing lists