1. 13 4月, 2010 10 次提交
  2. 04 2月, 2010 1 次提交
  3. 02 2月, 2010 1 次提交
  4. 17 1月, 2010 1 次提交
    • M
      crypto: Make Open Firmware device id constant · 6c3f975a
      Márton Németh 提交于
      From: Márton Németh <nm127@freemail.hu>
      
      The match_table field of the struct of_device_id is constant in <linux/of_platform.h>
      so it is worth to make the initialization data also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      disable decl_init,const_decl_init;
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: NMárton Németh <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: cocci@diku.dk
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      6c3f975a
  5. 08 1月, 2010 1 次提交
  6. 04 12月, 2009 1 次提交
  7. 03 11月, 2009 1 次提交
  8. 29 10月, 2009 1 次提交
    • T
      percpu: make misc percpu symbols unique · 390dfd95
      Tejun Heo 提交于
      This patch updates misc percpu related symbols such that percpu
      symbols are unique and don't clash with local symbols.  This serves
      two purposes of decreasing the possibility of global percpu symbol
      collision and allowing dropping per_cpu__ prefix from percpu symbols.
      
      * drivers/crypto/padlock-aes.c: s/last_cword/paes_last_cword/
      
      * drivers/lguest/x86/core.c: s/last_cpu/lg_last_cpu/
      
      * drivers/s390/net/netiucv.c: rename the variable used in a macro to
        avoid clashing with percpu symbol
      
      * arch/mn10300/kernel/kprobes.c: replace current_ prefix with cur_ for
        static variables.  Please note that percpu symbol current_kprobe
        can't be changed as it's used by generic code.
      
      Partly based on Rusty Russell's "alloc_percpu: rename percpu vars
      which cause name clashes" patch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Reviewed-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Chuck Ebbert <cebbert@redhat.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
      Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
      Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Masami Hiramatsu <mhiramat@redhat.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: linux390@de.ibm.com
      390dfd95
  9. 22 9月, 2009 1 次提交
  10. 13 8月, 2009 3 次提交
  11. 10 8月, 2009 1 次提交
  12. 16 7月, 2009 1 次提交
  13. 15 7月, 2009 2 次提交
  14. 14 7月, 2009 3 次提交
    • H
      crypto: crypto4xx - Switch to new style ahash · 4dc10c01
      Herbert Xu 提交于
      This patch changes crypto4xx to use the new style ahash type.
      In particular, we now use ahash_alg to define ahash algorithms
      instead of crypto_alg.
      
      This is achieved by introducing a union that encapsulates the
      new type and the existing crypto_alg structure.  They're told
      apart through a u32 field containing the type value.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      4dc10c01
    • H
      crypto: crypto4xx - Use crypto_ahash_set_reqsize · 6b1679f4
      Herbert Xu 提交于
      This patch makes crypto4xx use crypto_ahash_set_reqsize to avoid
      accessing crypto_ahash directly.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      6b1679f4
    • H
      crypto: padlock - Switch sha to shash · bbbee467
      Herbert Xu 提交于
      This patch converts the padlock-sha implementation to shash.
      In doing so the existing mechanism of storing the data until
      final is no longer viable as we do not have a way of allocating
      data in crypto_shash_init and then reliably freeing it.
      
      This is just as well because a better way of handling the problem
      is to hash everything but the last chunk using normal sha code
      and then provide the intermediate result to the padlock device.
      
      This is good enough because the primary application of padlock-sha
      is IPsec and there the data is laid out in the form of an hmac
      header followed by the rest of the packet.  In essence we can
      provide all the data to the padlock as the hmac header only needs
      to be hashed once.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      bbbee467
  15. 11 7月, 2009 1 次提交
  16. 18 6月, 2009 2 次提交
  17. 13 6月, 2009 1 次提交
  18. 02 6月, 2009 8 次提交