linux-stable/drivers/media/pci
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
..
b2c2 media: b2c2: Add missing check in flexcop_pci_isr: 2021-11-19 15:40:09 +00:00
bt8xx Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
cobalt media: replace obsolete hans.verkuil@cisco.com alias 2024-11-08 13:38:09 +01:00
cx18 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
cx88 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
cx23885 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
cx25821 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
ddbridge media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
dm1105 media: add HAS_IOPORT dependencies 2023-06-28 11:09:25 +02:00
dt3155 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
intel module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ivtv media: pci: add missing MODULE_DESCRIPTION() macros 2024-06-15 10:49:20 +02:00
mantis media: mantis: remove orphan mantis_core.h 2024-10-28 15:35:56 +01:00
mgb4 Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
netup_unidvb media: netup_unidvb: switch to use devm_spi_alloc_host() 2024-09-30 01:12:03 +02:00
ngene media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
pluto2 media: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
pt1 media: switch from 'pci_' to 'dma_' API 2021-09-30 10:07:55 +02:00
pt3 media: pt3: Use dma_set_mask_and_coherent() and simplify code 2022-12-07 17:58:46 +01:00
saa7134 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
saa7146 media: pci: saa7146: advertise only those TV standard that are supported 2023-04-15 08:56:05 +01:00
saa7164 media: pci: saa7164: replace BUG with error return 2023-07-25 09:24:31 +02:00
smipcie media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
solo6x10 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
sta2x11 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
ttpci media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
tw68 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
tw686x media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
tw5864 media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
zoran media: pci: drop vb2_ops_wait_prepare/finish 2024-10-28 09:19:53 +01:00
Kconfig media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
Makefile media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00