1. 02 11月, 2017 1 次提交
  2. 17 8月, 2017 1 次提交
  3. 27 6月, 2017 1 次提交
  4. 16 6月, 2017 1 次提交
    • J
      networking: make skb_push & __skb_push return void pointers · d58ff351
      Johannes Berg 提交于
      It seems like a historic accident that these return unsigned char *,
      and in many places that means casts are required, more often than not.
      
      Make these functions return void * and remove all the casts across
      the tree, adding a (u8 *) cast only where the unsigned char pointer
      was used directly, all done with the following spatch:
      
          @@
          expression SKB, LEN;
          typedef u8;
          identifier fn = { skb_push, __skb_push, skb_push_rcsum };
          @@
          - *(fn(SKB, LEN))
          + *(u8 *)fn(SKB, LEN)
      
          @@
          expression E, SKB, LEN;
          identifier fn = { skb_push, __skb_push, skb_push_rcsum };
          type T;
          @@
          - E = ((T *)(fn(SKB, LEN)))
          + E = fn(SKB, LEN)
      
          @@
          expression SKB, LEN;
          identifier fn = { skb_push, __skb_push, skb_push_rcsum };
          @@
          - fn(SKB, LEN)[0]
          + *(u8 *)fn(SKB, LEN)
      
      Note that the last part there converts from push(...)[0] to the
      more idiomatic *(u8 *)push(...).
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d58ff351
  5. 08 6月, 2017 1 次提交
  6. 03 6月, 2017 1 次提交
  7. 19 4月, 2017 1 次提交
  8. 07 2月, 2017 1 次提交
  9. 15 12月, 2016 4 次提交
  10. 01 12月, 2016 1 次提交
  11. 19 11月, 2016 1 次提交
  12. 28 9月, 2016 1 次提交
  13. 19 9月, 2016 1 次提交
  14. 26 7月, 2016 3 次提交
  15. 05 3月, 2016 1 次提交
    • N
      cxgb4i: don't redefine DIV_ROUND_UP · 28466e0f
      Nicolas Dichtel 提交于
      let's use the common definition to avoid the following warning during the
      compilation:
      
      drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:161:0: warning: "DIV_ROUND_UP" redefined
       #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
       ^
      In file included from include/linux/list.h:8:0,
                       from include/linux/module.h:9,
                       from drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:16:
      include/linux/kernel.h:67:0: note: this is the location of the previous definition
       #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP
       ^
      Signed-off-by: NNicolas Dichtel <nicolas.dichtel@6wind.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      28466e0f
  16. 15 10月, 2015 1 次提交
  17. 25 5月, 2015 4 次提交
  18. 16 1月, 2015 1 次提交
  19. 13 1月, 2015 2 次提交
  20. 13 12月, 2014 6 次提交
  21. 24 11月, 2014 2 次提交
  22. 20 11月, 2014 1 次提交
  23. 14 11月, 2014 1 次提交
  24. 11 11月, 2014 1 次提交
  25. 10 11月, 2014 1 次提交