linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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'
@ 2022-02-10  7:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-10  7:19 UTC (permalink / raw)
  To: Song Liu
  Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Alexei Starovoitov

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@intel.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@csgroup.eu>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

only message in thread, other threads:[~2022-02-10  7:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10  7:19 [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' 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;
as well as URLs for NNTP newsgroup(s).