linux/Documentation/translations/it_IT
Peter Zijlstra cdd30ebb1b module: Convert symbol namespace to string literal
Clean up the existing export namespace code along the same lines of
commit 33def8498f ("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 11:34:44 -08:00
..
admin-guide doc:it_IT: align Italian documentation 2024-05-02 09:38:24 -06:00
arch/riscv doc:it_IT: align Italian documentation 2024-05-30 13:40:25 -06:00
core-api module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
dev-tools doc:it_IT: update documents in process/ 2024-10-14 10:00:42 -06:00
devicetree/bindings doc:it_IT: align Italian documentation 2022-07-28 09:34:27 -06:00
doc-guide doc:it_IT: align Italian documentation 2024-05-30 13:40:25 -06:00
i2c doc:it_IT: update I2C summary 2024-10-14 09:50:30 -06:00
kernel-hacking doc:it_IT: fix some typos 2023-04-26 12:42:08 -06:00
locking doc:it_IT: first translation for locking/ 2024-01-30 13:32:00 -07:00
maintainer doc:it_IT: align Italian documentation 2022-07-28 09:34:27 -06:00
process docs: remove Documentation/dontdiff 2024-10-24 12:37:12 -06:00
RCU doc:it_IT: fix a typo in the config name in RCU torture 2024-02-12 16:42:13 -07:00
staging doc:it_IT: update documents in process/ 2024-10-14 10:00:42 -06:00
disclaimer-ita.rst doc: add translation disclaimer 2019-03-18 11:40:22 -06:00
index.rst doc:it_IT: update documents in process/ 2024-10-14 10:00:42 -06:00
subsystem-apis.rst doc:it_IT: add translation for I2C summary and protocol 2024-02-14 15:25:47 -07:00