[peterz-queue:master 387/476] arch/x86/kernel/paravirt.c:338:26: error: use of undeclared identifier 'native_flush_tlb_others'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 7b18c2d1930b99fc2acd4b9499a55f51df2a6678
commit: dde56e52f55a3bed98d1b02d83ab4376c7e152b4 [387/476] x86/mm/tlb: Flush remote and local TLBs concurrently
config: x86_64-randconfig-a003-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue master
git checkout dde56e52f55a3bed98d1b02d83ab4376c7e152b4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/paravirt.c:111:13: warning: no previous prototype for function 'native_pv_lock_init' [-Wmissing-prototypes]
void __init native_pv_lock_init(void)
^
arch/x86/kernel/paravirt.c:111:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init native_pv_lock_init(void)
^
static
>> arch/x86/kernel/paravirt.c:338:26: error: use of undeclared identifier 'native_flush_tlb_others'
.mmu.flush_tlb_others = native_flush_tlb_others,
^
1 warning and 1 error generated.
vim +/native_flush_tlb_others +338 arch/x86/kernel/paravirt.c
5c83511bdb9832 Juergen Gross 2018-08-28 333
5c83511bdb9832 Juergen Gross 2018-08-28 334 /* Mmu ops. */
2faf153bb7346b Thomas Gleixner 2020-04-21 335 .mmu.flush_tlb_user = native_flush_tlb_local,
5c83511bdb9832 Juergen Gross 2018-08-28 336 .mmu.flush_tlb_kernel = native_flush_tlb_global,
5c83511bdb9832 Juergen Gross 2018-08-28 337 .mmu.flush_tlb_one_user = native_flush_tlb_one_user,
5c83511bdb9832 Juergen Gross 2018-08-28 @338 .mmu.flush_tlb_others = native_flush_tlb_others,
5c83511bdb9832 Juergen Gross 2018-08-28 339 .mmu.tlb_remove_table =
5c83511bdb9832 Juergen Gross 2018-08-28 340 (void (*)(struct mmu_gather *, void *))tlb_remove_page,
5c83511bdb9832 Juergen Gross 2018-08-28 341
fdc0269e8958a1 Juergen Gross 2018-08-28 342 .mmu.exit_mmap = paravirt_nop,
fdc0269e8958a1 Juergen Gross 2018-08-28 343
:::::: The code at line 338 was first introduced by commit
:::::: 5c83511bdb9832c86be20fb86b783356e2f58062 x86/paravirt: Use a single ops structure
:::::: TO: Juergen Gross <jgross(a)suse.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[peterz-queue:mm/tlb 6/10] mm/memory.c:5225: error: unterminated argument list invoking macro "tlb_remove_table"
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git mm/tlb
head: 582b5d93a5a647a6cc9d0eb605921aae8624ff15
commit: 3026e63904809dc2dcf2d007845e750cf74c119c [6/10] ia64/tlb: Fix __p*_free_tlb()
config: ia64-randconfig-r011-20210216 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue mm/tlb
git checkout 3026e63904809dc2dcf2d007845e750cf74c119c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/memory.c: In function 'free_pmd_range':
>> mm/memory.c:5225: error: unterminated argument list invoking macro "tlb_remove_table"
5225 | #endif
|
In file included from mm/memory.c:81:
>> arch/ia64/include/asm/pgalloc.h:50:2: error: 'tlb_remove_table' undeclared (first use in this function); did you mean 'tlb_remove_page'?
50 | tlb_remove_table((tlb), virt_to_page(pmd)
| ^~~~~~~~~~~~~~~~
include/asm-generic/tlb.h:636:3: note: in expansion of macro '__pmd_free_tlb'
636 | __pmd_free_tlb(tlb, pmdp, address); \
| ^~~~~~~~~~~~~~
mm/memory.c:254:2: note: in expansion of macro 'pmd_free_tlb'
254 | pmd_free_tlb(tlb, pmd, start);
| ^~~~~~~~~~~~
arch/ia64/include/asm/pgalloc.h:50:2: note: each undeclared identifier is reported only once for each function it appears in
50 | tlb_remove_table((tlb), virt_to_page(pmd)
| ^~~~~~~~~~~~~~~~
include/asm-generic/tlb.h:636:3: note: in expansion of macro '__pmd_free_tlb'
636 | __pmd_free_tlb(tlb, pmdp, address); \
| ^~~~~~~~~~~~~~
mm/memory.c:254:2: note: in expansion of macro 'pmd_free_tlb'
254 | pmd_free_tlb(tlb, pmd, start);
| ^~~~~~~~~~~~
>> mm/memory.c:5225: error: expected ';' at end of input
5225 | #endif
|
>> mm/memory.c:254:2: error: expected declaration or statement at end of input
254 | pmd_free_tlb(tlb, pmd, start);
| ^~~~~~~~~~~~
>> mm/memory.c:254:2: error: expected declaration or statement at end of input
At top level:
mm/memory.c:193:13: warning: 'check_sync_rss_stat' defined but not used [-Wunused-function]
193 | static void check_sync_rss_stat(struct task_struct *task)
| ^~~~~~~~~~~~~~~~~~~
mm/memory.c:179:13: warning: 'add_mm_counter_fast' defined but not used [-Wunused-function]
179 | static void add_mm_counter_fast(struct mm_struct *mm, int member, int val)
| ^~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
vim +/tlb_remove_table +5225 mm/memory.c
49076ec2ccaf68 Kirill A. Shutemov 2013-11-14 5220
539edb5846c740 Peter Zijlstra 2013-11-14 5221 void ptlock_free(struct page *page)
49076ec2ccaf68 Kirill A. Shutemov 2013-11-14 5222 {
b35f1819acd924 Kirill A. Shutemov 2014-01-21 5223 kmem_cache_free(page_ptl_cachep, page->ptl);
49076ec2ccaf68 Kirill A. Shutemov 2013-11-14 5224 }
49076ec2ccaf68 Kirill A. Shutemov 2013-11-14 @5225 #endif
:::::: The code at line 5225 was first introduced by commit
:::::: 49076ec2ccaf68610aa03d96bced9a6694b93ca1 mm: dynamically allocate page->ptl if it cannot be embedded to struct page
:::::: TO: Kirill A. Shutemov <kirill.shutemov(a)linux.intel.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH] mhi_bus: core: Wait for ready state after reset
by kernel test robot
Hi Jeffrey,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.11 next-20210216]
[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]
url: https://github.com/0day-ci/linux/commits/Jeffrey-Hugo/mhi_bus-core-Wait-f...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f40ddce88593482919761f74910f42f4b84c004b
config: x86_64-randconfig-a013-20210216 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/a9148d0d4715fb099ae777ecd89a1d3fa...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jeffrey-Hugo/mhi_bus-core-Wait-for-ready-state-after-reset/20210217-045558
git checkout a9148d0d4715fb099ae777ecd89a1d3fab7eb7aa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/bus/mhi/core/pm.c:501:8: warning: variable 'cur_state' is uninitialized when used here [-Wuninitialized]
cur_state == MHI_PM_SYS_ERR_PROCESS) {
^~~~~~~~~
drivers/bus/mhi/core/pm.c:451:2: note: variable 'cur_state' is declared here
enum mhi_pm_state cur_state;
^
1 warning generated.
vim +/cur_state +501 drivers/bus/mhi/core/pm.c
447
448 /* Handle shutdown transitions */
449 static void mhi_pm_disable_transition(struct mhi_controller *mhi_cntrl)
450 {
451 enum mhi_pm_state cur_state;
452 struct mhi_event *mhi_event;
453 struct mhi_cmd_ctxt *cmd_ctxt;
454 struct mhi_cmd *mhi_cmd;
455 struct mhi_event_ctxt *er_ctxt;
456 struct device *dev = &mhi_cntrl->mhi_dev->dev;
457 int ret, i;
458
459 dev_dbg(dev, "Processing disable transition with PM state: %s\n",
460 to_mhi_pm_state_str(mhi_cntrl->pm_state));
461
462 mutex_lock(&mhi_cntrl->pm_mutex);
463
464 /* Trigger MHI RESET so that the device will not access host memory */
465 if (!MHI_PM_IN_FATAL_STATE(mhi_cntrl->pm_state)) {
466 u32 in_reset = -1, ready = 0;
467 unsigned long timeout = msecs_to_jiffies(mhi_cntrl->timeout_ms);
468
469 dev_dbg(dev, "Triggering MHI Reset in device\n");
470 mhi_set_mhi_state(mhi_cntrl, MHI_STATE_RESET);
471
472 /* Wait for the reset bit to be cleared by the device */
473 ret = wait_event_timeout(mhi_cntrl->state_event,
474 mhi_read_reg_field(mhi_cntrl,
475 mhi_cntrl->regs,
476 MHICTRL,
477 MHICTRL_RESET_MASK,
478 MHICTRL_RESET_SHIFT,
479 &in_reset) ||
480 !in_reset, timeout);
481 if (!ret || in_reset)
482 dev_err(dev, "Device failed to exit MHI Reset state\n");
483
484 /*
485 * Device will clear BHI_INTVEC as a part of RESET processing,
486 * hence re-program it
487 */
488 mhi_write_reg(mhi_cntrl, mhi_cntrl->bhi, BHI_INTVEC, 0);
489
490 if (!MHI_IN_PBL(mhi_get_exec_env(mhi_cntrl))) {
491 /* wait for ready to be set */
492 ret = wait_event_timeout(mhi_cntrl->state_event,
493 mhi_read_reg_field(mhi_cntrl,
494 mhi_cntrl->regs,
495 MHISTATUS,
496 MHISTATUS_READY_MASK,
497 MHISTATUS_READY_SHIFT,
498 &ready)
499 || ready, timeout);
500 if ((!ret || !ready) &&
> 501 cur_state == MHI_PM_SYS_ERR_PROCESS) {
502 dev_err(dev,
503 "Device failed to enter READY state\n");
504 mutex_unlock(&mhi_cntrl->pm_mutex);
505 return;
506 }
507 }
508 }
509
510 dev_dbg(dev,
511 "Waiting for all pending event ring processing to complete\n");
512 mhi_event = mhi_cntrl->mhi_event;
513 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, mhi_event++) {
514 if (mhi_event->offload_ev)
515 continue;
516 free_irq(mhi_cntrl->irq[mhi_event->irq], mhi_event);
517 tasklet_kill(&mhi_event->task);
518 }
519
520 /* Release lock and wait for all pending threads to complete */
521 mutex_unlock(&mhi_cntrl->pm_mutex);
522 dev_dbg(dev, "Waiting for all pending threads to complete\n");
523 wake_up_all(&mhi_cntrl->state_event);
524
525 dev_dbg(dev, "Reset all active channels and remove MHI devices\n");
526 device_for_each_child(&mhi_cntrl->mhi_dev->dev, NULL, mhi_destroy_device);
527
528 mutex_lock(&mhi_cntrl->pm_mutex);
529
530 WARN_ON(atomic_read(&mhi_cntrl->dev_wake));
531 WARN_ON(atomic_read(&mhi_cntrl->pending_pkts));
532
533 /* Reset the ev rings and cmd rings */
534 dev_dbg(dev, "Resetting EV CTXT and CMD CTXT\n");
535 mhi_cmd = mhi_cntrl->mhi_cmd;
536 cmd_ctxt = mhi_cntrl->mhi_ctxt->cmd_ctxt;
537 for (i = 0; i < NR_OF_CMD_RINGS; i++, mhi_cmd++, cmd_ctxt++) {
538 struct mhi_ring *ring = &mhi_cmd->ring;
539
540 ring->rp = ring->base;
541 ring->wp = ring->base;
542 cmd_ctxt->rp = cmd_ctxt->rbase;
543 cmd_ctxt->wp = cmd_ctxt->rbase;
544 }
545
546 mhi_event = mhi_cntrl->mhi_event;
547 er_ctxt = mhi_cntrl->mhi_ctxt->er_ctxt;
548 for (i = 0; i < mhi_cntrl->total_ev_rings; i++, er_ctxt++,
549 mhi_event++) {
550 struct mhi_ring *ring = &mhi_event->ring;
551
552 /* Skip offload events */
553 if (mhi_event->offload_ev)
554 continue;
555
556 ring->rp = ring->base;
557 ring->wp = ring->base;
558 er_ctxt->rp = er_ctxt->rbase;
559 er_ctxt->wp = er_ctxt->rbase;
560 }
561
562 /* Move to disable state */
563 write_lock_irq(&mhi_cntrl->pm_lock);
564 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_DISABLE);
565 write_unlock_irq(&mhi_cntrl->pm_lock);
566 if (unlikely(cur_state != MHI_PM_DISABLE))
567 dev_err(dev, "Error moving from PM state: %s to: %s\n",
568 to_mhi_pm_state_str(cur_state),
569 to_mhi_pm_state_str(MHI_PM_DISABLE));
570
571 dev_dbg(dev, "Exiting with PM state: %s, MHI state: %s\n",
572 to_mhi_pm_state_str(mhi_cntrl->pm_state),
573 TO_MHI_STATE_STR(mhi_cntrl->dev_state));
574
575 mutex_unlock(&mhi_cntrl->pm_mutex);
576 }
577
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[peterz-queue:master 387/476] arch/x86/mm/tlb.c:1172:18: warning: variable 'info' is uninitialized when used here
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 7b18c2d1930b99fc2acd4b9499a55f51df2a6678
commit: dde56e52f55a3bed98d1b02d83ab4376c7e152b4 [387/476] x86/mm/tlb: Flush remote and local TLBs concurrently
config: x86_64-randconfig-a003-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue master
git checkout dde56e52f55a3bed98d1b02d83ab4376c7e152b4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/mm/tlb.c:1172:18: warning: variable 'info' is uninitialized when used here [-Wuninitialized]
flush_tlb_func(info);
^~~~
arch/x86/mm/tlb.c:1158:29: note: initialize the variable 'info' to silence this warning
struct flush_tlb_info *info;
^
= NULL
1 warning generated.
vim +/info +1172 arch/x86/mm/tlb.c
2faf153bb7346b Thomas Gleixner 2020-04-21 1155
3db6d5a5ecaf0a Nadav Amit 2019-04-25 1156 void arch_tlbbatch_flush(struct arch_tlbflush_unmap_batch *batch)
3db6d5a5ecaf0a Nadav Amit 2019-04-25 1157 {
edd07111673cdd Nadav Amit 2021-02-09 1158 struct flush_tlb_info *info;
edd07111673cdd Nadav Amit 2021-02-09 1159
e73ad5ff2f76da Andy Lutomirski 2017-05-22 1160 int cpu = get_cpu();
e73ad5ff2f76da Andy Lutomirski 2017-05-22 1161
dde56e52f55a3b Nadav Amit 2021-02-09 1162 /*
dde56e52f55a3b Nadav Amit 2021-02-09 1163 * flush_tlb_multi() is not optimized for the common case in which only
dde56e52f55a3b Nadav Amit 2021-02-09 1164 * a local TLB flush is needed. Optimize this use-case by calling
dde56e52f55a3b Nadav Amit 2021-02-09 1165 * flush_tlb_func_local() directly in this case.
dde56e52f55a3b Nadav Amit 2021-02-09 1166 */
dde56e52f55a3b Nadav Amit 2021-02-09 1167 if (cpumask_any_but(&batch->cpumask, cpu) < nr_cpu_ids) {
dde56e52f55a3b Nadav Amit 2021-02-09 1168 flush_tlb_multi(&batch->cpumask, info);
dde56e52f55a3b Nadav Amit 2021-02-09 1169 } else if (cpumask_test_cpu(cpu, &batch->cpumask)) {
3db6d5a5ecaf0a Nadav Amit 2019-04-25 1170 lockdep_assert_irqs_enabled();
bc0d5a89fbe3c8 Andy Lutomirski 2017-06-29 1171 local_irq_disable();
edd07111673cdd Nadav Amit 2021-02-09 @1172 flush_tlb_func(info);
bc0d5a89fbe3c8 Andy Lutomirski 2017-06-29 1173 local_irq_enable();
bc0d5a89fbe3c8 Andy Lutomirski 2017-06-29 1174 }
bc0d5a89fbe3c8 Andy Lutomirski 2017-06-29 1175
e73ad5ff2f76da Andy Lutomirski 2017-05-22 1176 cpumask_clear(&batch->cpumask);
e73ad5ff2f76da Andy Lutomirski 2017-05-22 1177
edd07111673cdd Nadav Amit 2021-02-09 1178 put_flush_tlb_info();
e73ad5ff2f76da Andy Lutomirski 2017-05-22 1179 put_cpu();
e73ad5ff2f76da Andy Lutomirski 2017-05-22 1180 }
e73ad5ff2f76da Andy Lutomirski 2017-05-22 1181
:::::: The code at line 1172 was first introduced by commit
:::::: edd07111673cddd0689de853c9869fdba0b41bfb x86/mm/tlb: Unify flush_tlb_func_local() and flush_tlb_func_remote()
:::::: TO: Nadav Amit <namit(a)vmware.com>
:::::: CC: Peter Zijlstra <peterz(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 9824/11526] drivers/net/ethernet/intel/i40e/i40e_main.c:6715 i40e_hw_dcb_config() warn: inconsistent indenting
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6553715b6db5ff5d4898895dad1b2926cfe406cf
commit: 4b208eaa8078113ed3f6ba7ecad1ac0a2bad4608 [9824/11526] i40e: Add init and default config of software based DCB
config: parisc-randconfig-m031-20210216 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
drivers/net/ethernet/intel/i40e/i40e_main.c:6715 i40e_hw_dcb_config() warn: inconsistent indenting
drivers/net/ethernet/intel/i40e/i40e_main.c:10522 i40e_rebuild() warn: inconsistent indenting
Old smatch warnings:
arch/parisc/include/asm/hash.h:44 __hash_32() warn: inconsistent indenting
drivers/net/ethernet/intel/i40e/i40e_main.c:2563 i40e_sync_vsi_filters() error: we previously assumed 'vsi->netdev' could be null (see line 2315)
drivers/net/ethernet/intel/i40e/i40e_main.c:15078 i40e_init_recovery_mode() warn: missing error code 'err'
vim +6715 drivers/net/ethernet/intel/i40e/i40e_main.c
6547
6548 /**
6549 * i40e_hw_dcb_config - Program new DCBX settings into HW
6550 * @pf: PF being configured
6551 * @new_cfg: New DCBX configuration
6552 *
6553 * Program DCB settings into HW and reconfigure VEB/VSIs on
6554 * given PF
6555 **/
6556 int i40e_hw_dcb_config(struct i40e_pf *pf, struct i40e_dcbx_config *new_cfg)
6557 {
6558 struct i40e_aqc_configure_switching_comp_ets_data ets_data;
6559 u8 prio_type[I40E_MAX_TRAFFIC_CLASS] = {0};
6560 u32 mfs_tc[I40E_MAX_TRAFFIC_CLASS];
6561 struct i40e_dcbx_config *old_cfg;
6562 u8 mode[I40E_MAX_TRAFFIC_CLASS];
6563 struct i40e_rx_pb_config pb_cfg;
6564 struct i40e_hw *hw = &pf->hw;
6565 u8 num_ports = hw->num_ports;
6566 bool need_reconfig;
6567 int ret = -EINVAL;
6568 u8 lltc_map = 0;
6569 u8 tc_map = 0;
6570 u8 new_numtc;
6571 u8 i;
6572
6573 dev_dbg(&pf->pdev->dev, "Configuring DCB registers directly\n");
6574 /* Un-pack information to Program ETS HW via shared API
6575 * numtc, tcmap
6576 * LLTC map
6577 * ETS/NON-ETS arbiter mode
6578 * max exponent (credit refills)
6579 * Total number of ports
6580 * PFC priority bit-map
6581 * Priority Table
6582 * BW % per TC
6583 * Arbiter mode between UPs sharing same TC
6584 * TSA table (ETS or non-ETS)
6585 * EEE enabled or not
6586 * MFS TC table
6587 */
6588
6589 new_numtc = i40e_dcb_get_num_tc(new_cfg);
6590
6591 memset(&ets_data, 0, sizeof(ets_data));
6592 for (i = 0; i < new_numtc; i++) {
6593 tc_map |= BIT(i);
6594 switch (new_cfg->etscfg.tsatable[i]) {
6595 case I40E_IEEE_TSA_ETS:
6596 prio_type[i] = I40E_DCB_PRIO_TYPE_ETS;
6597 ets_data.tc_bw_share_credits[i] =
6598 new_cfg->etscfg.tcbwtable[i];
6599 break;
6600 case I40E_IEEE_TSA_STRICT:
6601 prio_type[i] = I40E_DCB_PRIO_TYPE_STRICT;
6602 lltc_map |= BIT(i);
6603 ets_data.tc_bw_share_credits[i] =
6604 I40E_DCB_STRICT_PRIO_CREDITS;
6605 break;
6606 default:
6607 /* Invalid TSA type */
6608 need_reconfig = false;
6609 goto out;
6610 }
6611 }
6612
6613 old_cfg = &hw->local_dcbx_config;
6614 /* Check if need reconfiguration */
6615 need_reconfig = i40e_dcb_need_reconfig(pf, old_cfg, new_cfg);
6616
6617 /* If needed, enable/disable frame tagging, disable all VSIs
6618 * and suspend port tx
6619 */
6620 if (need_reconfig) {
6621 /* Enable DCB tagging only when more than one TC */
6622 if (new_numtc > 1)
6623 pf->flags |= I40E_FLAG_DCB_ENABLED;
6624 else
6625 pf->flags &= ~I40E_FLAG_DCB_ENABLED;
6626
6627 set_bit(__I40E_PORT_SUSPENDED, pf->state);
6628 /* Reconfiguration needed quiesce all VSIs */
6629 i40e_pf_quiesce_all_vsi(pf);
6630 ret = i40e_suspend_port_tx(pf);
6631 if (ret)
6632 goto err;
6633 }
6634
6635 /* Configure Port ETS Tx Scheduler */
6636 ets_data.tc_valid_bits = tc_map;
6637 ets_data.tc_strict_priority_flags = lltc_map;
6638 ret = i40e_aq_config_switch_comp_ets
6639 (hw, pf->mac_seid, &ets_data,
6640 i40e_aqc_opc_modify_switching_comp_ets, NULL);
6641 if (ret) {
6642 dev_info(&pf->pdev->dev,
6643 "Modify Port ETS failed, err %s aq_err %s\n",
6644 i40e_stat_str(&pf->hw, ret),
6645 i40e_aq_str(&pf->hw, pf->hw.aq.asq_last_status));
6646 goto out;
6647 }
6648
6649 /* Configure Rx ETS HW */
6650 memset(&mode, I40E_DCB_ARB_MODE_ROUND_ROBIN, sizeof(mode));
6651 i40e_dcb_hw_set_num_tc(hw, new_numtc);
6652 i40e_dcb_hw_rx_fifo_config(hw, I40E_DCB_ARB_MODE_ROUND_ROBIN,
6653 I40E_DCB_ARB_MODE_STRICT_PRIORITY,
6654 I40E_DCB_DEFAULT_MAX_EXPONENT,
6655 lltc_map);
6656 i40e_dcb_hw_rx_cmd_monitor_config(hw, new_numtc, num_ports);
6657 i40e_dcb_hw_rx_ets_bw_config(hw, new_cfg->etscfg.tcbwtable, mode,
6658 prio_type);
6659 i40e_dcb_hw_pfc_config(hw, new_cfg->pfc.pfcenable,
6660 new_cfg->etscfg.prioritytable);
6661 i40e_dcb_hw_rx_up2tc_config(hw, new_cfg->etscfg.prioritytable);
6662
6663 /* Configure Rx Packet Buffers in HW */
6664 for (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) {
6665 mfs_tc[i] = pf->vsi[pf->lan_vsi]->netdev->mtu;
6666 mfs_tc[i] += I40E_PACKET_HDR_PAD;
6667 }
6668
6669 i40e_dcb_hw_calculate_pool_sizes(hw, num_ports,
6670 false, new_cfg->pfc.pfcenable,
6671 mfs_tc, &pb_cfg);
6672 i40e_dcb_hw_rx_pb_config(hw, &pf->pb_cfg, &pb_cfg);
6673
6674 /* Update the local Rx Packet buffer config */
6675 pf->pb_cfg = pb_cfg;
6676
6677 /* Inform the FW about changes to DCB configuration */
6678 ret = i40e_aq_dcb_updated(&pf->hw, NULL);
6679 if (ret) {
6680 dev_info(&pf->pdev->dev,
6681 "DCB Updated failed, err %s aq_err %s\n",
6682 i40e_stat_str(&pf->hw, ret),
6683 i40e_aq_str(&pf->hw, pf->hw.aq.asq_last_status));
6684 goto out;
6685 }
6686
6687 /* Update the port DCBx configuration */
6688 *old_cfg = *new_cfg;
6689
6690 /* Changes in configuration update VEB/VSI */
6691 i40e_dcb_reconfigure(pf);
6692 out:
6693 /* Re-start the VSIs if disabled */
6694 if (need_reconfig) {
6695 ret = i40e_resume_port_tx(pf);
6696
6697 clear_bit(__I40E_PORT_SUSPENDED, pf->state);
6698 /* In case of error no point in resuming VSIs */
6699 if (ret)
6700 goto err;
6701
6702 /* Wait for the PF's queues to be disabled */
6703 ret = i40e_pf_wait_queues_disabled(pf);
6704 if (ret) {
6705 /* Schedule PF reset to recover */
6706 set_bit(__I40E_PF_RESET_REQUESTED, pf->state);
6707 i40e_service_event_schedule(pf);
6708 goto err;
6709 } else {
6710 i40e_pf_unquiesce_all_vsi(pf);
6711 set_bit(__I40E_CLIENT_SERVICE_REQUESTED, pf->state);
6712 set_bit(__I40E_CLIENT_L2_CHANGE, pf->state);
6713 }
6714 /* registers are set, lets apply */
> 6715 if (pf->hw_features & I40E_HW_USE_SET_LLDP_MIB)
6716 ret = i40e_hw_set_dcb_config(pf, new_cfg);
6717 }
6718
6719 err:
6720 return ret;
6721 }
6722
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-rt-devel:linux-5.11.y-rt-rebase 3/197] mm/zswap.c:947:17: warning: variable 'entry' is uninitialized when used here
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.11.y-rt-rebase
head: 1f83b81321d45e418df954e392ebe777299d3355
commit: 944844dbca917098f08d3e3251ab950c6c092319 [3/197] mm/zswap: add the flag can_sleep_mapped
config: riscv-randconfig-r013-20210216 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.11.y-rt-rebase
git checkout 944844dbca917098f08d3e3251ab950c6c092319
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> mm/zswap.c:947:17: warning: variable 'entry' is uninitialized when used here [-Wuninitialized]
tmp = kmalloc(entry->length, GFP_ATOMIC);
^~~~~
mm/zswap.c:933:27: note: initialize the variable 'entry' to silence this warning
struct zswap_entry *entry;
^
= NULL
>> mm/zswap.c:1271:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (!entry->length) {
^~~~~~~~~~~~~~
mm/zswap.c:1322:9: note: uninitialized use occurs here
return ret;
^~~
mm/zswap.c:1271:2: note: remove the 'if' if its condition is always false
if (!entry->length) {
^~~~~~~~~~~~~~~~~~~~~
mm/zswap.c:1259:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
2 warnings generated.
vim +/entry +947 mm/zswap.c
914
915 /*
916 * Attempts to free an entry by adding a page to the swap cache,
917 * decompressing the entry data into the page, and issuing a
918 * bio write to write the page back to the swap device.
919 *
920 * This can be thought of as a "resumed writeback" of the page
921 * to the swap device. We are basically resuming the same swap
922 * writeback path that was intercepted with the frontswap_store()
923 * in the first place. After the page has been decompressed into
924 * the swap cache, the compressed version stored by zswap can be
925 * freed.
926 */
927 static int zswap_writeback_entry(struct zpool *pool, unsigned long handle)
928 {
929 struct zswap_header *zhdr;
930 swp_entry_t swpentry;
931 struct zswap_tree *tree;
932 pgoff_t offset;
933 struct zswap_entry *entry;
934 struct page *page;
935 struct scatterlist input, output;
936 struct crypto_acomp_ctx *acomp_ctx;
937
938 u8 *src, *tmp;
939 unsigned int dlen;
940 int ret;
941 struct writeback_control wbc = {
942 .sync_mode = WB_SYNC_NONE,
943 };
944
945 if (!zpool_can_sleep_mapped(pool)) {
946
> 947 tmp = kmalloc(entry->length, GFP_ATOMIC);
948 if (!tmp)
949 return -ENOMEM;
950 }
951
952 /* extract swpentry from data */
953 zhdr = zpool_map_handle(pool, handle, ZPOOL_MM_RO);
954 swpentry = zhdr->swpentry; /* here */
955 tree = zswap_trees[swp_type(swpentry)];
956 offset = swp_offset(swpentry);
957
958 /* find and ref zswap entry */
959 spin_lock(&tree->lock);
960 entry = zswap_entry_find_get(&tree->rbroot, offset);
961 if (!entry) {
962 /* entry was invalidated */
963 spin_unlock(&tree->lock);
964 zpool_unmap_handle(pool, handle);
965 return 0;
966 }
967 spin_unlock(&tree->lock);
968 BUG_ON(offset != entry->offset);
969
970 /* try to allocate swap cache page */
971 switch (zswap_get_swap_cache_page(swpentry, &page)) {
972 case ZSWAP_SWAPCACHE_FAIL: /* no memory or invalidate happened */
973 ret = -ENOMEM;
974 goto fail;
975
976 case ZSWAP_SWAPCACHE_EXIST:
977 /* page is already in the swap cache, ignore for now */
978 put_page(page);
979 ret = -EEXIST;
980 goto fail;
981
982 case ZSWAP_SWAPCACHE_NEW: /* page is locked */
983 /* decompress */
984 acomp_ctx = raw_cpu_ptr(entry->pool->acomp_ctx);
985
986 dlen = PAGE_SIZE;
987 src = (u8 *)zhdr + sizeof(struct zswap_header);
988
989 if (!zpool_can_sleep_mapped(pool)) {
990
991 memcpy(tmp, src, entry->length);
992 src = tmp;
993
994 zpool_unmap_handle(pool, handle);
995 }
996
997 mutex_lock(acomp_ctx->mutex);
998 sg_init_one(&input, src, entry->length);
999 sg_init_table(&output, 1);
1000 sg_set_page(&output, page, PAGE_SIZE, 0);
1001 acomp_request_set_params(acomp_ctx->req, &input, &output, entry->length, dlen);
1002 ret = crypto_wait_req(crypto_acomp_decompress(acomp_ctx->req), &acomp_ctx->wait);
1003 dlen = acomp_ctx->req->dlen;
1004 mutex_unlock(acomp_ctx->mutex);
1005
1006 BUG_ON(ret);
1007 BUG_ON(dlen != PAGE_SIZE);
1008
1009 /* page is up to date */
1010 SetPageUptodate(page);
1011 }
1012
1013 /* move it to the tail of the inactive list after end_writeback */
1014 SetPageReclaim(page);
1015
1016 /* start writeback */
1017 __swap_writepage(page, &wbc, end_swap_bio_write);
1018 put_page(page);
1019 zswap_written_back_pages++;
1020
1021 spin_lock(&tree->lock);
1022 /* drop local reference */
1023 zswap_entry_put(tree, entry);
1024
1025 /*
1026 * There are two possible situations for entry here:
1027 * (1) refcount is 1(normal case), entry is valid and on the tree
1028 * (2) refcount is 0, entry is freed and not on the tree
1029 * because invalidate happened during writeback
1030 * search the tree and free the entry if find entry
1031 */
1032 if (entry == zswap_rb_search(&tree->rbroot, offset))
1033 zswap_entry_put(tree, entry);
1034 spin_unlock(&tree->lock);
1035
1036 goto end;
1037
1038 /*
1039 * if we get here due to ZSWAP_SWAPCACHE_EXIST
1040 * a load may happening concurrently
1041 * it is safe and okay to not free the entry
1042 * if we free the entry in the following put
1043 * it it either okay to return !0
1044 */
1045 fail:
1046 spin_lock(&tree->lock);
1047 zswap_entry_put(tree, entry);
1048 spin_unlock(&tree->lock);
1049
1050 end:
1051 if (zpool_can_sleep_mapped(pool))
1052 zpool_unmap_handle(pool, handle);
1053 else
1054 kfree(tmp);
1055
1056 return ret;
1057 }
1058
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[trace:for-next 33/37] ld.lld: error: main.c:(.text+0xA68): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
TO: Masami Hiramatsu <mhiramat(a)kernel.org>
CC: "Steven Rostedt (VMware)" <rostedt(a)goodmis.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next
head: e23db805da2dfc39e5281b5efd3e36d132aa83af
commit: efbbdaa22bb78761bff8dfdde027ad04bedd47ce [33/37] tracing: Show real address for trace event arguments
config: riscv-randconfig-r014-20210216 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git/c...
git remote add trace https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
git fetch --no-tags trace for-next
git checkout efbbdaa22bb78761bff8dfdde027ad04bedd47ce
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x88): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x110): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x1A8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x2F0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x3FC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x518): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x8A4): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x90C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x9C0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xA68): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xB14): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xB7C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xBD0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xC2C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.init.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.init.text+0x58): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.init.text+0xB0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.init.text+0x108): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH 2/3] mtd: core: add nvmem-partitions compatible to parse mtd as nvmem cells
by kernel test robot
Hi Ansuel,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on mtd/mtd/next]
[also build test ERROR on mtd/mtd/fixes robh/for-next v5.11 next-20210216]
[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]
url: https://github.com/0day-ci/linux/commits/Ansuel-Smith/Implement-nvmem-sup...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next
config: m68k-randconfig-r011-20210216 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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/0day-ci/linux/commit/ea1902bc853fa1f1050cc741912709fe5...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ansuel-Smith/Implement-nvmem-support-for-mtd/20210217-035931
git checkout ea1902bc853fa1f1050cc741912709fe5ebbdc41
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/mtd/mtdcore.c: In function 'mtd_nvmem_add':
>> drivers/mtd/mtdcore.c:546:47: error: 'node' undeclared (first use in this function); did you mean 'inode'?
546 | config.no_of_node = !of_device_is_compatible(node, "nvmem-partitions");
| ^~~~
| inode
drivers/mtd/mtdcore.c:546:47: note: each undeclared identifier is reported only once for each function it appears in
vim +546 drivers/mtd/mtdcore.c
531
532 static int mtd_nvmem_add(struct mtd_info *mtd)
533 {
534 struct nvmem_config config = {};
535
536 config.id = -1;
537 config.dev = &mtd->dev;
538 config.name = dev_name(&mtd->dev);
539 config.owner = THIS_MODULE;
540 config.reg_read = mtd_nvmem_reg_read;
541 config.size = mtd->size;
542 config.word_size = 1;
543 config.stride = 1;
544 config.read_only = true;
545 config.root_only = true;
> 546 config.no_of_node = !of_device_is_compatible(node, "nvmem-partitions");
547 config.priv = mtd;
548
549 mtd->nvmem = nvmem_register(&config);
550 if (IS_ERR(mtd->nvmem)) {
551 /* Just ignore if there is no NVMEM support in the kernel */
552 if (PTR_ERR(mtd->nvmem) == -EOPNOTSUPP) {
553 mtd->nvmem = NULL;
554 } else {
555 dev_err(&mtd->dev, "Failed to register NVMEM device\n");
556 return PTR_ERR(mtd->nvmem);
557 }
558 }
559
560 return 0;
561 }
562
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[xen-tip:linux-next 7/9] drivers/net/xen-netback/netback.c:1334:17: warning: variable 'ret' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next
head: 871997bc9e423f05c7da7c9178e62dde5df2a7f8
commit: 3194a1746e8aabe86075fd3c5e7cf1f4632d7f16 [7/9] xen-netback: don't "handle" error by BUG()
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git/commit/?id=31...
git remote add xen-tip https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git
git fetch --no-tags xen-tip linux-next
git checkout 3194a1746e8aabe86075fd3c5e7cf1f4632d7f16
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/xen-netback/netback.c: In function 'xenvif_tx_action':
>> drivers/net/xen-netback/netback.c:1334:17: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1334 | int work_done, ret;
| ^~~
vim +/ret +1334 drivers/net/xen-netback/netback.c
3e2234b3149f66 Zoltan Kiss 2014-03-06 1328
f53c3fe8dad725 Zoltan Kiss 2014-03-06 1329
f942dc2552b8bf Ian Campbell 2011-03-15 1330 /* Called after netfront has transmitted */
e9ce7cb6b10740 Wei Liu 2014-06-04 1331 int xenvif_tx_action(struct xenvif_queue *queue, int budget)
f942dc2552b8bf Ian Campbell 2011-03-15 1332 {
bdab82759b8e36 Zoltan Kiss 2014-04-02 1333 unsigned nr_mops, nr_cops = 0;
f53c3fe8dad725 Zoltan Kiss 2014-03-06 @1334 int work_done, ret;
b3f980bd827e6e Wei Liu 2013-08-26 1335
e9ce7cb6b10740 Wei Liu 2014-06-04 1336 if (unlikely(!tx_work_todo(queue)))
b3f980bd827e6e Wei Liu 2013-08-26 1337 return 0;
f942dc2552b8bf Ian Campbell 2011-03-15 1338
e9ce7cb6b10740 Wei Liu 2014-06-04 1339 xenvif_tx_build_gops(queue, budget, &nr_cops, &nr_mops);
f942dc2552b8bf Ian Campbell 2011-03-15 1340
bdab82759b8e36 Zoltan Kiss 2014-04-02 1341 if (nr_cops == 0)
b3f980bd827e6e Wei Liu 2013-08-26 1342 return 0;
f942dc2552b8bf Ian Campbell 2011-03-15 1343
e9ce7cb6b10740 Wei Liu 2014-06-04 1344 gnttab_batch_copy(queue->tx_copy_ops, nr_cops);
3194a1746e8aab Jan Beulich 2021-02-15 1345 if (nr_mops != 0)
e9ce7cb6b10740 Wei Liu 2014-06-04 1346 ret = gnttab_map_refs(queue->tx_map_ops,
f53c3fe8dad725 Zoltan Kiss 2014-03-06 1347 NULL,
e9ce7cb6b10740 Wei Liu 2014-06-04 1348 queue->pages_to_map,
9074ce24932186 Zoltan Kiss 2014-04-02 1349 nr_mops);
f942dc2552b8bf Ian Campbell 2011-03-15 1350
e9ce7cb6b10740 Wei Liu 2014-06-04 1351 work_done = xenvif_tx_submit(queue);
b3f980bd827e6e Wei Liu 2013-08-26 1352
b3f980bd827e6e Wei Liu 2013-08-26 1353 return work_done;
f942dc2552b8bf Ian Campbell 2011-03-15 1354 }
f942dc2552b8bf Ian Campbell 2011-03-15 1355
:::::: The code at line 1334 was first introduced by commit
:::::: f53c3fe8dad725b014e9c7682720d8e3e2a8a5b3 xen-netback: Introduce TX grant mapping
:::::: TO: Zoltan Kiss <zoltan.kiss(a)citrix.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months