From: kernel test robot <lkp@intel.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [davejiang:cxl-ide 25/25] drivers/acpi/x86/keyp.c:697:14: error: assignment to 'struct pci_device *' from incompatible pointer type 'struct pci_dev *'
Date: Sun, 27 Aug 2023 16:10:45 +0800 [thread overview]
Message-ID: <202308271618.fcMki614-lkp@intel.com> (raw)
tree: https://github.com/davejiang/linux.git cxl-ide
head: ecc190dd66d4c533dc9d4aa0058cd06888c318d6
commit: ecc190dd66d4c533dc9d4aa0058cd06888c318d6 [25/25] acpi: keyp: Add support for IDE stream keys refresh
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230827/202308271618.fcMki614-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230827/202308271618.fcMki614-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/202308271618.fcMki614-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/acpi/x86/keyp.c: In function 'keyp_stream_key_refresh':
>> drivers/acpi/x86/keyp.c:697:14: error: assignment to 'struct pci_device *' from incompatible pointer type 'struct pci_dev *' [-Werror=incompatible-pointer-types]
697 | pdev = stm->dsd;
| ^
>> drivers/acpi/x86/keyp.c:700:32: error: passing argument 1 of 'ide_km_set_keyset' from incompatible pointer type [-Werror=incompatible-pointer-types]
700 | rc = ide_km_set_keyset(pdev, stream_id, keyset, pkg, IDE_DEV_DOWNSTREAM);
| ^~~~
| |
| struct pci_device *
In file included from drivers/acpi/x86/keyp.c:15:
include/linux/pci-ide.h:53:39: note: expected 'struct pci_dev *' but argument is of type 'struct pci_device *'
53 | int ide_km_set_keyset(struct pci_dev *pdev, int stream_id, int keyset,
| ~~~~~~~~~~~~~~~~^~~~
In file included from include/linux/printk.h:564,
from include/asm-generic/bug.h:22,
from arch/x86/include/asm/bug.h:87,
from include/linux/bug.h:5,
from include/linux/fortify-string.h:5,
from include/linux/string.h:254,
from include/linux/uuid.h:11,
from include/linux/mod_devicetable.h:14,
from include/linux/pci.h:27,
from drivers/acpi/x86/keyp.c:8:
>> drivers/acpi/x86/keyp.c:702:30: error: invalid use of undefined type 'struct pci_device'
702 | dev_dbg(&pdev->dev, "Refresh keyset failed to program.\n");
| ^~
include/linux/dynamic_debug.h:222:29: note: in definition of macro '__dynamic_func_call_cls'
222 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:248:9: note: in expansion of macro '_dynamic_func_call_cls'
248 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:271:9: note: in expansion of macro '_dynamic_func_call'
271 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/acpi/x86/keyp.c:702:17: note: in expansion of macro 'dev_dbg'
702 | dev_dbg(&pdev->dev, "Refresh keyset failed to program.\n");
| ^~~~~~~
>> drivers/acpi/x86/keyp.c:709:14: error: implicit declaration of function 'kde_km_enable_keyset'; did you mean 'ide_km_enable_keyset'? [-Werror=implicit-function-declaration]
709 | rc = kde_km_enable_keyset(pdev, stream_id, keyset);
| ^~~~~~~~~~~~~~~~~~~~
| ide_km_enable_keyset
drivers/acpi/x86/keyp.c:711:30: error: invalid use of undefined type 'struct pci_device'
711 | dev_dbg(&pdev->dev, "Refresh keyset failed to activate.\n");
| ^~
include/linux/dynamic_debug.h:222:29: note: in definition of macro '__dynamic_func_call_cls'
222 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:248:9: note: in expansion of macro '_dynamic_func_call_cls'
248 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:271:9: note: in expansion of macro '_dynamic_func_call'
271 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg'
155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/acpi/x86/keyp.c:711:17: note: in expansion of macro 'dev_dbg'
711 | dev_dbg(&pdev->dev, "Refresh keyset failed to activate.\n");
| ^~~~~~~
cc1: some warnings being treated as errors
vim +697 drivers/acpi/x86/keyp.c
675
676 static void keyp_stream_key_refresh(struct work_struct *work)
677 {
678 struct stream *stm = container_of(work, struct stream, dwork.work);
679 struct key_package *pkg __free(key_pkg_free) = key_pkg_alloc();
680 int keyset = next_keyset(stm->keyset);
681 struct pci_device *pdev;
682 int stream_id, rc;
683
684 if (!pkg)
685 return;
686
687 guard(mutex)(&stm->lock);
688 rc = keyp_write_keys(stm, pkg, keyset);
689 if (rc)
690 return;
691
692 rc = keyp_prime_key(stm, pkg, keyset);
693 if (rc)
694 return;
695
696 stream_id = stm->dsd->ide.stream_id;
> 697 pdev = stm->dsd;
698 /* Distribute keys to EP as set 1 */
699 /* Inform the EP Rx to get ready for next key set via DOE */
> 700 rc = ide_km_set_keyset(pdev, stream_id, keyset, pkg, IDE_DEV_DOWNSTREAM);
701 if (rc) {
> 702 dev_dbg(&pdev->dev, "Refresh keyset failed to program.\n");
703 return;
704 }
705
706 keyp_select_key(stm, keyset);
707
708 /* Inform the EP Tx to switch to next key set via DOE */
> 709 rc = kde_km_enable_keyset(pdev, stream_id, keyset);
710 if (rc) {
711 dev_dbg(&pdev->dev, "Refresh keyset failed to activate.\n");
712 return;
713 }
714
715 queue_delayed_work(keyp_wq, &stm->key_refresh_dwork,
716 msecs_to_jiffies(KEYP_STM_KEY_REFRESH_TIME) * 1000);
717 }
718
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-08-27 8:11 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=202308271618.fcMki614-lkp@intel.com \
--to=lkp@intel.com \
--cc=dave.jiang@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.