aboutsummaryrefslogtreecommitdiff
path: root/fs
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 /fs
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 'fs')
-rw-r--r--fs/Makefile1
-rw-r--r--fs/ext4/Makefile1
-rw-r--r--fs/proc/Makefile2
3 files changed, 4 insertions, 0 deletions
diff --git a/fs/Makefile b/fs/Makefile
index 3f84895b8..f5e3ba300 100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -4,6 +4,7 @@
# 14 Sep 2000, Christoph Hellwig <hch@infradead.org>
# Rewritten to use lists instead of if-statements.
#
+CFLAGS_binfmt_elf.o := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-y := open.o read_write.o file_table.o super.o \
char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \
diff --git a/fs/ext4/Makefile b/fs/ext4/Makefile
index f52cf54f0..407af9689 100644
--- a/fs/ext4/Makefile
+++ b/fs/ext4/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for the linux ext4-filesystem routines.
#
+CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-$(CONFIG_EXT4_FS) += ext4.o
diff --git a/fs/proc/Makefile b/fs/proc/Makefile
index ab3071658..7f537d45c 100644
--- a/fs/proc/Makefile
+++ b/fs/proc/Makefile
@@ -1,6 +1,8 @@
#
# Makefile for the Linux proc filesystem routines.
#
+CFLAGS_proc_net.o := -fno-unsafe-math-optimizations -fno-strict-aliasing
+CFLAGS_namespaces.o := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-y += proc.o