Received: by 10.213.65.68 with SMTP id h4csp1429624imn; Thu, 29 Mar 2018 04:46:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx48B50PLGsDUY3CfePtBLkc1qvAI04fM+SRXySYpX95iYvxzA1CaIkaViQvGAjagYnnrU+zw X-Received: by 2002:a17:902:8c84:: with SMTP id t4-v6mr7960477plo.357.1522323978021; Thu, 29 Mar 2018 04:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522323977; cv=none; d=google.com; s=arc-20160816; b=awYcOoxHWXtwzgy2uCNesXZiwgOxH2ZJ0cG0uN5R47uGEtTP1gj4rHFmsG3WnIb621 tPfJOsJxNnXl+xFPsXG/huU1n6sQ2/CLK1LEEi/251XXc8rg+xITUpNnxzPOWxBsUCBT Atb1CaoxYZPlyX6cTtRwFcP+VQCtiRW+27tTB4/4CL4HDnlvUUb0Xspvuv0KfZl6+fgZ UiluVHx91vnnlSkhUTSO0BmivZlahbQ07SuBzonf8yez9X9Dyqw/SNp7Up/soT31izgy vLUmlSTudk7ErbEEoyhX2GRrcxhTZKzHsln0F1O0SzRyY4RkiXyDus5jzA31AZJ3vVqb MgUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=YbT3Y/QvIXGzh87Uk1BD73FdHQCeQ7B8DayxvZxWm8Q=; b=tB/krvNzO0u86XW7367cAbWC+9mne9gHVrvxFEZD0SjXLOx/PyR7HyTSxqfDU6eTOT 6Lc5qNT0wd2ANTihRcc0XGvHg7wyrGbhw56wbt80x/l45utMorZkWUztNDx+0lMDSgax rOlbNJUtFhI4qGMm1VEaYfVQk73HINi3nde6SNatgYnJh0mfaXKkij2heTzBE0lmHlE0 gMGmTZEkzBuIRkuLhK0N/YalPok5aMNo9uYXwOzp6i0OV/mf5hB/F98YgLz67M2EZS9A 8oijanp0gA+uVh2XdHIoIbQVq7FG9cHANDEGNjbWgWxGTx/QWElV2U+Ce8eijMAY9+pC 5h7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 n2si3952578pgs.31.2018.03.29.04.46.04; Thu, 29 Mar 2018 04:46:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752964AbeC2Lnz (ORCPT + 99 others); Thu, 29 Mar 2018 07:43:55 -0400 Received: from stargate.chelsio.com ([12.32.117.8]:50196 "EHLO stargate.chelsio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752300AbeC2Lnx (ORCPT ); Thu, 29 Mar 2018 07:43:53 -0400 Received: from [10.193.189.121] (harsh.asicdesigners.com [10.193.189.121]) by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id w2TBheGJ022815; Thu, 29 Mar 2018 04:43:41 -0700 Subject: Re: [PATCH] crypto: chelsio: move chcr_ahash_continue declation out of header To: Arnd Bergmann , Herbert Xu , "David S. Miller" Cc: Ganesh Goudar , Atul Gupta , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180328140539.2694734-1-arnd@arndb.de> From: Harsh Jain Message-ID: <865ba49d-b24f-b3b6-1440-54cfa7b4c2e6@chelsio.com> Date: Thu, 29 Mar 2018 17:13:20 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180328140539.2694734-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Fix for that is already submitted in below patch. https://patchwork.kernel.org/patch/10292333/ Thanks On 28-03-2018 19:35, Arnd Bergmann wrote: > 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(-) > > 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__ */