1. 19 Apr, 2016 4 commits
    • David S. Miller's avatar
      net: Align IFLA_STATS64 attributes properly on architectures that need it. · 18402843
      David S. Miller authored
      Since the nlattr header is 4 bytes in size, it can cause the netlink
      attribute payload to not be 8-byte aligned.
      
      This is particularly troublesome for IFLA_STATS64 which contains 64-bit
      statistic values.
      
      Solve this by creating a dummy IFLA_PAD attribute which has a payload
      which is zero bytes in size.  When HAVE_EFFICIENT_UNALIGNED_ACCESS is
      false, we insert an IFLA_PAD attribute into the netlink response when
      necessary such that the IFLA_STATS64 payload will be properly aligned.
      
      With help and suggestions from Eric Dumazet.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      18402843
    • Arnd Bergmann's avatar
      net: w5100: don't build spi driver without w5100 · b67d1df5
      Arnd Bergmann authored
      The w5100-spi driver front-end only makes sense when the w5100
      core driver is enabled, not for a configuration that only has w5300:
      
      drivers/net/built-in.o: In function `w5100_spi_remove':
      drivers/net/ethernet/wiznet/w5100-spi.c:277: undefined reference to `w5100_remove'
      drivers/net/built-in.o: In function `w5100_spi_probe':
      drivers/net/ethernet/wiznet/w5100-spi.c:272: undefined reference to `w5100_probe'
      drivers/net/built-in.o: In function `w5200_spi_init':
      drivers/net/ethernet/wiznet/w5100-spi.c:125: undefined reference to `w5100_ops_priv'
      drivers/net/built-in.o: In function `w5200_spi_readbulk':
      drivers/net/ethernet/wiznet/w5100-spi.c:125: undefined reference to `w5100_ops_priv'
      drivers/net/built-in.o: In function `w5200_spi_writebulk':
      drivers/net/ethernet/wiznet/w5100-spi.c:125: undefined reference to `w5100_ops_priv'
      drivers/net/built-in.o:(.data+0x3ed1c): undefined reference to `w5100_pm_ops'
      
      This adds an appropriate Kconfig dependency.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 630cf097 ("net: w5100: support SPI interface mode")
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b67d1df5
    • Arnd Bergmann's avatar
      bpf: avoid warning for wrong pointer cast · 266a0a79
      Arnd Bergmann authored
      Two new functions in bpf contain a cast from a 'u64' to a
      pointer. This works on 64-bit architectures but causes a warning
      on all 32-bit architectures:
      
      kernel/trace/bpf_trace.c: In function 'bpf_perf_event_output_tp':
      kernel/trace/bpf_trace.c:350:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
        u64 ctx = *(long *)r1;
      
      This changes the cast to first convert the u64 argument into a uintptr_t,
      which is guaranteed to be the same size as a pointer.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 9940d67c ("bpf: support bpf_get_stackid() and bpf_perf_event_output() in tracepoint programs")
      Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      266a0a79
    • Sergei Shtylyov's avatar
      of_mdio: make of_mdiobus_register_{device|phy}() *void* · b520bd07
      Sergei Shtylyov authored
      The results of of_mdiobus_register_{device|phy}() are never checked, so we
      can make  both these functions *void*...
      Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b520bd07
  2. 18 Apr, 2016 9 commits
  3. 17 Apr, 2016 27 commits