Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe/configfs: Fix 'parameter name omitted' errors

On some configs and old compilers we can get following build errors:

../drivers/gpu/drm/xe/xe_configfs.h: In function 'xe_configfs_get_ctx_restore_mid_bb':
../drivers/gpu/drm/xe/xe_configfs.h:40:76: error: parameter name omitted
static inline u32 xe_configfs_get_ctx_restore_mid_bb(struct pci_dev *pdev, enum xe_engine_class,
^~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_configfs.h: In function 'xe_configfs_get_ctx_restore_post_bb':
../drivers/gpu/drm/xe/xe_configfs.h:42:77: error: parameter name omitted
static inline u32 xe_configfs_get_ctx_restore_post_bb(struct pci_dev *pdev, enum xe_engine_class,
^~~~~~~~~~~~~~~~~~~~
when trying to define our configfs stub functions. Fix that.

Fixes: 7a4756b2fd04 ("drm/xe/lrc: Allow to add user commands mid context switch")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://patch.msgid.link/20260203193745.576-1-michal.wajdeczko@intel.com

+8 -4
+8 -4
drivers/gpu/drm/xe/xe_configfs.h
··· 23 23 bool xe_configfs_media_gt_allowed(struct pci_dev *pdev); 24 24 u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev); 25 25 bool xe_configfs_get_psmi_enabled(struct pci_dev *pdev); 26 - u32 xe_configfs_get_ctx_restore_mid_bb(struct pci_dev *pdev, enum xe_engine_class, 26 + u32 xe_configfs_get_ctx_restore_mid_bb(struct pci_dev *pdev, 27 + enum xe_engine_class class, 27 28 const u32 **cs); 28 - u32 xe_configfs_get_ctx_restore_post_bb(struct pci_dev *pdev, enum xe_engine_class, 29 + u32 xe_configfs_get_ctx_restore_post_bb(struct pci_dev *pdev, 30 + enum xe_engine_class class, 29 31 const u32 **cs); 30 32 #ifdef CONFIG_PCI_IOV 31 33 unsigned int xe_configfs_get_max_vfs(struct pci_dev *pdev); ··· 42 40 static inline bool xe_configfs_media_gt_allowed(struct pci_dev *pdev) { return true; } 43 41 static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; } 44 42 static inline bool xe_configfs_get_psmi_enabled(struct pci_dev *pdev) { return false; } 45 - static inline u32 xe_configfs_get_ctx_restore_mid_bb(struct pci_dev *pdev, enum xe_engine_class, 43 + static inline u32 xe_configfs_get_ctx_restore_mid_bb(struct pci_dev *pdev, 44 + enum xe_engine_class class, 46 45 const u32 **cs) { return 0; } 47 - static inline u32 xe_configfs_get_ctx_restore_post_bb(struct pci_dev *pdev, enum xe_engine_class, 46 + static inline u32 xe_configfs_get_ctx_restore_post_bb(struct pci_dev *pdev, 47 + enum xe_engine_class class, 48 48 const u32 **cs) { return 0; } 49 49 #ifdef CONFIG_PCI_IOV 50 50 static inline unsigned int xe_configfs_get_max_vfs(struct pci_dev *pdev)