diff options
| author | mydongistiny <jaysonedson@gmail.com> | 2015-11-23 17:01:42 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-11-29 12:38:19 +0100 |
| commit | ff505baaf412985af758d5820cd620ed9f1a7e05 (patch) | |
| tree | 6486963ab0ffa407e1d67cbd539a968c7ab1c615 /drivers | |
| parent | 3d29fcecea03b179e8a07cd7f025402aa344f12e (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')
| -rw-r--r-- | drivers/base/Makefile | 1 | ||||
| -rw-r--r-- | drivers/input/Makefile | 1 | ||||
| -rw-r--r-- | drivers/md/Makefile | 1 | ||||
| -rw-r--r-- | drivers/media/v4l2-core/Makefile | 1 | ||||
| -rw-r--r-- | drivers/mmc/Makefile | 1 | ||||
| -rw-r--r-- | drivers/net/Makefile | 2 | ||||
| -rw-r--r-- | drivers/net/phy/Makefile | 1 | ||||
| -rw-r--r-- | drivers/of/Makefile | 2 | ||||
| -rw-r--r-- | drivers/platform/Makefile | 1 | ||||
| -rw-r--r-- | drivers/scsi/Makefile | 2 | ||||
| -rw-r--r-- | drivers/thermal/Makefile | 1 | ||||
| -rw-r--r-- | drivers/usb/Makefile | 1 | ||||
| -rw-r--r-- | drivers/usb/gadget/Makefile | 2 |
13 files changed, 15 insertions, 2 deletions
diff --git a/drivers/base/Makefile b/drivers/base/Makefile index 154bd4a5e..aa6689653 100644 --- a/drivers/base/Makefile +++ b/drivers/base/Makefile @@ -1,4 +1,5 @@ # 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 ee4c06520..f57537760 100644 --- a/drivers/input/Makefile +++ b/drivers/input/Makefile @@ -3,6 +3,7 @@ # # 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 771180662..b774a8bc1 100644 --- a/drivers/md/Makefile +++ b/drivers/md/Makefile @@ -1,6 +1,7 @@ # # 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 aa50c4631..7ecccb36d 100644 --- a/drivers/media/v4l2-core/Makefile +++ b/drivers/media/v4l2-core/Makefile @@ -1,6 +1,7 @@ # # 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 400756ec7..2e3a1a514 100644 --- a/drivers/mmc/Makefile +++ b/drivers/mmc/Makefile @@ -1,6 +1,7 @@ # # 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 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 diff --git a/drivers/of/Makefile b/drivers/of/Makefile index 8098b4dd3..f08047219 100644 --- a/drivers/of/Makefile +++ b/drivers/of/Makefile @@ -1,3 +1,5 @@ +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 8a44a4cd6..7990aac1c 100644 --- a/drivers/platform/Makefile +++ b/drivers/platform/Makefile @@ -1,6 +1,7 @@ # # 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 b607ba4f5..4a470a086 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 082e607fb..874dab35e 100644 --- a/drivers/thermal/Makefile +++ b/drivers/thermal/Makefile @@ -1,6 +1,7 @@ # # 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 c41feba8d..f875e7456 100644 --- a/drivers/usb/Makefile +++ b/drivers/usb/Makefile @@ -3,6 +3,7 @@ # # 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 f21aa18f3..33f5dc9fd 100644 --- a/drivers/usb/gadget/Makefile +++ b/drivers/usb/gadget/Makefile @@ -1,6 +1,8 @@ # # USB peripheral controller drivers # +CFLAGS_KERNEL := -Wno-unused-label + ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG include $(srctree)/drivers/misc/mediatek/Makefile.custom |
