drm/tinydrm: Fix doc build warnings
Subsystems (2)
PATCH 1/1 drm/tinydrm: Fix doc build warnings
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device' drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush' drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush'
Move struct member docs inline so it's not missed next time.
--- drivers/gpu/drm/tinydrm/mipi-dbi.c | 2 ++ include/drm/tinydrm/tinydrm.h | 23 +++++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-)
drivers/gpu/drm/tinydrm/mipi-dbi.c +2 -0
@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = {/** * mipi_dbi_enable_flush - MIPI DBI enable helper * @mipi: MIPI DBI structure +* @crtc_state: CRTC state +* @plane_state: Plane state * * This function sets &mipi_dbi->enabled, flushes the whole framebuffer and * enables the backlight. Drivers can use this in their
include/drm/tinydrm/tinydrm.h +19 -4
@@ -16,16 +16,31 @@/** * struct tinydrm_device - tinydrm device -* @drm: DRM device -* @pipe: Display pipe structure -* @dirty_lock: Serializes framebuffer flushing -* @fb_funcs: Framebuffer functions used when creating framebuffers */ struct tinydrm_device { +/** +* @drm: DRM device +*/ struct drm_device *drm; + +/** +* @pipe: Display pipe structure +*/ struct drm_simple_display_pipe pipe; + +/** +* @dirty_lock: Serializes framebuffer flushing +*/ struct mutex dirty_lock; + +/** +* @fb_funcs: Framebuffer functions used when creating framebuffers +*/ const struct drm_framebuffer_funcs *fb_funcs; + +/** +* @fb_dirty: Framebuffer dirty callback +*/ int (*fb_dirty)(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned flags, unsigned color, struct drm_clip_rect *clips,
Signature · 6 lines
2.15.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 57 lines · Noralf Trønnes
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush'Move struct member docs inline so it's not missed next time.
Cc David Lechner <[email protected]>Signed-off-by Noralf Trønnes <[email protected]>--- drivers/gpu/drm/tinydrm/mipi-dbi.c | 2 ++ include/drm/tinydrm/tinydrm.h | 23 +++++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-)drivers/gpu/drm/tinydrm/mipi-dbi.c +2
-0@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = {/** * mipi_dbi_enable_flush - MIPI DBI enable helper * @mipi: MIPI DBI structure +* @crtc_state: CRTC state +* @plane_state: Plane state * * This function sets &mipi_dbi->enabled, flushes the whole framebuffer and * enables the backlight. Drivers can use this in their include/drm/tinydrm/tinydrm.h +13
-4@@ -16,16 +16,31 @@/** * struct tinydrm_device - tinydrm device -* @drm: DRM device -* @pipe: Display pipe structure -* @dirty_lock: Serializes framebuffer flushing -* @fb_funcs: Framebuffer functions used when creating framebuffers */ struct tinydrm_device { +/** +* @drm: DRM device +*/ struct drm_device *drm; + +/** +* @pipe: Display pipe structure +*/ struct drm_simple_display_pipe pipe; + +/** +* @dirty_lock: Serializes framebuffer flushing +*/ struct mutex dirty_lock; + +/**
include/drm/tinydrm/tinydrm.h line 46
Quoted 10 lines
include/drm/tinydrm/tinydrm.h +6
-0+* @fb_funcs: Framebuffer functions used when creating framebuffers +*/ const struct drm_framebuffer_funcs *fb_funcs; + +/** +* @fb_dirty: Framebuffer dirty callback +*/ int (*fb_dirty)(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned flags, unsigned color, struct drm_clip_rect *clips,
I assume the kerneldoc parser know how to handle this?
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Den 10.07.2018 18.18, skrev David Lechner:
Quoted 62 lines · Noralf Trønnes
Quoted 61 lines
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush'Move struct member docs inline so it's not missed next time.
Cc David Lechner <[email protected]>Signed-off-by Noralf Trønnes <[email protected]>---
drivers/gpu/drm/tinydrm/mipi-dbi.c| 2 ++ include/drm/tinydrm/tinydrm.h | 23 +++++++++++++++++++----2 files changed, 21 insertions(+), 4 deletions(-)drivers/gpu/drm/tinydrm/mipi-dbi.c +2
-0@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = { /*** mipi_dbi_enable_flush - MIPI DBI enable helper * @mipi: MIPI DBI structure +* @crtc_state: CRTC state +* @plane_state: Plane state * * This function sets &mipi_dbi->enabled, flushes the whole framebuffer and * enables the backlight. Drivers can use this in their
include/drm/tinydrm/tinydrm.h +17
-4@@ -16,16 +16,31 @@ /** * struct tinydrm_device - tinydrm device - * @drm: DRM device - * @pipe: Display pipe structure - * @dirty_lock: Serializes framebuffer flushing - * @fb_funcs: Framebuffer functions used when creating framebuffers */ struct tinydrm_device { + /** + * @drm: DRM device + */ struct drm_device *drm; + + /** + * @pipe: Display pipe structure + */ struct drm_simple_display_pipe pipe; + + /** + * @dirty_lock: Serializes framebuffer flushing + */ struct mutex dirty_lock; + + /** + * @fb_funcs: Framebuffer functions used when creating framebuffers + */ const struct drm_framebuffer_funcs *fb_funcs; + + /**
Quoted 9 lines
include/drm/tinydrm/tinydrm.h
Quoted 6 lines
include/drm/tinydrm/tinydrm.h +2
-0+* @fb_dirty: Framebuffer dirty callback +*/ int (*fb_dirty)(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned flags, unsigned color, struct drm_clip_rect *clips,I assume the kerneldoc parser know how to handle this?
This? What are you referring to?
This is how I build the documentation: make DOCBOOKS="" htmldocs
Noralf.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 73 lines · Noralf Trønnes
Den 10.07.2018 18.18, skrev David Lechner:
Quoted 61 lines · Noralf Trønnes
Quoted 60 lines
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush'Move struct member docs inline so it's not missed next time.
Cc David Lechner <[email protected]>Signed-off-by Noralf Trønnes <[email protected]>---
drivers/gpu/drm/tinydrm/mipi-dbi.c| 2 ++ include/drm/tinydrm/tinydrm.h | 23 +++++++++++++++++++----2 files changed, 21 insertions(+), 4 deletions(-)drivers/gpu/drm/tinydrm/mipi-dbi.c +2
-0@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = { /*** mipi_dbi_enable_flush - MIPI DBI enable helper * @mipi: MIPI DBI structure +* @crtc_state: CRTC state +* @plane_state: Plane state * * This function sets &mipi_dbi->enabled, flushes the whole framebuffer and * enables the backlight. Drivers can use this in their include/drm/tinydrm/tinydrm.h +17
-4@@ -16,16 +16,31 @@ /** * struct tinydrm_device - tinydrm device - * @drm: DRM device - * @pipe: Display pipe structure - * @dirty_lock: Serializes framebuffer flushing - * @fb_funcs: Framebuffer functions used when creating framebuffers */ struct tinydrm_device { + /** + * @drm: DRM device + */ struct drm_device *drm; + + /** + * @pipe: Display pipe structure + */ struct drm_simple_display_pipe pipe; + + /** + * @dirty_lock: Serializes framebuffer flushing + */ struct mutex dirty_lock; + + /** + * @fb_funcs: Framebuffer functions used when creating framebuffers + */ const struct drm_framebuffer_funcs *fb_funcs; + + /**Quoted 9 lines
include/drm/tinydrm/tinydrm.h
Quoted 6 lines
include/drm/tinydrm/tinydrm.h +2
-0+* @fb_dirty: Framebuffer dirty callback +*/ int (*fb_dirty)(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned flags, unsigned color, struct drm_clip_rect *clips,I assume the kerneldoc parser know how to handle this?
Quoted 6 lines
This? What are you referring to?
This is how I build the documentation: make DOCBOOKS="" htmldocs
Noralf.
I haven't seen struct fields with doc comments on each individual field before. What I meant to say is that I'm assuming that when you build the htmldocs that it picks up this documentation for each field the same as if they were documented in the doc comment for the struct itself. In other words, the resulting documentation looks the same either way?
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Den 10.07.2018 18.40, skrev David Lechner:
Quoted 83 lines · Noralf Trønnes
Quoted 75 lines
Den 10.07.2018 18.18, skrev David Lechner:
Quoted 63 lines · Noralf Trønnes
Quoted 62 lines
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush'Move struct member docs inline so it's not missed next time.
Cc David Lechner <[email protected]>Signed-off-by Noralf Trønnes <[email protected]>---
drivers/gpu/drm/tinydrm/mipi-dbi.c| 2 ++ include/drm/tinydrm/tinydrm.h | 23 +++++++++++++++++++----2 files changed, 21 insertions(+), 4 deletions(-)drivers/gpu/drm/tinydrm/mipi-dbi.c +2
-0@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = { /*** mipi_dbi_enable_flush - MIPI DBI enable helper * @mipi: MIPI DBI structure +* @crtc_state: CRTC state +* @plane_state: Plane state * * This function sets &mipi_dbi->enabled, flushes the whole framebuffer and * enables the backlight. Drivers can use this in their
include/drm/tinydrm/tinydrm.h +14
-4@@ -16,16 +16,31 @@ /** * struct tinydrm_device - tinydrm device - * @drm: DRM device - * @pipe: Display pipe structure - * @dirty_lock: Serializes framebuffer flushing - * @fb_funcs: Framebuffer functions used when creating framebuffers */ struct tinydrm_device { + /** + * @drm: DRM device + */ struct drm_device *drm; + + /** + * @pipe: Display pipe structure + */ struct drm_simple_display_pipe pipe; + + /** + * @dirty_lock: Serializes framebuffer flushing + */ struct mutex dirty_lock; + + /** + * @fb_funcs: Framebuffer functions used when creatingframebuffers
+ */
const structdrm_framebuffer_funcs*fb_funcs; +
+ /**Quoted 9 lines
Quoted 6 lines
+ * @fb_dirty: Framebuffer dirty callback
+ */
int (*fb_dirty)(structdrm_framebuffer*framebuffer, structdrm_file*file_priv, unsigned flags, unsigned color, structdrm_clip_rect*clips,I assume the kerneldoc parser know how to handle this?
Quoted 6 lines
This? What are you referring to?
This is how I build the documentation: make DOCBOOKS="" htmldocs
Noralf.
Quoted 7 lines
I haven't seen struct fields with doc comments on each individual field before. What I meant to say is that I'm assuming that when you build the htmldocs that it picks up this documentation for each field the same as if they were documented in the doc comment for the struct itself. In other words, the resulting documentation looks the same either way?
Yes it does.
https://www.kernel.org/doc/html/v4.17/doc-guide/kernel-doc.html#in-line-member-documentation-comments
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
David Lechner
Reviewed-byQuoted 91 lines · Noralf Trønnes
Den 10.07.2018 18.40, skrev David Lechner:
Quoted 81 lines · Noralf Trønnes
Quoted 73 lines
Den 10.07.2018 18.18, skrev David Lechner:
Quoted 61 lines · Noralf Trønnes
Quoted 60 lines
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush'Move struct member docs inline so it's not missed next time.
Cc David Lechner <[email protected]>Signed-off-by Noralf Trønnes <[email protected]>---
drivers/gpu/drm/tinydrm/mipi-dbi.c| 2 ++ include/drm/tinydrm/tinydrm.h | 23 +++++++++++++++++++----2 files changed, 21 insertions(+), 4 deletions(-)drivers/gpu/drm/tinydrm/mipi-dbi.c +2
-0@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = { /*** mipi_dbi_enable_flush - MIPI DBI enable helper * @mipi: MIPI DBI structure +* @crtc_state: CRTC state +* @plane_state: Plane state * * This function sets &mipi_dbi->enabled, flushes the whole framebuffer and * enables the backlight. Drivers can use this in their include/drm/tinydrm/tinydrm.h +17
-4@@ -16,16 +16,31 @@ /** * struct tinydrm_device - tinydrm device - * @drm: DRM device - * @pipe: Display pipe structure - * @dirty_lock: Serializes framebuffer flushing - * @fb_funcs: Framebuffer functions used when creating framebuffers */ struct tinydrm_device { + /** + * @drm: DRM device + */ struct drm_device *drm; + + /** + * @pipe: Display pipe structure + */ struct drm_simple_display_pipe pipe; + + /** + * @dirty_lock: Serializes framebuffer flushing + */ struct mutex dirty_lock; + + /** + * @fb_funcs: Framebuffer functions used when creating framebuffers + */ const struct drm_framebuffer_funcs *fb_funcs; + + /**Quoted 9 lines
include/drm/tinydrm/tinydrm.h
Quoted 6 lines
include/drm/tinydrm/tinydrm.h +2
-0+* @fb_dirty: Framebuffer dirty callback +*/ int (*fb_dirty)(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned flags, unsigned color, struct drm_clip_rect *clips,I assume the kerneldoc parser know how to handle this?
Quoted 6 lines
This? What are you referring to?
This is how I build the documentation: make DOCBOOKS="" htmldocs
Noralf.
Quoted 7 lines
I haven't seen struct fields with doc comments on each individual field before. What I meant to say is that I'm assuming that when you build the htmldocs that it picks up this documentation for each field the same as if they were documented in the doc comment for the struct itself. In other words, the resulting documentation looks the same either way?
Quoted 3 lines
Yes it does.
https://www.kernel.org/doc/html/v4.17/doc-guide/kernel-doc.html#in-line-member-documentation-comments
Nifty.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 80 lines · Noralf Trønnes
Den 10.07.2018 18.18, skrev David Lechner:
Quoted 68 lines · Noralf Trønnes
Quoted 67 lines
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush'Move struct member docs inline so it's not missed next time.
Cc David Lechner <[email protected]>Signed-off-by Noralf Trønnes <[email protected]>---
drivers/gpu/drm/tinydrm/mipi-dbi.c| 2 ++ include/drm/tinydrm/tinydrm.h | 23 +++++++++++++++++++----2 files changed, 21 insertions(+), 4 deletions(-)drivers/gpu/drm/tinydrm/mipi-dbi.c +2
-0@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = { /*** mipi_dbi_enable_flush - MIPI DBI enable helper * @mipi: MIPI DBI structure +* @crtc_state: CRTC state +* @plane_state: Plane state * * This function sets &mipi_dbi->enabled, flushes the whole framebuffer and
* enables the backlight. Drivers can use this in theirinclude/drm/tinydrm/tinydrm.h +17
-4@@ -16,16 +16,31 @@ /** * struct tinydrm_device - tinydrm device - * @drm: DRM device - * @pipe: Display pipe structure - * @dirty_lock: Serializes framebuffer flushing - * @fb_funcs: Framebuffer functions used when creating framebuffers */ struct tinydrm_device { + /** + * @drm: DRM device + */ struct drm_device *drm; + + /** + * @pipe: Display pipe structure + */ struct drm_simple_display_pipe pipe; + + /** + * @dirty_lock: Serializes framebuffer flushing + */ struct mutex dirty_lock; + + /** + * @fb_funcs: Framebuffer functions used when creating framebuffers + */ const struct drm_framebuffer_funcs *fb_funcs; + + /**Quoted 9 lines
include/drm/tinydrm/tinydrm.h
Quoted 6 lines
include/drm/tinydrm/tinydrm.h +2
-0+* @fb_dirty: Framebuffer dirty callback +*/ int (*fb_dirty)(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned flags, unsigned color, struct drm_clip_rect *clips,I assume the kerneldoc parser know how to handle this?
Quoted 3 lines
This? What are you referring to?
This is how I build the documentation: make DOCBOOKS="" htmldocs
Fyi DOCBOOKS="" no longer needed since all the old docbook stuff is gone. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Noralf Trønnes
AppliedDen 10.07.2018 17.05, skrev Noralf Trønnes:
Quoted 9 lines
include/drm/tinydrm/tinydrm.h:34: warning: Function parameter or member 'fb_dirty' not described in 'tinydrm_device'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'crtc_state' not described in 'mipi_dbi_enable_flush'drivers/gpu/drm/tinydrm/mipi-dbi.c:272: warning: Function parameter or member 'plane_state' not described in 'mipi_dbi_enable_flush'Move struct member docs inline so it's not missed next time.
Cc David Lechner <[email protected]>Signed-off-by Noralf Trønnes <[email protected]>---
Applied, thanks for reviewing.
Noralf.
Quoted 47 lines
drivers/gpu/drm/tinydrm/mipi-dbi.c | 2 ++ include/drm/tinydrm/tinydrm.h | 23 +++++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-)drivers/gpu/drm/tinydrm/mipi-dbi.c +2
-0@@ -260,6 +260,8 @@ static const struct drm_framebuffer_funcs mipi_dbi_fb_funcs = {/** * mipi_dbi_enable_flush - MIPI DBI enable helper * @mipi: MIPI DBI structure +* @crtc_state: CRTC state +* @plane_state: Plane state * * This function sets &mipi_dbi->enabled, flushes the whole framebuffer and * enables the backlight. Drivers can use this in their include/drm/tinydrm/tinydrm.h +13
-4@@ -16,16 +16,31 @@/** * struct tinydrm_device - tinydrm device -* @drm: DRM device -* @pipe: Display pipe structure -* @dirty_lock: Serializes framebuffer flushing -* @fb_funcs: Framebuffer functions used when creating framebuffers */ struct tinydrm_device { +/** +* @drm: DRM device +*/ struct drm_device *drm; + +/** +* @pipe: Display pipe structure +*/ struct drm_simple_display_pipe pipe; + +/** +* @dirty_lock: Serializes framebuffer flushing +*/ struct mutex dirty_lock; + +/**
include/drm/tinydrm/tinydrm.h line 46
Quoted 10 lines
include/drm/tinydrm/tinydrm.h +6
-0+* @fb_funcs: Framebuffer functions used when creating framebuffers +*/ const struct drm_framebuffer_funcs *fb_funcs; + +/** +* @fb_dirty: Framebuffer dirty callback +*/ int (*fb_dirty)(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned flags, unsigned color, struct drm_clip_rect *clips,
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel