Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5325873ybv; Tue, 11 Feb 2020 13:33:35 -0800 (PST) X-Google-Smtp-Source: APXvYqz5RkvB1ujZ5nKyHLchPl53eOYLpNvPqicPQJ4HDL+u+WJ10Y7t85BPMaUPQyy9TOEuO3F5 X-Received: by 2002:a9d:de9:: with SMTP id 96mr6843510ots.222.1581456814912; Tue, 11 Feb 2020 13:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581456814; cv=none; d=google.com; s=arc-20160816; b=wCQL1WeiHlMyqd9NU/yDlhUfTDwRMguEQkqyYlY+mWKuNE/UYzMrg2SqXl4/kdIxb5 cOQgYWej7QeDSdD4kVHWQWzgHt/Xg80E1sOCrn32B6237hUgXGbSvPZHTWivnfH7QWha gEmeYBSKym5Q6PkAm2EyQ9zvF1Uuv4hQwqk3lAIktrcVaQv8RpaU1dOD/EA81xDr3afm XBySEiWO3EWpNFZCmGTqQZ/7jMYBQid2yrhkKSQ60Dk6XyBPVlzy4TgBWHBKEPsgNwRK S1kETn5OvfHoo7DhThsxw71CA9FOgmAooCn6U74BBKOz/Y7zaMjBccoaPb0G4CyHfFMw pQTQ== 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=HCnOrOJAtqaMXcz8iBSJ7b6vdyfdpYj5xTsVNoj5S60=; b=i1wRK5IWcfHefAlhzYX4+qJyvmY3W/AXAtY1QK4wvrcbFasEGssgFIX6/5LT3jJmn1 /CANEmwElRWDMj7P/MqxCpgYH+dQEKL9g/2Y4lmPu16AjxEtW0PpellriVi8xwRp+Esl ozsZw8Ukm6dToJiZVmB1bh7I4TMCfuDRYgpWikagTgDtIU9rgF/xBO5gsRyqyuiDGNbg X5lY76bbdA7Mx1U0e1tSPl5MRSBJ4qEKNoAhZQwjzRUYjOdZ/NECd3AEPigJKo3mFAJR /T1DCz3+EmfbudPo6Mszn/PadMQsRgGf1QQQyyTLSBWTW9n2xlcLYHHjUmeUdGgjhvv6 yYxA== 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 z22si2429206otq.94.2020.02.11.13.33.23; Tue, 11 Feb 2020 13:33:34 -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 S1731240AbgBKSUJ (ORCPT + 99 others); Tue, 11 Feb 2020 13:20:09 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:34352 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730966AbgBKSTe (ORCPT ); Tue, 11 Feb 2020 13:19:34 -0500 Received: from ramsan ([84.195.182.253]) by andre.telenet-ops.be with bizsmtp id 1WKV2200Y5USYZQ01WKVTg; 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-0002oB-Nk; 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-0003ye-MM; 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 12/34] crypto: ccree - remove bogus paragraph about freeing SRAM Date: Tue, 11 Feb 2020 19:19:06 +0100 Message-Id: <20200211181928.15178-13-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 The SRAM allocator does not support deallocating memory. Hence remove all references to freeing SRAM. Fix grammar while at it. Signed-off-by: Geert Uytterhoeven --- v2: - New. drivers/crypto/ccree/cc_sram_mgr.c | 3 --- drivers/crypto/ccree/cc_sram_mgr.h | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/crypto/ccree/cc_sram_mgr.c b/drivers/crypto/ccree/cc_sram_mgr.c index a3c13b37adce4641..7d0e0db4f8df6e66 100644 --- a/drivers/crypto/ccree/cc_sram_mgr.c +++ b/drivers/crypto/ccree/cc_sram_mgr.c @@ -50,9 +50,6 @@ int cc_sram_mgr_init(struct cc_drvdata *drvdata) /*! * Allocated buffer from SRAM pool. - * Note: Caller is responsible to free the LAST allocated buffer. - * This function does not taking care of any fragmentation may occur - * by the order of calls to alloc/free. * * \param drvdata * \param size The requested bytes to allocate diff --git a/drivers/crypto/ccree/cc_sram_mgr.h b/drivers/crypto/ccree/cc_sram_mgr.h index 971029b0e2a16c36..3b62dc3bd422a9c2 100644 --- a/drivers/crypto/ccree/cc_sram_mgr.h +++ b/drivers/crypto/ccree/cc_sram_mgr.h @@ -30,10 +30,7 @@ typedef u64 cc_sram_addr_t; int cc_sram_mgr_init(struct cc_drvdata *drvdata); /*! - * Allocated buffer from SRAM pool. - * Note: Caller is responsible to free the LAST allocated buffer. - * This function does not taking care of any fragmentation may occur - * by the order of calls to alloc/free. + * Allocate buffer from SRAM pool. * * \param drvdata * \param size The requested bytes to allocate -- 2.17.1