Search Linux Wireless

Re: [PATCH] ath10k: Search SMBIOS for OEM board file extension

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Waldemar,

[auto build test WARNING on ath6kl/ath-next]
[also build test WARNING on v4.10-rc3 next-20170113]
[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/Waldemar-Rymarkiewicz/ath10k-Search-SMBIOS-for-OEM-board-file-extension/20170115-005232
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath-next
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   drivers/net/wireless/ath/ath10k/core.c: In function 'ath10k_core_check_bdfext':
>> drivers/net/wireless/ath/ath10k/core.c:754:2: warning: ignoring return value of 'strscpy', declared with attribute warn_unused_result [-Wunused-result]
     strscpy(ar->id.bdf_ext, bdf_ext + strlen(magic),
     ^

vim +/strscpy +754 drivers/net/wireless/ath/ath10k/core.c

   738	
   739		if (memcmp(bdf_ext, magic, strlen(magic)) != 0) {
   740			ath10k_dbg(ar, ATH10K_DBG_BOOT,
   741				   "bdf variant magic does not match.\n");
   742			return;
   743		}
   744	
   745		for (i = 0; i < strlen(bdf_ext); i++) {
   746			if (!isascii(bdf_ext[i]) || !isprint(bdf_ext[i])) {
   747				ath10k_dbg(ar, ATH10K_DBG_BOOT,
   748					   "bdf variant name contains non ascii chars.\n");
   749				return;
   750			}
   751		}
   752	
   753		/* Copy extension name without magic suffix */
 > 754		strscpy(ar->id.bdf_ext, bdf_ext + strlen(magic),
   755			sizeof(ar->id.bdf_ext));
   756	
   757		ath10k_dbg(ar, ATH10K_DBG_BOOT,
   758			   "found and validated bdf variant smbios_type 0x%x bdf %s\n",
   759			   ATH10K_SMBIOS_BDF_EXT_TYPE, bdf_ext);
   760	}
   761	
   762	static int ath10k_core_check_smbios(struct ath10k *ar)

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux