linux/drivers/thermal/intel/int340x_thermal
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
..
acpi_thermal_rel.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
acpi_thermal_rel.h thermal: intel: int340x_thermal: New IOCTLs for Passive v2 table 2023-06-13 17:57:39 +02:00
int340x_thermal_zone.c thermal: trip: Pass trip pointer to .set_trip_temp() thermal zone callback 2024-07-12 15:14:01 +02:00
int340x_thermal_zone.h thermal: intel: Adjust ops handling during thermal zone registration 2024-02-23 18:24:48 +01:00
int3400_thermal.c thermal: int3400: Remove unneeded data_vault attribute_group 2024-11-25 15:07:29 +01:00
int3401_thermal.c thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00
int3402_thermal.c thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00
int3403_thermal.c thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00
int3406_thermal.c thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00
Kconfig thermal: ACPI: Move the ACPI thermal library to drivers/acpi/ 2023-11-21 15:04:08 +01:00
Makefile thermal: int340x: processor_thermal: Support power floor notifications 2023-10-12 21:09:48 +02:00
processor_thermal_device_pci_legacy.c thermal: int340x: processor_thermal: Move mailbox code to common module 2023-09-14 21:52:19 +02:00
processor_thermal_device_pci.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
processor_thermal_device.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
processor_thermal_device.h thermal: intel: int340x: Support MSI interrupt for Lunar Lake 2024-06-21 15:20:32 +02:00
processor_thermal_mbox.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
processor_thermal_power_floor.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
processor_thermal_rapl.c thermal: intel: int340x: processor: Add MMIO RAPL PL4 support 2024-10-08 21:39:33 +02:00
processor_thermal_rfim.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
processor_thermal_wt_hint.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
processor_thermal_wt_req.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00