linux/drivers/hwmon/pmbus
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
..
acbel-fsg032.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adm1266.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adm1275.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adp1050.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bel-pfe.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bpa-rs600.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
delta-ahe50dc-fan.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
dps920ab.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
fsp-3y.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ibm-cffps.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
inspur-ipsps.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ir35221.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ir36021.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ir38064.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
irps5401.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
isl68137.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
Kconfig hwmon: (pmbus/ltc2978) add support for ltc7841 2024-11-10 14:48:07 -08:00
lm25066.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
lt7182s.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ltc2978.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ltc3815.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ltc4286.c hwmon: (pmbus/ltc4286) Drop unused i2c device ids 2024-07-10 07:11:34 -07:00
Makefile hwmon: add MP5920 driver 2024-07-02 12:36:31 -07:00
max8688.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max15301.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max16064.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max16601.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max20730.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max20751.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max31785.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
max34440.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp2856.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp2888.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp2891.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp2975.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp2993.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp5023.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp5920.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp5990.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mp9941.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mpq7932.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mpq8785.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
pim4328.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
pli1209bc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
pm6764tr.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
pmbus_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
pmbus.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
pmbus.h hwmon updates for v6.12 2024-09-18 12:40:48 +02:00
pxe1610.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
q54sj108a2.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
stpddc60.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
tda38640.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
tps546d24.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
tps40422.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
tps53679.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ucd9000.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ucd9200.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
xdp710.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
xdpe152c4.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
xdpe12284.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
zl6100.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00