linux-stable/drivers/iio/imu
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
..
bmi160 module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmi270 module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bmi323 module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
bno055 module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
inv_icm42600 module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
inv_mpu6050 module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_lsm6dsx module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
st_lsm9ds0 module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adis16400.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adis16460.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adis16475.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adis16480.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adis_buffer.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adis_trigger.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
adis.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
fxos8700_core.c iio: imu: fxos8700: Drop unused acpi.h 2024-09-30 09:20:59 +01:00
fxos8700_i2c.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
fxos8700_spi.c iio: imu: fxos8700: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
Kconfig iio: imu: smi240: add driver 2024-10-21 19:19:24 +01:00
kmx61.c iio: fix write_event_config signature 2024-11-03 20:33:44 +00:00
Makefile iio: imu: smi240: add driver 2024-10-21 19:19:24 +01:00
smi240.c iio: imu: smi240: add driver 2024-10-21 19:19:24 +01:00