Re: [PATCH] nfc: don't be making arch specific unaligned decisions at driver level.
From: kbuild test robot
Date: Sun Jan 08 2017 - 19:48:34 EST
Hi Paul,
[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc3 next-20170106]
[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/Paul-Gortmaker/nfc-don-t-be-making-arch-specific-unaligned-decisions-at-driver-level/20170109-082915
config: x86_64-randconfig-x008-201702 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/nfc/nfcmrvl/fw_dnld.c: In function 'process_state_fw_dnld':
>> drivers/nfc/nfcmrvl/fw_dnld.c:287:9: error: implicit declaration of function 'get_unaligned_le16' [-Werror=implicit-function-declaration]
len = get_unaligned_le16(&len);
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/nfc/nxp-nci/firmware.c: In function 'nxp_nci_fw_send_chunk':
>> drivers/nfc/nxp-nci/firmware.c:124:2: error: implicit declaration of function 'put_unaligned_be16' [-Werror=implicit-function-declaration]
put_unaligned_be16(header, skb_put(skb, NXP_NCI_FW_HDR_LEN));
^~~~~~~~~~~~~~~~~~
drivers/nfc/nxp-nci/firmware.c: In function 'nxp_nci_fw_send':
>> drivers/nfc/nxp-nci/firmware.c:151:25: error: implicit declaration of function 'get_unaligned_be16' [-Werror=implicit-function-declaration]
fw_info->frame_size = get_unaligned_be16(fw_info->data) &
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/get_unaligned_le16 +287 drivers/nfc/nfcmrvl/fw_dnld.c
3194c687 Vincent Cuissard 2015-10-26 281 }
3194c687 Vincent Cuissard 2015-10-26 282 skb_pull(skb, 1);
3194c687 Vincent Cuissard 2015-10-26 283 memcpy(&len, skb->data, 2);
3194c687 Vincent Cuissard 2015-10-26 284 skb_pull(skb, 2);
3194c687 Vincent Cuissard 2015-10-26 285 memcpy(&comp_len, skb->data, 2);
3194c687 Vincent Cuissard 2015-10-26 286 skb_pull(skb, 2);
3194c687 Vincent Cuissard 2015-10-26 @287 len = get_unaligned_le16(&len);
3194c687 Vincent Cuissard 2015-10-26 288 comp_len = get_unaligned_le16(&comp_len);
3194c687 Vincent Cuissard 2015-10-26 289 if (((~len) & 0xFFFF) != comp_len) {
3194c687 Vincent Cuissard 2015-10-26 290 nfc_err(priv->dev, "bad len complement: %x %x %x",
:::::: The code at line 287 was first introduced by commit
:::::: 3194c6870158e305dac2af52f83681e9cb67280f NFC: nfcmrvl: add firmware download support
:::::: TO: Vincent Cuissard <cuissard@xxxxxxxxxxx>
:::::: CC: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip