Re: undefined reference to `start_isolate_page_range'
From: Randy Dunlap
Date: Sun Nov 22 2020 - 20:15:12 EST
On 11/20/20 5:26 PM, kernel test robot wrote:
> Hi Michal,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 4ccf7a01e805f04defd423fb410f47a13af76399
> commit: 2602276d3d3811b1a48c48113042cd75fcbfc27d microblaze: Wire CMA allocator
> date: 10 months ago
> config: microblaze-randconfig-s031-20201121 (attached as .config)
> compiler: microblaze-linux-gcc (GCC) 9.3.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # apt-get install sparse
> # sparse version: v0.6.3-134-gb59dbdaf-dirty
> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2602276d3d3811b1a48c48113042cd75fcbfc27d
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 2602276d3d3811b1a48c48113042cd75fcbfc27d
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=microblaze
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> microblaze-linux-ld: mm/page_alloc.o: in function `alloc_contig_range':
>>> (.text+0xa1fc): undefined reference to `start_isolate_page_range'
>>> microblaze-linux-ld: (.text+0xa40c): undefined reference to `test_pages_isolated'
>>> microblaze-linux-ld: (.text+0xa47c): undefined reference to `undo_isolate_page_range'
FTR: This is a Kconfig problem in drivers/gpu/drm/aspeed/Kconfig
and it is fixed in linux-next and drm-misc-next.
https://lore.kernel.org/dri-devel/20201011230131.4922-1-rdunlap@xxxxxxxxxxxxx/
--
~Randy