1. 31 7月, 2017 3 次提交
  2. 30 7月, 2017 33 次提交
  3. 29 7月, 2017 3 次提交
    • D
      Merge branch 'inet6_protocol-const' · bdb0effc
      David S. Miller 提交于
      Julia Lawall says:
      
      ====================
      constify inet6_protocol structures
      
      The inet6_protocol structure is only passed as the first argument to
      inet6_add_protocol or inet6_del_protocol, both of which are declared as
      const.  Thus the inet6_protocol structure itself can be const.
      
      Done with the help of Coccinelle.
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      
      static struct inet6_protocol i@p = { ... };
      
      @ok1@
      identifier r.i;
      expression e1;
      position p;
      @@
      
       \(inet6_add_protocol\|inet6_del_protocol\)(&i@p,...)
      
      @bad@
      position p != {r.p,ok1.p};
      identifier r.i;
      struct inet6_protocol e;
      @@
      
      e@i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      
      static
      +const
       struct inet6_protocol i = { ... };
      // </smpl>
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bdb0effc
    • J
      l2tp: constify inet6_protocol structures · d04916a4
      Julia Lawall 提交于
      The inet6_protocol structure is only passed as the first argument to
      inet6_add_protocol or inet6_del_protocol, both of which are declared as
      const.  Thus the inet6_protocol structure itself can be const.
      
      Also drop __read_mostly on the newly const structure.
      
      Done with the help of Coccinelle.
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d04916a4
    • J
      ipv6: constify inet6_protocol structures · 3a3a4e30
      Julia Lawall 提交于
      The inet6_protocol structure is only passed as the first argument to
      inet6_add_protocol or inet6_del_protocol, both of which are declared as
      const.  Thus the inet6_protocol structure itself can be const.
      
      Also drop __read_mostly where present on the newly const structures.
      
      Done with the help of Coccinelle.
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3a3a4e30
  4. 28 7月, 2017 1 次提交
    • D
      Merge branch 'liquidio-standardization-and-cleanup' · 1812bc43
      David S. Miller 提交于
      Rick Farrington says:
      
      ====================
      liquidio: standardization and cleanup
      
      This patchset corrects some non-standard macro usage.
      
      1. Replaced custom MIN macro with use of standard 'min_t'.
      2. Removed cryptic and misleading macro 'CAST_ULL'.
      
      change log:
      V1 -> V2:
        1. Add driver cleanup of macro 'CAST_ULL'.
      V2 -> V3:
        1. Remove extra parentheses from previous usage of macro 'CAST_ULL'.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1812bc43