[qca-nss-clients] Add -Wall compiler flag to all clients

Signed-off-by: Murat Sezgin <msezgin@codeaurora.org>
Change-Id: Iba4c588fcb29518556fa6e56a78ef0914bcef9a2
diff --git a/Makefile b/Makefile
index 93727a2..b2815ba 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
 qca-nss-tun6rd-objs := nss_connmgr_tun6rd.o
 
 ccflags-y += -DNSS_TUN6RD_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 KERNELVERSION := $(word 1, $(subst ., ,$(KERNELVERSION))).$(word 2, $(subst ., ,$(KERNELVERSION)))
 
diff --git a/bridge/Makefile b/bridge/Makefile
index eae8f58..80cec23 100644
--- a/bridge/Makefile
+++ b/bridge/Makefile
@@ -9,7 +9,7 @@
 endif
 
 ccflags-y += -DNSS_BRIDGE_MGR_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64 ipq60xx ipq60xx_64))
 ccflags-y += -DNSS_BRIDGE_MGR_PPE_SUPPORT
diff --git a/capwapmgr/Makefile b/capwapmgr/Makefile
index fc7ee53..0e1450c 100644
--- a/capwapmgr/Makefile
+++ b/capwapmgr/Makefile
@@ -14,4 +14,4 @@
 ccflags-y += -DNSS_CAPWAPMGR_DEBUG_LEVEL=6
 
 ccflags-y += $(NSS_CCFLAGS) -DNSS_DEBUG_LEVEL=0 -DNSS_PKT_STATS_ENABLED=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
diff --git a/dtls/v2.0/Makefile b/dtls/v2.0/Makefile
index 22f1823..adf87de 100644
--- a/dtls/v2.0/Makefile
+++ b/dtls/v2.0/Makefile
@@ -3,7 +3,7 @@
 ccflags-y += $(NSS_CCFLAGS) -I$(obj)/../../exports
 ccflags-y += -DNSS_DTLSMGR_DEBUG_LEVEL=0
 ccflags-y += -DNSS_DTLSMGR_BUILD_ID=\"'Build_ID - $(shell date +'%m/%d/%y, %H:%M:%S') SoC=$(SoC)'\"
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-dtlsmgr.o
 qca-nss-dtlsmgr-objs += nss_dtlsmgr.o
diff --git a/gre/Makefile b/gre/Makefile
index 8d970a9..2642f98 100644
--- a/gre/Makefile
+++ b/gre/Makefile
@@ -1,7 +1,7 @@
 # Makefile for gre client
 ccflags-y += -I$(obj)/../../exports -I$(obj)/../..
 ccflags-y += -DNSS_GRE_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 obj-m += qca-nss-gre.o
 qca-nss-gre-objs := nss_connmgr_gre.o nss_connmgr_gre_v4.o nss_connmgr_gre_v6.o
 
diff --git a/gre/test/Makefile b/gre/test/Makefile
index fbba776..0cc6e5f 100644
--- a/gre/test/Makefile
+++ b/gre/test/Makefile
@@ -1,6 +1,6 @@
 # Makefile for custom gre test module
 ccflags-y += -I$(obj)/../../../exports -I$(obj)/../../.. -I$(obj)/../
 ccflags-y += -DNSS_GRE_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 obj-m +=  qca-nss-gre-test.o
 qca-nss-gre-test-objs := nss_connmgr_gre_test.o
diff --git a/ipsecmgr/v1.0/Makefile b/ipsecmgr/v1.0/Makefile
index b189927..5676f69 100644
--- a/ipsecmgr/v1.0/Makefile
+++ b/ipsecmgr/v1.0/Makefile
@@ -2,7 +2,7 @@
 
 ccflags-y := -I$(obj) -I$(obj)/../..
 ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 ifeq ($(SoC), fsm9010)
 	ccflags-y += -DNSS_IPSECMGR_PMTU_SUPPORT
 endif
diff --git a/ipsecmgr/v2.0/Makefile b/ipsecmgr/v2.0/Makefile
index 94f929c..4e5bd8f 100644
--- a/ipsecmgr/v2.0/Makefile
+++ b/ipsecmgr/v2.0/Makefile
@@ -2,7 +2,7 @@
 
 ccflags-y += $(NSS_CCFLAGS) -I$(obj)/../../exports
 ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-ipsecmgr.o
 qca-nss-ipsecmgr-objs := nss_ipsecmgr.o
diff --git a/ipsecmgr/v2.0/plugins/klips/Makefile b/ipsecmgr/v2.0/plugins/klips/Makefile
index 5f2b88f..28da146 100644
--- a/ipsecmgr/v2.0/plugins/klips/Makefile
+++ b/ipsecmgr/v2.0/plugins/klips/Makefile
@@ -10,7 +10,7 @@
 ccflags-y += -I$(obj)/
 ccflags-y += -DNSS_IPSEC_KLIPS_DEBUG_LEVEL=3
 ccflags-y += -DNSS_IPSEC_KLIPS_BUILD_ID="$(BUILD_ID)"
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64))
 ccflags-y += -DNSS_CFI_IPQ807X_SUPPORT
 endif
diff --git a/ipsecmgr/v2.0/plugins/xfrm/Makefile b/ipsecmgr/v2.0/plugins/xfrm/Makefile
index 0195771..b344da4 100644
--- a/ipsecmgr/v2.0/plugins/xfrm/Makefile
+++ b/ipsecmgr/v2.0/plugins/xfrm/Makefile
@@ -13,4 +13,4 @@
 ccflags-y += -I$(obj)/
 ccflags-y += -DNSS_IPSEC_XFRM_DEBUG_LEVEL=3
 ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
diff --git a/l2tp/l2tpv2/Makefile b/l2tp/l2tpv2/Makefile
index bd98d9e..b6076d3 100644
--- a/l2tp/l2tpv2/Makefile
+++ b/l2tp/l2tpv2/Makefile
@@ -1,7 +1,7 @@
 # Makefile for l2tp client
 ccflags-y += -I$(obj)/../../exports -I$(obj)/../..  -I$(obj)/nss_hal/include
 ccflags-y += -DNSS_L2TP_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 ifneq (,$(filter $(CONFIG_L2TP),m y))
 obj-m += qca-nss-l2tpv2.o
 qca-nss-l2tpv2-objs := nss_connmgr_l2tpv2.o nss_l2tpv2_stats.o
diff --git a/lag/Makefile b/lag/Makefile
index 993dc60..9286aab 100644
--- a/lag/Makefile
+++ b/lag/Makefile
@@ -7,7 +7,7 @@
 ccflags-y := -I$(obj) -I$(obj)/..
 ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
 ccflags-y += -DNSS_LAG_MGR_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-lag-mgr.o
 qca-nss-lag-mgr-objs := nss_lag.o
diff --git a/map/map-t/Makefile b/map/map-t/Makefile
index 26e5d69..d7fcd2c 100644
--- a/map/map-t/Makefile
+++ b/map/map-t/Makefile
@@ -1,7 +1,7 @@
 # Makefile for map-t client
 ccflags-y += -I$(obj)/../../exports -I$(obj)/../..  -I$(obj)/nss_hal/include
 ccflags-y += -DNSS_MAP_T_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 obj-m += qca-nss-map-t.o
 qca-nss-map-t-objs := nss_connmgr_map_t.o
 
diff --git a/mirror/Makefile b/mirror/Makefile
index 213f0b9..0a30795 100644
--- a/mirror/Makefile
+++ b/mirror/Makefile
@@ -2,7 +2,7 @@
 
 ccflags-y += $(NSS_CCFLAGS) -I$(obj)/../../exports
 ccflags-y += -DNSS_MIRROR_DEBUG_LEVEL=2
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-mirror.o
 qca-nss-mirror-objs := \
