Re: drivers/dma-buf/udmabuf.o: warning: objtool: get_sg_table.isra.0+0x94: unreachable instruction

From: Philip Li
Date: Sun Jul 28 2024 - 22:07:56 EST


On Sun, Jul 28, 2024 at 11:46:27PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 5437f30d3458ad36e83ab96088d490ebfee844d8
> commit: 0c8b91ef5100eaed3d64123ac91ac4739fccf15c udmabuf: add back support for mapping hugetlb pages
> date: 2 weeks ago
> config: loongarch-randconfig-r121-20240728 (https://download.01.org/0day-ci/archive/20240728/202407282344.RDPzYUGa-lkp@xxxxxxxxx/config)
> compiler: loongarch64-linux-gcc (GCC) 14.1.0
> reproduce: (https://download.01.org/0day-ci/archive/20240728/202407282344.RDPzYUGa-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202407282344.RDPzYUGa-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):

Sorry, kindly ignore this report, it's possibly related to the loongarch toolchain
as cerain "unreachable instruction" issues can't be reproduced on 13.2.

>
> >> drivers/dma-buf/udmabuf.o: warning: objtool: get_sg_table.isra.0+0x94: unreachable instruction
>
>
> objdump-func vmlinux.o get_sg_table.isra.0:
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
>