[PATCH 3/5] wcn36xx: handle new hal response format

kbuild test robot lkp at intel.com
Mon Nov 9 02:22:52 PST 2015


Hi Andy,

[auto build test WARNING on wireless-drivers-next/master]
[also build test WARNING on v4.3 next-20151109]

url:    https://github.com/0day-ci/linux/commits/Yin-Fengwei/wcn36xx-add-some-new-firmware-functionalities-support/20151109-170444
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
config: x86_64-randconfig-s4-11091756 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/linkage.h:4:0,
                    from include/linux/kernel.h:6,
                    from include/linux/skbuff.h:17,
                    from include/linux/if_ether.h:23,
                    from include/linux/etherdevice.h:25,
                    from drivers/net/wireless/ath/wcn36xx/smd.c:19:
   drivers/net/wireless/ath/wcn36xx/smd.c: In function 'wcn36xx_smd_rsp_status_check_v2':
   drivers/net/wireless/ath/wcn36xx/smd.c:310:27: error: 'WCN36XX_CHIP_3620' undeclared (first use in this function)
     if (wcn->chip_version != WCN36XX_CHIP_3620 ||
                              ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> drivers/net/wireless/ath/wcn36xx/smd.c:310:2: note: in expansion of macro 'if'
     if (wcn->chip_version != WCN36XX_CHIP_3620 ||
     ^
   drivers/net/wireless/ath/wcn36xx/smd.c:310:27: note: each undeclared identifier is reported only once for each function it appears in
     if (wcn->chip_version != WCN36XX_CHIP_3620 ||
                              ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> drivers/net/wireless/ath/wcn36xx/smd.c:310:2: note: in expansion of macro 'if'
     if (wcn->chip_version != WCN36XX_CHIP_3620 ||
     ^
   drivers/net/wireless/ath/wcn36xx/smd.c: At top level:
   drivers/net/wireless/ath/wcn36xx/smd.c:305:12: warning: 'wcn36xx_smd_rsp_status_check_v2' defined but not used [-Wunused-function]
    static int wcn36xx_smd_rsp_status_check_v2(struct wcn36xx *wcn, void *buf,
               ^

vim +/if +310 drivers/net/wireless/ath/wcn36xx/smd.c

   294			return -EIO;
   295	
   296		rsp = (struct wcn36xx_fw_msg_status_rsp *)
   297			(buf + sizeof(struct wcn36xx_hal_msg_header));
   298	
   299		if (WCN36XX_FW_MSG_RESULT_SUCCESS != rsp->status)
   300			return rsp->status;
   301	
   302		return 0;
   303	}
   304	
   305	static int wcn36xx_smd_rsp_status_check_v2(struct wcn36xx *wcn, void *buf,
   306						     size_t len)
   307	{
   308		struct wcn36xx_fw_msg_status_rsp_v2 *rsp;
   309	
 > 310		if (wcn->chip_version != WCN36XX_CHIP_3620 ||
   311		    len < sizeof(struct wcn36xx_hal_msg_header) + sizeof(*rsp))
   312			return wcn36xx_smd_rsp_status_check(buf, len);
   313	
   314		rsp = buf + sizeof(struct wcn36xx_hal_msg_header);
   315	
   316		if (WCN36XX_FW_MSG_RESULT_SUCCESS != rsp->status)
   317			return rsp->status;
   318	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 25396 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/wcn36xx/attachments/20151109/a36913c2/attachment-0001.obj>


More information about the wcn36xx mailing list