Skip to contentSkip to conversation

linux-next: build failure after merge of the net-next tree

DISCUSSION Stephen Rothwell 2 participants 5 messages Aug 9, 2021 – Sep 1, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the net-next tree, today's linux-next build (powerpc allyesconfig) failed like this:

drivers/net/ethernet/cirrus/cs89x0.c: In function 'net_open':
drivers/net/ethernet/cirrus/cs89x0.c:897:20: error: implicit declaration of function 'isa_virt_to_bus' [-Werror=implicit-function-declaration]

  897 |     (unsigned long)isa_virt_to_bus(lp->dma_buff));
      |                    ^~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:15: note: in definition of macro '__dynamic_func_call'
  134 |   func(&id, ##__VA_ARGS__);  \
      |               ^~~~~~~~~~~
include/linux/dynamic_debug.h:162:2: note: in expansion of macro '_dynamic_func_call'
  162 |  _dynamic_func_call(fmt, __dynamic_pr_debug,  \
      |  ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:570:2: note: in expansion of macro 'dynamic_pr_debug'
  570 |  dynamic_pr_debug(fmt, ##__VA_ARGS__)
      |  ^~~~~~~~~~~~~~~~
drivers/net/ethernet/cirrus/cs89x0.c:86:3: note: in expansion of macro 'pr_debug'
   86 |   pr_##level(fmt, ##__VA_ARGS__);   \
      |   ^~~
drivers/net/ethernet/cirrus/cs89x0.c:894:3: note: in expansion of macro 'cs89_dbg'
  894 |   cs89_dbg(1, debug, "%s: dma %lx %lx\n",
      |   ^~~~~~~~

Caused by commit

47fd22f2b847 ("cs89x0: rework driver configuration")

I have removed the COMPILE_TEST from NET_VENDOR_CIRRUS for now.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the net-next tree, today's linux-next build (powerpc allyesconfig) failed like this:

drivers/net/ethernet/cirrus/cs89x0.c: In function 'net_open':
drivers/net/ethernet/cirrus/cs89x0.c:897:20: error: implicit declaration of function 'isa_virt_to_bus' [-Werror=implicit-function-declaration]

  897 |     (unsigned long)isa_virt_to_bus(lp->dma_buff));
      |                    ^~~~~~~~~~~~~~~

Thank you for the report! I already sent a patch for m68knommu running into this issue, but it seems there are other architectures that still have it.

The driver checks CONFIG_ISA_DMA_API at compile time to determine whether isa_virt_to_bus(), set_dma_mode(), set_dma_addr(), ... are all defined.

It seems that isa_virt_to_bus() is only implemented on most of the architectures that set ISA_DMA_API: alpha, arm, mips, parisc and x86, but not on m68k/coldfire and powerpc.

Before my patch, the platform driver could only be built on ARM, so maybe we should just go back to that dependency or something like

         depends on ARM || ((X86 || !ISA_DMA_API) && COMPILE_TEST)

for extra build coverage. Then again, it's hard to find any machine actually using these: we have a couple of s3c24xx machines that use the wrong device name, so the device never gets probed, the imx machines that used to work are gone, and the ep7211-edb7211.dts is missing a device node for it. Most likely, neither the platform nor the ISA driver are actually used by anyone.

Arnd

#2 lore raw

Hi all,

Quoted 26 lines · On Mon, 9 Aug 2021 15:21:41 +0200 Arnd Bergmann <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell

After merging the net-next tree, today's linux-next build (powerpc allyesconfig) failed like this:

drivers/net/ethernet/cirrus/cs89x0.c: In function 'net_open':
drivers/net/ethernet/cirrus/cs89x0.c:897:20: error: implicit declaration of function 'isa_virt_to_bus' [-Werror=implicit-function-declaration]

  897 |     (unsigned long)isa_virt_to_bus(lp->dma_buff));
      |                    ^~~~~~~~~~~~~~~  

Thank you for the report! I already sent a patch for m68knommu running into this issue, but it seems there are other architectures that still have it.

The driver checks CONFIG_ISA_DMA_API at compile time to determine whether isa_virt_to_bus(), set_dma_mode(), set_dma_addr(), ... are all defined.

It seems that isa_virt_to_bus() is only implemented on most of the architectures that set ISA_DMA_API: alpha, arm, mips, parisc and x86, but not on m68k/coldfire and powerpc.

Before my patch, the platform driver could only be built on ARM, so maybe we should just go back to that dependency or something like

Quoted 8 lines
         depends on ARM || ((X86 || !ISA_DMA_API) && COMPILE_TEST)

for extra build coverage. Then again, it's hard to find any machine actually using these: we have a couple of s3c24xx machines that use the wrong device name, so the device never gets probed, the imx machines that used to work are gone, and the ep7211-edb7211.dts is missing a device node for it. Most likely, neither the platform nor the ISA driver are actually used by anyone.

I am still applying my patch removing COMPILE_TEST from this driver ..

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

Hi all,

Quoted 30 lines · On Sun, 15 Aug 2021 22:04:32 +1000 Stephen Rothwell <[email protected]>…
Quoted 28 lines · On Mon, 9 Aug 2021 15:21:41 +0200 Arnd Bergmann <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell

After merging the net-next tree, today's linux-next build (powerpc allyesconfig) failed like this:

drivers/net/ethernet/cirrus/cs89x0.c: In function 'net_open':
drivers/net/ethernet/cirrus/cs89x0.c:897:20: error: implicit declaration of function 'isa_virt_to_bus' [-Werror=implicit-function-declaration]

  897 |     (unsigned long)isa_virt_to_bus(lp->dma_buff));
      |                    ^~~~~~~~~~~~~~~    

Thank you for the report! I already sent a patch for m68knommu running into this issue, but it seems there are other architectures that still have it.

The driver checks CONFIG_ISA_DMA_API at compile time to determine whether isa_virt_to_bus(), set_dma_mode(), set_dma_addr(), ... are all defined.

It seems that isa_virt_to_bus() is only implemented on most of the architectures that set ISA_DMA_API: alpha, arm, mips, parisc and x86, but not on m68k/coldfire and powerpc.

Before my patch, the platform driver could only be built on ARM, so maybe we should just go back to that dependency or something like

         depends on ARM || ((X86 || !ISA_DMA_API) && COMPILE_TEST)
Quoted 8 lines
Quoted 6 lines

for extra build coverage. Then again, it's hard to find any machine actually using these: we have a couple of s3c24xx machines that use the wrong device name, so the device never gets probed, the imx machines that used to work are gone, and the ep7211-edb7211.dts is missing a device node for it. Most likely, neither the platform nor the ISA driver are actually used by anyone.

I am still applying my patch removing COMPILE_TEST from this driver ..

Ping? Did I miss a fix being merged?

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw

Hi all,

Quoted 39 lines · On Fri, 20 Aug 2021 09:16:27 +1000 Stephen Rothwell <[email protected]>…
Quoted 37 lines · On Sun, 15 Aug 2021 22:04:32 +1000 Stephen Rothwell <[email protected]>…
Quoted 34 lines · On Mon, 9 Aug 2021 15:21:41 +0200 Arnd Bergmann <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell

After merging the net-next tree, today's linux-next build (powerpc allyesconfig) failed like this:

drivers/net/ethernet/cirrus/cs89x0.c: In function 'net_open':
drivers/net/ethernet/cirrus/cs89x0.c:897:20: error: implicit declaration of function 'isa_virt_to_bus' [-Werror=implicit-function-declaration]

  897 |     (unsigned long)isa_virt_to_bus(lp->dma_buff));
      |                    ^~~~~~~~~~~~~~~      

