linux-next/drivers/soundwire
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
..
amd_init.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
amd_init.h soundwire: amd: use inline function for register update 2024-03-28 23:39:50 +05:30
amd_manager.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
amd_manager.h soundwire: amd: refactor existing code for acp 6.3 platform 2024-10-03 12:44:41 +05:30
bus_type.c soundwire: bus: clean up probe warnings 2024-07-31 12:27:45 +05:30
bus.c soundwire: Correct some typos in comments 2024-10-03 12:46:23 +05:30
bus.h soundwire: export sdw_compute_slave_ports() function 2023-04-12 15:30:35 +05:30
cadence_master.c soundwire: cadence: clear MCP BLOCK_WAKEUP in init 2024-10-10 17:44:41 +05:30
cadence_master.h soundwire: cadence: add soft-reset on startup 2024-10-10 17:44:41 +05:30
debugfs.c soundwire: debugfs: simplify with cleanup.h 2024-07-09 19:12:49 +05:30
dmi-quirks.c ASoC: Intel: common: DMI remap for rebranded Intel NUC M15 (LAPRC710) laptops 2024-02-08 21:23:19 +00:00
generic_bandwidth_allocation.c soundwire: generic_bandwidth_allocation: change port_bo parameter to pointer 2024-06-21 15:26:26 +05:30
intel_ace2x_debugfs.c soundwire: Intel: clarify Copyright information 2024-06-21 15:26:02 +05:30
intel_ace2x.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel_auxdevice.c soundwire: intel_auxdevice: add kernel parameter for mclk divider 2024-10-10 17:43:55 +05:30
intel_auxdevice.h soundwire: intel: export intel_resume_child_device 2024-04-11 22:52:51 +05:30
intel_bus_common.c soundwire: cadence: add soft-reset on startup 2024-10-10 17:44:41 +05:30
intel_init.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel.h soundwire updates for 6.12 2024-09-23 14:00:46 -07:00
irq.c soundwire: bus: Make IRQ handling conditionally built 2023-09-21 11:31:33 +02:00
irq.h soundwire: bus: Make IRQ handling conditionally built 2023-09-21 11:31:33 +02:00
Kconfig soundwire: slave: lookup SDCA version and functions 2024-10-17 18:42:12 +01:00
Makefile soundwire: amd: refactor amd soundwire manager device node creation 2024-01-30 16:06:34 +00:00
master.c soundwire: constify the struct device_type usage 2024-03-03 19:28:06 +05:30
mipi_disco.c soundwire: mipi-disco: add support for DP0/DPn 'lane-list' property 2024-10-03 13:28:51 +05:30
qcom.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
slave.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
stream.c soundwire: bus: add stream refcount 2024-06-03 17:40:23 +05:30
sysfs_local.h soundwire: sysfs: remove sdw_slave_sysfs_init() 2024-03-28 23:38:47 +05:30
sysfs_slave_dpn.c soundwire: sysfs: remove sdw_slave_sysfs_init() 2024-03-28 23:38:47 +05:30
sysfs_slave.c soundwire: Correct some typos in comments 2024-10-03 12:46:23 +05:30