Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/oa: Fix kernel doc warnings in xe_drm.h
@ 2024-06-22 15:51 Ashutosh Dixit
  2024-06-22 15:56 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Ashutosh Dixit @ 2024-06-22 15:51 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko

Fix kernel doc warnings in xe_drm.h. Also make sure that private/non-abi
enum definitions are distinct from real enum definitions and don't generate
kernel doc.

Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 drivers/gpu/drm/xe/xe_oa.c | 2 +-
 include/uapi/drm/xe_drm.h  | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index 4168b51cf7b5..fe6e29fb06b7 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -1692,7 +1692,7 @@ static int xe_oa_user_extensions(struct xe_oa *oa, u64 extension, int ext_number
 	int err;
 	u32 idx;
 
-	if (XE_IOCTL_DBG(oa->xe, ext_number >= DRM_XE_OA_PROPERTY_MAX))
+	if (XE_IOCTL_DBG(oa->xe, ext_number >= __DRM_XE_OA_PROPERTY_MAX))
 		return -E2BIG;
 
 	err = __copy_from_user(&ext, address, sizeof(ext));
diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
index 93e00be44b2d..4dc90badce67 100644
--- a/include/uapi/drm/xe_drm.h
+++ b/include/uapi/drm/xe_drm.h
@@ -1379,8 +1379,11 @@ struct drm_xe_wait_user_fence {
  * enum drm_xe_perf_type - Perf stream types
  */
 enum drm_xe_perf_type {
+	/** @DRM_XE_PERF_TYPE_OA: OA perf stream type */
 	DRM_XE_PERF_TYPE_OA,
-	__DRM_XE_PERF_TYPE_MAX, /* non-ABI */
+
+	/* private: non-ABI */
+	__DRM_XE_PERF_TYPE_MAX,
 };
 
 /**
@@ -1612,8 +1615,8 @@ enum drm_xe_oa_property_id {
 	 */
 	DRM_XE_OA_PROPERTY_OA_ENGINE_INSTANCE,
 
-	/** @DRM_XE_OA_PROPERTY_MAX: non-ABI */
-	DRM_XE_OA_PROPERTY_MAX
+	/* private: non-ABI */
+	__DRM_XE_OA_PROPERTY_MAX
 };
 
 /**
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-06-22 18:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-22 15:51 [PATCH] drm/xe/oa: Fix kernel doc warnings in xe_drm.h Ashutosh Dixit
2024-06-22 15:56 ` ✓ CI.Patch_applied: success for " Patchwork
2024-06-22 15:56 ` ✓ CI.checkpatch: " Patchwork
2024-06-22 15:57 ` ✓ CI.KUnit: " Patchwork
2024-06-22 16:09 ` ✓ CI.Build: " Patchwork
2024-06-22 16:11 ` ✓ CI.Hooks: " Patchwork
2024-06-22 16:13 ` ✓ CI.checksparse: " Patchwork
2024-06-22 16:35 ` ✓ CI.BAT: " Patchwork
2024-06-22 18:00 ` ✗ CI.FULL: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox