From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95480C4338F for ; Fri, 23 Jul 2021 10:01:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5959060EB6 for ; Fri, 23 Jul 2021 10:01:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5959060EB6 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0DmRspFLgoEr1bohVf5u4UKt0H2WndqwzgT4xn0WLo8=; b=0ypiagFdksiV0UK2os4MgbevQp z1rp4LQ2sCVxVmN5onItWI0PV6/h/eC/m9oEjphHa5N+QHjveg23nmii4Z7dk8hrcHf6JJlefvRCv 6+1AKWe6DrtYrzoPvZc9pYyZ6wVXEllc0e3S28pu8egIPm8tsfyzj48XehGiDaKQK8/Oie29NZGBJ TpQHG6pbIoyOskQxzi5yQuRuA4M+8/JvQU8HfbDd3Uc3rRt71nAZF3LCapt68vpLtTEGhQnaU6kw/ 8//3oKOky4YUOVqYyDu4viw0Koh+nhTMc6qYV6kYpL4Xvu/2enj/KFgJZEf/MbMn1xWAsrgRB1Anh U1DHUtFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6rxi-004Exi-Bb; Fri, 23 Jul 2021 09:59:22 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6rxB-004Eng-IB for linux-arm-kernel@lists.infradead.org; Fri, 23 Jul 2021 09:58:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1627034329; x=1658570329; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=5TPgDp7uu8AWHC8wfoLLt+8jeaJijQ4miv9mRELySmU=; b=S3efTVSpp84b6wEhV0t1+g3E8bpJfSJXWBl/qR0EtPUazmKWukL1OiPN pjthlVybDIGCWtHVrlmuDBmdUJz9r/G3cS1U/jGuMxbP7OVmnupsqk2cK 8e1DDhb0zll7I60UWnolD8VRTsQoFO0gg2G5/MH5CMqf9OwVB6oqfSbdG cxFTZlU8g5gg7IqXokSQDU37UDQJZrpyzIQnrxLKObt5MmtkyQILKF/Wt UjxKCSFpk2dtOPv+lMn6V1YKhxRkuK6bguyGN13Uy9hNezdnfhfR9vIag /sQeK4/QRFO9lb4GjIwZFUyHUt+x5J9JY4ddkWYJQDM25XIUGoCRgGpHc g==; IronPort-SDR: ccaHjp93TFp/Gshx6VOm+oKEiUGijmGI6Os8r+pDnd/DQGWtM9tEAzR4ZObcjnj2loC7lzk1lz srKYTrD82nJiKEoFczTN9TRd/8lAcBDu6EuwxVA5JW8d9JhmZlQKExvCxhj3qrD6wcvmbXAlNP BypfRKFfXxX4n6LR+Zo+6N49HtJImGOVEDsBCMRAp3cVWt5CJPIrLpH/Sc2t6+XE/LpiW1BY27 pnQDeHjk+fE3pXJOW2Wocf7u1Cfbu+70+HEwaxo2ujecdde8kPcS4rB54Zr5YS14jrC2VGCIaS FKUQbvty1o1EhVq8ci007LQ1 X-IronPort-AV: E=Sophos;i="5.84,263,1620716400"; d="scan'208";a="130084760" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 Jul 2021 02:58:46 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 23 Jul 2021 02:58:28 -0700 Received: from [10.12.72.197] (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 23 Jul 2021 02:58:26 -0700 Subject: Re: [RESEND] gpu: ipu-v3: use swap() To: Salah Triki , , , , , , "Tudor Ambarus" CC: , , References: <20210722165938.GA4116@pc> From: Nicolas Ferre Organization: microchip Message-ID: <782cba94-2627-4c22-d445-31686866b722@microchip.com> Date: Fri, 23 Jul 2021 11:58:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210722165938.GA4116@pc> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210723_025849_691041_89D3DB7B X-CRM114-Status: GOOD ( 18.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Wrong $subject then... On 22/07/2021 at 18:59, Salah Triki wrote: > Use swap() instead of implementing it in order to make code more clean. > > Signed-off-by: Salah Triki > --- > drivers/crypto/atmel-aes.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c > index b1d286004295..60041022c4f5 100644 > --- a/drivers/crypto/atmel-aes.c > +++ b/drivers/crypto/atmel-aes.c > @@ -1819,12 +1819,8 @@ static int atmel_aes_xts_process_data(struct atmel_aes_dev *dd) > * the order of the ciphered tweak bytes need to be reversed before > * writing them into the ODATARx registers. > */ > - for (i = 0; i < AES_BLOCK_SIZE/2; ++i) { > - u8 tmp = tweak_bytes[AES_BLOCK_SIZE - 1 - i]; > - > - tweak_bytes[AES_BLOCK_SIZE - 1 - i] = tweak_bytes[i]; > - tweak_bytes[i] = tmp; > - } > + for (i = 0; i < AES_BLOCK_SIZE/2; ++i) > + swap(tweak_bytes[i], tweak_bytes[AES_BLOCK_SIZE - 1 - i]); > > /* Process the data. */ > atmel_aes_write_ctrl(dd, use_dma, NULL); > -- > 2.25.1 > -- Nicolas Ferre _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel