Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259023
b: refs/heads/master
c: 39b7e28
h: refs/heads/master
i:
  259021: 6929bd0
  259019: d24fadc
  259015: 631ecdc
  259007: 8838eee
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Jul 26, 2011
1 parent b712095 commit 77ff0dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2011247550c1b903a9ecd68f6eb3e9e7b7b07f52
refs/heads/master: 39b7e2878e783af027ddd3530f7a0abec330905d
5 changes: 5 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2891,6 +2891,11 @@ sub process {
WARN("__packed is preferred over __attribute__((packed))\n" . $herecurr);
}

# Check for __attribute__ aligned, prefer __aligned
if ($line =~ /\b__attribute__\s*\(\s*\(.*aligned/) {
WARN("__aligned(size) is preferred over __attribute__((aligned(size)))\n" . $herecurr);
}

# check for sizeof(&)
if ($line =~ /\bsizeof\s*\(\s*\&/) {
WARN("sizeof(& should be avoided\n" . $herecurr);
Expand Down

0 comments on commit 77ff0dd

Please sign in to comment.