treewide: Remove unknown warning build flags
authorStricted <info@stricted.net>
Sat, 19 Jun 2021 22:46:42 +0000 (22:46 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 3 Jul 2021 01:02:25 +0000 (21:02 -0400)
Change-Id: Ia6ebfc9a9438a0aff23a58fbb660b4e10f144db4

drivers/amlogic/Makefile
drivers/amlogic/dvb/demux/Makefile
sound/soc/amlogic/Makefile
sound/soc/codecs/amlogic/Makefile

index 12cf946e428e0e2ec107c12fa9574405011fd777..aa16ec4c3002702a42a5f4c1b16a4c1f034b4f9c 100644 (file)
@@ -7,18 +7,12 @@
 ## Do not change.
 ##########################################
 
-ifndef CONFIG_KASAN
-KBUILD_CFLAGS += -Wlarger-than=28792
-KBUILD_CFLAGS += -Wstack-usage=1956
-else
+ifdef CONFIG_KASAN
 ifeq ($(call cc-ifversion, -lt, 0500, y), y)
     $(error -----GCC VERSION TOO SMALL FOR KASAN -----)
 endif
 endif
 
-# These 2 marked sentence is just for generate warning messages
-#KBUILD_CFLAGS += -Wno-error=larger-than=28792
-#KBUILD_CFLAGS += -Wno-error=stack-usage=1856
 
 obj-$(CONFIG_CPU_FREQ)         += cpufreq/
 
index 5eac33aff3b2099d37da1453771a953ed2e8952f..6cced9990e52bf1ead5e9ef52599dd9f3c20992c 100644 (file)
@@ -4,8 +4,8 @@
 
 obj-$(CONFIG_AMLOGIC_DVB_DMX) += dvb_demux.o
 
-#ccflags-y += -I$(srctree)/drivers/media/dvb-core -I$(srctree)/drivers/gpio -I$(srctree)/include -fno-tree-scev-cprop
-ccflags-y += -I$(srctree)/drivers/media/dvb-core -fno-tree-scev-cprop
+#ccflags-y += -I$(srctree)/drivers/media/dvb-core -I$(srctree)/drivers/gpio -I$(srctree)/include
+ccflags-y += -I$(srctree)/drivers/media/dvb-core
 
 dvb_demux-objs += aml_dvb.o
 dvb_demux-objs += aml_dsc.o
index 98e8bf6bcc6bc4ec8f42f3f252179c35a236760b..db841bb1fa18fe42d2b9ccc3b2e91c58e7b0e51f 100644 (file)
@@ -1,6 +1,3 @@
-KBUILD_CFLAGS += -Wlarger-than=28792
-KBUILD_CFLAGS += -Wstack-usage=1856
-
 obj-$(CONFIG_AMLOGIC_SND_SOC)   += meson/
 obj-$(CONFIG_AMLOGIC_SND_SOC)   += auge/
 obj-$(CONFIG_AMLOGIC_SND_SOC)   += common/
index 348a63471f87182ef47a97194e041c09df996743..d616a3696f29d22e0e3a44a33f58d66357899a2b 100644 (file)
@@ -1,6 +1,3 @@
-KBUILD_CFLAGS += -Wlarger-than=28792
-KBUILD_CFLAGS += -Wstack-usage=1856
-
 #Amlogic
 snd-soc-dummy_codec-objs := dummy_codec.o
 snd-soc-pdm-dummy-objs := pdm_dummy.o