Thank you for the report! I already sent a patch for m68knommu running into this issue, but it seems there are other architectures that still have it.

The driver checks CONFIG_ISA_DMA_API at compile time to determine whether isa_virt_to_bus(), set_dma_mode(), set_dma_addr(), ... are all defined.

It seems that isa_virt_to_bus() is only implemented on most of the architectures that set ISA_DMA_API: alpha, arm, mips, parisc and x86, but not on m68k/coldfire and powerpc.

Before my patch, the platform driver could only be built on ARM, so maybe we should just go back to that dependency or something like

         depends on ARM || ((X86 || !ISA_DMA_API) && COMPILE_TEST)

for extra build coverage. Then again, it's hard to find any machine actually using these: we have a couple of s3c24xx machines that use the wrong device name, so the device never gets probed, the imx machines that used to work are gone, and the ep7211-edb7211.dts is missing a device node for it. Most likely, neither the platform nor the ISA driver are actually used by anyone.

Quoted 3 lines
Quoted 1 line

I am still applying my patch removing COMPILE_TEST from this driver ..

Ping? Did I miss a fix being merged?

Ping, again. The net=next tree has now been merged by Linus, so has this been fixed? Or is Linus' tree now broken for this build?

Signature · 2 lines
Cheers,
Stephen Rothwell