2020-05-01 09:58:50 -05:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-05-03 09:03:51 -05:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-07 10:08:39 -06:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:33:55 -05:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-01 18:31:21 -06:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-23 14:06:10 +03:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
2022-04-14 13:48:07 -05:00
|
|
|
|
|
|
|
|
|
2024-10-23 14:06:10 +03:00
|
|
|
|
2022-04-14 13:48:07 -05:00
|
|
|
|
2022-10-20 15:12:30 +03:00
|
|
|
|
|
|
|
|
|
2024-10-23 14:06:10 +03:00
|
|
|
|
2022-10-20 15:12:30 +03:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
2024-10-23 14:06:10 +03:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
2022-04-14 13:48:08 -05:00
|
|
|
|
|
|
|
|
|
2024-10-23 14:06:10 +03:00
|
|
|
|
2022-04-14 13:48:08 -05:00
|
|
|
|
2019-10-08 11:44:38 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:33:56 -05:00
|
|
|
|
|
|
|
|
|
2024-10-23 14:06:10 +03:00
|
|
|
|
2022-04-21 11:33:56 -05:00
|
|
|
|
2022-04-14 13:48:08 -05:00
|
|
|
|
2022-04-21 11:33:55 -05:00
|
|
|
|
2020-08-21 14:56:00 -05:00
|
|
|
|
2019-10-08 11:44:38 -05:00
|
|
|
|
|
|
|
|
|
2020-08-21 14:56:00 -05:00
|
|
|
|
|
|
|
|
|
2022-04-14 13:48:08 -05:00
|
|
|
|
2020-08-21 14:56:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-10 19:27:05 +03:00
|
|
|
|
2020-08-21 14:56:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-02 10:21:49 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-24 22:04:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-18 16:27:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-10 11:16:50 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 16:47:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-21 14:56:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:33:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-07 10:08:39 -06:00
|
|
|
|
|
|
|
|
|
2021-11-19 17:13:27 -06:00
|
|
|
|
2022-04-21 11:33:55 -05:00
|
|
|
|
2020-01-07 10:08:39 -06:00
|
|
|
|
|
|
|
|
|
2021-02-08 17:18:53 -06:00
|
|
|
|
|
|
|
|
|
2020-01-07 10:08:39 -06:00
|
|
|
|
|
|
|
|
|
2022-04-21 11:33:55 -05:00
|
|
|
|
2020-01-07 10:08:39 -06:00
|
|
|
|
2022-09-19 13:44:29 +02:00
|
|
|
|
2020-01-07 10:08:39 -06:00
|
|
|
|
|
|
|
|
|
2023-10-20 14:59:53 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-07 10:08:39 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-01 18:31:21 -06:00
|
|
|
|
2019-10-25 17:41:22 -05:00
|
|
|
|
|
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
2019-07-02 16:24:27 +03:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
module: Convert symbol namespace to string literal
Clean up the existing export namespace code along the same lines of
commit 33def8498fdd ("treewide: Convert macro and uses of __section(foo)
to __section("foo")") and for the same reason, it is not desired for the
namespace argument to be a macro expansion itself.
Scripted using
git grep -l -e MODULE_IMPORT_NS -e EXPORT_SYMBOL_NS | while read file;
do
awk -i inplace '
/^#define EXPORT_SYMBOL_NS/ {
gsub(/__stringify\(ns\)/, "ns");
print;
next;
}
/^#define MODULE_IMPORT_NS/ {
gsub(/__stringify\(ns\)/, "ns");
print;
next;
}
/MODULE_IMPORT_NS/ {
$0 = gensub(/MODULE_IMPORT_NS\(([^)]*)\)/, "MODULE_IMPORT_NS(\"\\1\")", "g");
}
/EXPORT_SYMBOL_NS/ {
if ($0 ~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+),/) {
if ($0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/ &&
$0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(\)/ &&
$0 !~ /^my/) {
getline line;
gsub(/[[:space:]]*\\$/, "");
gsub(/[[:space:]]/, "", line);
$0 = $0 " " line;
}
$0 = gensub(/(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/,
"\\1(\\2, \"\\3\")", "g");
}
}
{ print }' $file;
done
Requested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://mail.google.com/mail/u/2/#inbox/FMfcgzQXKWgMmjdFwwdsfgxzKpVHWPlc
Acked-by: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-12-02 15:59:47 +01:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-08 11:44:38 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-22 09:13:42 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-01 18:31:21 -06:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
2023-11-29 14:53:20 +02:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-26 13:33:57 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-21 12:27:58 +03:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-09-12 17:32:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-21 12:27:59 +03:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
2022-04-14 13:48:06 -05:00
|
|
|
|
2023-11-29 14:53:24 +02:00
|
|
|
|
2022-04-14 13:48:07 -05:00
|
|
|
|
2022-04-21 11:33:56 -05:00
|
|
|
|
2023-11-29 14:53:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:33:56 -05:00
|
|
|
|
2023-11-29 14:53:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 11:33:56 -05:00
|
|
|
|
|
|
|
|
|
2023-11-29 14:53:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-14 13:48:07 -05:00
|
|
|
|
2023-11-29 14:53:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-14 13:48:07 -05:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
2022-04-14 13:48:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-29 14:53:24 +02:00
|
|
|
|
2022-04-14 13:48:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-11-29 14:53:24 +02:00
|
|
|
|
2023-11-29 14:53:20 +02:00
|
|
|
|
|
|
|
|
|
2021-04-09 15:09:59 -07:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
2021-04-09 15:09:59 -07:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
2022-04-26 21:25:39 +08:00
|
|
|
|
|
|
|
|
|
2021-04-09 15:09:59 -07:00
|
|
|
|
|
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module: Convert symbol namespace to string literal
Clean up the existing export namespace code along the same lines of
commit 33def8498fdd ("treewide: Convert macro and uses of __section(foo)
to __section("foo")") and for the same reason, it is not desired for the
namespace argument to be a macro expansion itself.
Scripted using
git grep -l -e MODULE_IMPORT_NS -e EXPORT_SYMBOL_NS | while read file;
do
awk -i inplace '
/^#define EXPORT_SYMBOL_NS/ {
gsub(/__stringify\(ns\)/, "ns");
print;
next;
}
/^#define MODULE_IMPORT_NS/ {
gsub(/__stringify\(ns\)/, "ns");
print;
next;
}
/MODULE_IMPORT_NS/ {
$0 = gensub(/MODULE_IMPORT_NS\(([^)]*)\)/, "MODULE_IMPORT_NS(\"\\1\")", "g");
}
/EXPORT_SYMBOL_NS/ {
if ($0 ~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+),/) {
if ($0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/ &&
$0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(\)/ &&
$0 !~ /^my/) {
getline line;
gsub(/[[:space:]]*\\$/, "");
gsub(/[[:space:]]/, "", line);
$0 = $0 " " line;
}
$0 = gensub(/(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/,
"\\1(\\2, \"\\3\")", "g");
}
}
{ print }' $file;
done
Requested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://mail.google.com/mail/u/2/#inbox/FMfcgzQXKWgMmjdFwwdsfgxzKpVHWPlc
Acked-by: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-12-02 15:59:47 +01:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
2021-03-01 18:31:21 -06:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-10 12:52:37 +02:00
|
|
|
|
|
|
|
|
|
2019-10-08 11:44:38 -05:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module: Convert symbol namespace to string literal
Clean up the existing export namespace code along the same lines of
commit 33def8498fdd ("treewide: Convert macro and uses of __section(foo)
to __section("foo")") and for the same reason, it is not desired for the
namespace argument to be a macro expansion itself.
Scripted using
git grep -l -e MODULE_IMPORT_NS -e EXPORT_SYMBOL_NS | while read file;
do
awk -i inplace '
/^#define EXPORT_SYMBOL_NS/ {
gsub(/__stringify\(ns\)/, "ns");
print;
next;
}
/^#define MODULE_IMPORT_NS/ {
gsub(/__stringify\(ns\)/, "ns");
print;
next;
}
/MODULE_IMPORT_NS/ {
$0 = gensub(/MODULE_IMPORT_NS\(([^)]*)\)/, "MODULE_IMPORT_NS(\"\\1\")", "g");
}
/EXPORT_SYMBOL_NS/ {
if ($0 ~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+),/) {
if ($0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/ &&
$0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(\)/ &&
$0 !~ /^my/) {
getline line;
gsub(/[[:space:]]*\\$/, "");
gsub(/[[:space:]]/, "", line);
$0 = $0 " " line;
}
$0 = gensub(/(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/,
"\\1(\\2, \"\\3\")", "g");
}
}
{ print }' $file;
done
Requested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://mail.google.com/mail/u/2/#inbox/FMfcgzQXKWgMmjdFwwdsfgxzKpVHWPlc
Acked-by: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-12-02 15:59:47 +01:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
2021-03-01 18:31:21 -06:00
|
|
|
|
2021-01-13 17:26:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module: Convert symbol namespace to string literal
Clean up the existing export namespace code along the same lines of
commit 33def8498fdd ("treewide: Convert macro and uses of __section(foo)
to __section("foo")") and for the same reason, it is not desired for the
namespace argument to be a macro expansion itself.
Scripted using
git grep -l -e MODULE_IMPORT_NS -e EXPORT_SYMBOL_NS | while read file;
do
awk -i inplace '
/^#define EXPORT_SYMBOL_NS/ {
gsub(/__stringify\(ns\)/, "ns");
print;
next;
}
/^#define MODULE_IMPORT_NS/ {
gsub(/__stringify\(ns\)/, "ns");
print;
next;
}
/MODULE_IMPORT_NS/ {
$0 = gensub(/MODULE_IMPORT_NS\(([^)]*)\)/, "MODULE_IMPORT_NS(\"\\1\")", "g");
}
/EXPORT_SYMBOL_NS/ {
if ($0 ~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+),/) {
if ($0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/ &&
$0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(\)/ &&
$0 !~ /^my/) {
getline line;
gsub(/[[:space:]]*\\$/, "");
gsub(/[[:space:]]/, "", line);
$0 = $0 " " line;
}
$0 = gensub(/(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/,
"\\1(\\2, \"\\3\")", "g");
}
}
{ print }' $file;
done
Requested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://mail.google.com/mail/u/2/#inbox/FMfcgzQXKWgMmjdFwwdsfgxzKpVHWPlc
Acked-by: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-12-02 15:59:47 +01:00
|
|
|
|
2019-04-12 11:09:00 -05:00
|
|
|
|
|
|
|
|
|
2024-05-27 14:44:14 -05:00
|
|
|
|