diff mbox series

[11/34] drm/nouveau/nvkm/subdev/mc/tu102: Make functions called by reference static

Message ID 20210526084726.552052-12-lee.jones@linaro.org
State Superseded
Headers show
Series Rid W=1 warnings from GPU | expand

Commit Message

Lee Jones May 26, 2021, 8:47 a.m. UTC
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:50:1: warning: no previous prototype for ‘tu102_mc_intr_unarm’ [-Wmissing-prototypes]
 drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:62:1: warning: no previous prototype for ‘tu102_mc_intr_rearm’ [-Wmissing-prototypes]
 drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:74:1: warning: no previous prototype for ‘tu102_mc_intr_mask’ [-Wmissing-prototypes]

Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: dri-devel@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>

---
 drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.31.1

Comments

Karol Herbst May 26, 2021, 11:16 a.m. UTC | #1
On Wed, May 26, 2021 at 10:47 AM Lee Jones <lee.jones@linaro.org> wrote:
>

> Fixes the following W=1 kernel build warning(s):

>

>  drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:50:1: warning: no previous prototype for ‘tu102_mc_intr_unarm’ [-Wmissing-prototypes]

>  drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:62:1: warning: no previous prototype for ‘tu102_mc_intr_rearm’ [-Wmissing-prototypes]

>  drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c:74:1: warning: no previous prototype for ‘tu102_mc_intr_mask’ [-Wmissing-prototypes]

>

> Cc: Ben Skeggs <bskeggs@redhat.com>

> Cc: David Airlie <airlied@linux.ie>

> Cc: Daniel Vetter <daniel@ffwll.ch>

> Cc: Alistair Popple <apopple@nvidia.com>

> Cc: dri-devel@lists.freedesktop.org

> Cc: nouveau@lists.freedesktop.org

> Signed-off-by: Lee Jones <lee.jones@linaro.org>

> ---

>  drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c | 6 +++---

>  1 file changed, 3 insertions(+), 3 deletions(-)

>

> diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c

> index 58db83ebadc5f..a96084b34a788 100644

> --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c

> +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c

> @@ -46,7 +46,7 @@ tu102_mc_intr_update(struct tu102_mc *mc)

>                 nvkm_wr32(device, 0xb81610, 0x6);

>  }

>

> -void

> +static void

>  tu102_mc_intr_unarm(struct nvkm_mc *base)

>  {

>         struct tu102_mc *mc = tu102_mc(base);

> @@ -58,7 +58,7 @@ tu102_mc_intr_unarm(struct nvkm_mc *base)

>         spin_unlock_irqrestore(&mc->lock, flags);

>  }

>

> -void

> +static void

>  tu102_mc_intr_rearm(struct nvkm_mc *base)

>  {

>         struct tu102_mc *mc = tu102_mc(base);

> @@ -70,7 +70,7 @@ tu102_mc_intr_rearm(struct nvkm_mc *base)

>         spin_unlock_irqrestore(&mc->lock, flags);

>  }

>

> -void

> +static void

>  tu102_mc_intr_mask(struct nvkm_mc *base, u32 mask, u32 intr)

>  {

>         struct tu102_mc *mc = tu102_mc(base);

> --

> 2.31.1

>

> _______________________________________________

> Nouveau mailing list

> Nouveau@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/nouveau


Reviewed-by: Karol Herbst <kherbst@redhat.com>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c
index 58db83ebadc5f..a96084b34a788 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/tu102.c
@@ -46,7 +46,7 @@  tu102_mc_intr_update(struct tu102_mc *mc)
 		nvkm_wr32(device, 0xb81610, 0x6);
 }
 
-void
+static void
 tu102_mc_intr_unarm(struct nvkm_mc *base)
 {
 	struct tu102_mc *mc = tu102_mc(base);
@@ -58,7 +58,7 @@  tu102_mc_intr_unarm(struct nvkm_mc *base)
 	spin_unlock_irqrestore(&mc->lock, flags);
 }
 
-void
+static void
 tu102_mc_intr_rearm(struct nvkm_mc *base)
 {
 	struct tu102_mc *mc = tu102_mc(base);
@@ -70,7 +70,7 @@  tu102_mc_intr_rearm(struct nvkm_mc *base)
 	spin_unlock_irqrestore(&mc->lock, flags);
 }
 
-void
+static void
 tu102_mc_intr_mask(struct nvkm_mc *base, u32 mask, u32 intr)
 {
 	struct tu102_mc *mc = tu102_mc(base);