mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
checkpatch.pl: Update CONFIG logic in U-Boot section
Now that all CONFIG symbols are in Kconfig, checkpatch.pl should check for and error on any case of define/undef CONFIG_*. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -396,7 +396,7 @@ index 0000000..2234c87
|
||||
"""Test for enabling/disabling commands using preprocesor"""
|
||||
pm = PatchMaker()
|
||||
pm.add_line('common/main.c', '#undef CONFIG_CMD_WHICH')
|
||||
self.check_single_message(pm, 'DEFINE_CONFIG_CMD', 'error')
|
||||
self.check_single_message(pm, 'DEFINE_CONFIG_SYM', 'error')
|
||||
|
||||
def test_barred_include_in_hdr(self):
|
||||
"""Test for using a barred include in a header file"""
|
||||
|
||||
Reference in New Issue
Block a user