00a614fc35
The usage count of struct dev_pm_info is an implementation detail that is only available if CONFIG_PM is enabled, so printing it in a debug message causes a build failure in configurations without PM: In file included from include/linux/device.h:15, from include/linux/pci.h:37, from drivers/accel/ivpu/ivpu_pm.c:8: drivers/accel/ivpu/ivpu_pm.c: In function 'ivpu_rpm_get_if_active': drivers/accel/ivpu/ivpu_pm.c:254:51: error: 'struct dev_pm_info' has no member named 'usage_count' 254 | atomic_read(&vdev->drm.dev->power.usage_count)); | ^ include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk' 129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ drivers/accel/ivpu/ivpu_drv.h:75:17: note: in expansion of macro 'dev_dbg' 75 | dev_dbg((vdev)->drm.dev, "[%s] " fmt, #type, ##args); \ | ^~~~~~~ drivers/accel/ivpu/ivpu_pm.c:253:9: note: in expansion of macro 'ivpu_dbg' 253 | ivpu_dbg(vdev, RPM, "rpm_get_if_active count %d\n", | ^~~~~~~~ The print message does not seem essential, so the easiest workaround is to just remove it. Fixes: |
||
---|---|---|
.. | ||
ivpu_debugfs.c | ||
ivpu_debugfs.h | ||
ivpu_drv.c | ||
ivpu_drv.h | ||
ivpu_fw_log.c | ||
ivpu_fw_log.h | ||
ivpu_fw.c | ||
ivpu_fw.h | ||
ivpu_gem.c | ||
ivpu_gem.h | ||
ivpu_hw_37xx_reg.h | ||
ivpu_hw_37xx.c | ||
ivpu_hw_40xx_reg.h | ||
ivpu_hw_40xx.c | ||
ivpu_hw_reg_io.h | ||
ivpu_hw.h | ||
ivpu_ipc.c | ||
ivpu_ipc.h | ||
ivpu_job.c | ||
ivpu_job.h | ||
ivpu_jsm_msg.c | ||
ivpu_jsm_msg.h | ||
ivpu_mmu_context.c | ||
ivpu_mmu_context.h | ||
ivpu_mmu.c | ||
ivpu_mmu.h | ||
ivpu_pm.c | ||
ivpu_pm.h | ||
Kconfig | ||
Makefile | ||
vpu_boot_api.h | ||
vpu_jsm_api.h |