Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5325534ybv; Tue, 11 Feb 2020 13:33:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzlOga1NjRNYE3Qj6Bcy5MnAsvNzyYsCZa8MxJGEr372sYdjWae4jPs/dySseOMh5ZCL1O6 X-Received: by 2002:aca:5094:: with SMTP id e142mr4035534oib.101.1581456793277; Tue, 11 Feb 2020 13:33:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581456793; cv=none; d=google.com; s=arc-20160816; b=q1UzdJ9IF6RmMdcsqojfhuRlgi5wkw6y3PML4bpqToo6doYBA1V6wMs7PZ7g+lbaVF qJAjawO3lojadsCnevK9ldogM2zna7TJJxV0C3v9Fx5VKFCLhNPwPSMDjhuSKN06O7wL pmeWJb/3DeahDt0m8Wrt6d5ZNhbHRTdNIVP9bHIHlz3UR7A9pPwrpQl/v4dYAKXmVbBL RWiB55dAvw/cd7sTv/XOheFeb/oaZnZJMQNX+QuHPHrmp4iS8+UCvjxBTzOFgA7sUKjC aSkx5AID5nGZd+b8Aa/myCwK92PTcRwai4EJ7NL6wLIU0qOOIE8rX5gsqvkItvnAF1kn fLPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=BZ/yW6+csnDS5lQ9wIVMRwOiA3zt4uZjqCw1++1qcxU=; b=yRFFl0arcbLt+Ke5dsqXvTz4aTfGA+7wgz2I8VWBkwhMtOVx/XnoAdqW1VsU0DrA/O Ta6oYQI+f4qTUxhjUXayX0XhtHgNmgJHu4eNH4SZOkRd21mUyKWawCuhnyir5rb0h7/t wziV+M6h7z+3MNDPOeDwrGI0dDelrRHid99EnEvBkuhFMZKoYedsDA5EtUBsZg7OL9Dq yqSFyzT3z+oCUFJtCdEtc+J/MvTP/MkKQlobNNQVezP2NVV7ZS0RBbkiV3eBX3TZDT+O IjlhWZZSvCgw1SA7VE4K1wAjo6WQwe/6pJ75RrWiwOVtKmTEgNBwS4so47D5N6L7rWuH VA+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si2231700ois.90.2020.02.11.13.33.01; Tue, 11 Feb 2020 13:33:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731186AbgBKSTd (ORCPT + 99 others); Tue, 11 Feb 2020 13:19:33 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:59440 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731164AbgBKSTd (ORCPT ); Tue, 11 Feb 2020 13:19:33 -0500 Received: from ramsan ([84.195.182.253]) by michel.telenet-ops.be with bizsmtp id 1WKV2200J5USYZQ06WKVaS; Tue, 11 Feb 2020 19:19:30 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1j1a89-0002o2-KQ; Tue, 11 Feb 2020 19:19:29 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1j1a89-0003yV-Ix; Tue, 11 Feb 2020 19:19:29 +0100 From: Geert Uytterhoeven To: Gilad Ben-Yossef , Herbert Xu , "David S . Miller" Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , linux-crypto@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 09/34] crypto: ccree - make mlli_params.mlli_virt_addr void * Date: Tue, 11 Feb 2020 19:19:03 +0100 Message-Id: <20200211181928.15178-10-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200211181928.15178-1-geert+renesas@glider.be> References: <20200211181928.15178-1-geert+renesas@glider.be> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org mlli_params.mlli_virt_addr is just a buffer of memory. This allows to drop a cast. No change in generated code. Signed-off-by: Geert Uytterhoeven --- v2: - New. drivers/crypto/ccree/cc_buffer_mgr.c | 2 +- drivers/crypto/ccree/cc_buffer_mgr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ccree/cc_buffer_mgr.c b/drivers/crypto/ccree/cc_buffer_mgr.c index 1e335abd744024d8..abf08369f030faa8 100644 --- a/drivers/crypto/ccree/cc_buffer_mgr.c +++ b/drivers/crypto/ccree/cc_buffer_mgr.c @@ -207,7 +207,7 @@ static int cc_generate_mlli(struct device *dev, struct buffer_array *sg_data, goto build_mlli_exit; } /* Point to start of MLLI */ - mlli_p = (u32 *)mlli_params->mlli_virt_addr; + mlli_p = mlli_params->mlli_virt_addr; /* go over all SG's and link it to one MLLI table */ for (i = 0; i < sg_data->num_of_buffers; i++) { union buffer_array_entry *entry = &sg_data->entry[i]; diff --git a/drivers/crypto/ccree/cc_buffer_mgr.h b/drivers/crypto/ccree/cc_buffer_mgr.h index 827b6cb1236e8a65..250d634902adc634 100644 --- a/drivers/crypto/ccree/cc_buffer_mgr.h +++ b/drivers/crypto/ccree/cc_buffer_mgr.h @@ -32,7 +32,7 @@ struct cc_mlli { struct mlli_params { struct dma_pool *curr_pool; - u8 *mlli_virt_addr; + void *mlli_virt_addr; dma_addr_t mlli_dma_addr; u32 mlli_len; }; -- 2.17.1