aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authormydongistiny <jaysonedson@gmail.com>2015-11-23 17:01:42 -0800
committerMoyster <oysterized@gmail.com>2018-11-29 12:38:19 +0100
commitff505baaf412985af758d5820cd620ed9f1a7e05 (patch)
tree6486963ab0ffa407e1d67cbd539a968c7ab1c615 /mm
parent3d29fcecea03b179e8a07cd7f025402aa344f12e (diff)
GCC: Fix up for gcc 5+
Signed-off-by: mydongistiny <jaysonedson@gmail.com> Signed-off-by: Mister Oyster <oysterized@gmail.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/Makefile1
-rw-r--r--mm/rmap.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/mm/Makefile b/mm/Makefile
index 30e403700..59cd756ac 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for the linux memory manager.
#
+CFLAGS_KERNEL := -Wno-implicit-function-declaration -Wno-discarded-qualifiers -Wno-int-conversion
mmu-y := nommu.o
mmu-$(CONFIG_MMU) := fremap.o highmem.o madvise.o memory.o mincore.o \
diff --git a/mm/rmap.c b/mm/rmap.c
index 93d27a446..e055ea71e 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -531,7 +531,7 @@ __vma_address(struct page *page, struct vm_area_struct *vma)
}
inline unsigned long
-vma_address(struct page *page, struct vm_area_struct *vma)
+static vma_address(struct page *page, struct vm_area_struct *vma)
{
unsigned long address = __vma_address(page, vma);