[PATCH bpf-next v11 2/3] cfi: Move BPF CFI types and helpers to generic code

kernel test robot lkp at intel.com
Sat Jul 19 16:32:18 PDT 2025


Hi Sami,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 0ee30d937c147fc14c4b49535181d437cd2fde7a]

url:    https://github.com/intel-lab-lkp/linux/commits/Sami-Tolvanen/cfi-add-C-CFI-type-macro/20250719-063535
base:   0ee30d937c147fc14c4b49535181d437cd2fde7a
patch link:    https://lore.kernel.org/r/20250718223345.1075521-7-samitolvanen%40google.com
patch subject: [PATCH bpf-next v11 2/3] cfi: Move BPF CFI types and helpers to generic code
config: x86_64-randconfig-123-20250719 (https://download.01.org/0day-ci/archive/20250720/202507200719.dWqamnJW-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250720/202507200719.dWqamnJW-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507200719.dWqamnJW-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> kernel/cfi.c:39:24: sparse: sparse: symbol '__bpf_prog_runX' was not declared. Should it be static?
>> kernel/cfi.c:42:28: sparse: sparse: symbol '__bpf_callback_fn' was not declared. Should it be static?

vim +/__bpf_prog_runX +39 kernel/cfi.c

    31	
    32	/*
    33	 * Declare two non-existent functions with types that match bpf_func_t and
    34	 * bpf_callback_t pointers, and use DEFINE_CFI_TYPE to define type hash
    35	 * variables for each function type. The cfi_bpf_* variables are used by
    36	 * arch-specific BPF JIT implementations to ensure indirectly callable JIT
    37	 * code has matching CFI type hashes.
    38	 */
  > 39	typeof(*(bpf_func_t)0) __bpf_prog_runX;
    40	DEFINE_CFI_TYPE(cfi_bpf_hash, __bpf_prog_runX);
    41	
  > 42	typeof(*(bpf_callback_t)0) __bpf_callback_fn;
    43	DEFINE_CFI_TYPE(cfi_bpf_subprog_hash, __bpf_callback_fn);
    44	

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



More information about the linux-arm-kernel mailing list