mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 15:34:48 +08:00
b66215e7b7
Fixes this warning: drivers/media/platform/verisilicon/hantro_drv.c: In function 'hantro_add_func': drivers/media/platform/verisilicon/hantro_drv.c:902:49: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 64 [-Wformat-truncation=] 902 | snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, | ^~ drivers/media/platform/verisilicon/hantro_drv.c:902:9: note: 'snprintf' output between 5 and 132 bytes into a destination of size 64 902 | snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 903 | funcid == MEDIA_ENT_F_PROC_VIDEO_ENCODER ? "enc" : "dec"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/platform/verisilicon/hantro_drv.c:902:49: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 64 [-Wformat-truncation=] 902 | snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, | ^~ drivers/media/platform/verisilicon/hantro_drv.c:902:9: note: 'snprintf' output between 5 and 132 bytes into a destination of size 64 902 | snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 903 | funcid == MEDIA_ENT_F_PROC_VIDEO_ENCODER ? "enc" : "dec"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> |
||
---|---|---|
.. | ||
hantro_drv.c | ||
hantro_g1_h264_dec.c | ||
hantro_g1_mpeg2_dec.c | ||
hantro_g1_regs.h | ||
hantro_g1_vp8_dec.c | ||
hantro_g1.c | ||
hantro_g2_hevc_dec.c | ||
hantro_g2_regs.h | ||
hantro_g2_vp9_dec.c | ||
hantro_g2.c | ||
hantro_h1_jpeg_enc.c | ||
hantro_h1_regs.h | ||
hantro_h264.c | ||
hantro_hevc.c | ||
hantro_hw.h | ||
hantro_jpeg.c | ||
hantro_jpeg.h | ||
hantro_mpeg2.c | ||
hantro_postproc.c | ||
hantro_v4l2.c | ||
hantro_v4l2.h | ||
hantro_vp8.c | ||
hantro_vp9.c | ||
hantro_vp9.h | ||
hantro.h | ||
imx8m_vpu_hw.c | ||
Kconfig | ||
Makefile | ||
rockchip_av1_entropymode.c | ||
rockchip_av1_entropymode.h | ||
rockchip_av1_filmgrain.c | ||
rockchip_av1_filmgrain.h | ||
rockchip_vpu2_hw_h264_dec.c | ||
rockchip_vpu2_hw_jpeg_enc.c | ||
rockchip_vpu2_hw_mpeg2_dec.c | ||
rockchip_vpu2_hw_vp8_dec.c | ||
rockchip_vpu2_regs.h | ||
rockchip_vpu981_hw_av1_dec.c | ||
rockchip_vpu981_regs.h | ||
rockchip_vpu_hw.c | ||
sama5d4_vdec_hw.c | ||
sunxi_vpu_hw.c |