linux-stable/drivers/media/platform
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
..
allegro-dvt media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
amlogic media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
amphion media: amphion: Fix pm_runtime_set_suspended() with runtime pm enabled 2024-11-07 09:05:57 +01:00
aspeed media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
atmel media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
broadcom media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
cadence media: Switch back to struct platform_driver::remove() 2024-10-12 16:28:25 +02:00
chips-media Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
imagination media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
intel media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
marvell media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
mediatek media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
microchip media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
nuvoton media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
nvidia module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
nxp media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
qcom media updates for v6.13-rc1 2024-11-20 14:01:15 -08:00
raspberrypi media: raspberrypi: cfe: Fix mapping of dmabuf buffers 2024-11-07 09:05:58 +01:00
renesas Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
rockchip media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
samsung Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
st media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
sunxi media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
ti media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
verisilicon Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
via media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
xilinx media updates for v6.13-rc1 2024-11-20 14:01:15 -08:00
Kconfig media: raspberrypi: Add support for PiSP BE 2024-06-27 13:06:47 +02:00
m2m-deinterlace.c media: platform: drop vb2_ops_wait_prepare/finish 2024-10-28 09:20:07 +01:00
Makefile media: raspberrypi: Add support for PiSP BE 2024-06-27 13:06:47 +02:00
video-mux.c media: platform: video-mux: Fix mutex locking 2024-10-16 09:32:41 +02:00