]> www.infradead.org Git - users/dwmw2/linux.git/commit
scripts/nsdeps: get 'make nsdeps' working again
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 3 Dec 2024 10:21:05 +0000 (19:21 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 3 Dec 2024 16:22:25 +0000 (08:22 -0800)
commit62aa6f2ede976dfb3539e59ee55c62cfd3c3faa3
tree87194ea3397a0cbb41c0436c7eb6307265295f38
parentcdd30ebb1b9f36159d66f088b61aee264e649d7a
scripts/nsdeps: get 'make nsdeps' working again

Since commit cdd30ebb1b9f ("module: Convert symbol namespace to string
literal"), when MODULE_IMPORT_NS() is missing, 'make nsdeps' inserts
pointless code:

    MODULE_IMPORT_NS("ns");

Here, "ns" is not a namespace, but the variable in the semantic patch.
It must not be quoted. Instead, a string literal must be passed to
Coccinelle.

Fixes: cdd30ebb1b9f ("module: Convert symbol namespace to string literal")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/coccinelle/misc/add_namespace.cocci
scripts/nsdeps