Skip to contentSkip to conversation

drm/pagemap_util: Drop the kernel-doc for a member that does not exist

PATCH RESEND In review TAKANO Mitsuhiro 1 participant 3 messages Nov 23

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 drm/pagemap_util: Drop the kernel-doc for a member that does not exist

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")
---
 include/drm/drm_pagemap_util.h | 1 -
 1 file changed, 1 deletion(-)
include/drm/drm_pagemap_util.h +0 -1
index 19169b42b891..34fa879505d2 100644
@@ -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

Signature · 1 line
2.53.0
#1 lore raw

The first copy of this patch did not reach the archive for over an hour after I sent it, so I re-sent it in this thread. The first copy has appeared on dri-devel since then; the two are the same diff, and the only difference is that this copy also goes to [email protected].

TAKANO

#2 lore raw

PATCH 1/1 drm/pagemap_util: Drop the kernel-doc for a member that does not exist

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")
---
 include/drm/drm_pagemap_util.h | 1 -
 1 file changed, 1 deletion(-)
include/drm/drm_pagemap_util.h +0 -1
index 19169b42b891..34fa879505d2 100644
@@ -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

Signature · 1 line
2.53.0