diff --git a/mscs/Makefile b/mscs/Makefile
index 73f3b2a..ea88e92 100644
--- a/mscs/Makefile
+++ b/mscs/Makefile
@@ -2,6 +2,6 @@
 ccflags-y += -I$(obj)/../exports -I$(obj)/..
 ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
 ccflags-y += -DNSS_MSCS_DEBUG_LEVEL=2
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 obj-m += qca-nss-mscs.o
 qca-nss-mscs-objs := nss_mscs.o
diff --git a/netlink/Makefile b/netlink/Makefile
index 244723a..bf51ecb 100644
--- a/netlink/Makefile
+++ b/netlink/Makefile
@@ -2,7 +2,7 @@
 IPSEC_ENABLED := $(strip $(if $(filter $(ipsecmgr), y), 1 , 0))
 DTLS_ENABLED := $(strip $(if $(filter $(dtlsmgr), y), 1 , 0))
 
-ccflags-y := -Werror
+ccflags-y := -Wall -Werror
 ccflags-y += -I$(obj)/include
 ccflags-y += -I$(obj)/../exports
 ccflags-y += -DNSS_NL_DEBUG_LEVEL=4
diff --git a/nss_qdisc/Makefile b/nss_qdisc/Makefile
index 74bee93..c3895b5 100644
--- a/nss_qdisc/Makefile
+++ b/nss_qdisc/Makefile
@@ -6,7 +6,7 @@
 ccflags-y += -DNSS_QDISC_PPE_SUPPORT -DNSS_QDISC_BRIDGE_SUPPORT
 endif
 
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-qdisc.o
 qca-nss-qdisc-objs := 	nss_qdisc.o \
diff --git a/nss_qdisc/igs/Makefile b/nss_qdisc/igs/Makefile
index eb5f574..19f6972 100644
--- a/nss_qdisc/igs/Makefile
+++ b/nss_qdisc/igs/Makefile
@@ -2,7 +2,7 @@
 
 ccflags-y += $(NSS_CCFLAGS) -I$(obj)/../../exports
 ccflags-y += -DNSS_IGS_DEBUG_LEVEL=2
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += act_nssmirred.o
 act_nssmirred-objs := \
diff --git a/openvpn/plugins/Makefile b/openvpn/plugins/Makefile
index d5189b8..ae03882 100644
--- a/openvpn/plugins/Makefile
+++ b/openvpn/plugins/Makefile
@@ -6,7 +6,7 @@
 ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
 ccflags-y += -DNSS_OVPNMGR_DEBUG_LEVEL=0
 ccflags-y += -DNSS_OVPN_LINK_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-ovpn-link.o
 qca-nss-ovpn-link-objs := nss_ovpn_link.o
diff --git a/openvpn/src/Makefile b/openvpn/src/Makefile
index 9e7c129..defe84d 100644
--- a/openvpn/src/Makefile
+++ b/openvpn/src/Makefile
@@ -3,7 +3,7 @@
 ccflags-y := $(NSS_CCFLAGS) -I$(obj) -I$(obj)/../../exports -I$(obj)/include -I$(obj)/../plugins
 ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
 ccflags-y += -DNSS_OVPNMGR_DEBUG_LEVEL=0 -DNSS_OVPNMGR_DEBUG_ENABLE_PKT_DUMP=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-ovpn-mgr.o
 qca-nss-ovpn-mgr-objs := nss_ovpnmgr.o nss_ovpnmgr_app.o nss_ovpnmgr_tun.o nss_ovpnmgr_crypto.o \
diff --git a/portifmgr/Makefile b/portifmgr/Makefile
index 4421b93..47a3fac 100644
--- a/portifmgr/Makefile
+++ b/portifmgr/Makefile
@@ -11,4 +11,4 @@
 qca-nss-portifmgr-objs := nss_portifmgr.o
 
 ccflags-y += -DNSS_PORTIFMGR_DEBUG_LEVEL=2 #-DNSS_PORTIFMGR_REF_AP148
