1. 28 2月, 2017 1 次提交
  2. 16 2月, 2017 1 次提交
  3. 30 12月, 2016 1 次提交
  4. 25 12月, 2016 1 次提交
  5. 06 12月, 2016 2 次提交
  6. 01 11月, 2016 1 次提交
    • J
      solos-pci: use permission-specific DEVICE_ATTR variants · 89d9123e
      Julia Lawall 提交于
      Use DEVICE_ATTR_RW for read-write attributes.  This simplifies the
      source code, improves readbility, and reduces the chance of
      inconsistencies.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @rw@
      declarer name DEVICE_ATTR;
      identifier x,x_show,x_store;
      @@
      
      DEVICE_ATTR(x, \(0644\|S_IRUGO|S_IWUSR\), x_show, x_store);
      
      @script:ocaml@
      x << rw.x;
      x_show << rw.x_show;
      x_store << rw.x_store;
      @@
      
      if not (x^"_show" = x_show && x^"_store" = x_store)
      then Coccilib.include_match false
      
      @@
      declarer name DEVICE_ATTR_RW;
      identifier rw.x,rw.x_show,rw.x_store;
      @@
      
      - DEVICE_ATTR(x, \(0644\|S_IRUGO|S_IWUSR\), x_show, x_store);
      + DEVICE_ATTR_RW(x);
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      89d9123e
  7. 16 9月, 2016 1 次提交
  8. 11 9月, 2016 9 次提交
  9. 10 9月, 2016 3 次提交
  10. 19 8月, 2016 1 次提交
  11. 20 7月, 2016 1 次提交
  12. 01 7月, 2016 1 次提交
    • A
      atm: horizon: Use setup_timer · 466fc793
      Amitoj Kaur Chawla 提交于
      Convert a call to init_timer and accompanying intializations of
      the timer's data and function fields to a call to setup_timer.
      
      The Coccinelle semantic patch that fixes this problem is
      as follows:
      @@
      expression t,d,f,e1;
      identifier x1;
      statement S1;
      @@
      
      (
      -t.data = d;
      |
      -t.function = f;
      |
      -init_timer(&t);
      +setup_timer(&t,f,d);
      |
      -init_timer_on_stack(&t);
      +setup_timer_on_stack(&t,f,d);
      )
      <... when != S1
      t.x1 = e1;
      ...>
      Signed-off-by: NAmitoj Kaur Chawla <amitoj1606@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      466fc793
  13. 01 6月, 2016 2 次提交
  14. 15 2月, 2016 1 次提交
  15. 30 12月, 2015 1 次提交
  16. 06 12月, 2015 1 次提交
  17. 13 10月, 2015 2 次提交
  18. 18 9月, 2015 1 次提交
  19. 16 9月, 2015 1 次提交
  20. 11 6月, 2015 1 次提交
  21. 09 6月, 2015 1 次提交
    • N
      atm: use msecs_to_jiffies for conversions · 684b4ac1
      Nicholas Mc Guire 提交于
      API compliance scanning with coccinelle flagged:
      ./drivers/atm/iphase.c:2621:4-20:
              WARNING: timeout (50) seems HZ dependent
      
      Numeric constants passed to schedule_timeout() make the effective
      timeout HZ dependent which does not seem intended.
      Fixed up by converting the constant to jiffies with msecs_to_jiffies()
      As this driver was introduced in the early 2.3 series it is most
      likely assuming HZ=100 so the constant 50 is converted to 500ms.
      Signed-off-by: NNicholas Mc Guire <hofrat@osadl.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      684b4ac1
  22. 05 6月, 2015 1 次提交
  23. 26 5月, 2015 1 次提交
  24. 11 3月, 2015 1 次提交
  25. 18 1月, 2015 1 次提交
  26. 14 1月, 2015 2 次提交