File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -1832,12 +1832,9 @@ rustfmtcheck: rustfmt
18321832# Misc
18331833# ---------------------------------------------------------------------------
18341834
1835- # Run misc checks when ${KBUILD_EXTRA_WARN} contains 1
18361835PHONY += misc-check
1837- ifneq ($(findstring 1,$(KBUILD_EXTRA_WARN ) ) ,)
18381836misc-check :
18391837 $(Q )$(srctree ) /scripts/misc-check
1840- endif
18411838
18421839all : misc-check
18431840
Original file line number Diff line number Diff line change @@ -62,6 +62,15 @@ check_unnecessary_include_linux_export_h () {
6262 xargs -r printf " %s: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present\n" >&2
6363}
6464
65- check_tracked_ignored_files
66- check_missing_include_linux_export_h
67- check_unnecessary_include_linux_export_h
65+ case " ${KBUILD_EXTRA_WARN} " in
66+ * 1* )
67+ check_tracked_ignored_files
68+ ;;
69+ esac
70+
71+ case " ${KBUILD_EXTRA_WARN} " in
72+ * 2* )
73+ check_missing_include_linux_export_h
74+ check_unnecessary_include_linux_export_h
75+ ;;
76+ esac
You can’t perform that action at this time.
0 commit comments