clear-pkgs-linux-iot-lts2018/0556-vhm-enable-Werror-whil...

55 lines
1.8 KiB
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2018-10-11 02:06:46 +08:00
From: Wei Liu <weix.w.liu@intel.com>
Date: Thu, 20 Sep 2018 10:16:56 +0800
Subject: [PATCH] vhm: enable -Werror while compiling vhm/vbs/hyper-dmabuf
2018-10-11 02:06:46 +08:00
Sometimes warnings are caused by the potential errors,
in order to add the strict check, the warnings will be
treated as error and should be fixed.
Tracked-On: https://github.com/projectacrn/acrn-hypervisor/issues/1300
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
---
drivers/acrn/Makefile | 1 +
drivers/char/vhm/Makefile | 1 +
drivers/vbs/Makefile | 1 +
drivers/vhm/Makefile | 1 +
4 files changed, 4 insertions(+)
diff --git a/drivers/acrn/Makefile b/drivers/acrn/Makefile
2020-05-05 09:02:46 +08:00
index d0e14f43b..dad6a9e8c 100644
2018-10-11 02:06:46 +08:00
--- a/drivers/acrn/Makefile
+++ b/drivers/acrn/Makefile
@@ -1,3 +1,4 @@
+subdir-ccflags-$(CONFIG_ACRN) := -Werror
obj-$(CONFIG_ACRN_SHARED_BUFFER) += sbuf.o
obj-$(CONFIG_ACRN_TRACE) += acrn_trace.o
obj-$(CONFIG_ACRN_HVLOG) += acrn_hvlog.o
diff --git a/drivers/char/vhm/Makefile b/drivers/char/vhm/Makefile
2020-05-05 09:02:46 +08:00
index cb801c70a..5ee68c5f7 100644
2018-10-11 02:06:46 +08:00
--- a/drivers/char/vhm/Makefile
+++ b/drivers/char/vhm/Makefile
@@ -1 +1,2 @@
+subdir-ccflags-$(CONFIG_ACRN_VHM) := -Werror
obj-y += vhm_dev.o
diff --git a/drivers/vbs/Makefile b/drivers/vbs/Makefile
2020-05-05 09:02:46 +08:00
index 85e1cc252..a6734db96 100644
2018-10-11 02:06:46 +08:00
--- a/drivers/vbs/Makefile
+++ b/drivers/vbs/Makefile
@@ -1,3 +1,4 @@
+subdir-ccflags-$(CONFIG_VBS) := -Werror
ccflags-$(CONFIG_VBS_DEBUG) := -DDEBUG
obj-$(CONFIG_VBS) += vbs.o
diff --git a/drivers/vhm/Makefile b/drivers/vhm/Makefile
2020-05-05 09:02:46 +08:00
index 23f17ae24..c3bce347f 100644
2018-10-11 02:06:46 +08:00
--- a/drivers/vhm/Makefile
+++ b/drivers/vhm/Makefile
@@ -1 +1,2 @@
+subdir-ccflags-$(CONFIG_ACRN_VHM) := -Werror
obj-y += vhm_mm.o vhm_hugetlb.o vhm_ioreq.o vhm_vm_mngt.o vhm_msi.o vhm_hypercall.o
--
https://clearlinux.org
2018-10-11 02:06:46 +08:00