summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/conf/files2
-rw-r--r--sys/modules/mlx4/Makefile3
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 1e4287e..194a1c7 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -3548,7 +3548,7 @@ ofed/drivers/infiniband/hw/mlx4/alias_GUID.c optional mlx4ib \
compile-with "${OFED_C_NOIMP} -I$S/ofed/drivers/infiniband/hw/mlx4/"
ofed/drivers/infiniband/hw/mlx4/mcg.c optional mlx4ib \
no-depend obj-prefix "mlx4ib_" \
- compile-with "${OFED_C_NOIMP} -I$S/ofed/drivers/infiniband/hw/mlx4/"
+ compile-with "${OFED_C_NOIMP} -I$S/ofed/drivers/infiniband/hw/mlx4/ -Wno-unused"
ofed/drivers/infiniband/hw/mlx4/sysfs.c optional mlx4ib \
no-depend obj-prefix "mlx4ib_" \
compile-with "${OFED_C_NOIMP} -I$S/ofed/drivers/infiniband/hw/mlx4/"
diff --git a/sys/modules/mlx4/Makefile b/sys/modules/mlx4/Makefile
index e6f20a7..02ee176 100644
--- a/sys/modules/mlx4/Makefile
+++ b/sys/modules/mlx4/Makefile
@@ -27,3 +27,6 @@ opt_inet6.h:
.include <bsd.kmod.mk>
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
+
+CWARNFLAGS.mcg.c= -Wno-unused
+CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
OpenPOWER on IntegriCloud