[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202101503.p1WYvmmS-lkp@intel.com>
Date: Thu, 10 Feb 2022 15:19:10 +0800
From: kernel test robot <lkp@...el.com>
To: Song Liu <songliubraving@...com>
Cc: kbuild-all@...ts.01.org,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org, Alexei Starovoitov <ast@...nel.org>
Subject: [ammarfaizi2-block:bpf/bpf-next/master 212/245]
arch/powerpc/net/bpf_jit_comp.c:250:59: error: 'struct bpf_binary_header'
has no member named 'pages'
tree: https://github.com/ammarfaizi2/linux-block bpf/bpf-next/master
head: e5313968c41ba890a91344773a0474d0246d20a3
commit: ed2d9e1a26cca963ff5ed3b76326d70f7d8201a9 [212/245] bpf: Use size instead of pages in bpf_binary_header
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20220210/202202101503.p1WYvmmS-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/ammarfaizi2/linux-block/commit/ed2d9e1a26cca963ff5ed3b76326d70f7d8201a9
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block bpf/bpf-next/master
git checkout ed2d9e1a26cca963ff5ed3b76326d70f7d8201a9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
Note: the ammarfaizi2-block/bpf/bpf-next/master HEAD e5313968c41ba890a91344773a0474d0246d20a3 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
arch/powerpc/net/bpf_jit_comp.c: In function 'bpf_int_jit_compile':
>> arch/powerpc/net/bpf_jit_comp.c:250:59: error: 'struct bpf_binary_header' has no member named 'pages'
250 | bpf_flush_icache(bpf_hdr, (u8 *)bpf_hdr + (bpf_hdr->pages * PAGE_SIZE));
| ^~
vim +250 arch/powerpc/net/bpf_jit_comp.c
4ea76e90a97d22 Christophe Leroy 2021-03-22 245
4ea76e90a97d22 Christophe Leroy 2021-03-22 246 fp->bpf_func = (void *)image;
4ea76e90a97d22 Christophe Leroy 2021-03-22 247 fp->jited = 1;
983bdc0245a29c Ravi Bangoria 2021-10-12 248 fp->jited_len = proglen + FUNCTION_DESCR_SIZE;
4ea76e90a97d22 Christophe Leroy 2021-03-22 249
4ea76e90a97d22 Christophe Leroy 2021-03-22 @250 bpf_flush_icache(bpf_hdr, (u8 *)bpf_hdr + (bpf_hdr->pages * PAGE_SIZE));
4ea76e90a97d22 Christophe Leroy 2021-03-22 251 if (!fp->is_func || extra_pass) {
44a8214de96baf Hari Bathini 2021-10-25 252 bpf_jit_binary_lock_ro(bpf_hdr);
4ea76e90a97d22 Christophe Leroy 2021-03-22 253 bpf_prog_fill_jited_linfo(fp, addrs);
4ea76e90a97d22 Christophe Leroy 2021-03-22 254 out_addrs:
4ea76e90a97d22 Christophe Leroy 2021-03-22 255 kfree(addrs);
4ea76e90a97d22 Christophe Leroy 2021-03-22 256 kfree(jit_data);
4ea76e90a97d22 Christophe Leroy 2021-03-22 257 fp->aux->jit_data = NULL;
4ea76e90a97d22 Christophe Leroy 2021-03-22 258 } else {
4ea76e90a97d22 Christophe Leroy 2021-03-22 259 jit_data->addrs = addrs;
4ea76e90a97d22 Christophe Leroy 2021-03-22 260 jit_data->ctx = cgctx;
4ea76e90a97d22 Christophe Leroy 2021-03-22 261 jit_data->proglen = proglen;
4ea76e90a97d22 Christophe Leroy 2021-03-22 262 jit_data->image = image;
4ea76e90a97d22 Christophe Leroy 2021-03-22 263 jit_data->header = bpf_hdr;
4ea76e90a97d22 Christophe Leroy 2021-03-22 264 }
4ea76e90a97d22 Christophe Leroy 2021-03-22 265
4ea76e90a97d22 Christophe Leroy 2021-03-22 266 out:
4ea76e90a97d22 Christophe Leroy 2021-03-22 267 if (bpf_blinded)
4ea76e90a97d22 Christophe Leroy 2021-03-22 268 bpf_jit_prog_release_other(fp, fp == org_fp ? tmp_fp : org_fp);
4ea76e90a97d22 Christophe Leroy 2021-03-22 269
4ea76e90a97d22 Christophe Leroy 2021-03-22 270 return fp;
4ea76e90a97d22 Christophe Leroy 2021-03-22 271 }
983bdc0245a29c Ravi Bangoria 2021-10-12 272
:::::: The code at line 250 was first introduced by commit
:::::: 4ea76e90a97d22f86adbb10044d29d919e620f2e powerpc/bpf: Move common functions into bpf_jit_comp.c
:::::: TO: Christophe Leroy <christophe.leroy@...roup.eu>
:::::: CC: Michael Ellerman <mpe@...erman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists