Skip to contentSkip to conversation

gpu: drm: Replace bare "unsigned" with "unsigned int"

PATCH In review Fabio M. De Francesco 2 participants 3 messages Apr 12, 2021

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

PATCH 1/1 gpu: drm: Replace bare "unsigned" with "unsigned int"

Replaced the type "unsigned" with "unsigned int" because it is preferred. Issue detected by checkpatch.pl.

---
 drivers/gpu/drm/drm_atomic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_atomic.c +2 -2
index 5b4547e0f775..46dceb51c90f 100644
@@ -1302,8 +1302,8 @@ int drm_atomic_check_only(struct drm_atomic_state *state)
 	struct drm_crtc_state *new_crtc_state;
 	struct drm_connector *conn;
 	struct drm_connector_state *conn_state;
-	unsigned requested_crtc = 0;
-	unsigned affected_crtc = 0;
+	unsigned int requested_crtc = 0;
+	unsigned int affected_crtc = 0;
 	int i, ret = 0;
 
 	DRM_DEBUG_ATOMIC("checking %p\n", state);
Signature · 1 line
2.31.1
#1 lore raw
Quoted 2 lines · Fabio M. De Francesco

Replaced the type "unsigned" with "unsigned int" because it is preferred. Issue detected by checkpatch.pl.

Huh, I didn't know that, TIL.

Quoted 1 line

Thanks for your patche, merged to drm-misc-next for 5.14. -Daniel

Quoted 22 lines
---
 drivers/gpu/drm/drm_atomic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_atomic.c +2 -2
index 5b4547e0f775..46dceb51c90f 100644
@@ -1302,8 +1302,8 @@ int drm_atomic_check_only(struct drm_atomic_state *state)
 	struct drm_crtc_state *new_crtc_state;
 	struct drm_connector *conn;
 	struct drm_connector_state *conn_state;
-	unsigned requested_crtc = 0;
-	unsigned affected_crtc = 0;
+	unsigned int requested_crtc = 0;
+	unsigned int affected_crtc = 0;
 	int i, ret = 0;
 
 	DRM_DEBUG_ATOMIC("checking %p\n", state);
Signature · 1 line
2.31.1
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#2 lore raw
Quoted 11 lines · CEST Daniel Vetter
Quoted 2 lines · Fabio M. De Francesco

Replaced the type "unsigned" with "unsigned int" because it is preferred. Issue detected by checkpatch.pl.

Huh, I didn't know that, TIL.

Quoted 1 line

Thanks for your patche, merged to drm-misc-next for 5.14. -Daniel

I am happy that my first dri-devel patch has been accepted.

Thanks,

Fabio

Quoted 25 lines
Quoted 25 lines

---

 drivers/gpu/drm/drm_atomic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_atomic.c +2 -2
index 5b4547e0f775..46dceb51c90f 100644
@@ -1302,8 +1302,8 @@ int drm_atomic_check_only(struct drm_atomic_state
 *state)> 
 	struct drm_crtc_state *new_crtc_state;
 	struct drm_connector *conn;
 	struct drm_connector_state *conn_state;
 
-	unsigned requested_crtc = 0;
-	unsigned affected_crtc = 0;
+	unsigned int requested_crtc = 0;
+	unsigned int affected_crtc = 0;
 
drivers/gpu/drm/drm_atomic.c +0 -0
 	int i, ret = 0;
 
 	DRM_DEBUG_ATOMIC("checking %p\n", state);