All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Helge Deller <deller@gmx.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [deller-parisc:for-next 11/13] arch/parisc/net/bpf_jit_core.c:20:14: warning: variable 'again' set but not used
Date: Tue, 22 Aug 2023 11:01:07 +0800	[thread overview]
Message-ID: <202308221007.DdwwUTXx-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git for-next
head:   557fefd16958f21ae5aa9994dd2b2d9e0d683787
commit: d5e3a70d1d99fe11c8552fd489ce6908774bf746 [11/13] parisc: Wire up eBPF JIT compiler
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20230822/202308221007.DdwwUTXx-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230822/202308221007.DdwwUTXx-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/202308221007.DdwwUTXx-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/parisc/net/bpf_jit_core.c: In function 'build_body':
>> arch/parisc/net/bpf_jit_core.c:20:14: warning: variable 'again' set but not used [-Wunused-but-set-variable]
      20 |         bool again = false;
         |              ^~~~~


vim +/again +20 arch/parisc/net/bpf_jit_core.c

0ae0a14c3835b3 Helge Deller 2023-08-17  15  
0ae0a14c3835b3 Helge Deller 2023-08-17  16  static int build_body(struct hppa_jit_context *ctx, bool extra_pass, int *offset)
0ae0a14c3835b3 Helge Deller 2023-08-17  17  {
0ae0a14c3835b3 Helge Deller 2023-08-17  18  	const struct bpf_prog *prog = ctx->prog;
0ae0a14c3835b3 Helge Deller 2023-08-17  19  	int i;
0ae0a14c3835b3 Helge Deller 2023-08-17 @20  	bool again = false;
0ae0a14c3835b3 Helge Deller 2023-08-17  21  
0ae0a14c3835b3 Helge Deller 2023-08-17  22  	ctx->reg_seen_collect = true;
0ae0a14c3835b3 Helge Deller 2023-08-17  23  	for (i = 0; i < prog->len; i++) {
0ae0a14c3835b3 Helge Deller 2023-08-17  24  		const struct bpf_insn *insn = &prog->insnsi[i];
0ae0a14c3835b3 Helge Deller 2023-08-17  25  		int ret;
0ae0a14c3835b3 Helge Deller 2023-08-17  26  
0ae0a14c3835b3 Helge Deller 2023-08-17  27  		ret = bpf_jit_emit_insn(insn, ctx, extra_pass);
0ae0a14c3835b3 Helge Deller 2023-08-17  28  // printk("instruction #%d -> RET %d\n", i, ret);
0ae0a14c3835b3 Helge Deller 2023-08-17  29  		/* BPF_LD | BPF_IMM | BPF_DW: skip the next instruction. */
0ae0a14c3835b3 Helge Deller 2023-08-17  30  		if (ret > 0)
0ae0a14c3835b3 Helge Deller 2023-08-17  31  			i++;
0ae0a14c3835b3 Helge Deller 2023-08-17  32  		if (offset) {
0ae0a14c3835b3 Helge Deller 2023-08-17  33  			if (offset[i] != ctx->ninsns)
0ae0a14c3835b3 Helge Deller 2023-08-17  34  				again = 1;
0ae0a14c3835b3 Helge Deller 2023-08-17  35  			offset[i] = ctx->ninsns;
0ae0a14c3835b3 Helge Deller 2023-08-17  36  		}
0ae0a14c3835b3 Helge Deller 2023-08-17  37  // printk("INSTR  %d  offset at %d\n", i, offset ? offset[i]: 0);
0ae0a14c3835b3 Helge Deller 2023-08-17  38  		if (ret < 0)
0ae0a14c3835b3 Helge Deller 2023-08-17  39  			return ret;
0ae0a14c3835b3 Helge Deller 2023-08-17  40  	}
0ae0a14c3835b3 Helge Deller 2023-08-17  41  	ctx->reg_seen_collect = false;
0ae0a14c3835b3 Helge Deller 2023-08-17  42  	return 0;
0ae0a14c3835b3 Helge Deller 2023-08-17  43  }
0ae0a14c3835b3 Helge Deller 2023-08-17  44  

:::::: The code at line 20 was first introduced by commit
:::::: 0ae0a14c3835b36b7a5eb1616cd28e5082029290 parisc: Add eBPF JIT compiler glue code and Makefile

:::::: TO: Helge Deller <deller@gmx.de>
:::::: CC: Helge Deller <deller@gmx.de>

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

                 reply	other threads:[~2023-08-22  3:01 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=202308221007.DdwwUTXx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=deller@gmx.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.