kernel-doc reports, with or without -Wall:

  Warning: include/drm/drm_pagemap_util.h:45 Excess struct member 'peer'
  description in 'drm_pagemap_owner_list' (did you mean one of: 'peers')

The struct holds one list member, @peers, documented on the member itself.
The @peer line was added with the struct and refers to no member, so drop
it.

After:

  $ scripts/kernel-doc -Wall -none include/drm/drm_pagemap_util.h
  (no output)

The warning is not cosmetic in a -Werror build: kernel-doc exits with
status 3 on the file before this change, so a headercheck run with
CONFIG_WERROR=y fails on it.

The other DRM pagemap and gpusvm headers are clean with -Wall as well.

The change and this changelog were written with Hermes Agent
(deepseek-v4.1-flash); I reviewed the change and ran kernel-doc -Wall on
the file before and after.  No build was run, as only a comment changes.

Fixes: e44f47a9bf51 ("drm/pagemap_util: Add a utility to assign an owner to a 
set of interconnected gpus")
Signed-off-by: TAKANO Mitsuhiro <[email protected]>
---
 include/drm/drm_pagemap_util.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/drm/drm_pagemap_util.h b/include/drm/drm_pagemap_util.h
index 19169b42b891..34fa879505d2 100644
--- a/include/drm/drm_pagemap_util.h
+++ b/include/drm/drm_pagemap_util.h
@@ -32,7 +32,6 @@ struct drm_pagemap_peer {
 
 /**
  * struct drm_pagemap_owner_list - Keeping track of peers and owners
- * @peer: List of peers.
  *
  * The owner list defines the scope where we identify peers having fast 
interconnects
  * and a common owner. Typically a driver has a single global owner list to

base-commit: c44104f3642da720164042623e4832836aefdd8e
-- 
2.53.0

Reply via email to