aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-02-02 11:16:39 +0000
committerSpencer Oliver <spen@spen-soft.co.uk>2012-02-06 10:57:55 +0000
commit2af5b97ba31fed7bab2d43b987f815629e1cd8f7 (patch)
tree93d8ef0d64529a77e9a3274c59164733e06e9a03 /tools
parent38f8e5eefac748a30a4bf5e9d7a7313c8ae0e4e9 (diff)
downloadriscv-openocd-2af5b97ba31fed7bab2d43b987f815629e1cd8f7.zip
riscv-openocd-2af5b97ba31fed7bab2d43b987f815629e1cd8f7.tar.gz
riscv-openocd-2af5b97ba31fed7bab2d43b987f815629e1cd8f7.tar.bz2
checkpatch: remove __packed and __aligned checks
These checks are specific to linux kernel. Change-Id: Ia9b837b5609922a897822f1d55f96f04c0f1f838 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/424 Tested-by: jenkins
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scripts/checkpatch.pl16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl
index 7c67cd0..a9c8e39 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*\&/) {