linux-stable/drivers/dma
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
..
amd dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
bestcomm dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
dw dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
dw-axi-dmac dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
dw-edma dmaengine: dw-edma: Do not enable watermark interrupts for HDMA 2024-08-28 18:40:17 +05:30
fsl-dpaa2-qdma dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
hsu dmaengine: hsu: Include headers we are direct user of 2022-09-04 22:49:35 +05:30
idxd module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ioat dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
lgm dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
mediatek dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
ppc4xx dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
ptdma dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
qcom dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
sf-pdma dmaengine: fix typo in the comment 2024-10-21 23:07:08 +05:30
sh dmaengine: fix typo in the comment 2024-10-21 23:07:08 +05:30
stm32 dmaengine: stm32-dma3: clamp AXI burst using match data 2024-10-21 22:51:45 +05:30
ti dmaengine updates for v6.13 2024-11-27 13:25:47 -08:00
xilinx dmaengine: fix typo in the comment 2024-10-21 23:07:08 +05:30
acpi-dma.c dmaengine: acpi: Clean up headers 2024-10-14 23:27:57 +05:30
altera-msgdma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
amba-pl08x.c dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
apple-admac.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
at_hdmac.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
at_xdmac.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
bcm2835-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
bcm-sba-raid.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
dma-axi-dmac.c dmaengine: dma-axi-dmac: Implement device_prep_peripheral_dma_vec 2024-06-21 15:31:57 +05:30
dma-jz4780.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
dmaengine.c dmaengine: avoid non-constant format string 2024-08-29 22:49:53 +05:30
dmaengine.h dmaengine: dmaengine_desc_callback_valid(): Check for callback_result 2021-10-25 09:42:56 +05:30
dmatest.c dmaengine: dmatest: Explicitly cast divisor to u32 2024-08-05 22:30:55 +05:30
ep93xx_dma.c dmaengine updates for v6.13 2024-11-27 13:25:47 -08:00
fsl_raid.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
fsl_raid.h dmaengine: Driver support for FSL RaidEngine device. 2015-04-02 16:10:27 +05:30
fsl-edma-common.c dmaengine: fsl-edma: change the memory access from local into remote mode in i.MX 8QM 2024-06-11 23:55:34 +05:30
fsl-edma-common.h dmaengine: fsl-edma: change the memory access from local into remote mode in i.MX 8QM 2024-06-11 23:55:34 +05:30
fsl-edma-main.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
fsl-edma-trace.c dmaengine: fsl-edma: add trace event support 2024-05-04 18:00:16 +05:30
fsl-edma-trace.h dmaengine: fsl-edma: add trace event support 2024-05-04 18:00:16 +05:30
fsl-qdma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
fsldma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
fsldma.h fsldma: fix very broken 32-bit ppc ioread64 functionality 2020-08-29 13:50:56 -07:00
hisi_dma.c dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
idma64.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
idma64.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
img-mdc-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
imx-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
imx-sdma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
k3dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
Kconfig dmaengine: loongson2-apb: Rename the prefix ls2x to loongson2 2024-10-23 11:05:45 +05:30
loongson1-apb-dma.c dmaengine: loongson1-apb-dma: Fix the build warning caused by the size of pdev_irqname 2024-09-02 13:56:32 +05:30
loongson2-apb-dma.c dmaengine: loongson2-apb: Rename the prefix ls2x to loongson2 2024-10-23 11:05:45 +05:30
lpc18xx-dmamux.c dmaengine: Explicitly include correct DT includes 2023-08-01 23:51:27 +05:30
lpc32xx-dmamux.c dmaengine: Add dma router for pl08x in LPC32XX SoC 2024-08-29 22:54:11 +05:30
Makefile dmaengine: loongson2-apb: Rename the prefix ls2x to loongson2 2024-10-23 11:05:45 +05:30
mcf-edma-main.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
milbeaut-hdmac.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
milbeaut-xdmac.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
mmp_pdma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
mmp_tdma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
moxart-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
mpc512x_dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
mv_xor_v2.c dmaengine: fix typo in the comment 2024-10-21 23:07:08 +05:30
mv_xor.c dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
mv_xor.h dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
mxs-dma.c dmaengine: Explicitly include correct DT includes 2023-08-01 23:51:27 +05:30
nbpfaxi.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
of-dma.c dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
owl-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
pch_dma.c dmaengine: pch_dma: remove unused function chan2parent 2024-04-07 18:36:58 +05:30
pl330.c dma-mapping: don't return errors from dma_set_max_seg_size 2024-08-29 07:22:49 +03:00
plx_dma.c dmaengine: plx_dma: Don't set chancnt 2023-05-24 12:24:32 +05:30
pxa_dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
sa11x0-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
sprd-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
st_fdma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
st_fdma.h dmaengine: st_fdma: Annotate struct st_fdma_desc with __counted_by 2023-09-28 16:42:14 +05:30
ste_dma40_ll.c dmaengine: ste_dma40: Remove platform data 2023-05-16 23:00:19 +05:30
ste_dma40_ll.h dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
ste_dma40.c dma-mapping: don't return errors from dma_set_max_seg_size 2024-08-29 07:22:49 +03:00
ste_dma40.h dmaengine: Fix spelling mistakes 2024-09-02 13:56:01 +05:30
sun4i-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
sun6i-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
tegra20-apb-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
tegra186-gpc-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
tegra210-adma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
timb_dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
TODO dmaengine: dw: don't perform DMA when dmaengine_submit is called 2014-07-15 22:14:30 +05:30
txx9dmac.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
txx9dmac.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
uniphier-mdmac.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
uniphier-xdmac.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30
virt-dma.c dmaengine: virt-dma: add missing MODULE_DESCRIPTION() macro 2024-06-28 13:03:13 +05:30
virt-dma.h dma: Add lockdep asserts to virt-dma 2024-04-07 17:08:19 +05:30
xgene-dma.c dmaengine: Switch back to struct platform_driver::remove() 2024-10-14 23:50:34 +05:30