All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:pr/629 3395/9838] drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:269:5: warning: no previous prototype for 'vsi_dec_capture_off'
@ 2023-04-15 12:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-15 12:17 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: oe-kbuild-all

tree:   https://github.com/Freescale/linux-fslc pr/629
head:   d1033c2e51746dfdb7179c82e38b03ba7de39c63
commit: bb73ce236d7a42f2439007c7b58c6be33156ab01 [3395/9838] LF-5945-2: imx8m: vpu_dec: remove check reschange in driver
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230415/202304152014.q03gl2jc-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.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
        # https://github.com/Freescale/linux-fslc/commit/bb73ce236d7a42f2439007c7b58c6be33156ab01
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc pr/629
        git checkout bb73ce236d7a42f2439007c7b58c6be33156ab01
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/media/platform/ drivers/mxc/hantro_v4l2/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304152014.q03gl2jc-lkp@intel.com/

All warnings (new ones prefixed by >>):

   cc1: warning: drivers/mxc/hantro_v4l2/include/: No such file or directory [-Wmissing-include-dirs]
>> drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:269:5: warning: no previous prototype for 'vsi_dec_capture_off' [-Wmissing-prototypes]
     269 | int vsi_dec_capture_off(struct vsi_v4l2_ctx *ctx)
         |     ^~~~~~~~~~~~~~~~~~~
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c: In function 'vsi_dec_streamoff':
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:356:28: warning: variable 'otype' set but not used [-Wunused-but-set-variable]
     356 |         enum v4l2_buf_type otype;
         |                            ^~~~~
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c: At top level:
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:707:5: warning: no previous prototype for 'vsi_dec_decoder_cmd' [-Wmissing-prototypes]
     707 | int vsi_dec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd)
         |     ^~~~~~~~~~~~~~~~~~~
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:772:33: warning: initialized field overwritten [-Woverride-init]
     772 |         .vidioc_g_fmt_vid_out = vsi_dec_g_fmt,
         |                                 ^~~~~~~~~~~~~
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:772:33: note: (near initialization for 'vsi_dec_ioctl.vidioc_g_fmt_vid_out')
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c: In function 'vsi_dec_buf_queue':
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:807:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
     807 |         int ret;
         |             ^~~
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c: At top level:
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:964:18: error: initialization of 'bool (*)(const struct v4l2_ctrl *, union v4l2_ctrl_ptr,  union v4l2_ctrl_ptr)' {aka '_Bool (*)(const struct v4l2_ctrl *, union v4l2_ctrl_ptr,  union v4l2_ctrl_ptr)'} from incompatible pointer type 'bool (*)(const struct v4l2_ctrl *, u32,  union v4l2_ctrl_ptr,  union v4l2_ctrl_ptr)' {aka '_Bool (*)(const struct v4l2_ctrl *, unsigned int,  union v4l2_ctrl_ptr,  union v4l2_ctrl_ptr)'} [-Werror=incompatible-pointer-types]
     964 |         .equal = vsi_dec_ctrl_equal,
         |                  ^~~~~~~~~~~~~~~~~~
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:964:18: note: (near initialization for 'vsi_dec_type_ops.equal')
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:967:21: error: initialization of 'int (*)(const struct v4l2_ctrl *, union v4l2_ctrl_ptr)' from incompatible pointer type 'int (*)(const struct v4l2_ctrl *, u32,  union v4l2_ctrl_ptr)' {aka 'int (*)(const struct v4l2_ctrl *, unsigned int,  union v4l2_ctrl_ptr)'} [-Werror=incompatible-pointer-types]
     967 |         .validate = vsi_dec_ctrl_validate,
         |                     ^~~~~~~~~~~~~~~~~~~~~
   drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:967:21: note: (near initialization for 'vsi_dec_type_ops.validate')
   cc1: some warnings being treated as errors


vim +/vsi_dec_capture_off +269 drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c

   268	
 > 269	int vsi_dec_capture_off(struct vsi_v4l2_ctx *ctx)
   270	{
   271		int ret;
   272		struct vb2_queue *q = &ctx->output_que;
   273	
   274		if (!vb2_is_streaming(q))
   275			return 0;
   276	
   277		ret = vsiv4l2_execcmd(ctx, V4L2_DAEMON_VIDIOC_STREAMOFF_CAPTURE, NULL);
   278		if (ret < 0)
   279			return -EFAULT;
   280	
   281		mutex_unlock(&ctx->ctxlock);
   282		if (wait_event_interruptible(ctx->capoffdone_queue, vsi_checkctx_capoffdone(ctx) != 0))
   283			v4l2_klog(LOGLVL_WARNING, "%lx wait capture streamoff done timeout\n", ctx->ctxid);
   284		if (mutex_lock_interruptible(&ctx->ctxlock))
   285			return -EBUSY;
   286		ctx->buffed_capnum = 0;
   287		ctx->buffed_cropcapnum = 0;
   288		return_all_buffers(q, VB2_BUF_STATE_ERROR, 1);
   289		return vb2_streamoff(q, q->type);
   290	}
   291	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-15 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-15 12:17 [freescale-fslc:pr/629 3395/9838] drivers/mxc/hantro_v4l2/vsi-v4l2-dec.c:269:5: warning: no previous prototype for 'vsi_dec_capture_off' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.