From 21e01edc63cc84dc6b90cbc1d85841d3d33f332e Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Fri, 5 Jul 2013 19:25:23 -0700 Subject: [PATCH] [Stylecheck] We actually prefer __attribute__. --- scripts/checkpatch.pl | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3bf48c16..022db048 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3342,18 +3342,6 @@ sub process { "plain inline is preferred over $1\n" . $herecurr); } -# 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); - } - -# 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); - } - # Check for __attribute__ format(printf, prefer __printf if ($line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf/) { WARN("PREFER_PRINTF",