* [ntb:ntb-next 4/19] drivers/ntb/hw/intel/ntb_hw_gen4.c:484:5: warning: no previous prototype for 'intel_ntb4_mw_get_align'
@ 2020-06-05 22:15 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-05 22:15 UTC (permalink / raw)
To: Dave Jiang; +Cc: kbuild-all, linux-ntb, Jon Mason
[-- Attachment #1: Type: text/plain, Size: 2382 bytes --]
tree: https://github.com/jonmason/ntb ntb-next
head: e24ffef7f16796eb10533a1ad6af5bdc5be3df83
commit: 303f8eff679681b62e5ef10d81f697d0a15eb850 [4/19] ntb: intel: add hw workaround for NTB BAR alignment
config: x86_64-randconfig-a003-20200605 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
git checkout 303f8eff679681b62e5ef10d81f697d0a15eb850
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/ntb/hw/intel/ntb_hw_gen4.c:459:5: warning: no previous prototype for 'intel_ntb4_link_disable' [-Wmissing-prototypes]
int intel_ntb4_link_disable(struct ntb_dev *ntb)
^
>> drivers/ntb/hw/intel/ntb_hw_gen4.c:484:5: warning: no previous prototype for 'intel_ntb4_mw_get_align' [-Wmissing-prototypes]
int intel_ntb4_mw_get_align(struct ntb_dev *ntb, int pidx, int idx,
^
vim +/intel_ntb4_mw_get_align +484 drivers/ntb/hw/intel/ntb_hw_gen4.c
483
> 484 int intel_ntb4_mw_get_align(struct ntb_dev *ntb, int pidx, int idx,
485 resource_size_t *addr_align,
486 resource_size_t *size_align,
487 resource_size_t *size_max)
488 {
489 struct intel_ntb_dev *ndev = ntb_ndev(ntb);
490 resource_size_t bar_size, mw_size;
491 int bar;
492
493 if (pidx != NTB_DEF_PEER_IDX)
494 return -EINVAL;
495
496 if (idx >= ndev->b2b_idx && !ndev->b2b_off)
497 idx += 1;
498
499 bar = ndev_mw_to_bar(ndev, idx);
500 if (bar < 0)
501 return bar;
502
503 bar_size = pci_resource_len(ndev->ntb.pdev, bar);
504
505 if (idx == ndev->b2b_idx)
506 mw_size = bar_size - ndev->b2b_off;
507 else
508 mw_size = bar_size;
509
510 if (addr_align) {
511 if (ndev->hwerr_flags & NTB_HWERR_BAR_ALIGN)
512 *addr_align = pci_resource_len(ndev->ntb.pdev, bar);
513 else
514 *addr_align = PAGE_SIZE;
515 }
516
517 if (size_align)
518 *size_align = 1;
519
520 if (size_max)
521 *size_max = mw_size;
522
523 return 0;
524 }
525
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36468 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-05 22:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-05 22:15 [ntb:ntb-next 4/19] drivers/ntb/hw/intel/ntb_hw_gen4.c:484:5: warning: no previous prototype for 'intel_ntb4_mw_get_align' 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