* ld.lld: error: undefined symbol: omap_set_dma_priority
@ 2022-07-07 19:17 kernel test robot
2022-07-11 0:21 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-07-07 19:17 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: llvm, kbuild-all, linux-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e8a4e1c1bb697b1d9fc48f0e56dc0f50bc024bee
commit: 7036440eab3e2d47a775d4616909f8235488d714 ARM: omap1: enable multiplatform
date: 5 weeks ago
config: arm-randconfig-r035-20220706 (https://download.01.org/0day-ci/archive/20220708/202207080322.DnumSqh8-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f553287b588916de09c66e3e32bf75e5060f967f)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7036440eab3e2d47a775d4616909f8235488d714
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7036440eab3e2d47a775d4616909f8235488d714
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: omap_set_dma_priority
>>> referenced by omapfb_main.c:1706 (drivers/video/fbdev/omap/omapfb_main.c:1706)
>>> video/fbdev/omap/omapfb_main.o:(omapfb_do_probe) in archive drivers/built-in.a
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ld.lld: error: undefined symbol: omap_set_dma_priority
2022-07-07 19:17 ld.lld: error: undefined symbol: omap_set_dma_priority kernel test robot
@ 2022-07-11 0:21 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2022-07-11 0:21 UTC (permalink / raw)
To: kernel test robot, Arnd Bergmann
Cc: llvm, kbuild-all, linux-kernel, linux-omap, linux-fbdev
On 7/7/22 12:17, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: e8a4e1c1bb697b1d9fc48f0e56dc0f50bc024bee
> commit: 7036440eab3e2d47a775d4616909f8235488d714 ARM: omap1: enable multiplatform
> date: 5 weeks ago
> config: arm-randconfig-r035-20220706 (https://download.01.org/0day-ci/archive/20220708/202207080322.DnumSqh8-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f553287b588916de09c66e3e32bf75e5060f967f)
> 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
> # install arm cross compiling tool for clang build
> # apt-get install binutils-arm-linux-gnueabi
> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7036440eab3e2d47a775d4616909f8235488d714
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 7036440eab3e2d47a775d4616909f8235488d714
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>>> ld.lld: error: undefined symbol: omap_set_dma_priority
> >>> referenced by omapfb_main.c:1706 (drivers/video/fbdev/omap/omapfb_main.c:1706)
> >>> video/fbdev/omap/omapfb_main.o:(omapfb_do_probe) in archive drivers/built-in.a
(also happens with gcc)
Discrepancy between arch/arm/Kconfig and arch/arm/mach-omap1/{Kconfig,Makefile},
drivers/video/fbdev/omap/Kconfig, and <linux/omap-dma.h>.
Kernel .config has
CONFIG_ARCH_OMAP1=y
# CONFIG_ARCH_OMAP730 is not set
# CONFIG_ARCH_OMAP850 is not set
# CONFIG_ARCH_OMAP16XX is not set
CONFIG_ARCH_OMAP=y
FB_OMAP_DMA_TUNE depends on FB_OMAP, which
depends on ARCH_OMAP1 || (ARM && COMPILE_TEST), all of which are 'y'.
<linux/omap-dma.h> expects omap_set_dma_priority() to be defined
elsewhere (not inline) for this .config:
#if defined(CONFIG_ARCH_OMAP1)
extern void omap_set_dma_priority(int lch, int dst_port, int priority);
#else
static inline void omap_set_dma_priority(int lch, int dst_port, int priority)
{
}
#endif
but arch/arm/mach-omap1/Makefile only builds omap-dma.o for
ifdef CONFIG_ARCH_OMAP1_ANY, which is not set.
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-11 0:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07 19:17 ld.lld: error: undefined symbol: omap_set_dma_priority kernel test robot
2022-07-11 0:21 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox