[ath6kl:pending 41/41] drivers/net/wireless/ath/ath10k/core.c:877:2: warning: ignoring return value of 'strscpy', declared with attribute warn_unused_result
kbuild test robot
fengguang.wu at intel.com
Fri Oct 27 12:29:19 PDT 2017
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head: 5d01bd0fd2c14409ae67a04c46b8519137c4a877
commit: 5d01bd0fd2c14409ae67a04c46b8519137c4a877 [41/41] ath10k: search DT for qcom,ath10k-calibration-variant
config: i386-randconfig-x076-201743 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 5d01bd0fd2c14409ae67a04c46b8519137c4a877
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/net/wireless/ath/ath10k/core.c: In function 'ath10k_core_check_dt':
>> drivers/net/wireless/ath/ath10k/core.c:877:2: warning: ignoring return value of 'strscpy', declared with attribute warn_unused_result [-Wunused-result]
strscpy(ar->id.bdf_ext, variant, sizeof(ar->id.bdf_ext));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strscpy +877 drivers/net/wireless/ath/ath10k/core.c
862
863 static int ath10k_core_check_dt(struct ath10k *ar)
864 {
865 struct device_node *node;
866 const char *variant = NULL;
867
868 node = ar->dev->of_node;
869 if (!node)
870 return -ENOENT;
871
872 of_property_read_string(node, "qcom,ath10k-calibration-variant",
873 &variant);
874 if (!variant)
875 return -ENODATA;
876
> 877 strscpy(ar->id.bdf_ext, variant, sizeof(ar->id.bdf_ext));
878
879 return 0;
880 }
881
---
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/gzip
Size: 32306 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20171028/330b086e/attachment-0001.gz>
More information about the ath10k
mailing list