Skip to contentSkip to conversation

kerneldoc: Fix two missing newlines in drm_connector.c

PATCH Superseded Daniel Yang 3 participants 5 messages Aug 8, 2024 – Aug 12, 2024

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

PATCH 1/1 kerneldoc: Fix two missing newlines in drm_connector.c

drm_connector.c has two kerneldoc comments that were missing newlines. This results in the following warnings when running make htmldocs:

./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2344:
WARNING: Definition list ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538:

./drivers/gpu/drm/drm_connector.c:2346: ERROR: Unexpected indentation. [docutils] ./Documentation/gpu/drm-kms:538:

./drivers/gpu/drm/drm_connector.c:2368: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538:

./drivers/gpu/drm/drm_connector.c:2381: ERROR: Unexpected indentation. [docutils]

---
 drivers/gpu/drm/drm_connector.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +4 -0
index 80e239a6493..fc35f47e284 100644
@@ -2342,7 +2342,9 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
  *
  *	Default:
  *		The behavior is driver-specific.
+ *
  *	BT2020_RGB:
+ *
  *	BT2020_YCC:
  *		User space configures the pixel operation properties to produce
  *		RGB content with Rec. ITU-R BT.2020 colorimetry, Rec.
@@ -2366,6 +2368,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
  *		range.
  *		The variants BT2020_RGB and BT2020_YCC are equivalent and the
  *		driver chooses between RGB and YCbCr on its own.
+ *
  *	SMPTE_170M_YCC:
  *	BT709_YCC:
  *	XVYCC_601:
@@ -2378,6 +2381,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
  *	DCI-P3_RGB_Theater:
  *	RGB_WIDE_FIXED:
  *	RGB_WIDE_FLOAT:
+ *
  *	BT601_YCC:
  *		The behavior is undefined.
  *
Signature · 1 line
2.39.2
#1 lore raw
Quoted 7 lines · Daniel Yang

drm_connector.c has two kerneldoc comments that were missing newlines. This results in the following warnings when running make htmldocs:

./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2344:
WARNING: Definition list ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538:

Quoted 8 lines

./drivers/gpu/drm/drm_connector.c:2346: ERROR: Unexpected indentation. [docutils] ./Documentation/gpu/drm-kms:538:

./drivers/gpu/drm/drm_connector.c:2368: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538:

./drivers/gpu/drm/drm_connector.c:2381: ERROR: Unexpected indentation. [docutils]

Add a line to say "Fix the unexpected indentation errors"

drm maintainers will have a final say on this. :)

Quoted 29 lines
---
  drivers/gpu/drm/drm_connector.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +3 -0
index 80e239a6493..fc35f47e284 100644
@@ -2342,7 +2342,9 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *
   *	Default:
   *		The behavior is driver-specific.
+ *
   *	BT2020_RGB:
+ *
   *	BT2020_YCC:
   *		User space configures the pixel operation properties to produce
   *		RGB content with Rec. ITU-R BT.2020 colorimetry, Rec.
@@ -2366,6 +2368,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *		range.
   *		The variants BT2020_RGB and BT2020_YCC are equivalent and the
   *		driver chooses between RGB and YCbCr on its own.
+ *
   *	SMPTE_170M_YCC:
   *	BT709_YCC:
   *	XVYCC_601:

drivers/gpu/drm/drm_connector.c EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property); · line 2387

Quoted 7 lines
drivers/gpu/drm/drm_connector.c +1 -0
@@ -2378,6 +2381,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *	DCI-P3_RGB_Theater:
   *	RGB_WIDE_FIXED:
   *	RGB_WIDE_FLOAT:
+ *
   *	BT601_YCC:
   *		The behavior is undefined.
   *

thanks,
-- Shuah

#2 lore raw

PATCH v2 1/1 kerneldoc: Fix two missing newlines in drm_connector.c

In reply to Daniel Yang

Fix the unexpected indentation errors.

drm_connector.c has some kerneldoc comments that were missing newlines.
This results in the following warnings when running make htmldocs:
./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2344: WARNING: Definition list ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2346: ERROR: Unexpected indentation. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2368: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2381: ERROR: Unexpected indentation. [docutils]

---

Notes:
v2: added "Fix the unexpected indentation errors" line to description.

 drivers/gpu/drm/drm_connector.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +4 -0
