aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-06-14 10:54:08 -0600
committerSimon Glass <sjg@chromium.org>2020-07-09 18:57:22 -0600
commit8af45b1f20f7f56a872297873f793655fe37f8e3 (patch)
treece002d14c6c8690a1369c573c3f932cf1524a34d /tools
parent5c430761e6a618032498fe294376a15a7ed1ee0b (diff)
downloadu-boot-8af45b1f20f7f56a872297873f793655fe37f8e3.zip
u-boot-8af45b1f20f7f56a872297873f793655fe37f8e3.tar.gz
u-boot-8af45b1f20f7f56a872297873f793655fe37f8e3.tar.bz2
checkpatch: Don't warn about PREFER_IF in headers/DT files
This warning should only be displayed for C files. Fix it and update the test. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/test_checkpatch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/test_checkpatch.py b/tools/patman/test_checkpatch.py
index 710b4a7..c9580ad 100644
--- a/tools/patman/test_checkpatch.py
+++ b/tools/patman/test_checkpatch.py
@@ -388,6 +388,8 @@ index 0000000..2234c87
"""Test for Use the livetree API"""
pm = PatchMaker()
pm.add_line('common/main.c', '#ifdef CONFIG_YELLOW')
+ pm.add_line('common/init.h', '#ifdef CONFIG_YELLOW')
+ pm.add_line('fred.dtsi', '#ifdef CONFIG_YELLOW')
self.checkSingleMessage(pm, "PREFER_IF")
def testCommandUseDefconfig(self):