lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209151655.B1DVu19y-lkp@intel.com>
Date:   Thu, 15 Sep 2022 16:58:49 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hans Verkuil <hverkuil@...all.nl>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [hverkuil-media-tree:alt-ctrls 1/2]
 drivers/media/i2c/adv7604.c:2759:17: error: 'V4L2_CTRL_TYPE_INTEGER'
 undeclared here (not in a function); did you mean
 'V4L2_CTRL_TYPE_INTEGER_MENU'?

tree:   git://linuxtv.org/hverkuil/media_tree.git alt-ctrls
head:   c6e0e18a5be6b8a301595a30ba369cbee4a60807
commit: b28feb32252c212b4d345f0da7ceb285d763e1b9 [1/2] wip
config: i386-randconfig-a003
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git
        git fetch --no-tags hverkuil-media-tree alt-ctrls
        git checkout b28feb32252c212b4d345f0da7ceb285d763e1b9
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/media/i2c/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/videodev2.h:61,
                    from drivers/media/i2c/adv7604.c:27:
   include/uapi/linux/videodev2.h:1859:15: error: unknown type name 'v4l2_ctrl_ptr'
    1859 | static inline v4l2_ctrl_ptr v4l2_ctrl_get_ptr(const struct v4l2_ext_control *c)
         |               ^~~~~~~~~~~~~
   include/uapi/linux/videodev2.h: In function 'v4l2_ctrl_get_ptr':
   include/uapi/linux/videodev2.h:1861:9: error: unknown type name 'v4l2_ctrl_ptr'; use 'union' keyword to refer to the type
    1861 |         v4l2_ctrl_ptr p;
         |         ^~~~~~~~~~~~~
         |         union 
   include/uapi/linux/videodev2.h:1864:18: error: request for member 'p_const' in something not a structure or union
    1864 |                 p.p_const = (const void *)(uintptr_t)c->ptr;
         |                  ^
   include/uapi/linux/videodev2.h:1866:18: error: request for member 'p_const' in something not a structure or union
    1866 |                 p.p_const = &c->value;
         |                  ^
   include/uapi/linux/videodev2.h: At top level:
   include/uapi/linux/videodev2.h:1883:38: error: unknown type name 'v4l2_ctrl_ptr'
    1883 |                                      v4l2_ctrl_ptr p, unsigned int elems)
         |                                      ^~~~~~~~~~~~~
   In file included from drivers/media/i2c/adv7604.c:34:
   include/media/v4l2-ctrls.h:58:7: error: redefinition of 'union v4l2_ctrl_ptr'
      58 | union v4l2_ctrl_ptr {
         |       ^~~~~~~~~~~~~
   In file included from include/linux/videodev2.h:61,
                    from drivers/media/i2c/adv7604.c:27:
   include/uapi/linux/videodev2.h:1797:7: note: originally defined here
    1797 | union v4l2_ctrl_ptr {
         |       ^~~~~~~~~~~~~
   In file included from drivers/media/i2c/adv7604.c:34:
   include/media/v4l2-ctrls.h:1399:58: warning: 'struct v4l2_queryctrl' declared inside parameter list will not be visible outside of this definition or declaration
    1399 | int v4l2_queryctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_queryctrl *qc);
         |                                                          ^~~~~~~~~~~~~~
   include/media/v4l2-ctrls.h:1433:55: warning: 'struct v4l2_control' declared inside parameter list will not be visible outside of this definition or declaration
    1433 | int v4l2_g_ctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_control *ctrl);
         |                                                       ^~~~~~~~~~~~
   include/media/v4l2-ctrls.h:1447:24: warning: 'struct v4l2_control' declared inside parameter list will not be visible outside of this definition or declaration
    1447 |                 struct v4l2_control *ctrl);
         |                        ^~~~~~~~~~~~
   include/media/v4l2-ctrls.h:1461:56: warning: 'struct v4l2_ext_controls' declared inside parameter list will not be visible outside of this definition or declaration
    1461 |                      struct media_device *mdev, struct v4l2_ext_controls *c);
         |                                                        ^~~~~~~~~~~~~~~~~
   include/media/v4l2-ctrls.h:1477:31: warning: 'struct v4l2_ext_controls' declared inside parameter list will not be visible outside of this definition or declaration
    1477 |                        struct v4l2_ext_controls *c);
         |                               ^~~~~~~~~~~~~~~~~
   include/media/v4l2-ctrls.h:1494:29: warning: 'struct v4l2_ext_controls' declared inside parameter list will not be visible outside of this definition or declaration
    1494 |                      struct v4l2_ext_controls *c);
         |                             ^~~~~~~~~~~~~~~~~
   In file included from include/media/v4l2-subdev.h:15,
                    from include/media/v4l2-device.h:13,
                    from drivers/media/i2c/adv7604.c:35:
   include/media/v4l2-common.h:95:33: warning: 'struct v4l2_queryctrl' declared inside parameter list will not be visible outside of this definition or declaration
      95 | int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl,
         |                                 ^~~~~~~~~~~~~~
>> drivers/media/i2c/adv7604.c:2759:17: error: 'V4L2_CTRL_TYPE_INTEGER' undeclared here (not in a function); did you mean 'V4L2_CTRL_TYPE_INTEGER_MENU'?
    2759 |         .type = V4L2_CTRL_TYPE_INTEGER,
         |                 ^~~~~~~~~~~~~~~~~~~~~~
         |                 V4L2_CTRL_TYPE_INTEGER_MENU


vim +2759 drivers/media/i2c/adv7604.c

54450f591c9927 Hans Verkuil 2012-07-18  2754  
54450f591c9927 Hans Verkuil 2012-07-18  2755  static const struct v4l2_ctrl_config adv7604_ctrl_analog_sampling_phase = {
b44b2e06ae4633 Pablo Anton  2015-02-03  2756  	.ops = &adv76xx_ctrl_ops,
54450f591c9927 Hans Verkuil 2012-07-18  2757  	.id = V4L2_CID_ADV_RX_ANALOG_SAMPLING_PHASE,
54450f591c9927 Hans Verkuil 2012-07-18  2758  	.name = "Analog Sampling Phase",
54450f591c9927 Hans Verkuil 2012-07-18 @2759  	.type = V4L2_CTRL_TYPE_INTEGER,
54450f591c9927 Hans Verkuil 2012-07-18  2760  	.min = 0,
54450f591c9927 Hans Verkuil 2012-07-18  2761  	.max = 0x1f,
54450f591c9927 Hans Verkuil 2012-07-18  2762  	.step = 1,
54450f591c9927 Hans Verkuil 2012-07-18  2763  	.def = 0,
54450f591c9927 Hans Verkuil 2012-07-18  2764  };
54450f591c9927 Hans Verkuil 2012-07-18  2765  

:::::: The code at line 2759 was first introduced by commit
:::::: 54450f591c9927496b3d41c041fa802d0ef96885 [media] adv7604: driver for the Analog Devices ADV7604 video decoder

:::::: TO: Hans Verkuil <hans.verkuil@...co.com>
:::::: CC: Mauro Carvalho Chehab <mchehab@...hat.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (155492 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