aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-05-04 11:49:35 -0700
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-05-18 09:54:02 -0400
commit975042cc72ddca334f1e351dce6b76194146ed99 (patch)
treea061b784f29feb56f5965346a6cc9a775f01b06b
parent8632f470f02c70d9501ae21f57740ea23c14773f (diff)
downloadlinux-yocto-975042cc72ddca334f1e351dce6b76194146ed99.tar.gz
linux-yocto-975042cc72ddca334f1e351dce6b76194146ed99.tar.bz2
linux-yocto-975042cc72ddca334f1e351dce6b76194146ed99.zip
mips: Disable attribute-alias warnings
This warning is seen with gcc-8 include/linux/syscalls.h:211:18: error: 'sys_cachectl' alias between functions of incom patible types 'long int(char *, int, int)' and 'long int(long int, long int, long int)' Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--arch/mips/kernel/Makefile2
-rw-r--r--arch/mips/mm/Makefile1
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index f10e1e15e1c6..eb92e52eb3db 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -2,6 +2,8 @@
#
# Makefile for the Linux/MIPS kernel.
#
+CFLAGS_signal.o += $(call cc-disable-warning, attribute-alias)
+CFLAGS_syscall.o += $(call cc-disable-warning, attribute-alias)
extra-y := head.o vmlinux.lds
diff --git a/arch/mips/mm/Makefile b/arch/mips/mm/Makefile
index c463bdad45c7..b7f9ef80dac7 100644
--- a/arch/mips/mm/Makefile
+++ b/arch/mips/mm/Makefile
@@ -2,6 +2,7 @@
#
# Makefile for the Linux/MIPS-specific parts of the memory manager.
#
+CFLAGS_cache.o += $(call cc-disable-warning, attribute-alias)
obj-y += cache.o dma-default.o extable.o fault.o \
gup.o init.o mmap.o page.o page-funcs.o \