* [staging:staging-testing 53/59] drivers/staging/wfx/hif_tx_mib.h:139:2: note: in expansion of macro 'cpu_to_le32s'
@ 2019-10-04 15:28 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-04 15:28 UTC (permalink / raw)
To: Jérôme Pouiller; +Cc: devel, Greg Kroah-Hartman, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4620 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head: 40115bbc40e2fd2de0e01ef2a28e0d09a1b5d0d1
commit: c7ff39dd8b5393c55b0a8a5dedb5ba13f4c838a8 [53/59] staging: wfx: setup initial chip configuration
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c7ff39dd8b5393c55b0a8a5dedb5ba13f4c838a8
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/byteorder/big_endian.h:5:0,
from arch/sparc/include/uapi/asm/byteorder.h:5,
from arch/sparc/include/asm/bitops_64.h:16,
from arch/sparc/include/asm/bitops.h:5,
from include/linux/bitops.h:19,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/staging/wfx/main.c:13:
drivers/staging/wfx/hif_tx_mib.h: In function 'hif_set_mfp':
>> include/uapi/linux/byteorder/big_endian.h:94:37: error: passing argument 1 of '__swab32s' from incompatible pointer type [-Werror=incompatible-pointer-types]
#define __cpu_to_le32s(x) __swab32s((x))
^
>> include/linux/byteorder/generic.h:112:22: note: in expansion of macro '__cpu_to_le32s'
#define cpu_to_le32s __cpu_to_le32s
^~~~~~~~~~~~~~
>> drivers/staging/wfx/hif_tx_mib.h:139:2: note: in expansion of macro 'cpu_to_le32s'
cpu_to_le32s(&val);
^~~~~~~~~~~~
In file included from include/linux/swab.h:5:0,
from include/uapi/linux/byteorder/big_endian.h:13,
from include/linux/byteorder/big_endian.h:5,
from arch/sparc/include/uapi/asm/byteorder.h:5,
from arch/sparc/include/asm/bitops_64.h:16,
from arch/sparc/include/asm/bitops.h:5,
from include/linux/bitops.h:19,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/staging/wfx/main.c:13:
include/uapi/linux/swab.h:242:29: note: expected '__u32 * {aka unsigned int *}' but argument is of type 'struct hif_mib_protected_mgmt_policy *'
static __always_inline void __swab32s(__u32 *p)
^~~~~~~~~
cc1: some warnings being treated as errors
vim +/cpu_to_le32s +139 drivers/staging/wfx/hif_tx_mib.h
f95a29d40782f4 Jérôme Pouiller 2019-09-19 127
f95a29d40782f4 Jérôme Pouiller 2019-09-19 128 static inline int hif_set_mfp(struct wfx_vif *wvif, bool capable, bool required)
f95a29d40782f4 Jérôme Pouiller 2019-09-19 129 {
f95a29d40782f4 Jérôme Pouiller 2019-09-19 130 struct hif_mib_protected_mgmt_policy val = { };
f95a29d40782f4 Jérôme Pouiller 2019-09-19 131
f95a29d40782f4 Jérôme Pouiller 2019-09-19 132 WARN_ON(required && !capable);
f95a29d40782f4 Jérôme Pouiller 2019-09-19 133 if (capable) {
f95a29d40782f4 Jérôme Pouiller 2019-09-19 134 val.pmf_enable = 1;
f95a29d40782f4 Jérôme Pouiller 2019-09-19 135 val.host_enc_auth_frames = 1;
f95a29d40782f4 Jérôme Pouiller 2019-09-19 136 }
f95a29d40782f4 Jérôme Pouiller 2019-09-19 137 if (!required)
f95a29d40782f4 Jérôme Pouiller 2019-09-19 138 val.unpmf_allowed = 1;
f95a29d40782f4 Jérôme Pouiller 2019-09-19 @139 cpu_to_le32s(&val);
f95a29d40782f4 Jérôme Pouiller 2019-09-19 140 return hif_write_mib(wvif->wdev, wvif->id,
f95a29d40782f4 Jérôme Pouiller 2019-09-19 141 HIF_MIB_ID_PROTECTED_MGMT_POLICY,
f95a29d40782f4 Jérôme Pouiller 2019-09-19 142 &val, sizeof(val));
f95a29d40782f4 Jérôme Pouiller 2019-09-19 143 }
f95a29d40782f4 Jérôme Pouiller 2019-09-19 144
:::::: The code at line 139 was first introduced by commit
:::::: f95a29d40782f4f0052a692a822de3ba044b19ff staging: wfx: add HIF commands helpers
:::::: TO: Jérôme Pouiller <jerome.pouiller@silabs.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 59099 bytes --]
[-- Attachment #3: Type: text/plain, Size: 169 bytes --]
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-04 15:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-04 15:28 [staging:staging-testing 53/59] drivers/staging/wfx/hif_tx_mib.h:139:2: note: in expansion of macro 'cpu_to_le32s' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).