* [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 *'
@ 2023-08-27 8:10 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-27 8:10 UTC (permalink / raw)
To: Dave Jiang; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-27 8:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-27 8:10 [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 *' 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.