Re: vmlinux.o: warning: objtool: cpuidle_enter_state+0x1d3: return with instrumentation enabled

From: Peter Zijlstra
Date: Tue Jul 25 2023 - 09:57:31 EST


On Tue, Jul 25, 2023 at 08:57:50PM +0800, kernel test robot wrote:
> Hi Peter,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 0b5547c51827e053cc754db47d3ec3e6c2c451d2
> commit: 17cc2b5525856d7374f09b28ba1faf1fa61b2352 cpuidle: Ensure ct_cpuidle_enter() is always called from noinstr/__cpuidle
> date: 6 months ago
> config: x86_64-randconfig-r012-20230725 (https://download.01.org/0day-ci/archive/20230725/202307252003.0OM6CkWI-lkp@xxxxxxxxx/config)
> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
> reproduce: (https://download.01.org/0day-ci/archive/20230725/202307252003.0OM6CkWI-lkp@xxxxxxxxx/reproduce)

When I grab that .config and try and build v6.5-rc3 (using
olddefconfig), I get:

$ make O=tmp-build -j64 vmlinux
...
In file included from <command-line>:
./../drivers/gpu/drm/i915/intel_dsi_cmd.h:33:10: fatal error: intel_drv.h: No such file or directory
33 | #include "intel_drv.h"
| ^~~~~~~~~~~~~
compilation terminated.