milos-linux/drivers/clk/sunxi-ng
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
..
ccu-sun4i-a10.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun4i-a10.h
ccu-sun5i.c clk: sunxi-ng: Constify struct ccu_reset_map 2024-10-25 23:35:49 +08:00
ccu-sun5i.h
ccu-sun6i-a31.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun6i-a31.h
ccu-sun6i-rtc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun6i-rtc.h
ccu-sun8i-a23-a33.h
ccu-sun8i-a23.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun8i-a33.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun8i-a83t.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun8i-a83t.h
ccu-sun8i-de2.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun8i-de2.h
ccu-sun8i-h3.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun8i-h3.h
ccu-sun8i-r.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun8i-r.h
ccu-sun8i-r40.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun8i-r40.h
ccu-sun8i-v3s.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun8i-v3s.h clk: sunxi-ng: v3s: Correct the header guard of ccu-sun8i-v3s.h 2022-11-16 19:45:53 +01:00
ccu-sun9i-a80-de.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun9i-a80-de.h
ccu-sun9i-a80-usb.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun9i-a80-usb.h
ccu-sun9i-a80.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun9i-a80.h
ccu-sun20i-d1-r.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun20i-d1-r.h
ccu-sun20i-d1.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun20i-d1.h clk: sunxi-ng: d1: Add CAN bus gates and resets 2023-01-08 22:06:10 +01:00
ccu-sun50i-a64.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun50i-a64.h
ccu-sun50i-a100-r.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun50i-a100-r.h
ccu-sun50i-a100.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun50i-a100.h
ccu-sun50i-h6-r.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun50i-h6-r.h
ccu-sun50i-h6.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun50i-h6.h
ccu-sun50i-h616.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-sun50i-h616.h clk: sunxi-ng: h616: Add clock/reset for GPADC 2024-06-22 20:09:20 +08:00
ccu-suniv-f1c100s.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu-suniv-f1c100s.h clk: sunxi-ng: f1c100s: Add IR mod clock 2022-11-16 19:49:18 +01:00
ccu_common.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_common.h clk: sunxi-ng: Constify struct ccu_reset_map 2024-10-25 23:35:49 +08:00
ccu_div.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_div.h clk: sunxi-ng: div: Support finding closest rate 2023-08-09 23:33:59 +08:00
ccu_frac.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_frac.h
ccu_gate.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_gate.h
ccu_mmc_timing.c clk: sunxi-ng: Modify mismatched function name 2023-07-31 00:52:36 +02:00
ccu_mp.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_mp.h
ccu_mult.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_mult.h
ccu_mux.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_mux.h clk: sunxi-ng: mux: Support finding closest rate 2023-08-09 23:33:59 +08:00
ccu_nk.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_nk.h
ccu_nkm.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_nkm.h clk: sunxi-ng: nkm: Support constraints on m/n ratio and parent rate 2024-04-15 23:23:09 +02:00
ccu_nkmp.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_nkmp.h
ccu_nm.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_nm.h clk: sunxi-ng: nm: Support finding closest rate 2023-08-09 23:33:58 +08:00
ccu_phase.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_phase.h
ccu_reset.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_reset.h clk: sunxi-ng: Constify struct ccu_reset_map 2024-10-25 23:35:49 +08:00
ccu_sdm.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ccu_sdm.h
Kconfig clk: sunxi-ng: d1: Allow building for R528/T113 2023-01-08 22:06:10 +01:00
Makefile