File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6050,6 +6050,7 @@ sub process {
6050
6050
6051
6051
# Check for __attribute__ aligned, prefer __aligned
6052
6052
if ($realfile !~ m @\b include/uapi/@ &&
6053
+ $realfile !~ m @\b include/zephyr/toolchain@ &&
6053
6054
$line =~ / \b __attribute__\s *\(\s *\( .*aligned/ ) {
6054
6055
WARN(" PREFER_ALIGNED" ,
6055
6056
" __aligned(size) is preferred over __attribute__((aligned(size)))\n " . $herecurr );
@@ -6565,9 +6566,10 @@ sub process {
6565
6566
}
6566
6567
6567
6568
# check for uses of __BYTE_ORDER__
6568
- while ($line =~ / \b (__BYTE_ORDER__)\b /g ) {
6569
- ERROR(" BYTE_ORDER" ,
6570
- " Use of the '$1 ' macro is disallowed. Use CONFIG_(BIG|LITTLE)_ENDIAN instead\n " . $herecurr );
6569
+ while ($realfile !~ m @ ^include/zephyr/toolchain@ &&
6570
+ $line =~ / \b (__BYTE_ORDER__)\b /g ) {
6571
+ ERROR(" BYTE_ORDER" ,
6572
+ " Use of the '$1 ' macro is disallowed. Use CONFIG_(BIG|LITTLE)_ENDIAN instead\n " . $herecurr );
6571
6573
}
6572
6574
6573
6575
# check for use of yield()
You can’t perform that action at this time.
0 commit comments