aboutsummaryrefslogtreecommitdiff
path: root/drivers/net
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 /drivers/net
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 'drivers/net')
-rw-r--r--drivers/net/Makefile2
-rw-r--r--drivers/net/phy/Makefile1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index ef3d090ef..04551a15c 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -1,7 +1,7 @@
#
# Makefile for the Linux network device drivers.
#
-
+CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
#
# Networking Core Drivers
#
diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile
index 9645e389a..975c421a4 100644
--- a/drivers/net/phy/Makefile
+++ b/drivers/net/phy/Makefile
@@ -1,4 +1,5 @@
# Makefile for Linux PHY drivers
+CFLAGS_KERNEL := -Os -fno-unsafe-math-optimizations -fno-strict-aliasing
libphy-objs := phy.o phy_device.o mdio_bus.o