From: kernel test robot <lkp@intel.com>
To: Lukas Wunner <lukas@wunner.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [l1k:spdm-future 13/18] drivers/pci/cma.c:260:24: warning: 'return' with a value, in function returning void
Date: Fri, 16 Feb 2024 20:49:54 +0800 [thread overview]
Message-ID: <202402162016.dbSSEFpX-lkp@intel.com> (raw)
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
reply other threads:[~2024-02-16 12:51 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=202402162016.dbSSEFpX-lkp@intel.com \
--to=lkp@intel.com \
--cc=lukas@wunner.de \
--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.