* [l1k:spdm-future 13/18] drivers/pci/cma.c:260:24: warning: 'return' with a value, in function returning void
@ 2024-02-16 12:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-16 12:49 UTC (permalink / raw)
To: Lukas Wunner; +Cc: oe-kbuild-all
tree: https://github.com/l1k/linux spdm-future
head: 2e15718c3d046dd029e9924e3d674ffbac2a350d
commit: 7ba328177f0c01ea521a398e72fc230aca180ba1 [13/18] PCI/CMA: Grant guests exclusive control of authentication
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20240216/202402162016.dbSSEFpX-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240216/202402162016.dbSSEFpX-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/202402162016.dbSSEFpX-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/pci/cma.c: In function 'authenticated_store':
drivers/pci/cma.c:39:12: error: void value not ignored as it ought to be
39 | rc = pci_cma_reauthenticate(pdev);
| ^
drivers/pci/cma.c: In function 'pci_cma_reauthenticate':
>> drivers/pci/cma.c:260:24: warning: 'return' with a value, in function returning void [-Wreturn-type]
260 | return -EPERM;
| ^
drivers/pci/cma.c:252:6: note: declared here
252 | void pci_cma_reauthenticate(struct pci_dev *pdev)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/return +260 drivers/pci/cma.c
251
252 void pci_cma_reauthenticate(struct pci_dev *pdev)
253 {
254 int rc;
255
256 if (!pdev->spdm_state)
257 return;
258
259 if (test_bit(PCI_CMA_OWNED_BY_GUEST, &pdev->priv_flags))
> 260 return -EPERM;
261
262 rc = spdm_authenticate(pdev->spdm_state);
263 if (rc >= 0)
264 pci_info(pdev, "authenticated with certificate slot %d\n", rc);
265 }
266
--
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:[~2024-02-16 12:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-16 12:49 [l1k:spdm-future 13/18] drivers/pci/cma.c:260:24: warning: 'return' with a value, in function returning void 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.