1. 09 1月, 2018 1 次提交
  2. 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
  3. 02 11月, 2017 1 次提交
  4. 12 10月, 2017 3 次提交
  5. 16 9月, 2017 1 次提交
  6. 17 8月, 2017 1 次提交
  7. 11 8月, 2017 1 次提交
  8. 25 7月, 2017 1 次提交
  9. 27 6月, 2017 1 次提交
  10. 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
  11. 08 6月, 2017 1 次提交
  12. 03 6月, 2017 1 次提交
  13. 24 5月, 2017 1 次提交
  14. 19 4月, 2017 1 次提交
  15. 07 2月, 2017 2 次提交
  16. 14 1月, 2017 1 次提交
    • P
      locking/atomic, kref: Add kref_read() · 2c935bc5
      Peter Zijlstra 提交于
      Since we need to change the implementation, stop exposing internals.
      
      Provide kref_read() to read the current reference count; typically
      used for debug messages.
      
      Kills two anti-patterns:
      
      	atomic_read(&kref->refcount)
      	kref->refcount.counter
      Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      2c935bc5
  17. 15 12月, 2016 5 次提交
  18. 01 12月, 2016 1 次提交
  19. 19 11月, 2016 1 次提交
  20. 09 11月, 2016 1 次提交
  21. 28 9月, 2016 1 次提交
  22. 19 9月, 2016 1 次提交
  23. 26 7月, 2016 5 次提交
  24. 26 4月, 2016 1 次提交
  25. 22 3月, 2016 2 次提交
  26. 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
  27. 09 1月, 2016 1 次提交
  28. 10 11月, 2015 1 次提交