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
(cherry picked from commit f59cde8a2452b392115d2af8f1143a94725f4827)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

authored by

Michal Wajdeczko and committed by
Rodrigo Vivi
2a673fb4 bf7172cd

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