Skip to contentSkip to conversation

drm/radeon: ERROR: "foo * bar" should be "foo *bar"

PATCH Applied [email protected] 2 participants 2 messages Jul 10, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 drm/radeon: ERROR: "foo * bar" should be "foo *bar"

Fix nine occurrences of the checkpatch.pl error:
ERROR: "foo * bar" should be "foo *bar"

---
 drivers/gpu/drm/radeon/atom.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/radeon/atom.c +7 -7
index c1bbfbe28bda..11a1940bb26d 100644
@@ -1156,7 +1156,7 @@ static struct {
     atom_op_shr, ATOM_ARG_MC}, {
 atom_op_debug, 0},};
 
-static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params)
+static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t *params)
 {
     int base = CU16(ctx->cmd_table + 4 + 2 * index);
     int len, ws, ps, ptr;
@@ -1216,7 +1216,7 @@ static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32
     return ret;
 }
 
-int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t * params)
+int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t *params)
 {
     int r;
 
@@ -1237,7 +1237,7 @@ int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uin
     return r;
 }
 
-int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)
+int atom_execute_table(struct atom_context *ctx, int index, uint32_t *params)
 {
     int r;
     mutex_lock(&ctx->scratch_mutex);
@@ -1359,8 +1359,8 @@ void atom_destroy(struct atom_context *ctx)
 }
 
 bool atom_parse_data_header(struct atom_context *ctx, int index,
-                uint16_t * size, uint8_t * frev, uint8_t * crev,
-                uint16_t * data_start)
+                uint16_t *size, uint8_t *frev, uint8_t *crev,
+                uint16_t *data_start)
 {
     int offset = index * 2 + 4;
     int idx = CU16(ctx->data_table + offset);
@@ -1379,8 +1379,8 @@ bool atom_parse_data_header(struct atom_context *ctx, int index,
     return true;
 }
 
-bool atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t * frev,
-               uint8_t * crev)
+bool atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t *frev,
+               uint8_t *crev)
 {
     int offset = index * 2 + 4;
     int idx = CU16(ctx->cmd_table + offset);
Applied
#2 lore raw

Applied. Thanks!

Quoted 74 lines · On Mon, Jul 10, 2023 at 3:38 AM <[email protected]> wrote:

Fix nine occurrences of the checkpatch.pl error:
ERROR: "foo * bar" should be "foo *bar"

---
  drivers/gpu/drm/radeon/atom.c | 14 +++++++-------
  1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/radeon/atom.c +1 -1
index c1bbfbe28bda..11a1940bb26d 100644
@@ -1156,7 +1156,7 @@ static struct {
      atom_op_shr, ATOM_ARG_MC}, {
  atom_op_debug, 0},};
 
-static int atom_execute_table_locked(struct atom_context *ctx, int
 index, uint32_t * params)
+static int atom_execute_table_locked(struct atom_context *ctx, int
 index, uint32_t *params)
  {
      int base = CU16(ctx->cmd_table + 4 + 2 * index);
      int len, ws, ps, ptr;
drivers/gpu/drm/radeon/atom.c +0 -0
@@ -1216,7 +1216,7 @@ static int atom_execute_table_locked(struct

atom_context *ctx, int index, uint32

      return ret;

}

-int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t * params)
+int atom_execute_table_scratch_unlocked(struct atom_context *ctx, int index, uint32_t *params)

  {
      int r;
drivers/gpu/drm/radeon/atom.c +0 -0
@@ -1237,7 +1237,7 @@ int atom_execute_table_scratch_unlocked(struct

atom_context *ctx, int index, uin

      return r;

}

-int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)
+int atom_execute_table(struct atom_context *ctx, int index, uint32_t *params)

  {
      int r;
      mutex_lock(&ctx->scratch_mutex);
drivers/gpu/drm/radeon/atom.c +4 -4
@@ -1359,8 +1359,8 @@ void atom_destroy(struct atom_context *ctx)
  }
 
  bool atom_parse_data_header(struct atom_context *ctx, int index,
-                uint16_t * size, uint8_t * frev, uint8_t * crev,
-                uint16_t * data_start)
+                uint16_t *size, uint8_t *frev, uint8_t *crev,
+                uint16_t *data_start)
  {
      int offset = index * 2 + 4;
      int idx = CU16(ctx->data_table + offset);
@@ -1379,8 +1379,8 @@ bool atom_parse_data_header(struct atom_context
 *ctx, int index,
      return true;
  }
 
-bool atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t
 * frev,
-               uint8_t * crev)
+bool atom_parse_cmd_header(struct atom_context *ctx, int index, uint8_t
 *frev,
+               uint8_t *crev)
  {
      int offset = index * 2 + 4;
      int idx = CU16(ctx->cmd_table + offset);