index 80e239a6493..fc35f47e284 100644
@@ -2342,7 +2342,9 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
  *
  *	Default:
  *		The behavior is driver-specific.
+ *
  *	BT2020_RGB:
+ *
  *	BT2020_YCC:
  *		User space configures the pixel operation properties to produce
  *		RGB content with Rec. ITU-R BT.2020 colorimetry, Rec.
@@ -2366,6 +2368,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
  *		range.
  *		The variants BT2020_RGB and BT2020_YCC are equivalent and the
  *		driver chooses between RGB and YCbCr on its own.
+ *
  *	SMPTE_170M_YCC:
  *	BT709_YCC:
  *	XVYCC_601:
@@ -2378,6 +2381,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
  *	DCI-P3_RGB_Theater:
  *	RGB_WIDE_FIXED:
  *	RGB_WIDE_FLOAT:
+ *
  *	BT601_YCC:
  *		The behavior is undefined.
  *
Signature · 1 line
2.39.2
Reviewed-by on v2 1/1
#3 lore raw
Quoted 41 lines · Daniel Yang

Fix the unexpected indentation errors.

drm_connector.c has some kerneldoc comments that were missing newlines.
This results in the following warnings when running make htmldocs:
./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2344: WARNING: Definition list ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2346: ERROR: Unexpected indentation. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2368: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2381: ERROR: Unexpected indentation. [docutils]

---

Notes:
v2: added "Fix the unexpected indentation errors" line to description.

  drivers/gpu/drm/drm_connector.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +3 -0
index 80e239a6493..fc35f47e284 100644
@@ -2342,7 +2342,9 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *
   *	Default:
   *		The behavior is driver-specific.
+ *
   *	BT2020_RGB:
+ *
   *	BT2020_YCC:
   *		User space configures the pixel operation properties to produce
   *		RGB content with Rec. ITU-R BT.2020 colorimetry, Rec.
@@ -2366,6 +2368,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *		range.
   *		The variants BT2020_RGB and BT2020_YCC are equivalent and the
   *		driver chooses between RGB and YCbCr on its own.
+ *
   *	SMPTE_170M_YCC:
   *	BT709_YCC:
   *	XVYCC_601:

drivers/gpu/drm/drm_connector.c EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property); · line 2387

Quoted 7 lines
drivers/gpu/drm/drm_connector.c +1 -0
@@ -2378,6 +2381,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *	DCI-P3_RGB_Theater:
   *	RGB_WIDE_FIXED:
   *	RGB_WIDE_FLOAT:
+ *
   *	BT601_YCC:
   *		The behavior is undefined.
   *

thanks,
-- Shuah

#4 lore raw
In reply to Daniel Yang
Quoted 10 lines · Daniel Yang

Fix the unexpected indentation errors.

drm_connector.c has some kerneldoc comments that were missing newlines.
This results in the following warnings when running make htmldocs:
./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2344: WARNING: Definition list ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2346: ERROR: Unexpected indentation. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2368: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils] ./Documentation/gpu/drm-kms:538: ./drivers/gpu/drm/drm_connector.c:2381: ERROR: Unexpected indentation. [docutils]

Applied, thanks!

Quoted 38 lines

---

Notes:
v2: added "Fix the unexpected indentation errors" line to description.

  drivers/gpu/drm/drm_connector.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/gpu/drm/drm_connector.c +4 -0
index 80e239a6493..fc35f47e284 100644
@@ -2342,7 +2342,9 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *
   *	Default:
   *		The behavior is driver-specific.
+ *
   *	BT2020_RGB:
+ *
   *	BT2020_YCC:
   *		User space configures the pixel operation properties to produce
   *		RGB content with Rec. ITU-R BT.2020 colorimetry, Rec.
@@ -2366,6 +2368,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *		range.
   *		The variants BT2020_RGB and BT2020_YCC are equivalent and the
   *		driver chooses between RGB and YCbCr on its own.
+ *
   *	SMPTE_170M_YCC:
   *	BT709_YCC:
   *	XVYCC_601:
@@ -2378,6 +2381,7 @@ EXPORT_SYMBOL(drm_mode_create_aspect_ratio_property);
   *	DCI-P3_RGB_Theater:
   *	RGB_WIDE_FIXED:
   *	RGB_WIDE_FLOAT:
+ *
   *	BT601_YCC:
   *		The behavior is undefined.
   *
Signature · 1 line
Hamza