mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: kbuild-all@01.org, Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	devel@linuxdriverproject.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] staging: rtl8723bs: fix up for cfg80211_roamed() API change
Date: Sun, 7 May 2017 04:33:41 +0800	[thread overview]
Message-ID: <201705070413.WXSNw9jZ%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170505215912.GD19258@kroah.com>

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

Hi Stephen,

[auto build test ERROR on staging/staging-testing]
[cannot apply to v4.11 next-20170505]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Greg-KH/staging-rtl8723bs-merge-fix-for-add-change_virtual-intf-API-change/20170507-034455
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All error/warnings (new ones prefixed by >>):

   drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c: In function 'rtw_cfg80211_indicate_connect':
>> drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:545:10: error: variable 'roam_info' has initializer but incomplete type
      struct cfg80211_roam_info roam_info = {};
             ^~~~~~~~~~~~~~~~~~
>> drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:545:29: error: storage size of 'roam_info' isn't known
      struct cfg80211_roam_info roam_info = {};
                                ^~~~~~~~~
   In file included from include/linux/slab.h:14:0,
                    from drivers/staging//rtl8723bs/include/osdep_service_linux.h:23,
                    from drivers/staging//rtl8723bs/include/osdep_service.h:23,
                    from drivers/staging//rtl8723bs/include/drv_types.h:29,
                    from drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:17:
>> include/linux/gfp.h:239:20: warning: passing argument 3 of 'cfg80211_roamed' makes pointer from integer without a cast [-Wint-conversion]
    #define GFP_ATOMIC (__GFP_HIGH|__GFP_ATOMIC|__GFP_KSWAPD_RECLAIM)
                       ^
>> drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:562:50: note: in expansion of macro 'GFP_ATOMIC'
      cfg80211_roamed(padapter->pnetdev, &roam_info, GFP_ATOMIC);
                                                     ^~~~~~~~~~
   In file included from drivers/staging//rtl8723bs/include/osdep_service_linux.h:50:0,
                    from drivers/staging//rtl8723bs/include/osdep_service.h:23,
                    from drivers/staging//rtl8723bs/include/drv_types.h:29,
                    from drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:17:
   include/net/cfg80211.h:5233:6: note: expected 'const u8 * {aka const unsigned char *}' but argument is of type 'unsigned int'
    void cfg80211_roamed(struct net_device *dev,
         ^~~~~~~~~~~~~~~
>> drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:562:3: error: too few arguments to function 'cfg80211_roamed'
      cfg80211_roamed(padapter->pnetdev, &roam_info, GFP_ATOMIC);
      ^~~~~~~~~~~~~~~
   In file included from drivers/staging//rtl8723bs/include/osdep_service_linux.h:50:0,
                    from drivers/staging//rtl8723bs/include/osdep_service.h:23,
                    from drivers/staging//rtl8723bs/include/drv_types.h:29,
                    from drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:17:
   include/net/cfg80211.h:5233:6: note: declared here
    void cfg80211_roamed(struct net_device *dev,
         ^~~~~~~~~~~~~~~
   drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:545:29: warning: unused variable 'roam_info' [-Wunused-variable]
      struct cfg80211_roam_info roam_info = {};
                                ^~~~~~~~~
   drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c: At top level:
   drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:3430:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .change_virtual_intf = cfg80211_rtw_change_iface,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:3430:25: note: (near initialization for 'rtw_cfg80211_ops.change_virtual_intf')
   drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:3449:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .add_virtual_intf = cfg80211_rtw_add_virtual_intf,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c:3449:22: note: (near initialization for 'rtw_cfg80211_ops.add_virtual_intf')
   cc1: some warnings being treated as errors
--
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: In function 'rtw_cfg80211_indicate_connect':
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:545:10: error: variable 'roam_info' has initializer but incomplete type
      struct cfg80211_roam_info roam_info = {};
             ^~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:545:29: error: storage size of 'roam_info' isn't known
      struct cfg80211_roam_info roam_info = {};
                                ^~~~~~~~~
   In file included from include/linux/slab.h:14:0,
                    from drivers/staging/rtl8723bs/include/osdep_service_linux.h:23,
                    from drivers/staging/rtl8723bs/include/osdep_service.h:23,
                    from drivers/staging/rtl8723bs/include/drv_types.h:29,
                    from drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:17:
>> include/linux/gfp.h:239:20: warning: passing argument 3 of 'cfg80211_roamed' makes pointer from integer without a cast [-Wint-conversion]
    #define GFP_ATOMIC (__GFP_HIGH|__GFP_ATOMIC|__GFP_KSWAPD_RECLAIM)
                       ^
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:562:50: note: in expansion of macro 'GFP_ATOMIC'
      cfg80211_roamed(padapter->pnetdev, &roam_info, GFP_ATOMIC);
                                                     ^~~~~~~~~~
   In file included from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50:0,
                    from drivers/staging/rtl8723bs/include/osdep_service.h:23,
                    from drivers/staging/rtl8723bs/include/drv_types.h:29,
                    from drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:17:
   include/net/cfg80211.h:5233:6: note: expected 'const u8 * {aka const unsigned char *}' but argument is of type 'unsigned int'
    void cfg80211_roamed(struct net_device *dev,
         ^~~~~~~~~~~~~~~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:562:3: error: too few arguments to function 'cfg80211_roamed'
      cfg80211_roamed(padapter->pnetdev, &roam_info, GFP_ATOMIC);
      ^~~~~~~~~~~~~~~
   In file included from drivers/staging/rtl8723bs/include/osdep_service_linux.h:50:0,
                    from drivers/staging/rtl8723bs/include/osdep_service.h:23,
                    from drivers/staging/rtl8723bs/include/drv_types.h:29,
                    from drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:17:
   include/net/cfg80211.h:5233:6: note: declared here
    void cfg80211_roamed(struct net_device *dev,
         ^~~~~~~~~~~~~~~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:545:29: warning: unused variable 'roam_info' [-Wunused-variable]
      struct cfg80211_roam_info roam_info = {};
                                ^~~~~~~~~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: At top level:
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3430:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .change_virtual_intf = cfg80211_rtw_change_iface,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3430:25: note: (near initialization for 'rtw_cfg80211_ops.change_virtual_intf')
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3449:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .add_virtual_intf = cfg80211_rtw_add_virtual_intf,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3449:22: note: (near initialization for 'rtw_cfg80211_ops.add_virtual_intf')
   cc1: some warnings being treated as errors

vim +/roam_info +545 drivers/staging//rtl8723bs/os_dep/ioctl_cfg80211.c

   539	
   540		if (rtw_to_roam(padapter) > 0) {
   541			struct wiphy *wiphy = pwdev->wiphy;
   542			struct ieee80211_channel *notify_channel;
   543			u32 freq;
   544			u16 channel = cur_network->network.Configuration.DSConfig;
 > 545			struct cfg80211_roam_info roam_info = {};
   546	
   547			freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ);
   548	
   549			notify_channel = ieee80211_get_channel(wiphy, freq);
   550	
   551			DBG_871X(FUNC_ADPT_FMT" call cfg80211_roamed\n", FUNC_ADPT_ARG(padapter));
   552			roam_info.channel = notify_channel;
   553			roam_info.bssid = cur_network->network.MacAddress;
   554			roam_info.req_ie =
   555				pmlmepriv->assoc_req+sizeof(struct ieee80211_hdr_3addr)+2;
   556			roam_info.req_ie_len =
   557				pmlmepriv->assoc_req_len-sizeof(struct ieee80211_hdr_3addr)-2;
   558			roam_info.resp_ie =
   559				pmlmepriv->assoc_rsp+sizeof(struct ieee80211_hdr_3addr)+6;
   560			roam_info.resp_ie_len =
   561				pmlmepriv->assoc_rsp_len-sizeof(struct ieee80211_hdr_3addr)-6;
 > 562			cfg80211_roamed(padapter->pnetdev, &roam_info, GFP_ATOMIC);
   563		}
   564		else
   565		{

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  reply	other threads:[~2017-05-06 20:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-05 21:56 [GIT PULL] Staging/IIO driver fixes for 4.12-rc1 Greg KH
2017-05-05 21:57 ` [PATCH 1/3] staging: rtl8723bs: merge fix for add/change_virtual-intf API change Greg KH
2017-05-05 21:58   ` [PATCH 2/3] staging: rtl8723bs: merge fix for "nl80211: allow multiple active scheduled scan requests" Greg KH
2017-05-05 21:59     ` [PATCH 3/3] staging: rtl8723bs: fix up for cfg80211_roamed() API change Greg KH
2017-05-06 20:33       ` kbuild test robot [this message]
2017-05-06 20:28     ` [PATCH 2/3] staging: rtl8723bs: merge fix for "nl80211: allow multiple active scheduled scan requests" kbuild test robot
2017-05-06  8:00 ` [GIT PULL] Staging/IIO driver fixes for 4.12-rc1 Ian W MORRISON
2017-05-06 13:41   ` Greg KH
2017-05-06 14:21     ` Ian W MORRISON
2017-05-06 14:46       ` Greg KH

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=201705070413.WXSNw9jZ%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®