Re: [tip:objtool/core 8/12] vmlinux.o: warning: objtool: do_arch_prctl_common+0xf4: preempt_schedule_thunk() is missing a __noreturn annotation

From: Josh Poimboeuf
Date: Tue May 30 2023 - 19:09:54 EST


On Sun, May 28, 2023 at 10:35:24AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool/core
> head: 6245ce4ab670166efcdae843c35c14e4c0811aa3
> commit: fedb724c3db5490234ddde0103811c28c2fedae0 [8/12] objtool: Detect missing __noreturn annotations
> config: x86_64-randconfig-x085-20230528 (https://download.01.org/0day-ci/archive/20230528/202305281037.3PaI3tW4-lkp@xxxxxxxxx/config)
> compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
> reproduce (this is a W=1 build):
> # https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=fedb724c3db5490234ddde0103811c28c2fedae0
> git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
> git fetch --no-tags tip objtool/core
> git checkout fedb724c3db5490234ddde0103811c28c2fedae0
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> make W=1 O=build_dir ARCH=x86_64 olddefconfig
> make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202305281037.3PaI3tW4-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):
>
> >> vmlinux.o: warning: objtool: do_arch_prctl_common+0xf4: preempt_schedule_thunk() is missing a __noreturn annotation

I sent a patch for this one here:

https://lkml.kernel.org/lkml/46aa8aeb716f302e22e1673ae15ee6fe050b41f4.1685488050.git.jpoimboe@xxxxxxxxxx

--
Josh