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/[email protected]
Signed-off-by: Joe Perches <[email protected]>
Cc: Dwaipayan Ray <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Joe Perches authored and Linus Torvalds committed 2020-12-15 22:46:17 -08:00
1 parent 7580c5b9b4
commit 0830aab0e1
1 file changed
+3 -1
+3 -1
View File
@@ -6200,6 +6200,7 @@ sub process {
$attr =~ s/\s*\(\s*(.*)\)\s*/$1/;
my %attr_list = (
"alias" => "__alias",
"aligned" => "__aligned",
"always_inline" => "__always_inline",
"assume_aligned" => "__assume_aligned",
@@ -6220,7 +6221,8 @@ sub process {
"packed" => "__packed",
"pure" => "__pure",
"section" => "__section",
"used" => "__used"
"used" => "__used",
"weak" => "__weak"
);
while ($attr =~ /\s*(\w+)\s*(${balanced_parens})?/g) {