linux-stable/drivers/clk/meson
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
..
a1-peripherals.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
a1-peripherals.h clk: meson: a1: move bindings include to main driver 2023-08-08 16:06:17 +02:00
a1-pll.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
a1-pll.h clk: meson: a1: move bindings include to main driver 2023-08-08 16:06:17 +02:00
axg-aoclk.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
axg-audio.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
axg-audio.h clk: meson: axg-audio: add sm1 earcrx clocks 2024-07-29 16:47:00 +02:00
axg.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
axg.h clk: meson: eeclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
c3-peripherals.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
c3-pll.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
clk-cpu-dyndiv.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
clk-cpu-dyndiv.h clk: meson: add g12a cpu dynamic divider driver 2019-08-09 12:10:03 +02:00
clk-dualdiv.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
clk-dualdiv.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
clk-mpll.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
clk-mpll.h clk: meson: mpll: Delete a useless spinlock from the MPLL 2024-09-30 11:27:54 +02:00
clk-phase.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
clk-phase.h clk: meson: add sclk-ws driver 2020-08-17 15:58:02 +02:00
clk-pll.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
clk-pll.h clk: meson: Support PLL with fixed fractional denominators 2024-09-30 11:27:36 +02:00
clk-regmap.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
clk-regmap.h clk: define to_clk_regmap() as inline function 2020-10-28 16:34:44 -07:00
g12a-aoclk.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
g12a.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
g12a.h clk: meson: g12a: add MIPI ISP clocks 2023-11-24 18:08:48 +01:00
gxbb-aoclk.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gxbb.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gxbb.h clk: meson: eeclk: move bindings include to main driver 2023-08-08 16:06:17 +02:00
Kconfig clk: amlogic: axg-audio: fix Kconfig dependency on RESET_MESON_AUX 2024-11-14 12:33:10 -08:00
Makefile clk: meson: c3: add c3 clock peripherals controller driver 2024-06-04 10:38:32 +02:00
meson8-ddr.c clk: meson: add a driver for the Meson8/8b/8m2 DDR clock controller 2019-12-11 14:06:29 +01:00
meson8b.c clk: meson: meson8b: remove spinlock 2024-09-30 11:28:01 +02:00
meson8b.h clk: meson: meson8b: move bindings include to main driver 2023-08-08 16:06:17 +02:00
meson-aoclk.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
meson-aoclk.h clk: meson: migrate meson-aoclk out of hw_onecell_data to drop NR_CLKS 2023-08-08 16:06:16 +02:00
meson-clkc-utils.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
meson-clkc-utils.h clk: meson: introduce meson-clkc-utils 2023-08-08 16:06:16 +02:00
meson-eeclk.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
meson-eeclk.h clk: meson: migrate meson-eeclk out of hw_onecell_data to drop NR_CLKS 2023-08-08 16:06:16 +02:00
parm.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
s4-peripherals.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
s4-peripherals.h clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller 2023-09-27 11:01:03 +02:00
s4-pll.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
s4-pll.h clk: meson: S4: add support for Amlogic S4 SoC PLL clock driver 2023-09-27 10:54:24 +02:00
sclk-div.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
sclk-div.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00
vclk.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
vclk.h clk: meson: add vclk driver 2024-04-10 09:46:21 +02:00
vid-pll-div.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
vid-pll-div.h clk: meson: rework and clean drivers dependencies 2019-02-02 17:43:32 +01:00