From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.megiteam.pl ([31.186.83.105]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwmyr-0002Ex-Tn for barebox@lists.infradead.org; Mon, 03 Sep 2018 11:25:20 +0000 From: Marcin Niestroj Date: Mon, 3 Sep 2018 13:23:56 +0200 Message-Id: <20180903112408.2086-7-m.niestroj@grinn-global.com> In-Reply-To: <20180903112408.2086-1-m.niestroj@grinn-global.com> References: <20180903112408.2086-1-m.niestroj@grinn-global.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 06/18] crypto: caam - fix sparse warnings To: barebox@lists.infradead.org Cc: Marcin Niestroj UGljayBjb21taXQgODQzOWU5NGZjZWIzODEyOTg5YmFlNDE5MjI1NjcxMjNjZmZkMWNmNyBmcm9t IExpbnV4CnVwc3RyZWFtLgoKICAgIGNyeXB0bzogY2FhbSAtIGZpeCBzcGFyc2Ugd2FybmluZ3MK CiAgICBGaXggdGhlIGZvbGxvd2luZyBzcGFyc2Ugd2FybmluZyAobm90ZSB0aGF0IGVuZGlhbm5l c3MgaXNzdWVzCiAgICBhcmUgbm90IG5vdCBhZGRyZXNzZWQgaW4gY3VycmVudCBwYXRjaCk6Cgog ICAgZHJpdmVycy9jcnlwdG8vY2FhbS9jdHJsLmM6Mzg4OjI0OiB3YXJuaW5nOiBpbmNvcnJlY3Qg dHlwZSBpbiBhcmd1bWVudCAxIChkaWZmZXJlbnQgYWRkcmVzcyBzcGFjZXMpCiAgICBkcml2ZXJz L2NyeXB0by9jYWFtL2N0cmwuYzozODg6MjQ6ICAgIGV4cGVjdGVkIHZvaWQgW25vZGVyZWZdIDxh c246Mj4qcmVnCiAgICBkcml2ZXJzL2NyeXB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