Patch "dmaengine: fsl-edma: avoid linking both modules" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    dmaengine: fsl-edma: avoid linking both modules

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     dmaengine-fsl-edma-avoid-linking-both-modules.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a32e395b0e4fc5a5dc113353114a7ffcc04e9980
Author: Arnd Bergmann <arnd@xxxxxxxx>
Date:   Tue May 28 13:54:22 2024 +0200

    dmaengine: fsl-edma: avoid linking both modules
    
    [ Upstream commit fa555b5026d0bf1ba7c9e645ff75e2725a982631 ]
    
    Kbuild does not support having a source file compiled multiple times
    and linked into distinct modules, or built-in and modular at the
    same time. For fs-edma, there are two common components that are
    linked into the fsl-edma.ko for Arm and PowerPC, plus the mcf-edma.ko
    module on Coldfire. This violates the rule for compile-testing:
    
    scripts/Makefile.build:236: drivers/dma/Makefile: fsl-edma-common.o is added to multiple modules: fsl-edma mcf-edma
    scripts/Makefile.build:236: drivers/dma/Makefile: fsl-edma-trace.o is added to multiple modules: fsl-edma mcf-edma
    
    I tried splitting out the common parts into a separate modules, but
    that adds back the complexity that a cleanup patch removed, and it
    gets harder with the addition of the tracepoints.
    
    As a minimal workaround, address it at the Kconfig level, by disallowing
    the broken configurations.
    
    Link: https://lore.kernel.org/lkml/20240110232255.1099757-1-arnd@xxxxxxxxxx/
    Fixes: 66aac8ea0a6c ("dmaengine: fsl-edma: clean up EXPORT_SYMBOL_GPL in fsl-edma-common.c")
    Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
    Acked-by: Peng Fan <peng.fan@xxxxxxx>
    Link: https://lore.kernel.org/r/20240528115440.2965975-1-arnd@xxxxxxxxxx
    Signed-off-by: Vinod Koul <vkoul@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index 7a618f629e86b..e36506471a4f6 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -380,7 +380,7 @@ config LPC18XX_DMAMUX
 
 config MCF_EDMA
 	tristate "Freescale eDMA engine support, ColdFire mcf5441x SoCs"
-	depends on M5441x || COMPILE_TEST
+	depends on M5441x || (COMPILE_TEST && FSL_EDMA=n)
 	select DMA_ENGINE
 	select DMA_VIRTUAL_CHANNELS
 	help




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux