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 <l...@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.pouil...@silabs.com>
:::::: CC: Greg Kroah-Hartman <gre...@linuxfoundation.org>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to