drm/nouveau/nvfw/acr: make wpr_generic_header_dump() static
Subsystems (3)
PATCH 1/5 drm/nouveau/nvfw/acr: make wpr_generic_header_dump() static
This symbol is not used outside of acr.c, so marks it static.
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c:49:1: warning: no previous prototype for ‘wpr_generic_header_dump’.
--- 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.20.1.7.g153144c
PATCH 2/5 drm/nouveau/acr: remove the unused variable loc
The variable loc is not effectively used in the function, so delete it.
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c:221:7: warning: variable ‘loc’ set but not used.
--- drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c +1 -2
@@ -218,7 +218,7 @@ nvkm_acr_lsfw_load_sig_image_desc_v2(struct nvkm_subdev *subdev,const struct firmware *hsbl;const struct nvfw_ls_hsbl_bin_hdr *hdr;const struct nvfw_ls_hsbl_hdr *hshdr; -u32 loc, sig, cnt, *meta; +u32 sig, cnt, *meta; ret =nvkm_firmware_load_name (subdev, path,"hs_bl_sig" , ver, &hsbl);if (ret)
@@ -227,7 +227,6 @@ nvkm_acr_lsfw_load_sig_image_desc_v2(struct nvkm_subdev *subdev, hdr =nvfw_ls_hsbl_bin_hdr (subdev, hsbl->data); hshdr =nvfw_ls_hsbl_hdr (subdev, hsbl->data + hdr->header_offset); meta = (u32 *)(hsbl->data + hshdr->meta_data_offset); - loc = *(u32 *)(hsbl->data + hshdr->patch_loc); sig = *(u32 *)(hsbl->data + hshdr->patch_sig); cnt = *(u32 *)(hsbl->data + hshdr->num_sig);
Signature · 1 line
2.20.1.7.g153144c
PATCH 3/5 drm/nouveau/fifo: make nvkm_engn_cgrp_get static
In reply to Jiapeng ChongThis symbol is not used outside of runl.c, so marks it static.
drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.c:34:1: warning: no previous prototype for ‘nvkm_engn_cgrp_get’.
--- drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.c +1 -1
@@ -30,7 +30,7 @@#include <subdev/timer.h> #include <subdev/top.h> -struct nvkm_cgrp * +static struct nvkm_cgrp *nvkm_engn_cgrp_get (struct nvkm_engn *engn,unsigned long *pirqflags) {struct nvkm_cgrp *cgrp =NULL ;
Signature · 1 line
2.20.1.7.g153144c
PATCH 4/5 drm/nouveau/fifo/gf100-: make gf100_fifo_nonstall_block() static
In reply to Jiapeng ChongThis symbol is not used outside of gf100.c, so marks it static.
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c:451:1: warning: no previous prototype for ‘gf100_fifo_nonstall_block’.
--- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c +1 -1
@@ -447,7 +447,7 @@ gf100_fifo_nonstall_allow(struct nvkm_event *event, int type, int index)spin_unlock_irqrestore (&fifo->lock, flags); } -void +static void gf100_fifo_nonstall_block (struct nvkm_event *event,int type,int index) {struct nvkm_fifo *fifo =container_of (event,typeof (*fifo), nonstall.event);
Signature · 1 line
2.20.1.7.g153144c
PATCH 5/5 drm/nouveau/gr/tu102: Remove the unused function tu102_gr_load()
In reply to Jiapeng ChongThe function tu102_gr_load() is defined in the tu102.c file, but not called elsewhere, so remove this unused function.
drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c:210:1: warning: no previous prototype for ‘tu102_gr_load’.
--- drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c | 13 ------------- 1 file changed, 13 deletions(-)
drivers/gpu/drm/nouveau/nvkm/engine/gr/tu102.c +0 -13
@@ -206,19 +206,6 @@ tu102_gr_av_to_init_veid(struct nvkm_blob *blob, struct gf100_gr_pack **ppack)return gk20a_gr_av_to_init_ (blob,64 ,0x00100000 , ppack); } -int -tu102_gr_load (struct gf100_gr *gr,int ver,const struct gf100_gr_fwif *fwif) -{ -int ret; - - ret =gm200_gr_load (gr, ver, fwif); -if (ret) -return ret; - -return gk20a_gr_load_net (gr,"gr/" ,"sw_veid_bundle_init" , ver, tu102_gr_av_to_init_veid, - &gr->bundle_veid); -} -static const struct gf100_gr_fwif tu102_gr_fwif[] = { {0 , gm200_gr_load, &tu102_gr, &gp108_gr_fecs_acr, &gp108_gr_gpccs_acr },
Signature · 1 line
2.20.1.7.g153144c
For the whole series:
Will push to drm-misc-next in a bit
Quoted 24 lines · Jiapeng Chong
This symbol is not used outside of
acr.c, so marks it static.
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c:49:1: warning: no previous prototype for ‘wpr_generic_header_dump’.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[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 · 3 lines
Cheers, Lyude Paul (she/her) Software Engineer at Red Hat
Lyude Paul
maintainerActually hm, I think ben will need to consider pulling these into his branch since these don't seem to apply to drm-misc-next - so presumably they're related to some of the work that's been getting pushed recently for GSP prep
Quoted 24 lines · Jiapeng Chong
This symbol is not used outside of
acr.c, so marks it static.
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c:49:1: warning: no previous prototype for ‘wpr_generic_header_dump’.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[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 · 3 lines
Cheers, Lyude Paul (she/her) Software Engineer at Red Hat