From: kernel test robot <lkp@intel.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [gustavoars:6.1-rc1-Wcast-function-type-strict 6/6] drivers/staging/ks7010/ks_wlan_net.c:1802:45: error: incompatible pointer types passing '__u32 *' (aka 'unsigned int *') to parameter of type 'union iwreq_data *'
Date: Wed, 26 Oct 2022 17:21:55 +0800 [thread overview]
Message-ID: <202210261736.cim6347b-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5027 bytes --]
Hi Gustavo,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git 6.1-rc1-Wcast-function-type-strict
head: 72608236b640b516c8dec0d0332aa1c6254ecbaa
commit: 72608236b640b516c8dec0d0332aa1c6254ecbaa [6/6] staging: ks7010: Avoid clashing function prototypes
config: arm-randconfig-r013-20221024 (attached as .config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git/commit/?id=72608236b640b516c8dec0d0332aa1c6254ecbaa
git remote add gustavoars https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git
git fetch --no-tags gustavoars 6.1-rc1-Wcast-function-type-strict
git checkout 72608236b640b516c8dec0d0332aa1c6254ecbaa
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/staging/ks7010/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/staging/ks7010/ks_wlan_net.c:1802:45: error: incompatible pointer types passing '__u32 *' (aka 'unsigned int *') to parameter of type 'union iwreq_data *' [-Werror,-Wincompatible-pointer-types]
return ks_wlan_set_stop_request(dev, NULL, &mode, NULL);
^~~~~
drivers/staging/ks7010/ks_wlan_net.c:1767:27: note: passing argument to parameter 'uwrq' here
union iwreq_data *uwrq, char *extra)
^
drivers/staging/ks7010/ks_wlan_net.c:2466:45: error: incompatible pointer types passing '__u32 *' (aka 'unsigned int *') to parameter of type 'union iwreq_data *' [-Werror,-Wincompatible-pointer-types]
ret = ks_wlan_set_stop_request(dev, NULL, &wrq->u.mode, NULL);
^~~~~~~~~~~~
drivers/staging/ks7010/ks_wlan_net.c:1767:27: note: passing argument to parameter 'uwrq' here
union iwreq_data *uwrq, char *extra)
^
2 errors generated.
vim +1802 drivers/staging/ks7010/ks_wlan_net.c
13a9930d15b424 Wolfram Sang 2016-05-31 1781
13a9930d15b424 Wolfram Sang 2016-05-31 1782 #include <linux/ieee80211.h>
1df655478eeb90 Wolfram Sang 2016-05-31 1783 static int ks_wlan_set_mlme(struct net_device *dev,
18e76e23740a4f Sergio Paracuellos 2018-04-23 1784 struct iw_request_info *info,
18e76e23740a4f Sergio Paracuellos 2018-04-23 1785 union iwreq_data *dwrq, char *extra)
13a9930d15b424 Wolfram Sang 2016-05-31 1786 {
2b0d92b265324c Tobin C. Harding 2017-04-27 1787 struct ks_wlan_private *priv = netdev_priv(dev);
13a9930d15b424 Wolfram Sang 2016-05-31 1788 struct iw_mlme *mlme = (struct iw_mlme *)extra;
2d1de1e3186d13 Sergio Paracuellos 2018-05-04 1789 __u32 mode = 1;
13a9930d15b424 Wolfram Sang 2016-05-31 1790
e0d648151d00fe Yamanappagouda Patil 2016-11-24 1791 if (priv->sleep_mode == SLP_SLEEP)
1df655478eeb90 Wolfram Sang 2016-05-31 1792 return -EPERM;
e0d648151d00fe Yamanappagouda Patil 2016-11-24 1793
2d1de1e3186d13 Sergio Paracuellos 2018-05-04 1794 if (mlme->cmd != IW_MLME_DEAUTH &&
2d1de1e3186d13 Sergio Paracuellos 2018-05-04 1795 mlme->cmd != IW_MLME_DISASSOC)
2d1de1e3186d13 Sergio Paracuellos 2018-05-04 1796 return -EOPNOTSUPP;
2d1de1e3186d13 Sergio Paracuellos 2018-05-04 1797
2d1de1e3186d13 Sergio Paracuellos 2018-05-04 1798 if (mlme->cmd == IW_MLME_DEAUTH &&
2d1de1e3186d13 Sergio Paracuellos 2018-05-04 1799 mlme->reason_code == WLAN_REASON_MIC_FAILURE)
13a9930d15b424 Wolfram Sang 2016-05-31 1800 return 0;
2d1de1e3186d13 Sergio Paracuellos 2018-05-04 1801
13a9930d15b424 Wolfram Sang 2016-05-31 @1802 return ks_wlan_set_stop_request(dev, NULL, &mode, NULL);
13a9930d15b424 Wolfram Sang 2016-05-31 1803 }
13a9930d15b424 Wolfram Sang 2016-05-31 1804
:::::: The code at line 1802 was first introduced by commit
:::::: 13a9930d15b424ab7d3b906af8ba7ff8c409edfe staging: ks7010: add driver from Nanonote extra-repository
:::::: TO: Wolfram Sang <wsa+renesas@sang-engineering.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42008 bytes --]
reply other threads:[~2022-10-26 9:22 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=202210261736.cim6347b-lkp@intel.com \
--to=lkp@intel.com \
--cc=gustavo@embeddedor.com \
--cc=gustavoars@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.