17 Nov, 2016

1 commit

  • The hostap_80211_rx() function is supposed to set up the mac addresses
    for four possible cases, based on two bits of input data. For
    some reason, gcc decides that it's possible that none of the these
    four cases apply and the addresses remain uninitialized:

    drivers/net/wireless/intersil/hostap/hostap_80211_rx.c: In function ‘hostap_80211_rx’:
    arch/x86/include/asm/string_32.h:77:14: warning: ‘src’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    drivers/net/wireless/intel/ipw2x00/libipw_rx.c: In function ‘libipw_rx’:
    arch/x86/include/asm/string_32.h:77:14: error: ‘dst’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
    arch/x86/include/asm/string_32.h:78:22: error: ‘*((void *)&dst+4)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

    This warning is clearly nonsense, but changing the last case into
    'default' makes it obvious to the compiler too, which avoids the
    warning and probably leads to better object code too.

    The same code is duplicated several times in the kernel, so this
    patch uses the same workaround for all copies. The exact configuration
    was hit only very rarely in randconfig builds and I only saw it
    in three drivers, but I assume that all of them are potentially
    affected, and it's better to keep the code consistent.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Kalle Valo

    Arnd Bergmann
     

27 Jan, 2016

1 commit


04 Dec, 2015

1 commit

  • This indicates a driver key selection issue, but even then there's
    no point in printing it all the time, so ratelimit it. Also remove
    the priv pointer from it -- people debugging will only have a single
    device anyway and it's useless as anything but a cookie.

    Signed-off-by: Johannes Berg

    Johannes Berg
     

30 Apr, 2013

1 commit

  • Don't use create_proc_read_entry() as that is deprecated, but rather use
    proc_create_data() and seq_file instead.

    Signed-off-by: David Howells
    Acked-by: Greg Kroah-Hartman
    cc: Jouni Malinen
    cc: John W. Linville
    cc: Johannes Berg
    cc: linux-wireless@vger.kernel.org
    cc: netdev@vger.kernel.org
    cc: devel@driverdev.osuosl.org
    Signed-off-by: Al Viro

    David Howells
     

16 May, 2012

1 commit


14 Sep, 2011

1 commit


25 Nov, 2010

1 commit


27 Jul, 2010

1 commit


21 Jul, 2010

1 commit


03 Feb, 2010

2 commits


17 Mar, 2009

1 commit


22 Nov, 2008

1 commit