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
.config.gz
Description: application/gzip
_______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
