diff options
author | Dan Williams <dan.j.williams@intel.com> | 2024-01-17 00:17:23 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2024-01-22 21:41:59 +0300 |
commit | c97dac57c804b53eab492ca0230d86356729d633 (patch) | |
tree | 638a6997bfef9f66126a8718fad1a150f49c38ee /tools/testing/nvdimm | |
parent | 68deb9972079c9904fe714c049a7f08bd997a9ee (diff) | |
download | linux-c97dac57c804b53eab492ca0230d86356729d633.tar.xz |
tools/testing/nvdimm: Disable "missing prototypes / declarations" warnings
Prevent warnings of the form:
tools/testing/nvdimm/config_check.c:4:6: error: no previous prototype
for ‘check’ [-Werror=missing-prototypes]
...by locally disabling some warnings.
It turns out that:
Commit 0fcb70851fbf ("Makefile.extrawarn: turn on missing-prototypes globally")
...in addition to expanding in-tree coverage, also impacts out-of-tree
module builds like those in tools/testing/nvdimm/.
Filter out the warning options on unit test code that does not effect
mainline builds.
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://lore.kernel.org/r/170543984331.460832.1780246477583036191.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm')
-rw-r--r-- | tools/testing/nvdimm/Kbuild | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/nvdimm/Kbuild b/tools/testing/nvdimm/Kbuild index 8153251ea389..91a3627f301a 100644 --- a/tools/testing/nvdimm/Kbuild +++ b/tools/testing/nvdimm/Kbuild @@ -82,4 +82,6 @@ libnvdimm-$(CONFIG_NVDIMM_KEYS) += $(NVDIMM_SRC)/security.o libnvdimm-y += libnvdimm_test.o libnvdimm-y += config_check.o +KBUILD_CFLAGS := $(filter-out -Wmissing-prototypes -Wmissing-declarations, $(KBUILD_CFLAGS)) + obj-m += test/ |