Skip to contentSkip to conversation

drivers/hid/intel-ish-hid/ipc/ipc.c:944:36: warning: cast from 'void (*)(struct workqueue_struct *)' to 'void (*)(void *)' converts to incompatible function type

PATCH kernel test robot 1 participant 1 message Oct 18, 2025 HID

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-6.19/intel-ish-v2
head:   5677aa6a08c1df8bc1ec71516fe1ced9b7cb545f
commit: 0d30dae38fe01cd1de358c6039a0b1184689fe51 [1/7] HID: intel-ish-hid: Use dedicated unbound workqueues to prevent resume blocking
config: x86_64-randconfig-002-20251018 (https://download.01.org/0day-ci/archive/20251019/[email protected]/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251019/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/hid/intel-ish-hid/ipc/ipc.c:944:36: warning: cast from 'void (*)(struct workqueue_struct *)' to 'void (*)(void *)' converts to incompatible function type [-Wcast-function-type-strict]

944 | if (devm_add_action_or_reset(dev, (void (*)(void *))destroy_workqueue,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device/devres.h:168:34: note: expanded from macro 'devm_add_action_or_reset'
168 | __devm_add_action_or_reset(dev, action, data, #action)
| ^~~~~~
1 warning generated.

vim +944 drivers/hid/intel-ish-hid/ipc/ipc.c

935
936 static struct workqueue_struct *devm_ishtp_alloc_workqueue(struct device *dev)
937 {
938 struct workqueue_struct *wq;
939
940 wq = alloc_workqueue("ishtp_unbound_%d", WQ_UNBOUND, 0, dev->id);
941 if (!wq)
942 return NULL;
943

 > 944		if (devm_add_action_or_reset(dev, (void (*)(void *))destroy_workqueue,

945 wq))
946 return NULL;
947
948 return wq;
949 }
950

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki