+2
−2
+6
−6
+5
−5
Loading
mainline inclusion from mainline-v6.9-rc1 commit 1e0a2852a134833f6827de15cd62ea0ed19f1b60 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I9TA1S CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1e0a2852a134833f6827de15cd62ea0ed19f1b60 -------------------------------- Since commit aed65af1 ("drivers: make device_type const"), the driver core can properly handle constant struct device_type. Move the dsa_device_type, iax_device_type, idxd_wq_device_type, idxd_cdev_file_type, idxd_cdev_device_type and idxd_group_device_type variables to be constant structures as well, placing it into read-only memory which can not be modified at runtime. Intel-SIG: commit 1e0a2852a134 dmaengine: idxd: constify the struct device_type usage. Incremental backporting patches for DSA/IAA on Intel Xeon platform. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:"Ricardo B. Marliere" <ricardo@marliere.net> Reviewed-by:
Fenghua Yu <fenghua.yu@intel.com> Link: https://lore.kernel.org/r/20240219-device_cleanup-dmaengine-v1-1-9f72f3cf3587@marliere.net Signed-off-by:
Vinod Koul <vkoul@kernel.org> Signed-off-by:
Xiaochen Shen <xiaochen.shen@intel.com>