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(-)
Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions. Problem found by checkpatch.
Signed-off-by: Beatriz Martins de Carvalho martinsdecarvalhobeatriz@gmail.com --- drivers/gpu/drm/drm_atomic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index 46dceb51c90f..e42d9fc5d9ff 100644 --- a/drivers/gpu/drm/drm_atomic.c +++ b/drivers/gpu/drm/drm_atomic.c @@ -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",
Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions. Problem found by checkpatch.
Signed-off-by: Beatriz Martins de Carvalho martinsdecarvalhobeatriz@gmail.com --- drivers/gpu/drm/drm_auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c index f2d46b7ac6f9..f00e5abdbbf4 100644 --- a/drivers/gpu/drm/drm_auth.c +++ b/drivers/gpu/drm/drm_auth.c @@ -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);
Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions. Problem found by checkpatch.
Signed-off-by: Beatriz Martins de Carvalho martinsdecarvalhobeatriz@gmail.com --- drivers/gpu/drm/drm_bufs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c index e3d77dfefb0a..731a42a31c44 100644 --- a/drivers/gpu/drm/drm_bufs.c +++ b/drivers/gpu/drm/drm_bufs.c @@ -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,
Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions. Problem found by checkpatch.
Signed-off-by: Beatriz Martins de Carvalho martinsdecarvalhobeatriz@gmail.com --- drivers/gpu/drm/drm_connector.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 7631f76e7f34..8714f2d021f9 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -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),
Add a new line with */ on the last line of a block comment to follow the Linux kernel coding conventions. Problem found by checkpatch.
Signed-off-by: Beatriz Martins de Carvalho martinsdecarvalhobeatriz@gmail.com --- drivers/gpu/drm/drm_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c index c99be950bf17..54e3c513d6a5 100644 --- a/drivers/gpu/drm/drm_context.c +++ b/drivers/gpu/drm/drm_context.c @@ -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;
dri-devel@lists.freedesktop.org