1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-22 16:06:04 -05:00
linux/drivers/media/i2c
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
..
adv748x
ccs
cx25840
et8ek8
s5c73m3
ad5820.c
adp1653.c
adv7170.c
adv7175.c
adv7180.c media: adv7180: Also check for "adi,force-bt656-4" 2024-11-08 13:38:10 +01:00
adv7183.c
adv7183_regs.h
adv7343.c
adv7343_regs.h
adv7393.c
adv7393_regs.h
adv7511-v4l2.c
adv7604.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
adv7842.c media: replace obsolete hans.verkuil@cisco.com alias 2024-11-08 13:38:09 +01:00
ak881x.c
ak7375.c
alvium-csi2.c
alvium-csi2.h
aptina-pll.c
aptina-pll.h
ar0521.c
bt819.c
bt856.c
bt866.c
ccs-pll.c
ccs-pll.h
cs53l32a.c
cs3308.c
cs5345.c
ds90ub913.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ds90ub953.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ds90ub960.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
dw9714.c
dw9719.c
dw9768.c media: i2c: dw9768: Use runtime PM autosuspend 2024-11-07 09:05:59 +01:00
dw9807-vcm.c
gc05a2.c
gc08a3.c
gc0308.c
gc2145.c
hi556.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
hi846.c
hi847.c
imx208.c
imx214.c
imx219.c
imx258.c
imx274.c
imx283.c
imx290.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
imx296.c
imx319.c
imx334.c
imx335.c
imx355.c
imx412.c
imx415.c
ir-kbd-i2c.c
isl7998x.c
Kconfig
ks0127.c
ks0127.h
lm3560.c
lm3646.c
m52790.c
Makefile
max2175.c
max2175.h
max9271.c
max9271.h
max9286.c
max96714.c
max96717.c
ml86v7667.c
msp3400-driver.c
msp3400-driver.h
msp3400-kthreads.c
mt9m001.c
mt9m111.c
mt9m114.c
mt9p031.c
mt9t112.c
mt9v011.c
mt9v032.c
mt9v111.c
og01a1b.c
ov01a10.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov02a10.c
ov08d10.c
ov08x40.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov13b10.c
ov64a40.c
ov772x.c
ov2640.c
ov2659.c
ov2680.c
ov2685.c
ov2740.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov4689.c
ov5640.c
ov5645.c media: i2c: ov5645: Switch to {enable,disable}_streams 2024-11-07 09:05:59 +01:00
ov5647.c
ov5648.c
ov5670.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov5675.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov5693.c
ov5695.c
ov6650.c
ov7251.c
ov7640.c
ov7670.c
ov7740.c
ov8856.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov8858.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov8865.c
ov9282.c
ov9640.c
ov9640.h
ov9650.c
ov9734.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ov13858.c
rdacm20.c
rdacm21.c
rj54n1cb0c.c
s5k5baf.c
s5k6a3.c
saa711x_regs.h
saa717x.c
saa6588.c
saa6752hs.c
saa7110.c
saa7115.c
saa7127.c
saa7185.c
sony-btf-mpx.c
st-mipid02.c
tc358743.c
tc358743_regs.h
tc358746.c
tda1997x.c
tda1997x_regs.h
tda7432.c
tda9840.c
tea6415c.c
tea6415c.h
tea6420.c
tea6420.h
thp7312.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
ths7303.c media: replace obsolete hans.verkuil@cisco.com alias 2024-11-08 13:38:09 +01:00
ths8200.c
ths8200_regs.h
tlv320aic23b.c
tvaudio.c
tvp514x.c
tvp514x_regs.h
tvp5150.c
tvp5150_reg.h
tvp7002.c
tvp7002_reg.h
tw2804.c
tw9900.c
tw9903.c
tw9906.c
tw9910.c
uda1342.c
upd64031a.c
upd64083.c
vgxy61.c Linux 6.12-rc7 2024-11-11 12:16:33 +01:00
video-i2c.c
vp27smpx.c
vpx3220.c
wm8739.c
wm8775.c