aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/Makefile1
-rw-r--r--drivers/input/Makefile1
-rw-r--r--drivers/md/Makefile1
-rw-r--r--drivers/media/v4l2-core/Makefile1
-rw-r--r--drivers/mmc/Makefile1
-rw-r--r--drivers/net/Makefile2
-rw-r--r--drivers/net/phy/Makefile1
-rw-r--r--drivers/of/Makefile2
-rw-r--r--drivers/platform/Makefile1
-rw-r--r--drivers/scsi/Makefile2
-rw-r--r--drivers/thermal/Makefile1
-rw-r--r--drivers/usb/Makefile1
-rw-r--r--drivers/usb/gadget/Makefile2
13 files changed, 2 insertions, 15 deletions
diff --git a/drivers/base/Makefile b/drivers/base/Makefile
index aa6689653..154bd4a5e 100644
--- a/drivers/base/Makefile
+++ b/drivers/base/Makefile
@@ -1,5 +1,4 @@
# Makefile for the Linux device tree
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-y := core.o bus.o dd.o syscore.o \
driver.o class.o platform.o \
diff --git a/drivers/input/Makefile b/drivers/input/Makefile
index f57537760..ee4c06520 100644
--- a/drivers/input/Makefile
+++ b/drivers/input/Makefile
@@ -3,7 +3,6 @@
#
# Each configuration option enables a list of files.
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-$(CONFIG_INPUT) += input-core.o
input-core-y := input.o input-compat.o input-mt.o ff-core.o
diff --git a/drivers/md/Makefile b/drivers/md/Makefile
index b774a8bc1..771180662 100644
--- a/drivers/md/Makefile
+++ b/drivers/md/Makefile
@@ -1,7 +1,6 @@
#
# Makefile for the kernel software RAID and LVM drivers.
#
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
dm-mod-y += dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
dm-ioctl.o dm-io.o dm-kcopyd.o dm-sysfs.o
diff --git a/drivers/media/v4l2-core/Makefile b/drivers/media/v4l2-core/Makefile
index 7ecccb36d..aa50c4631 100644
--- a/drivers/media/v4l2-core/Makefile
+++ b/drivers/media/v4l2-core/Makefile
@@ -1,7 +1,6 @@
#
# Makefile for the V4L2 core
#
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
tuner-objs := tuner-core.o
diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile
index 2e3a1a514..400756ec7 100644
--- a/drivers/mmc/Makefile
+++ b/drivers/mmc/Makefile
@@ -1,7 +1,6 @@
#
# Makefile for the kernel mmc device drivers.
#
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
subdir-ccflags-$(CONFIG_MMC_DEBUG) := -DDEBUG
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 04551a15c..ef3d090ef 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 975c421a4..9645e389a 100644
--- a/drivers/net/phy/Makefile
+++ b/drivers/net/phy/Makefile
@@ -1,5 +1,4 @@
# 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
diff --git a/drivers/of/Makefile b/drivers/of/Makefile
index f08047219..8098b4dd3 100644
--- a/drivers/of/Makefile
+++ b/drivers/of/Makefile
@@ -1,5 +1,3 @@
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
-
obj-y = base.o
obj-$(CONFIG_OF_FLATTREE) += fdt.o
obj-$(CONFIG_OF_PROMTREE) += pdt.o
diff --git a/drivers/platform/Makefile b/drivers/platform/Makefile
index 7990aac1c..8a44a4cd6 100644
--- a/drivers/platform/Makefile
+++ b/drivers/platform/Makefile
@@ -1,7 +1,6 @@
#
# Makefile for linux/drivers/platform
#
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-$(CONFIG_X86) += x86/
obj-$(CONFIG_OLPC) += olpc/
diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile
index 4a470a086..b607ba4f5 100644
--- a/drivers/scsi/Makefile
+++ b/drivers/scsi/Makefile
@@ -12,7 +12,7 @@
# lastly SCSI peripheral drivers (disk/tape/cdrom/etc.) to
# satisfy certain initialization assumptions in the SCSI layer.
# *!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
+
CFLAGS_aha152x.o = -DAHA152X_STAT -DAUTOCONF
CFLAGS_gdth.o = # -DDEBUG_GDTH=2 -D__SERIAL__ -D__COM2__ -DGDTH_STATISTICS
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile
index 874dab35e..082e607fb 100644
--- a/drivers/thermal/Makefile
+++ b/drivers/thermal/Makefile
@@ -1,7 +1,6 @@
#
# Makefile for sensor chip drivers.
#
-CFLAGS_thermal_core.o := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-$(CONFIG_THERMAL) += thermal_sys.o
thermal_sys-y += thermal_core.o
diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
index f875e7456..c41feba8d 100644
--- a/drivers/usb/Makefile
+++ b/drivers/usb/Makefile
@@ -3,7 +3,6 @@
#
# Object files in subdirectories
-CFLAGS_KERNEL := -fno-unsafe-math-optimizations -fno-strict-aliasing
obj-$(CONFIG_USB) += core/
diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile
index 33f5dc9fd..f21aa18f3 100644
--- a/drivers/usb/gadget/Makefile
+++ b/drivers/usb/gadget/Makefile
@@ -1,8 +1,6 @@
#
# USB peripheral controller drivers
#
-CFLAGS_KERNEL := -Wno-unused-label
-
ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG
include $(srctree)/drivers/misc/mediatek/Makefile.custom