public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies
@ 2017-05-17 16:40 Randy Dunlap
  2017-05-17 18:11 ` Bjorn Andersson
  2017-05-19  3:46 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2017-05-17 16:40 UTC (permalink / raw)
  To: LKML, Anup Patel, Vinod Koul; +Cc: dmaengine@vger.kernel.org

From: Randy Dunlap <rdunlap@infradead.org>

Fix build errors when COMPILE_TEST is enabled but RAID6_PQ is not
enabled (seen on x86_64).

drivers/built-in.o: In function `sba_prep_dma_pq_req':
(.text+0x16132): undefined reference to `raid6_gflog'
drivers/built-in.o: In function `sba_prep_dma_pq_single_req':
(.text+0x162f4): undefined reference to `raid6_gflog'

This driver needs RAID6_PQ and MAILBOX (from inspection) independent of
ARM64 or COMPILE_TEST.

However, RAID6_PQ is not defined in any Kconfig file, although it is
used in several of them. :(

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Anup Patel <anup.patel@broadcom.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: dmaengine@vger.kernel.org
---
 drivers/dma/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-next-20170517.orig/drivers/dma/Kconfig
+++ linux-next-20170517/drivers/dma/Kconfig
@@ -101,7 +101,8 @@ config AXI_DMAC
 
 config BCM_SBA_RAID
 	tristate "Broadcom SBA RAID engine support"
-	depends on (ARM64 && MAILBOX && RAID6_PQ) || COMPILE_TEST
+	depends on ARM64 || COMPILE_TEST
+	depends on MAILBOX && RAID6_PQ
 	select DMA_ENGINE
 	select DMA_ENGINE_RAID
 	select ASYNC_TX_DISABLE_XOR_VAL_DMA

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies
  2017-05-17 16:40 [PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies Randy Dunlap
@ 2017-05-17 18:11 ` Bjorn Andersson
  2017-05-19  3:46 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2017-05-17 18:11 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: LKML, Anup Patel, Vinod Koul, dmaengine@vger.kernel.org

On Wed, May 17, 2017 at 9:40 AM, Randy Dunlap <rdunlap@infradead.org> wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
>
> Fix build errors when COMPILE_TEST is enabled but RAID6_PQ is not
> enabled (seen on x86_64).
>
> drivers/built-in.o: In function `sba_prep_dma_pq_req':
> (.text+0x16132): undefined reference to `raid6_gflog'
> drivers/built-in.o: In function `sba_prep_dma_pq_single_req':
> (.text+0x162f4): undefined reference to `raid6_gflog'
>
> This driver needs RAID6_PQ and MAILBOX (from inspection) independent of
> ARM64 or COMPILE_TEST.
>
> However, RAID6_PQ is not defined in any Kconfig file, although it is
> used in several of them. :(
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Anup Patel <anup.patel@broadcom.com>
> Cc: Vinod Koul <vinod.koul@intel.com>
> Cc: dmaengine@vger.kernel.org

Hit this as well today.

Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Regards,
Bjorn

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies
  2017-05-17 16:40 [PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies Randy Dunlap
  2017-05-17 18:11 ` Bjorn Andersson
@ 2017-05-19  3:46 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2017-05-19  3:46 UTC (permalink / raw)
  To: Randy Dunlap, Arnd Bergmann; +Cc: LKML, Anup Patel, dmaengine@vger.kernel.org

On Wed, May 17, 2017 at 09:40:47AM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
> 
> Fix build errors when COMPILE_TEST is enabled but RAID6_PQ is not
> enabled (seen on x86_64).

Oops, I already applied one from Arnd and pushed that out.

> 
> drivers/built-in.o: In function `sba_prep_dma_pq_req':
> (.text+0x16132): undefined reference to `raid6_gflog'
> drivers/built-in.o: In function `sba_prep_dma_pq_single_req':
> (.text+0x162f4): undefined reference to `raid6_gflog'
> 
> This driver needs RAID6_PQ and MAILBOX (from inspection) independent of
> ARM64 or COMPILE_TEST.
> 
> However, RAID6_PQ is not defined in any Kconfig file, although it is
> used in several of them. :(
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Anup Patel <anup.patel@broadcom.com>
> Cc: Vinod Koul <vinod.koul@intel.com>
> Cc: dmaengine@vger.kernel.org
> ---
>  drivers/dma/Kconfig |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> --- linux-next-20170517.orig/drivers/dma/Kconfig
> +++ linux-next-20170517/drivers/dma/Kconfig
> @@ -101,7 +101,8 @@ config AXI_DMAC
>  
>  config BCM_SBA_RAID
>  	tristate "Broadcom SBA RAID engine support"
> -	depends on (ARM64 && MAILBOX && RAID6_PQ) || COMPILE_TEST
> +	depends on ARM64 || COMPILE_TEST
> +	depends on MAILBOX && RAID6_PQ
>  	select DMA_ENGINE
>  	select DMA_ENGINE_RAID
>  	select ASYNC_TX_DISABLE_XOR_VAL_DMA
> 
> 

-- 
~Vinod

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-19  3:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-17 16:40 [PATCH -next] dma: bcm-sba-raid: fix build errors and dependencies Randy Dunlap
2017-05-17 18:11 ` Bjorn Andersson
2017-05-19  3:46 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox