X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fscripts%2Fcheckpatch.pl;h=a9c8e39b50d5f6d4c3be50053ecef7016ad9b52e;hb=2af5b97ba31fed7bab2d43b987f815629e1cd8f7;hp=7c67cd0699a75e24dc8c0f3606652ea65ac8fe82;hpb=38f8e5eefac748a30a4bf5e9d7a7313c8ae0e4e9;p=openocd diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 7c67cd06..a9c8e39b 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -3064,16 +3064,16 @@ sub process { } # Check for __attribute__ packed, prefer __packed - if ($line =~ /\b__attribute__\s*\(\s*\(.*\bpacked\b/) { - WARN("PREFER_PACKED", - "__packed is preferred over __attribute__((packed))\n" . $herecurr); - } +# if ($line =~ /\b__attribute__\s*\(\s*\(.*\bpacked\b/) { +# WARN("PREFER_PACKED", +# "__packed is preferred over __attribute__((packed))\n" . $herecurr); +# } # Check for __attribute__ aligned, prefer __aligned - if ($line =~ /\b__attribute__\s*\(\s*\(.*aligned/) { - WARN("PREFER_ALIGNED", - "__aligned(size) is preferred over __attribute__((aligned(size)))\n" . $herecurr); - } +# if ($line =~ /\b__attribute__\s*\(\s*\(.*aligned/) { +# WARN("PREFER_ALIGNED", +# "__aligned(size) is preferred over __attribute__((aligned(size)))\n" . $herecurr); +# } # check for sizeof(&) if ($line =~ /\bsizeof\s*\(\s*\&/) {