From patchwork Wed Mar 28 14:05:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132526 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp517758ljb; Wed, 28 Mar 2018 07:06:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx48LRmzT73K1krtz1ORK232pXvnCPjxCj0mQwvPiIME4OURwupQIGWMYoHZoehImLkX5dvev X-Received: by 10.99.170.70 with SMTP id x6mr2719984pgo.114.1522245962854; Wed, 28 Mar 2018 07:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522245962; cv=none; d=google.com; s=arc-20160816; b=kMOeDK+ZLaSr9U7+K9Gja7igxDkbRwuzmg7e1Np8lVlZcWAqHjH+8G2PdW9A+k7TMo +1HEPpNL5S0ZeKxY0LvcaWwDJtoKx6ePC4U2jLcdTWZVtnJAS5cC7u3YT/amXnRzhCst pJ2VMP/H6t43pcB9KetHkRuoSi8kz9doDBtQTu16EYX5IKNgANGLA/lM3QhO4to7zIJq Fq8UkzWeBdj6owrzQPVFkV99xUZglGsQV1rU51Y7VDnMxF5Vtk1j7WH4ZVFeRyGnEN7j 9luCE0beX+RlH90uSX/YuXj4yrgAGmxDwV7feaX70HPFSAlLSk0BGhcW1CA46IcuBGYk BNnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=+oYCnTuZVwrf42yBRLBqDPBaT1jX4GdcBh8zpyP4FNo=; b=hp3D90PgmOujVQnd37e90iYmxn3vyzYdyVxj/67MUo2tZuXIel4TKOjpgjldJPlWdG MNKt2mJ58S9ct36ummWtUajdyQ5Easu0FEQ1RuNupP3ZNCHB+I+hUOu2I62v0rAg+Fxm 9iJnnjchGNuye807PecXukHIbK+tVztEra9iuIsFiclwfP+ldoS0Nrw0GrUrf0uB15TF 54Yf2qwo+YsuSNAuOce6IQ0jIRMWylQuovfnfbQeb63q2/70uiyDNkcAIsSWu4QkQ2mj u3at4lVPP05m1olr+hGEle8GEgDDGvG/brvpKWbeQZwXJq5lvcLwJ4Vi3FzzPCEczFGO 1DpQ== 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 f9-v6si3519087pli.667.2018.03.28.07.06.02; Wed, 28 Mar 2018 07:06:02 -0700 (PDT) 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 S1753488AbeC1OGB (ORCPT + 1 other); Wed, 28 Mar 2018 10:06:01 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:52139 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353AbeC1OGA (ORCPT ); Wed, 28 Mar 2018 10:06:00 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0MTcE0-1fA1Pc2kmO-00QSQD; Wed, 28 Mar 2018 16:05:44 +0200 From: Arnd Bergmann To: Harsh Jain , Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , Ganesh Goudar , Atul Gupta , Yeshaswi M R Gowda , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: chelsio: move chcr_ahash_continue declation out of header Date: Wed, 28 Mar 2018 16:05:23 +0200 Message-Id: <20180328140539.2694734-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:Fpnox6EB5FuqJLFZd+py/0vl5i+scxU51BHpCgFKemp82zrE04J kIYSc+uRNIPUB47OlmofYwBkFfE8DtYPTGiUVSrp071bK7159yWDJrOnRzwQjUldXceGky/ 0hxXSqwSOjIJkzvexLHtmqCpk8HRDv04oZ/yQs7aWKWSLrKGCzXnZIxztNN4FwsNthhhdkn 4X9kYlWqZB9gPNc5eU+jA== X-UI-Out-Filterresults: notjunk:1; V01:K0:lA1xHhAq1PY=:AR/05/LrQRG9dCzr9aKjCb 24z8XNg0KMpByiugP5agQqFcoWrKDVkCLBoL8qGdyYv/mmyHkKyr9flydJ53nbcO8VlCvMkkJ jJV42YkMKz/xDZBM1ZrEbM0eK+2v+XyhzMSd1TICbzNVhJePYB48PrVTrBW7bhcC+LosCoJWd hRdTc11RapYEgQTbuXQyAxOlumQDstfY22XR57oh2Twi7UrkbmFm2YVhL975hGpF5g+RsjxKI exTO1a3Lqg0rGpiGeAMWYbWoUCL9u7z7MYvtannjxOszIXKU/Z40wCdmFuydyya1K5ZJAH0Jg 2mzvz8KWaQ004VKx7iUAnJMx7pFuiaNu/M8AqpCHKQwUswSAh66SJ14jYUCUUEb0EFJhk6pZQ PYn7J3AJw6PANK6Ay5ztIWrevy246uvfgaHQ4UHiES5CVvet98J1eYNIWkSM9jF/WBA+JZnoI u9owuiZ2dxa6qUGbV4TJux0yrDT+4zqJE/w9kpVgSyarjrBecH76QPIKMAuh9sTmJU/mtl9Mq klWamtmNXK0vid68mbs/j5tt9IQSYZ0wWa3Bz2gcUfkHF/g3HVSOmUzPd36qiYH+pvcMdwDRM ooGDXT+v7xa4PZ4XDi1MFa9XNZGXkWUEAJkNMGnZx1h4TSkdBvu919taQgNqGCG9iamHIQeZS nWtwaIjBblPXqJSp5T52V0QkY7WKJwdWpmKSZDLu5zKNTsLqdomQmAhSM/ptingWqnrXAIblo K5KA6P9oCP6GBQxG5HvrYSaZSt4OQYQrVCfv+g== Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org static function declarations don't belong in a header file, as shown by this compiler warning: In file included from /git/arm-soc/drivers/crypto/chelsio/chcr_ipsec.c:66: drivers/crypto/chelsio/chcr_crypto.h:343:12: error: 'chcr_ahash_continue' declared 'static' but never defined [-Werror=unused-function] This moves the declaration into the file that actually needs it. Fixes: 5110e65536f3 ("crypto: chelsio -Split Hash requests for large scatter gather list") Signed-off-by: Arnd Bergmann --- drivers/crypto/chelsio/chcr_algo.c | 1 + drivers/crypto/chelsio/chcr_crypto.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c index 4617c7acf4da..ebc96f2fae01 100644 --- a/drivers/crypto/chelsio/chcr_algo.c +++ b/drivers/crypto/chelsio/chcr_algo.c @@ -95,6 +95,7 @@ static u32 round_constant[11] = { static int chcr_handle_cipher_resp(struct ablkcipher_request *req, unsigned char *input, int err); +static int chcr_ahash_continue(struct ahash_request *req); static inline struct chcr_aead_ctx *AEAD_CTX(struct chcr_context *ctx) { diff --git a/drivers/crypto/chelsio/chcr_crypto.h b/drivers/crypto/chelsio/chcr_crypto.h index 71025ea9c3db..c8e8972af283 100644 --- a/drivers/crypto/chelsio/chcr_crypto.h +++ b/drivers/crypto/chelsio/chcr_crypto.h @@ -340,5 +340,4 @@ void chcr_add_hash_src_ent(struct ahash_request *req, struct ulptx_sgl *ulptx, struct hash_wr_param *param); int chcr_hash_dma_map(struct device *dev, struct ahash_request *req); void chcr_hash_dma_unmap(struct device *dev, struct ahash_request *req); -static int chcr_ahash_continue(struct ahash_request *req); #endif /* __CHCR_CRYPTO_H__ */