All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: aubrey.li@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [anolis-intel-cloud:devel-6.6 0/94] drivers/cxl/pci.c:208:1: warning: no previous prototype for function 'cxl_pci_quirk_lookup_id'
Date: Sun, 11 May 2025 16:39:22 +0800	[thread overview]
Message-ID: <202505111650.ZZdou694-lkp@intel.com> (raw)

tree:   https://gitee.com/anolis/intel-cloud-kernel.git devel-6.6
head:   5b7daba404993131fe0d699e5acdccaa5bc3a017
commit: c7069262a20a5ce622c02aaee4333820d7c97023 [0/94] anolis: driver/cxl: remove the sanitize limit and fix the return code bug
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250511/202505111650.ZZdou694-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
rustc: rustc 1.73.0 (cc66ad468 2023-10-03)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250511/202505111650.ZZdou694-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/202505111650.ZZdou694-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/cxl/pci.c:208:1: warning: no previous prototype for function 'cxl_pci_quirk_lookup_id' [-Wmissing-prototypes]
     208 | cxl_pci_quirk_lookup_id(u16 vendor, u16 device,
         | ^
   drivers/cxl/pci.c:207:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
     207 | const struct cxl_pci_quirk *
         |       ^
         | static 
>> drivers/cxl/pci.c:223:1: warning: no previous prototype for function 'cxl_pci_quirk_lookup' [-Wmissing-prototypes]
     223 | cxl_pci_quirk_lookup(struct pci_dev *pci, const struct cxl_pci_quirk *list)
         | ^
   drivers/cxl/pci.c:222:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
     222 | const struct cxl_pci_quirk *
         |       ^
         | static 
   2 warnings generated.


vim +/cxl_pci_quirk_lookup_id +208 drivers/cxl/pci.c

   206	
   207	const struct cxl_pci_quirk *
 > 208	cxl_pci_quirk_lookup_id(u16 vendor, u16 device,
   209				const struct cxl_pci_quirk *list)
   210	{
   211		const struct cxl_pci_quirk *q;
   212	
   213		for (q = list; q->vendor || q->device; q++) {
   214			if (q->vendor != vendor)
   215				continue;
   216			if (!q->device || device == q->device)
   217				return q;
   218		}
   219		return NULL;
   220	}
   221	
   222	const struct cxl_pci_quirk *
 > 223	cxl_pci_quirk_lookup(struct pci_dev *pci, const struct cxl_pci_quirk *list)
   224	{
   225		if (!pci)
   226			return NULL;
   227		return cxl_pci_quirk_lookup_id(pci->vendor,
   228					       pci->device,
   229					       list);
   230	}
   231	

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

                 reply	other threads:[~2025-05-11  8:40 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=202505111650.ZZdou694-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aubrey.li@linux.intel.com \
    --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.