Skip to contentSkip to conversation

drm: Adjust end of block comment

PATCH New Beatriz Martins de Carvalho 1 participant 6 messages Apr 19, 2021

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

cover drm: Adjust end of block comment

Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions.
Problem found by checkpatch.
in tree dpu/drm

Beatriz Martins de Carvalho (5):
drm: drm_atomic.c: Adjust end of block comment
drm: drm_auth.c: Adjust end of block comment
drm: drm_bufs.c: Adjust end of block comment
drm: drm_connector.c: Adjust end of block comment
drm: drm_context.c: Adjust end of block comment

 drivers/gpu/drm/drm_atomic.c    | 3 ++-
 drivers/gpu/drm/drm_auth.c      | 3 ++-
 drivers/gpu/drm/drm_bufs.c      | 3 ++-
 drivers/gpu/drm/drm_connector.c | 9 ++++++---
 drivers/gpu/drm/drm_context.c   | 3 ++-
 5 files changed, 14 insertions(+), 7 deletions(-)
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/5 drm: drm_auth.c: Adjust end of block comment

Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions.
Problem found by checkpatch.

---
 drivers/gpu/drm/drm_auth.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_auth.c +2 -1
index f2d46b7ac6f9..f00e5abdbbf4 100644
@@ -300,7 +300,8 @@ int drm_master_open(struct drm_file *file_priv)
 	int ret = 0;
 
 	/* if there is no current master make this fd it, but do not create
-	 * any master object for render clients */
+	 * any master object for render clients
+	 */
 	mutex_lock(&dev->master_mutex);
 	if (!dev->master)
 		ret = drm_new_set_master(dev, file_priv);
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/5 drm: drm_atomic.c: Adjust end of block comment

In reply to Beatriz Martins de Carvalho

Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions.
Problem found by checkpatch.

---
 drivers/gpu/drm/drm_atomic.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_atomic.c +2 -1
index 46dceb51c90f..e42d9fc5d9ff 100644
@@ -385,7 +385,8 @@ static int drm_atomic_crtc_check(const struct drm_crtc_state *old_crtc_state,
 
 	/* The state->enable vs. state->mode_blob checks can be WARN_ON,
 	 * as this is a kernel-internal detail that userspace should never
-	 * be able to trigger. */
+	 * be able to trigger.
+	 */
 	if (drm_core_check_feature(crtc->dev, DRIVER_ATOMIC) &&
 	    WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) {
 		DRM_DEBUG_ATOMIC("[CRTC:%d:%s] enabled without mode blob\n",
Signature · 1 line
2.25.1
#3 lore raw

PATCH 3/5 drm: drm_bufs.c: Adjust end of block comment

In reply to Beatriz Martins de Carvalho

Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions.
Problem found by checkpatch.

---
 drivers/gpu/drm/drm_bufs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_bufs.c +2 -1
index e3d77dfefb0a..731a42a31c44 100644
@@ -325,7 +325,8 @@ static int drm_addmap_core(struct drm_device *dev, resource_size_t offset,
 		/* dma_addr_t is 64bit on i386 with CONFIG_HIGHMEM64G,
 		 * As we're limiting the address to 2^32-1 (or less),
 		 * casting it down to 32 bits is no problem, but we
-		 * need to point to a 64bit variable first. */
+		 * need to point to a 64bit variable first.
+		 */
 		map->handle = dma_alloc_coherent(dev->dev,
 						 map->size,
 						 &map->offset,
Signature · 1 line
2.25.1
#4 lore raw

PATCH 4/5 drm: drm_connector.c: Adjust end of block comment

In reply to Beatriz Martins de Carvalho

Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions.
Problem found by checkpatch.

---
 drivers/gpu/drm/drm_connector.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/drm_connector.c +6 -3
index 7631f76e7f34..8714f2d021f9 100644
@@ -279,7 +279,8 @@ int drm_connector_init(struct drm_device *dev,
 	drm_connector_get_cmdline_mode(connector);
 
 	/* We should add connectors at the end to avoid upsetting the connector
-	 * index too much. */
+	 * index too much.
+	 */
 	spin_lock_irq(&config->connector_list_lock);
 	list_add_tail(&connector->head, &config->connector_list);
 	config->num_connector++;
@@ -2288,7 +2289,8 @@ int drm_connector_property_set_ioctl(struct drm_device *dev,
 static struct drm_encoder *drm_connector_get_encoder(struct drm_connector *connector)
 {
 	/* For atomic drivers only state objects are synchronously updated and
-	 * protected by modeset locks, so check those first. */
+	 * protected by modeset locks, so check those first.
+	 */
 	if (connector->state)
 		return connector->state->best_encoder;
 	return connector->encoder;
@@ -2450,7 +2452,8 @@ int drm_mode_getconnector(struct drm_device *dev, void *data,
 		out_resp->encoder_id = 0;
 
 	/* Only grab properties after probing, to make sure EDID and other
-	 * properties reflect the latest status. */
+	 * properties reflect the latest status.
+	 */
 	ret = drm_mode_object_get_properties(&connector->base, file_priv->atomic,
 			(uint32_t __user *)(unsigned long)(out_resp->props_ptr),
 			(uint64_t __user *)(unsigned long)(out_resp->prop_values_ptr),
Signature · 1 line
2.25.1
#5 lore raw

PATCH 5/5 drm: drm_context.c: Adjust end of block comment

In reply to Beatriz Martins de Carvalho

Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions.
Problem found by checkpatch.

---
 drivers/gpu/drm/drm_context.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_context.c +2 -1
index c99be950bf17..54e3c513d6a5 100644
@@ -312,7 +312,8 @@ static int drm_context_switch_complete(struct drm_device *dev,
 
 	/* If a context switch is ever initiated
 	   when the kernel holds the lock, release
-	   that lock here. */
+	   that lock here.
+	 */
 	clear_bit(0, &dev->context_flag);
 
 	return 0;
Signature · 1 line
2.25.1