All of lore.kernel.org
 help / color / mirror / Atom feed
* [l1k:aer_reset_v1 4/7] drivers/infiniband/hw/hfi1/pcie.c:569:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute
@ 2025-07-23 13:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-23 13:58 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: oe-kbuild-all

tree:   https://github.com/l1k/linux aer_reset_v1
head:   aa7d1cb67ab66436de55f08005a7130768067322
commit: d3a669b8ded4ab05c102071648f1a737062fdab2 [4/7] IB/hfi1: Fix PCIe error handling
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250723/202507232117.pPyrrytf-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250723/202507232117.pPyrrytf-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/202507232117.pPyrrytf-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/infiniband/hw/hfi1/pcie.c:569:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
     569 |                 pci_enable_device(pdev);
         |                 ^~~~~~~~~~~~~~~~~ ~~~~
   1 warning generated.


vim +/warn_unused_result +569 drivers/infiniband/hw/hfi1/pcie.c

   560	
   561	static pci_ers_result_t
   562	pci_slot_reset(struct pci_dev *pdev)
   563	{
   564		struct hfi1_devdata *dd = pci_get_drvdata(pdev);
   565	
   566		dd_dev_info(dd, "HFI1 slot_reset function called\n");
   567	
   568		if (pdev->error_state == pci_channel_io_frozen)
 > 569			pci_enable_device(pdev);
   570	
   571		/*
   572		 * Running jobs will fail, since it's asynchronous
   573		 * unlike sysfs-requested reset.   Better than
   574		 * doing nothing.
   575		 */
   576		if (hfi1_init(dd, 1)) /* same as re-init after reset */
   577			return PCI_ERS_RESULT_DISCONNECT;
   578	
   579		return PCI_ERS_RESULT_RECOVERED;
   580	}
   581	

-- 
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-07-23 13:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23 13:58 [l1k:aer_reset_v1 4/7] drivers/infiniband/hw/hfi1/pcie.c:569:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute 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.