Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH bpf-next v2 05/11] bpf, arm64, powerpc: Add bpf_jit_bypass_spec_v1/v4()
       [not found] <20250421091802.3234859-6-luis.gerhorst@fau.de>
@ 2025-04-21 12:26 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-21 12:26 UTC (permalink / raw)
  To: Luis Gerhorst, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, Martin KaFai Lau, Eduard Zingerman, Song Liu,
	Yonghong Song, John Fastabend, KP Singh, Stanislav Fomichev,
	Hao Luo, Jiri Olsa, Puranjay Mohan, Xu Kuohai, Catalin Marinas,
	Will Deacon, Hari Bathini, Christophe Leroy, Naveen N Rao,
	Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
	Mykola Lysenko, Shuah Khan, Henriette Herzog, Saket Kumar Bhaskar,
	Cupertino Miranda, Jiayuan Chen, Matan Shachnai
  Cc: llvm, oe-kbuild-all

Hi Luis,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8582d9ab3efdebb88e0cd8beed8e0b9de76443e7]

url:    https://github.com/intel-lab-lkp/linux/commits/Luis-Gerhorst/selftests-bpf-Fix-caps-for-__xlated-jited_unpriv/20250421-175926
base:   8582d9ab3efdebb88e0cd8beed8e0b9de76443e7
patch link:    https://lore.kernel.org/r/20250421091802.3234859-6-luis.gerhorst%40fau.de
patch subject: [PATCH bpf-next v2 05/11] bpf, arm64, powerpc: Add bpf_jit_bypass_spec_v1/v4()
config: arm-randconfig-001-20250421 (https://download.01.org/0day-ci/archive/20250421/202504212030.IF1SLhz6-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250421/202504212030.IF1SLhz6-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504212030.IF1SLhz6-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/bpf/core.c:3037:13: warning: no previous prototype for function 'bpf_jit_bypass_spec_v1' [-Wmissing-prototypes]
    3037 | bool __weak bpf_jit_bypass_spec_v1(void)
         |             ^
   kernel/bpf/core.c:3037:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    3037 | bool __weak bpf_jit_bypass_spec_v1(void)
         | ^
         | static 
>> kernel/bpf/core.c:3042:13: warning: no previous prototype for function 'bpf_jit_bypass_spec_v4' [-Wmissing-prototypes]
    3042 | bool __weak bpf_jit_bypass_spec_v4(void)
         |             ^
   kernel/bpf/core.c:3042:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    3042 | bool __weak bpf_jit_bypass_spec_v4(void)
         | ^
         | static 
   2 warnings generated.


vim +/bpf_jit_bypass_spec_v1 +3037 kernel/bpf/core.c

  3031	
  3032	/* By default, enable the verifier's mitigations against Spectre v1 and v4 for
  3033	 * all archs. The value returned must not change at runtime as there is
  3034	 * currently no support for reloading programs that were loaded without
  3035	 * mitigations.
  3036	 */
> 3037	bool __weak bpf_jit_bypass_spec_v1(void)
  3038	{
  3039		return false;
  3040	}
  3041	
> 3042	bool __weak bpf_jit_bypass_spec_v4(void)
  3043	{
  3044		return false;
  3045	}
  3046	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-04-21 12:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250421091802.3234859-6-luis.gerhorst@fau.de>
2025-04-21 12:26 ` [PATCH bpf-next v2 05/11] bpf, arm64, powerpc: Add bpf_jit_bypass_spec_v1/v4() kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox