From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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 *)'
Date: Sat, 10 Apr 2021 03:49:27 +0800 [thread overview]
Message-ID: <202104100306.eP2SeMM4-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-04-09 19:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202104100306.eP2SeMM4-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.