-ccflags-y += -Werror
\ No newline at end of file
+ccflags-y += -Wall -Werror
diff --git a/pppoe/Makefile b/pppoe/Makefile
index 9c8d226..3ee05b7 100644
--- a/pppoe/Makefile
+++ b/pppoe/Makefile
@@ -1,7 +1,7 @@
 # Makefile for pppoe client
 ccflags-y += -I$(obj)/../exports -I$(obj)/..  -I$(obj)/nss_hal/include
 ccflags-y += -DNSS_PPPOE_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 obj-m += qca-nss-pppoe.o
 qca-nss-pppoe-objs := nss_connmgr_pppoe.o
 
diff --git a/pptp/Makefile b/pptp/Makefile
index 04bb41f..cf5dd62 100644
--- a/pptp/Makefile
+++ b/pptp/Makefile
@@ -1,6 +1,6 @@
 # Makefile for pptp client
 ccflags-y += -I$(obj)/../exports -I$(obj)/..  -I$(obj)/nss_hal/include
 ccflags-y += -DNSS_PPTP_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 obj-m += qca-nss-pptp.o
 qca-nss-pptp-objs := nss_connmgr_pptp.o
diff --git a/profiler/Makefile b/profiler/Makefile
index bdf8a7a..e58e737 100644
--- a/profiler/Makefile
+++ b/profiler/Makefile
@@ -1,5 +1,5 @@
 ccflags-y := -I$(obj) -I$(obj)/.. -I$(obj)/../exports -DNSS_DEBUG_LEVEL=0 #-DPROFILE_DEBUG
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-profile-drv.o
 qca-nss-profile-drv-objs := profile.o
diff --git a/tls/Makefile b/tls/Makefile
index 4372f50..53f9d60 100644
--- a/tls/Makefile
+++ b/tls/Makefile
@@ -4,7 +4,7 @@
 #ccflags-y += -DNSS_TLSMGR_DEBUG_DUMP
 ccflags-y += -DNSS_TLSMGR_DEBUG_LEVEL=3
 ccflags-y += -DNSS_TLSMGR_BUILD_ID=\"'Build_ID - $(shell date +'%m/%d/%y, %H:%M:%S') SoC=$(SoC)'\"
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 obj-m += qca-nss-tlsmgr.o
 qca-nss-tlsmgr-objs += nss_tlsmgr.o
diff --git a/tunipip6/Makefile b/tunipip6/Makefile
index 1500a9d..5f3a8e0 100644
--- a/tunipip6/Makefile
+++ b/tunipip6/Makefile
@@ -2,7 +2,7 @@
 ccflags-y += -I$(obj)/../exports -I$(obj)/..
 ccflags-y += -DNSS_CLIENT_BUILD_ID="$(BUILD_ID)"
 ccflags-y += -DNSS_TUNIPIP6_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 obj-m += qca-nss-tunipip6.o
 qca-nss-tunipip6-objs := nss_connmgr_tunipip6.o nss_connmgr_tunipip6_sysctl.o nss_connmgr_tunipip6_stats.o
 ifneq ($(findstring 4.4, $(KERNELVERSION)),)
diff --git a/vlan/Makefile b/vlan/Makefile
index adc47c2..7882c47 100644
--- a/vlan/Makefile
+++ b/vlan/Makefile
@@ -9,7 +9,7 @@
 endif
 
 ccflags-y += -DNSS_VLAN_MGR_DEBUG_LEVEL=0
-ccflags-y += -Werror
+ccflags-y += -Wall -Werror
 
 ifneq (,$(filter $(CONFIG_BONDING),y m))
 ccflags-y += -DBONDING_SUPPORT