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
1832
1832
# Misc
1833
1833
# ---------------------------------------------------------------------------
1834
1834
1835
- # Run misc checks when ${KBUILD_EXTRA_WARN} contains 1
1836
1835
PHONY += misc-check
1837
- ifneq ($(findstring 1,$(KBUILD_EXTRA_WARN ) ) ,)
1838
1836
misc-check :
1839
1837
$(Q )$(srctree ) /scripts/misc-check
1840
- endif
1841
1838
1842
1839
all : misc-check
1843
1840
Original file line number Diff line number Diff line change @@ -62,6 +62,15 @@ check_unnecessary_include_linux_export_h () {
62
62
xargs -r printf " %s: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present\n" >&2
63
63
}
64
64
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