Content-Type: multipart/mixed; boundary="===============1853556676813813725==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v15 07/13] media: amphion: add v4l2 m2m vpu encoder stateful driver Date: Tue, 25 Jan 2022 19:34:45 +0800 Message-ID: <202201251914.xAqudfEM-lkp@intel.com> In-Reply-To: List-Id: --===============1853556676813813725== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Ming, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on e783362eb54cd99b2cac8b3a9aeac942e6f6ac07] url: https://github.com/0day-ci/linux/commits/Ming-Qian/amphion-video-de= coder-encoder-driver/20220125-152112 base: e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/2022012= 5/202201251914.xAqudfEM-lkp(a)intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/0d6244aad6fd7e7c377163865= a29319cb2a6df84 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Ming-Qian/amphion-video-decoder-en= coder-driver/20220125-152112 git checkout 0d6244aad6fd7e7c377163865a29319cb2a6df84 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dalpha SHELL=3D/bin/bash drivers/media/platform/amphio= n/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/media/platform/amphion/venc.c: In function 'venc_get_encoded_fra= mes': drivers/media/platform/amphion/venc.c:832:17: error: implicit declaratio= n of function 'vfree'; did you mean 'kvfree'? [-Werror=3Dimplicit-function-= declaration] 832 | vfree(frame); | ^~~~~ | kvfree drivers/media/platform/amphion/venc.c: In function 'venc_frame_encoded': drivers/media/platform/amphion/venc.c:848:17: error: implicit declaratio= n of function 'vzalloc'; did you mean 'kvzalloc'? [-Werror=3Dimplicit-funct= ion-declaration] 848 | frame =3D vzalloc(sizeof(*frame)); | ^~~~~~~ | kvzalloc >> drivers/media/platform/amphion/venc.c:848:15: warning: assignment to 'st= ruct venc_frame_t *' from 'int' makes pointer from integer without a cast [= -Wint-conversion] 848 | frame =3D vzalloc(sizeof(*frame)); | ^ drivers/media/platform/amphion/venc.c: In function 'venc_open': >> drivers/media/platform/amphion/venc.c:1321:14: warning: assignment to 's= truct vpu_inst *' from 'int' makes pointer from integer without a cast [-Wi= nt-conversion] 1321 | inst =3D vzalloc(sizeof(*inst)); | ^ >> drivers/media/platform/amphion/venc.c:1325:14: warning: assignment to 's= truct venc_t *' from 'int' makes pointer from integer without a cast [-Wint= -conversion] 1325 | venc =3D vzalloc(sizeof(*venc)); | ^ cc1: some warnings being treated as errors vim +848 drivers/media/platform/amphion/venc.c 837 = 838 static int venc_frame_encoded(struct vpu_inst *inst, void *arg) 839 { 840 struct vpu_enc_pic_info *info =3D arg; 841 struct venc_frame_t *frame; 842 struct venc_t *venc; 843 int ret =3D 0; 844 = 845 if (!inst || !info) 846 return -EINVAL; 847 venc =3D inst->priv; > 848 frame =3D vzalloc(sizeof(*frame)); 849 if (!frame) 850 return -ENOMEM; 851 = 852 memcpy(&frame->info, info, sizeof(frame->info)); 853 frame->bytesused =3D info->frame_size; 854 = 855 vpu_inst_lock(inst); 856 list_add_tail(&frame->list, &venc->frames); 857 venc->encode_count++; 858 venc_get_encoded_frames(inst); 859 vpu_inst_unlock(inst); 860 = 861 return ret; 862 } 863 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1853556676813813725==--