Re: [PATCH 1/1] staging: slicoss: slicoss.c: fix different address space sparse warnings

From: kbuild test robot
Date: Mon Sep 12 2016 - 23:58:59 EST


Hi Peng,

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on next-20160912]
[cannot apply to v4.8-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url: https://github.com/0day-ci/linux/commits/Peng-Sun/staging-slicoss-slicoss-c-fix-different-address-space-sparse-warnings/20160913-112524
config: i386-randconfig-x010-201637 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

In file included from drivers/staging/slicoss/slicoss.c:97:0:
drivers/staging/slicoss/slicoss.c: In function 'slic_upr_request_complete':
>> drivers/staging/slicoss/slicoss.c:1022:5: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]
readq((char __iomem *)stats +
^
drivers/staging/slicoss/slic.h:552:19: note: in definition of macro 'UPDATE_STATS_GB'
(largestat) += ((newstat) - (oldstat)); \
^~~~~~~
cc1: some warnings being treated as errors

vim +/readq +1022 drivers/staging/slicoss/slicoss.c

1016 dev_err(&adapter->netdev->dev,
1017 "SLIC_UPR_STATS command failed isr[%x]\n", isr);
1018 break;
1019 }
1020
1021 UPDATE_STATS_GB(stst->tcp.xmit_tcp_segs,
> 1022 readq((char __iomem *)stats +
1023 offsetof(struct slic_stats,
1024 xmit_tcp_segs)),
1025 old->xmit_tcp_segs);

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

Attachment: .config.gz
Description: Binary data