diff mbox series

drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on n

Message ID f25017a660f8a3a4e49258a1d96003dc@208suo.com (mailing list archive)
State New, archived
Headers show
Series drm/nouveau/fifo:Fix Nineteen occurrences of the gk104.c error: ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on next line ERROR: space prohibited before that ':' (ctx:WxW) ERROR: trailing statements should be on n | expand

Commit Message

huzhi001@208suo.com July 14, 2023, 5:14 a.m. UTC
Signed-off-by: ZhiHu <huzhi001@208suo.com>
---
  .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c  | 40 ++++++++++++++-----
  1 file changed, 29 insertions(+), 11 deletions(-)

          break;
@@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct 
nvkm_memory *memory, u32 start,
      int target;

      switch (nvkm_memory_target(memory)) {
-    case NVKM_MEM_TARGET_VRAM: target = 0; break;
-    case NVKM_MEM_TARGET_NCOH: target = 3; break;
+    case NVKM_MEM_TARGET_VRAM:
+        target = 0;
+        break;
+    case NVKM_MEM_TARGET_NCOH:
+        target = 3;
+        break;
      default:
          WARN_ON(1);
          return;

Comments

Mark Dymek July 24, 2023, 5:15 p.m. UTC | #1
not sure how i got signed up for this and i don’t see a way to unsubscribe. this is flooding my email with things i don’t care about. 

On Fri, Jul 14, 2023, at 1:14 AM, huzhi001@208suo.com wrote:
> Signed-off-by: ZhiHu <huzhi001@208suo.com>
> ---
>   .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c  | 40 ++++++++++++++-----
>   1 file changed, 29 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 
> b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
> index d8a4d773a58c..b99e0a7c96bb 100644
> --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
> +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
> @@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct 
> nvkm_cctx *cctx, struct nvkm_chan
>       u64 addr = 0ULL;
> 
>       switch (engn->engine->subdev.type) {
> -    case NVKM_ENGINE_SW    : return;
> -    case NVKM_ENGINE_GR    : ptr0 = 0x0210; break;
> -    case NVKM_ENGINE_SEC   : ptr0 = 0x0220; break;
> -    case NVKM_ENGINE_MSPDEC: ptr0 = 0x0250; break;
> -    case NVKM_ENGINE_MSPPP : ptr0 = 0x0260; break;
> -    case NVKM_ENGINE_MSVLD : ptr0 = 0x0270; break;
> -    case NVKM_ENGINE_VIC   : ptr0 = 0x0280; break;
> -    case NVKM_ENGINE_MSENC : ptr0 = 0x0290; break;
> -    case NVKM_ENGINE_NVDEC :
> +    case NVKM_ENGINE_SW:
> +        return;
> +    case NVKM_ENGINE_GR:
> +        ptr0 = 0x0210;
> +        break;
> +    case NVKM_ENGINE_SEC:
> +        ptr0 = 0x0220;
> +        break;
> +    case NVKM_ENGINE_MSPDEC:
> +        ptr0 = 0x0250;
> +        break;
> +    case NVKM_ENGINE_MSPPP:
> +        ptr0 = 0x0260;
> +        break;
> +    case NVKM_ENGINE_MSVLD:
> +        ptr0 = 0x0270;
> +        break;
> +    case NVKM_ENGINE_VIC:
> +        ptr0 = 0x0280; break;
> +    case NVKM_ENGINE_MSENC:
> +        ptr0 = 0x0290;
> +        break;
> +    case NVKM_ENGINE_NVDEC:
>           ptr1 = 0x0270;
>           ptr0 = 0x0210;
>           break;
> @@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct 
> nvkm_memory *memory, u32 start,
>       int target;
> 
>       switch (nvkm_memory_target(memory)) {
> -    case NVKM_MEM_TARGET_VRAM: target = 0; break;
> -    case NVKM_MEM_TARGET_NCOH: target = 3; break;
> +    case NVKM_MEM_TARGET_VRAM:
> +        target = 0;
> +        break;
> +    case NVKM_MEM_TARGET_NCOH:
> +        target = 3;
> +        break;
>       default:
>           WARN_ON(1);
>           return;
>
Luna Jernberg July 25, 2023, 6:10 a.m. UTC | #2
You can unsubscribe here: https://lists.freedesktop.org/mailman/listinfo/nouveau

Den mån 24 juli 2023 kl 19:16 skrev Mark Dymek <mark@dymek.me>:
>
> not sure how i got signed up for this and i don’t see a way to unsubscribe. this is flooding my email with things i don’t care about.
>
> On Fri, Jul 14, 2023, at 1:14 AM, huzhi001@208suo.com wrote:
>
> Signed-off-by: ZhiHu <huzhi001@208suo.com>
> ---
>   .../gpu/drm/nouveau/nvkm/engine/fifo/gk104.c  | 40 ++++++++++++++-----
>   1 file changed, 29 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
> b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
> index d8a4d773a58c..b99e0a7c96bb 100644
> --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
> +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
> @@ -137,15 +137,29 @@ gk104_ectx_bind(struct nvkm_engn *engn, struct
> nvkm_cctx *cctx, struct nvkm_chan
>       u64 addr = 0ULL;
>
>       switch (engn->engine->subdev.type) {
> -    case NVKM_ENGINE_SW    : return;
> -    case NVKM_ENGINE_GR    : ptr0 = 0x0210; break;
> -    case NVKM_ENGINE_SEC   : ptr0 = 0x0220; break;
> -    case NVKM_ENGINE_MSPDEC: ptr0 = 0x0250; break;
> -    case NVKM_ENGINE_MSPPP : ptr0 = 0x0260; break;
> -    case NVKM_ENGINE_MSVLD : ptr0 = 0x0270; break;
> -    case NVKM_ENGINE_VIC   : ptr0 = 0x0280; break;
> -    case NVKM_ENGINE_MSENC : ptr0 = 0x0290; break;
> -    case NVKM_ENGINE_NVDEC :
> +    case NVKM_ENGINE_SW:
> +        return;
> +    case NVKM_ENGINE_GR:
> +        ptr0 = 0x0210;
> +        break;
> +    case NVKM_ENGINE_SEC:
> +        ptr0 = 0x0220;
> +        break;
> +    case NVKM_ENGINE_MSPDEC:
> +        ptr0 = 0x0250;
> +        break;
> +    case NVKM_ENGINE_MSPPP:
> +        ptr0 = 0x0260;
> +        break;
> +    case NVKM_ENGINE_MSVLD:
> +        ptr0 = 0x0270;
> +        break;
> +    case NVKM_ENGINE_VIC:
> +        ptr0 = 0x0280; break;
> +    case NVKM_ENGINE_MSENC:
> +        ptr0 = 0x0290;
> +        break;
> +    case NVKM_ENGINE_NVDEC:
>           ptr1 = 0x0270;
>           ptr0 = 0x0210;
>           break;
> @@ -435,8 +449,12 @@ gk104_runl_commit(struct nvkm_runl *runl, struct
> nvkm_memory *memory, u32 start,
>       int target;
>
>       switch (nvkm_memory_target(memory)) {
> -    case NVKM_MEM_TARGET_VRAM: target = 0; break;
> -    case NVKM_MEM_TARGET_NCOH: target = 3; break;
> +    case NVKM_MEM_TARGET_VRAM:
> +        target = 0;
> +        break;
> +    case NVKM_MEM_TARGET_NCOH:
> +        target = 3;
> +        break;
>       default:
>           WARN_ON(1);
>           return;
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 
b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
index d8a4d773a58c..b99e0a7c96bb 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
@@ -137,15 +137,29 @@  gk104_ectx_bind(struct nvkm_engn *engn, struct 
nvkm_cctx *cctx, struct nvkm_chan
      u64 addr = 0ULL;

      switch (engn->engine->subdev.type) {
-    case NVKM_ENGINE_SW    : return;
-    case NVKM_ENGINE_GR    : ptr0 = 0x0210; break;
-    case NVKM_ENGINE_SEC   : ptr0 = 0x0220; break;
-    case NVKM_ENGINE_MSPDEC: ptr0 = 0x0250; break;
-    case NVKM_ENGINE_MSPPP : ptr0 = 0x0260; break;
-    case NVKM_ENGINE_MSVLD : ptr0 = 0x0270; break;
-    case NVKM_ENGINE_VIC   : ptr0 = 0x0280; break;
-    case NVKM_ENGINE_MSENC : ptr0 = 0x0290; break;
-    case NVKM_ENGINE_NVDEC :
+    case NVKM_ENGINE_SW:
+        return;
+    case NVKM_ENGINE_GR:
+        ptr0 = 0x0210;
+        break;
+    case NVKM_ENGINE_SEC:
+        ptr0 = 0x0220;
+        break;
+    case NVKM_ENGINE_MSPDEC:
+        ptr0 = 0x0250;
+        break;
+    case NVKM_ENGINE_MSPPP:
+        ptr0 = 0x0260;
+        break;
+    case NVKM_ENGINE_MSVLD:
+        ptr0 = 0x0270;
+        break;
+    case NVKM_ENGINE_VIC:
+        ptr0 = 0x0280; break;
+    case NVKM_ENGINE_MSENC:
+        ptr0 = 0x0290;
+        break;
+    case NVKM_ENGINE_NVDEC:
          ptr1 = 0x0270;
          ptr0 = 0x0210;