From: kernel test robot <lkp@intel.com>
To: Chenghao Duan <duanchenghao@kylinos.cn>,
loongarch@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
Chenghao Duan <duanchenghao@kylinos.cn>,
George Guo <guodongtai@kylinos.cn>
Subject: Re: [PATCH v1 3/5] LoongArch: BPF: Add bpf_arch_text_poke support for Loongarch
Date: Thu, 12 Jun 2025 04:56:41 +0800 [thread overview]
Message-ID: <202506120407.Dqc4kJYr-lkp@intel.com> (raw)
In-Reply-To: <20250611053625.352091-4-duanchenghao@kylinos.cn>
Hi Chenghao,
kernel test robot noticed the following build warnings:
[auto build test WARNING on bpf-next/net]
[also build test WARNING on bpf-next/master bpf/master linus/master v6.16-rc1 next-20250611]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Chenghao-Duan/LoongArch-Support-fixmap/20250611-133843
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git net
patch link: https://lore.kernel.org/r/20250611053625.352091-4-duanchenghao%40kylinos.cn
patch subject: [PATCH v1 3/5] LoongArch: BPF: Add bpf_arch_text_poke support for Loongarch
config: loongarch-randconfig-002-20250612 (https://download.01.org/0day-ci/archive/20250612/202506120407.Dqc4kJYr-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250612/202506120407.Dqc4kJYr-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/202506120407.Dqc4kJYr-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/loongarch/net/bpf_jit.c: In function 'gen_jump_or_nops':
>> arch/loongarch/net/bpf_jit.c:1380:13: warning: variable 'off' set but not used [-Wunused-but-set-variable]
1380 | s64 off = 0;
| ^~~
vim +/off +1380 arch/loongarch/net/bpf_jit.c
1377
1378 static int gen_jump_or_nops(void *target, void *ip, u32 *insns, bool is_call)
1379 {
> 1380 s64 off = 0;
1381 struct jit_ctx ctx;
1382
1383 ctx.idx = 0;
1384 ctx.image = (union loongarch_instruction *)insns;
1385
1386 if (!target) {
1387 emit_insn((&ctx), NOP);
1388 emit_insn((&ctx), NOP);
1389 return 0;
1390 }
1391
1392 off = (s64)(target - ip);
1393 return emit_jump_and_link(&ctx, is_call ? LOONGARCH_GPR_T0 : LOONGARCH_GPR_ZERO,
1394 (unsigned long)ip, (unsigned long)target);
1395 }
1396
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-06-11 20:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-11 3:59 [PATCH v1 0/5] Support trampoline for LoongArch Chenghao Duan
2025-06-11 3:59 ` [PATCH v1 1/5] LoongArch: Support fixmap Chenghao Duan
2025-06-11 3:59 ` [PATCH v1 2/5] LoongArch: BPF: The operation commands needed to add a trampoline Chenghao Duan
2025-06-11 5:36 ` [PATCH v1 0/5] Support trampoline for LoongArch Chenghao Duan
2025-06-11 5:36 ` [PATCH v1 1/5] LoongArch: Support fixmap Chenghao Duan
2025-06-11 5:36 ` [PATCH v1 2/5] LoongArch: BPF: The operation commands needed to add a trampoline Chenghao Duan
2025-06-12 12:32 ` Hengqi Chen
2025-06-11 5:36 ` [PATCH v1 3/5] LoongArch: BPF: Add bpf_arch_text_poke support for Loongarch Chenghao Duan
2025-06-11 20:56 ` kernel test robot [this message]
2025-06-11 5:36 ` [PATCH v1 4/5] LoongArch: BPF: Add bpf trampoline " Chenghao Duan
2025-06-11 5:36 ` [PATCH v1 5/5] LoongArch: BPF: Update the code to rename validate_code to validate_ctx Chenghao Duan
2025-06-11 3:59 ` [PATCH v1 3/5] LoongArch: BPF: Add bpf_arch_text_poke support for Loongarch Chenghao Duan
2025-06-11 3:59 ` [PATCH v1 4/5] LoongArch: BPF: Add bpf trampoline " Chenghao Duan
2025-06-11 3:59 ` [PATCH v1 5/5] LoongArch: BPF: Update the code to rename validate_code to validate_ctx Chenghao Duan
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=202506120407.Dqc4kJYr-lkp@intel.com \
--to=lkp@intel.com \
--cc=duanchenghao@kylinos.cn \
--cc=guodongtai@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®