From 529a2e144e7f39939b5ebbaebd486642b44b9500 Mon Sep 17 00:00:00 2001 From: Peter Bigot Date: Fri, 30 Oct 2020 06:14:32 -0500 Subject: [PATCH] checkpatch: disable PREFER_SECTION Zephyr doesn't use the __section macro, so stop warnings like this from producing a compliance rejection. WARNING:PREFER_SECTION: __section(.device_) is preferred over __attribute__((section(".device_"))) #702: FILE: include/device.h:743: __attribute__((__section__(".device_" #level STRINGIFY(prio)))) Signed-off-by: Peter Bigot --- .checkpatch.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/.checkpatch.conf b/.checkpatch.conf index 54cfcdf9b52..7107b75c46e 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -11,6 +11,7 @@ --ignore VOLATILE --ignore CONFIG_EXPERIMENTAL --ignore PREFER_KERNEL_TYPES +--ignore PREFER_SECTION --ignore AVOID_EXTERNS --ignore NETWORKING_BLOCK_COMMENT_STYLE --ignore DATE_TIME