Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753104AbYBLXH2 (ORCPT ); Tue, 12 Feb 2008 18:07:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755027AbYBLXHH (ORCPT ); Tue, 12 Feb 2008 18:07:07 -0500 Received: from fg-out-1718.google.com ([72.14.220.155]:4852 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754007AbYBLXHF (ORCPT ); Tue, 12 Feb 2008 18:07:05 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=a86wNk2wNRAO7MJ6BWm429MNU8o2Y+mUUgv8cCRna3eq91HhwMwIkv685lobK8M3H74Jybod2XLFJG53n0MYIe1H/p1IzopHPgrtIh2LVgZtjgdWs4U/HRbZJQlR+I8FxNcoUvuC+m5kHwEC5o/JTwz2ctYs5x7ECIm9wHa5U3Y= To: LKML Cc: Marcin Slusarz , Herbert Xu , "David S. Miller" Subject: [PATCH] crypto: be*_add_cpu conversion Date: Wed, 13 Feb 2008 00:06:06 +0100 Message-Id: <1202857582-15450-2-git-send-email-marcin.slusarz@gmail.com> X-Mailer: git-send-email 1.5.3.7 In-Reply-To: <1202857582-15450-1-git-send-email-marcin.slusarz@gmail.com> References: <1202857582-15450-1-git-send-email-marcin.slusarz@gmail.com> From: marcin.slusarz@gmail.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1137 Lines: 37 From: Marcin Slusarz replace all: big_endian_variable = cpu_to_beX(beX_to_cpu(big_endian_variable) + expression_in_cpu_byteorder); with: beX_add_cpu(&big_endian_variable, expression_in_cpu_byteorder); generated with semantic patch Signed-off-by: Marcin Slusarz Cc: Herbert Xu Cc: David S. Miller --- crypto/lrw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/crypto/lrw.c b/crypto/lrw.c index 9d52e58..4d93928 100644 --- a/crypto/lrw.c +++ b/crypto/lrw.c @@ -92,7 +92,7 @@ struct sinfo { static inline void inc(be128 *iv) { if (!(iv->b = cpu_to_be64(be64_to_cpu(iv->b) + 1))) - iv->a = cpu_to_be64(be64_to_cpu(iv->a) + 1); + be64_add_cpu(&iv->a, 1); } static inline void lrw_round(struct sinfo *s, void *dst, const void *src) -- 1.5.3.7 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/