Search Linux Wireless

Re: [PATCH 08/10] brcmfmac: add support multi-scheduled scan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Arend,

[auto build test WARNING on mac80211-next/master]
[cannot apply to v4.11-rc5 next-20170407]
[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/Arend-van-Spriel/cfg80211-support-multiple-scheduled-scans/20170408-175235
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=m68k 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c: In function 'brcmf_pno_config_sched_scans':
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c:158:6: warning: 'mac_mask' may be used uninitialized in this function [-Wmaybe-uninitialized]
     u8 *mac_mask;
         ^
   In file included from include/linux/string.h:18:0,
                    from include/linux/bitmap.h:8,
                    from include/linux/cpumask.h:11,
                    from include/linux/smp.h:12,
                    from include/linux/percpu.h:6,
                    from include/linux/netdevice.h:36,
                    from drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c:16:
>> arch/m68k/include/asm/string.h:71:25: warning: 'mac_addr' may be used uninitialized in this function [-Wmaybe-uninitialized]
    #define memcpy(d, s, n) __builtin_memcpy(d, s, n)
                            ^
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c:157:6: note: 'mac_addr' was declared here
     u8 *mac_addr;
         ^
   In file included from include/uapi/linux/swab.h:6:0,
                    from include/linux/swab.h:4,
                    from include/uapi/linux/byteorder/big_endian.h:12,
                    from include/linux/byteorder/big_endian.h:4,
                    from arch/m68k/include/uapi/asm/byteorder.h:4,
                    from include/asm-generic/bitops/le.h:5,
                    from arch/m68k/include/asm/bitops.h:518,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/timer.h:4,
                    from include/linux/netdevice.h:28,
                    from drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c:16:
>> arch/m68k/include/uapi/asm/swab.h:21:2: warning: 'scan_freq' may be used uninitialized in this function [-Wmaybe-uninitialized]
     __asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val));
     ^
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c:371:6: note: 'scan_freq' was declared here
     u32 scan_freq;
         ^
   drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c:435:2: warning: 'buckets' may be used uninitialized in this function [-Wmaybe-uninitialized]
     kfree(buckets);
     ^
--
   drivers/net/wireless//broadcom/brcm80211/brcmfmac/pno.c: In function 'brcmf_pno_config_sched_scans':
   drivers/net/wireless//broadcom/brcm80211/brcmfmac/pno.c:158:6: warning: 'mac_mask' may be used uninitialized in this function [-Wmaybe-uninitialized]
     u8 *mac_mask;
         ^
   In file included from include/linux/string.h:18:0,
                    from include/linux/bitmap.h:8,
                    from include/linux/cpumask.h:11,
                    from include/linux/smp.h:12,
                    from include/linux/percpu.h:6,
                    from include/linux/netdevice.h:36,
                    from drivers/net/wireless//broadcom/brcm80211/brcmfmac/pno.c:16:
>> arch/m68k/include/asm/string.h:71:25: warning: 'mac_addr' may be used uninitialized in this function [-Wmaybe-uninitialized]
    #define memcpy(d, s, n) __builtin_memcpy(d, s, n)
                            ^
   drivers/net/wireless//broadcom/brcm80211/brcmfmac/pno.c:157:6: note: 'mac_addr' was declared here
     u8 *mac_addr;
         ^
   In file included from include/uapi/linux/swab.h:6:0,
                    from include/linux/swab.h:4,
                    from include/uapi/linux/byteorder/big_endian.h:12,
                    from include/linux/byteorder/big_endian.h:4,
                    from arch/m68k/include/uapi/asm/byteorder.h:4,
                    from include/asm-generic/bitops/le.h:5,
                    from arch/m68k/include/asm/bitops.h:518,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/timer.h:4,
                    from include/linux/netdevice.h:28,
                    from drivers/net/wireless//broadcom/brcm80211/brcmfmac/pno.c:16:
>> arch/m68k/include/uapi/asm/swab.h:21:2: warning: 'scan_freq' may be used uninitialized in this function [-Wmaybe-uninitialized]
     __asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val));
     ^
   drivers/net/wireless//broadcom/brcm80211/brcmfmac/pno.c:371:6: note: 'scan_freq' was declared here
     u32 scan_freq;
         ^
   drivers/net/wireless//broadcom/brcm80211/brcmfmac/pno.c:435:2: warning: 'buckets' may be used uninitialized in this function [-Wmaybe-uninitialized]
     kfree(buckets);
     ^

vim +/mac_addr +71 arch/m68k/include/asm/string.h

ea61bc46 Greg Ungerer 2010-09-07  55  		: "+a" (cs), "+a" (ct), "=d" (res));
ea61bc46 Greg Ungerer 2010-09-07  56  	return res;
ea61bc46 Greg Ungerer 2010-09-07  57  }
982cd252 Greg Ungerer 2011-02-03  58  #endif /* CONFIG_COLDFIRE */
ea61bc46 Greg Ungerer 2010-09-07  59  
ea61bc46 Greg Ungerer 2010-09-07  60  #define __HAVE_ARCH_MEMMOVE
ea61bc46 Greg Ungerer 2010-09-07  61  extern void *memmove(void *, const void *, __kernel_size_t);
ea61bc46 Greg Ungerer 2010-09-07  62  
ea61bc46 Greg Ungerer 2010-09-07  63  #define memcmp(d, s, n) __builtin_memcmp(d, s, n)
ea61bc46 Greg Ungerer 2010-09-07  64  
ea61bc46 Greg Ungerer 2010-09-07  65  #define __HAVE_ARCH_MEMSET
ea61bc46 Greg Ungerer 2010-09-07  66  extern void *memset(void *, int, __kernel_size_t);
ea61bc46 Greg Ungerer 2010-09-07  67  #define memset(d, c, n) __builtin_memset(d, c, n)
ea61bc46 Greg Ungerer 2010-09-07  68  
ea61bc46 Greg Ungerer 2010-09-07  69  #define __HAVE_ARCH_MEMCPY
ea61bc46 Greg Ungerer 2010-09-07  70  extern void *memcpy(void *, const void *, __kernel_size_t);
ea61bc46 Greg Ungerer 2010-09-07 @71  #define memcpy(d, s, n) __builtin_memcpy(d, s, n)
ea61bc46 Greg Ungerer 2010-09-07  72  
ea61bc46 Greg Ungerer 2010-09-07  73  #endif /* _M68K_STRING_H_ */

:::::: The code at line 71 was first introduced by commit
:::::: ea61bc461d09e8d331a307916530aaae808c72a2 m68k/m68knommu: merge MMU and non-MMU string.h

:::::: TO: Greg Ungerer <gerg@xxxxxxxxxxxx>
:::::: CC: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux