diff options
author | Bharath Vedartham <linux.bhar@gmail.com> | 2019-05-13 17:23:17 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-23 08:21:32 +0100 |
commit | 4765814bc1869fac17192f9b77e0e57bed3b8c27 (patch) | |
tree | 08165297b8ef6a3f3cd32ad6ec3c345027399812 /mm/huge_memory.c | |
parent | 140e63d7fc48fb751fe73ca6be5d39d650cf3a43 (diff) | |
download | linux-stable-4765814bc1869fac17192f9b77e0e57bed3b8c27.tar.gz linux-stable-4765814bc1869fac17192f9b77e0e57bed3b8c27.tar.bz2 linux-stable-4765814bc1869fac17192f9b77e0e57bed3b8c27.zip |
mm/huge_memory.c: make __thp_get_unmapped_area static
[ Upstream commit b3b07077b01ecbbd98efede778c195567de25b71 ]
__thp_get_unmapped_area is only used in mm/huge_memory.c. Make it static.
Tested by building and booting the kernel.
Link: http://lkml.kernel.org/r/20190504102353.GA22525@bharath12345-Inspiron-5559
Signed-off-by: Bharath Vedartham <linux.bhar@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r-- | mm/huge_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 5a1771bd5d04..950466876625 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -509,7 +509,7 @@ void prep_transhuge_page(struct page *page) set_compound_page_dtor(page, TRANSHUGE_PAGE_DTOR); } -unsigned long __thp_get_unmapped_area(struct file *filp, unsigned long len, +static unsigned long __thp_get_unmapped_area(struct file *filp, unsigned long len, loff_t off, unsigned long flags, unsigned long size) { unsigned long addr; |