Re: [linux-stable-rc:linux-5.10.y 644/7104] synclink.c:undefined reference to `free_dma'

From: Arnd Bergmann
Date: Fri Jul 22 2022 - 08:58:57 EST


Hi Greg,

I looked at this report for 5.10.y:

On Fri, Jul 22, 2022 at 12:20 AM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> Hi Arnd,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
> head: 7748091a31277b35d55bffa6fecda439d8526366
> commit: 87ae522e467e17a13b796e2cb595f9c3943e4d5e [644/7104] m68knommu: only set CONFIG_ISA_DMA_API for ColdFire sub-arch
> config: m68k-randconfig-r011-20220721 (https://download.01.org/0day-ci/archive/20220722/202207220652.CGm6UUjK-lkp@xxxxxxxxx/config)
> compiler: m68k-linux-gcc (GCC) 12.1.0
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=87ae522e467e17a13b796e2cb595f9c3943e4d5e
> git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
> git fetch --no-tags linux-stable-rc linux-5.10.y
> git checkout 87ae522e467e17a13b796e2cb595f9c3943e4d5e
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> m68k-linux-ld: section .rodata VMA [0000000000002000,00000000005fa837] overlaps section .text VMA [0000000000000400,0000000000ffa6bf]
> m68k-linux-ld: drivers/tty/synclink.o: in function `mgsl_release_resources':
> >> synclink.c:(.text+0xd1a): undefined reference to `free_dma'

This can be addressed by either backporting f95a387cdeb3 ("m68k: coldfire: drop
ISA_DMA_API support") or by reverting the 87ae522e467e ("m68knommu: only
set CONFIG_ISA_DMA_API for ColdFire sub-arch"), which is not actually needed
on 5.10.

Arnd