Commit 0830aab0 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

checkpatch: add __alias and __weak to suggested __attribute__ conversions

Add __alias and __weak to the suggested __attribute__((<foo>))
conversions.

Link: https://lkml.kernel.org/r/7b74137743c58ce0633ec4d575b94e2210e4dbe7.camel@perches.comSigned-off-by: default avatarJoe Perches <joe@perches.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7580c5b9
...@@ -6200,6 +6200,7 @@ sub process { ...@@ -6200,6 +6200,7 @@ sub process {
$attr =~ s/\s*\(\s*(.*)\)\s*/$1/; $attr =~ s/\s*\(\s*(.*)\)\s*/$1/;
my %attr_list = ( my %attr_list = (
"alias" => "__alias",
"aligned" => "__aligned", "aligned" => "__aligned",
"always_inline" => "__always_inline", "always_inline" => "__always_inline",
"assume_aligned" => "__assume_aligned", "assume_aligned" => "__assume_aligned",
...@@ -6220,7 +6221,8 @@ sub process { ...@@ -6220,7 +6221,8 @@ sub process {
"packed" => "__packed", "packed" => "__packed",
"pure" => "__pure", "pure" => "__pure",
"section" => "__section", "section" => "__section",
"used" => "__used" "used" => "__used",
"weak" => "__weak"
); );
while ($attr =~ /\s*(\w+)\s*(${balanced_parens})?/g) { while ($attr =~ /\s*(\w+)\s*(${balanced_parens})?/g) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment