[linuxtv-media:master 164/167] drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c:1242:5: warning: no previous prototype for 'bufreq_enc'
From: kernel test robot <hidden>
Date: 2021-01-13 10:20:06
Also in:
oe-kbuild-all
tree: git://linuxtv.org/media_tree.git master
head: 7371093f983d35d60a7fac3a6f082de7fefe3648
commit: 3a75bf4e792587d7fd82242aa6c61ec6df4c0fcc [164/167] media: venus: Add platform buffers for v6
config: xtensa-randconfig-r013-20210113 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add linuxtv-media git://linuxtv.org/media_tree.git
git fetch --no-tags linuxtv-media master
git checkout 3a75bf4e792587d7fd82242aa6c61ec6df4c0fcc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <redacted>
All warnings (new ones prefixed by >>):
quoted
drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c:1242:5: warning: no previous prototype for 'bufreq_enc' [-Wmissing-prototypes]
1242 | int bufreq_enc(struct hfi_plat_buffers_params *params, u32 buftype,
| ^~~~~~~~~~
vim +/bufreq_enc +1242 drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c
1241 1242 int bufreq_enc(struct hfi_plat_buffers_params *params, u32 buftype,
1243 struct hfi_buffer_requirements *bufreq)
1244 {
1245 enum hfi_version version = params->version;
1246 struct enc_bufsize_ops *enc_ops;
1247 u32 width = params->width;
1248 u32 height = params->height;
1249 bool is_tenbit = params->enc.is_tenbit;
1250 u32 num_bframes = params->enc.num_b_frames;
1251 u32 codec = params->codec;
1252 u32 work_mode = params->enc.work_mode;
1253 u32 rc_type = params->enc.rc_type;
1254 u32 num_vpp_pipes = params->num_vpp_pipes;
1255 u32 num_ref;
1256
1257 switch (codec) {
1258 case V4L2_PIX_FMT_H264:
1259 enc_ops = &enc_h264_ops;
1260 break;
1261 case V4L2_PIX_FMT_HEVC:
1262 enc_ops = &enc_h265_ops;
1263 break;
1264 case V4L2_PIX_FMT_VP8:
1265 enc_ops = &enc_vp8_ops;
1266 break;
1267 default:
1268 return -EINVAL;
1269 }
1270
1271 num_ref = num_bframes > 0 ? num_bframes + 1 : 1;
1272
1273 bufreq->type = buftype;
1274 bufreq->region_size = 0;
1275 bufreq->count_min = 1;
1276 bufreq->count_actual = 1;
1277 bufreq->hold_count = 1;
1278 bufreq->contiguous = 1;
1279 bufreq->alignment = 256;
1280
1281 if (buftype == HFI_BUFFER_INPUT) {
1282 bufreq->count_min = MIN_INPUT_BUFFERS;
1283 bufreq->size =
1284 venus_helper_get_framesz_raw(params->hfi_color_fmt,
1285 width, height);
1286 } else if (buftype == HFI_BUFFER_OUTPUT ||
1287 buftype == HFI_BUFFER_OUTPUT2) {
1288 bufreq->count_min =
1289 output_buffer_count(VIDC_SESSION_TYPE_ENC, codec);
1290 bufreq->size = calculate_enc_output_frame_size(width, height,
1291 rc_type);
1292 } else if (buftype == HFI_BUFFER_INTERNAL_SCRATCH(version)) {
1293 bufreq->size = enc_ops->scratch(width, height, work_mode,
1294 num_vpp_pipes, rc_type);
1295 } else if (buftype == HFI_BUFFER_INTERNAL_SCRATCH_1(version)) {
1296 bufreq->size = enc_ops->scratch1(width, height, num_ref,
1297 is_tenbit, num_vpp_pipes);
1298 } else if (buftype == HFI_BUFFER_INTERNAL_SCRATCH_2(version)) {
1299 bufreq->size = enc_ops->scratch2(width, height, num_ref,
1300 is_tenbit);
1301 } else if (buftype == HFI_BUFFER_INTERNAL_PERSIST) {
1302 bufreq->size = enc_ops->persist();
1303 } else {
1304 return -EINVAL;
1305 }
1306
1307 return 0;
1308 }
1309
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 32586 bytes