drm/nouveau/nvfw/acr: set wpr_generic_header_dump storage-class-specifier to static
Subsystems (3)
PATCH 1/1 drm/nouveau/nvfw/acr: set wpr_generic_header_dump storage-class-specifier to static
gcc with W=1 reports drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c:49:1: error: no previous
prototype for ‘wpr_generic_header_dump’ [-Werror=missing-prototypes]
49 | wpr_generic_header_dump(struct nvkm_subdev *subdev,
| ^~~~~~~~~~~~~~~~~~~~~~~
wpr_generic_header_dump is only used in acr.c, so it should be static
Signed-off-by Tom Rix <[email protected]>
--- drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c +1 -1
@@ -45,7 +45,7 @@ wpr_header_v1_dump(struct nvkm_subdev *subdev, const struct wpr_header_v1 *hdr)nvkm_debug (subdev,"\tstatus : %d\n" , hdr->status); } -void +static void wpr_generic_header_dump (struct nvkm_subdev *subdev,const struct wpr_generic_header *hdr) {nvkm_debug (subdev,"wprGenericHeader\n" );
Signature · 1 line
2.27.0
Reviewed-by Karol Herbst <[email protected]>
will push in a moment
Quoted 30 lines · Tom Rix
gcc with W=1 reports
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c:49:1: error: no previous
prototype for ‘wpr_generic_header_dump’ [-Werror=missing-prototypes]
49 | wpr_generic_header_dump(structnvkm_subdev*subdev,| ^~~~~~~~~~~~~~~~~~~~~~~
wpr_generic_header_dumpis only used inacr.c, so it should be staticSigned-off-by Tom Rix <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c +1
-2@@ -45,7 +45,7 @@ wpr_header_v1_dump(struct nvkm_subdev *subdev, const struct wpr_header_v1 *hdr)nvkm_debug (subdev,"\tstatus : %d\n" , hdr->status); } -void +static void wpr_generic_header_dump (struct nvkm_subdev *subdev,const struct wpr_generic_header *hdr) {nvkm_debug (subdev,"wprGenericHeader\n" ); --2.27.0