1. 22 11月, 2017 1 次提交
    • K
      treewide: Remove TIMER_FUNC_TYPE and TIMER_DATA_TYPE casts · 841b86f3
      Kees Cook 提交于
      With all callbacks converted, and the timer callback prototype
      switched over, the TIMER_FUNC_TYPE cast is no longer needed,
      so remove it. Conversion was done with the following scripts:
      
          perl -pi -e 's|\(TIMER_FUNC_TYPE\)||g' \
              $(git grep TIMER_FUNC_TYPE | cut -d: -f1 | sort -u)
      
          perl -pi -e 's|\(TIMER_DATA_TYPE\)||g' \
              $(git grep TIMER_DATA_TYPE | cut -d: -f1 | sort -u)
      
      The now unused macros are also dropped from include/linux/timer.h.
      Signed-off-by: NKees Cook <keescook@chromium.org>
      841b86f3
  2. 02 11月, 2017 1 次提交
  3. 12 10月, 2017 1 次提交
  4. 17 8月, 2017 1 次提交
  5. 27 6月, 2017 1 次提交
  6. 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
  7. 08 6月, 2017 1 次提交
  8. 03 6月, 2017 1 次提交
  9. 19 4月, 2017 1 次提交
  10. 07 2月, 2017 1 次提交
  11. 15 12月, 2016 4 次提交
  12. 01 12月, 2016 1 次提交
  13. 19 11月, 2016 1 次提交
  14. 28 9月, 2016 1 次提交
  15. 19 9月, 2016 1 次提交
  16. 26 7月, 2016 3 次提交
  17. 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
  18. 15 10月, 2015 1 次提交
  19. 25 5月, 2015 4 次提交
  20. 16 1月, 2015 1 次提交
  21. 13 1月, 2015 2 次提交
  22. 13 12月, 2014 6 次提交
  23. 24 11月, 2014 2 次提交
  24. 20 11月, 2014 1 次提交
  25. 14 11月, 2014 1 次提交