linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Song Liu <songliubraving@fb.com>
Cc: kbuild-all@lists.01.org,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>,
	linux-kernel@vger.kernel.org, Alexei Starovoitov <ast@kernel.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'
Date: Thu, 10 Feb 2022 15:19:10 +0800	[thread overview]
Message-ID: <202202101503.p1WYvmmS-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-02-10  7:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202202101503.p1WYvmmS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ast@kernel.org \
    --cc=gwml@vger.gnuweeb.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=songliubraving@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).