History

Merge tag 'linux-kselftest-kunit-fixes-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest

Pull Kunit fixes from Shuah Khan: - Fixes to address the structleak plugin causing the stack frame size to grow immensely when used with KUnit. Fixes include adding a new makefile to disable structleak and using it from KUnit iio, device property, thunderbolt, and bitfield tests to disable it. - KUnit framework reference count leak in kfree_at_end - KUnit tool fix to resolve conflict between --json and --raw_output and generate correct test output in either case. - kernel-doc warnings due to mismatched arg names * tag 'linux-kselftest-kunit-fixes-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: kunit: fix kernel-doc warnings due to mismatched arg names bitfield: build kunit tests without structleak plugin thunderbolt: build kunit tests without structleak plugin device property: build kunit tests without structleak plugin iio/test-format: build kunit tests without structleak plugin gcc-plugins/structleak: add makefile var for disabling structleak kunit: fix reference count leak in kfree_at_end kunit: tool: better handling of quasi-bool args (--json, --raw_output)

Linus Torvalds committed 5 years ago

Commit fa587872 parents 459ea72 361b57d9 files · +43 −9Browse files

Showing the changes to scripts (1 of 9 files). Show all

Unified · Split

scripts/Makefile.gcc-plugins+4−0
@@ -19,6 +19,10 @@ gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF) \ · 18 unmodified lines
1919 += -fplugin-arg-structleak_plugin-byref
2020 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) \
2121 += -fplugin-arg-structleak_plugin-byref-all
22+ifdef CONFIG_GCC_PLUGIN_STRUCTLEAK
23+ DISABLE_STRUCTLEAK_PLUGIN += -fplugin-arg-structleak_plugin-disable
24+endif
25+export DISABLE_STRUCTLEAK_PLUGIN
2226 gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK) \
2327 += -DSTRUCTLEAK_PLUGIN
2428