From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 2565/14131] drivers/ntb/hw/intel/ntb_hw_gen4.c:449:5: warning: no previous prototype for function 'intel_ntb4_link_disable'
Date: Sat, 30 May 2020 01:28:22 +0800 [thread overview]
Message-ID: <202005300118.RhiT8Huh%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2667 bytes --]
Hi Dave,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 26bfe3d0b227ab6d38692640b44ce48f2d857602 [2565/14131] ntb: intel: Add Icelake (gen4) support for Intel NTB
config: x86_64-randconfig-a012-20200529 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2d068e534f1671459e1b135852c1b3c10502e929)
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
git checkout 26bfe3d0b227ab6d38692640b44ce48f2d857602
# 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: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/ntb/hw/intel/ntb_hw_gen4.c:449:5: warning: no previous prototype for function 'intel_ntb4_link_disable' [-Wmissing-prototypes]
int intel_ntb4_link_disable(struct ntb_dev *ntb)
^
drivers/ntb/hw/intel/ntb_hw_gen4.c:449:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int intel_ntb4_link_disable(struct ntb_dev *ntb)
^
static
1 warning generated.
vim +/intel_ntb4_link_disable +449 drivers/ntb/hw/intel/ntb_hw_gen4.c
448
> 449 int intel_ntb4_link_disable(struct ntb_dev *ntb)
450 {
451 struct intel_ntb_dev *ndev;
452 u32 ntb_cntl;
453 u16 lnkctl;
454
455 ndev = container_of(ntb, struct intel_ntb_dev, ntb);
456
457 dev_dbg(&ntb->pdev->dev, "Disabling link\n");
458
459 /* clear the snoop bits */
460 ntb_cntl = ioread32(ndev->self_mmio + ndev->reg->ntb_ctl);
461 ntb_cntl &= ~(NTB_CTL_E2I_BAR23_SNOOP | NTB_CTL_I2E_BAR23_SNOOP);
462 ntb_cntl &= ~(NTB_CTL_E2I_BAR45_SNOOP | NTB_CTL_I2E_BAR45_SNOOP);
463 iowrite32(ntb_cntl, ndev->self_mmio + ndev->reg->ntb_ctl);
464
465 lnkctl = ioread16(ndev->self_mmio + GEN4_LINK_CTRL_OFFSET);
466 lnkctl |= GEN4_LINK_CTRL_LINK_DISABLE;
467 iowrite16(lnkctl, ndev->self_mmio + GEN4_LINK_CTRL_OFFSET);
468
469 ndev->dev_up = 0;
470
471 return 0;
472 }
473
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 42117 bytes --]
reply other threads:[~2020-05-29 17:28 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=202005300118.RhiT8Huh%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.