[qca-nss-clients] Added -Werror flag to makefiles
Added -Werror flag to the Makefiles. No errors found
Change-Id: I6f81acb8c2dbefd1fbb58708bb05fc11a8192fb4
Signed-off-by: Gaurao Chaudhari <gaurchau@codeaurora.org>
diff --git a/Makefile b/Makefile
index e222dd4..50fb36e 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@
ccflags-y += -DNSS_TUN6RD_DEBUG_LEVEL=0
ccflags-y += -DNSS_TUNIPIP6_DEBUG_LEVEL=0
+ccflags-y += -Werror
obj-$(bridge-mgr)+= bridge/
obj-$(capwapmgr)+= capwapmgr/
diff --git a/bridge/Makefile b/bridge/Makefile
index 746db7e..376ef0e 100644
--- a/bridge/Makefile
+++ b/bridge/Makefile
@@ -5,6 +5,7 @@
qca-nss-bridge-mgr-objs := nss_bridge_mgr.o
ccflags-y += -DNSS_BRIDGE_MGR_DEBUG_LEVEL=0
+ccflags-y += -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 ffae24d..60bbeb7 100644
--- a/capwapmgr/Makefile
+++ b/capwapmgr/Makefile
@@ -14,3 +14,4 @@
ccflags-y += -DNSS_CAPWAPMGR_ONE_NETDEV -DNSS_CAPWAPMGR_DEBUG_LEVEL=6
ccflags-y += $(NSS_CCFLAGS) -DNSS_DEBUG_LEVEL=0 -DNSS_PKT_STATS_ENABLED=0
+ccflags-y += -Werror
\ No newline at end of file
diff --git a/dtls/v2.0/Makefile b/dtls/v2.0/Makefile
index 2785ba1..22f1823 100644
--- a/dtls/v2.0/Makefile
+++ b/dtls/v2.0/Makefile
@@ -3,6 +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
obj-m += qca-nss-dtlsmgr.o
qca-nss-dtlsmgr-objs += nss_dtlsmgr.o
diff --git a/gre/Makefile b/gre/Makefile
index 3b44801..8d970a9 100644
--- a/gre/Makefile
+++ b/gre/Makefile
@@ -1,6 +1,7 @@
# Makefile for gre client
ccflags-y += -I$(obj)/../../exports -I$(obj)/../..
ccflags-y += -DNSS_GRE_DEBUG_LEVEL=0
+ccflags-y += -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/nss_connmgr_gre_v4.c b/gre/nss_connmgr_gre_v4.c
index 3d21423..29873da 100644
--- a/gre/nss_connmgr_gre_v4.c
+++ b/gre/nss_connmgr_gre_v4.c
@@ -43,7 +43,7 @@
{
struct rtable *rt;
struct net_device *dev;
- uint32_t ip_addr = ntohl(dest_ip);
+ uint32_t ip_addr __attribute__ ((unused)) = ntohl(dest_ip);
rt = ip_route_output(&init_net, htonl(dest_ip), 0, 0, 0);
if (IS_ERR(rt)) {
diff --git a/gre/test/Makefile b/gre/test/Makefile
index 2dd7676..fbba776 100644
--- a/gre/test/Makefile
+++ b/gre/test/Makefile
@@ -1,5 +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
obj-m += qca-nss-gre-test.o
qca-nss-gre-test-objs := nss_connmgr_gre_test.o
diff --git a/gre/test/nss_connmgr_gre_test.c b/gre/test/nss_connmgr_gre_test.c
index f5da1fe..8e3974d 100644
--- a/gre/test/nss_connmgr_gre_test.c
+++ b/gre/test/nss_connmgr_gre_test.c
@@ -105,7 +105,7 @@
* nss_connmgr_gre_test_write_proc()
* Write call back for proc entry.
*/
-static int nss_connmgr_gre_test_write_proc(struct file *file, const char __user *buf, size_t count, loff_t *offset)
+static ssize_t nss_connmgr_gre_test_write_proc(struct file *file, const char __user *buf, size_t count, loff_t *offset)
{
char *token;
struct net_device *dev;
diff --git a/ipsecmgr/v2.0/plugins/klips/Makefile b/ipsecmgr/v2.0/plugins/klips/Makefile
index b8fa624..3a3baff 100644
--- a/ipsecmgr/v2.0/plugins/klips/Makefile
+++ b/ipsecmgr/v2.0/plugins/klips/Makefile
@@ -10,6 +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
ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64))
ccflags-y += -DNSS_CFI_IPQ807X_SUPPORT
endif
diff --git a/l2tp/l2tpv2/Makefile b/l2tp/l2tpv2/Makefile
index bd50f19..bd98d9e 100644
--- a/l2tp/l2tpv2/Makefile
+++ b/l2tp/l2tpv2/Makefile
@@ -1,6 +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
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 ce05fb0..993dc60 100644
--- a/lag/Makefile
+++ b/lag/Makefile
@@ -7,6 +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
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 44c6621..26e5d69 100644
--- a/map/map-t/Makefile
+++ b/map/map-t/Makefile
@@ -1,6 +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
obj-m += qca-nss-map-t.o
qca-nss-map-t-objs := nss_connmgr_map_t.o
diff --git a/nss_qdisc/Makefile b/nss_qdisc/Makefile
index 7a04ca9..9a2ddfe 100644
--- a/nss_qdisc/Makefile
+++ b/nss_qdisc/Makefile
@@ -6,6 +6,8 @@
ccflags-y += -DNSS_QDISC_PPE_SUPPORT -DNSS_QDISC_BRIDGE_SUPPORT
endif
+ccflags-y += -Werror
+
obj-m += qca-nss-qdisc.o
qca-nss-qdisc-objs := nss_qdisc.o \
nss_fifo.o \
diff --git a/openvpn/plugins/Makefile b/openvpn/plugins/Makefile
index 43f1819..e3ec2d5 100644
--- a/openvpn/plugins/Makefile
+++ b/openvpn/plugins/Makefile
@@ -5,6 +5,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
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 50cb8d1..9e7c129 100644
--- a/openvpn/src/Makefile
+++ b/openvpn/src/Makefile
@@ -3,6 +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
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 5aa8df3..4421b93 100644
--- a/portifmgr/Makefile
+++ b/portifmgr/Makefile
@@ -11,3 +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
diff --git a/pppoe/Makefile b/pppoe/Makefile
index 5c499d4..8ec1f67 100644
--- a/pppoe/Makefile
+++ b/pppoe/Makefile
@@ -1,5 +1,6 @@
# 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
obj-m += qca-nss-pppoe.o
qca-nss-pppoe-objs := nss_connmgr_pppoe.o
diff --git a/pptp/Makefile b/pptp/Makefile
index c03943f..04bb41f 100644
--- a/pptp/Makefile
+++ b/pptp/Makefile
@@ -1,5 +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
obj-m += qca-nss-pptp.o
qca-nss-pptp-objs := nss_connmgr_pptp.o
diff --git a/vlan/Makefile b/vlan/Makefile
index 8f97a1a..8665e5c 100644
--- a/vlan/Makefile
+++ b/vlan/Makefile
@@ -9,3 +9,4 @@
endif
ccflags-y += -DNSS_VLAN_MGR_DEBUG_LEVEL=0
+ccflags-y += -Werror
\ No newline at end of file