All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-linux-intel-lts:4.19/android_r 19120/22631] drivers/media/media-device.c:848:9: warning: cast between incompatible function types from 'int (*)(struct media_device *, struct file *, struct media_event *)' to 'long int (*)(struct media_device *, struct file *, void *)'
@ 2021-04-09 19:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-09 19:49 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4255 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 4.19/android_r
head:   072f407465e8e25a3c2c22590e1ab72ccf335151
commit: b652a52d36a85d1b731921ba08e701d7150ce200 [19120/22631] Merge branch 'aosp/android-4.19-stable' into android_r
config: mips-randconfig-r031-20210409 (attached as .config)
compiler: mips64el-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
        # https://github.com/intel/linux-intel-lts/commit/b652a52d36a85d1b731921ba08e701d7150ce200
        git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-linux-intel-lts 4.19/android_r
        git checkout b652a52d36a85d1b731921ba08e701d7150ce200
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/media/media-device.c:848:9: warning: cast between incompatible function types from 'long int (*)(struct media_device *, void *)' to 'long int (*)(struct media_device *, struct file *, void *)' [-Wcast-function-type]
     848 |   .fn = (long (*)(struct media_device *,   \
         |         ^
   drivers/media/media-device.c:856:2: note: in expansion of macro 'MEDIA_IOC_ARG'
     856 |  MEDIA_IOC_ARG(__cmd, func, fl, copy_arg_from_user, copy_arg_to_user)
         |  ^~~~~~~~~~~~~
   drivers/media/media-device.c:872:2: note: in expansion of macro 'MEDIA_IOC'
     872 |  MEDIA_IOC(G_TOPOLOGY, media_device_get_topology, MEDIA_IOC_FL_GRAPH_MUTEX),
         |  ^~~~~~~~~
>> drivers/media/media-device.c:848:9: warning: cast between incompatible function types from 'int (*)(struct media_device *, struct file *, struct media_event *)' to 'long int (*)(struct media_device *, struct file *, void *)' [-Wcast-function-type]
     848 |   .fn = (long (*)(struct media_device *,   \
         |         ^
   drivers/media/media-device.c:856:2: note: in expansion of macro 'MEDIA_IOC_ARG'
     856 |  MEDIA_IOC_ARG(__cmd, func, fl, copy_arg_from_user, copy_arg_to_user)
         |  ^~~~~~~~~~~~~
   drivers/media/media-device.c:874:2: note: in expansion of macro 'MEDIA_IOC'
     874 |  MEDIA_IOC(DQEVENT, media_device_dqevent, 0),
         |  ^~~~~~~~~
--
   sound/hda/hdac_stream.c: In function 'snd_hdac_stream_setup_periods':
>> sound/hda/hdac_stream.c:414:28: warning: variable 'cruntime' set but not used [-Wunused-but-set-variable]
     414 |  struct snd_compr_runtime *cruntime = NULL;
         |                            ^~~~~~~~
   sound/hda/hdac_stream.c:617: warning: Function parameter or member 'set' not described in 'snd_hdac_stream_sync_trigger'
   sound/hda/hdac_stream.c:617: warning: Function parameter or member 'reg' not described in 'snd_hdac_stream_sync_trigger'


vim +848 drivers/media/media-device.c

7d4b64028c4bc8 Sakari Ailus 2016-04-27  844  
7d4b64028c4bc8 Sakari Ailus 2016-04-27  845  #define MEDIA_IOC_ARG(__cmd, func, fl, from_user, to_user)		\
6975264c4c6c00 Sakari Ailus 2016-05-03  846  	[_IOC_NR(MEDIA_IOC_##__cmd)] = {				\
6975264c4c6c00 Sakari Ailus 2016-05-03  847  		.cmd = MEDIA_IOC_##__cmd,				\
cbe0196f2e6128 Meng Wei     2018-10-26 @848  		.fn = (long (*)(struct media_device *,			\
cbe0196f2e6128 Meng Wei     2018-10-26  849  				struct file *, void *))func,		\
7d4b64028c4bc8 Sakari Ailus 2016-04-27  850  		.flags = fl,						\
bcd5081b05367d Sakari Ailus 2016-05-03  851  		.arg_from_user = from_user,				\
bcd5081b05367d Sakari Ailus 2016-05-03  852  		.arg_to_user = to_user,					\
6975264c4c6c00 Sakari Ailus 2016-05-03  853  	}
cf439d5f4d609b Sakari Ailus 2016-04-27  854  

:::::: The code at line 848 was first introduced by commit
:::::: cbe0196f2e61288e2916821cbeb3190f1c09da7e media: Add request API

:::::: TO: Meng Wei <wei.meng@intel.com>
:::::: CC: Pan, Kris <kris.pan@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 23662 bytes --]

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

only message in thread, other threads:[~2021-04-09 19:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 19:49 [intel-linux-intel-lts:4.19/android_r 19120/22631] drivers/media/media-device.c:848:9: warning: cast between incompatible function types from 'int (*)(struct media_device *, struct file *, struct media_event *)' to 'long int (*)(struct media_device *, struct file *, void *)' 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.