All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2025-05-11  8:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-11  8:39 UTC (permalink / raw)
  To: aubrey.li; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-11  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-11  8:39 [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' kernel test robot

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.