Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp557101ybe; Fri, 13 Sep 2019 02:18:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx7ziRII+KpU24oYWrxMfCiEIAzCs4X7n04/83JvGtH3hSPO+BTlwn1E6ShSZCq3sbPrPj X-Received: by 2002:a50:d718:: with SMTP id t24mr43670428edi.168.1568366316649; Fri, 13 Sep 2019 02:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568366316; cv=none; d=google.com; s=arc-20160816; b=I3RNT6gNOLWbGpXKAUWdIVG5HWmzGBRRavycNdG6ug3aghpFpih1vp8iuqjRhAa93g CLQ2zGLus+almvENNfftHwzvaCTz9tc3aqiayhWf0tpkn3dsU9DT/HBI9bQ4F2+H9yMb rVZrsOISbh62ycgjusFLOeDnKR70ssBmZQl/7gApQAjT17EIt4I+gwWFOKOizdaNow4w h0GeAcno+mIWkW/2MvMc8Efpr/sxxp5Qk/4JHwYyEgXU1GBPR6AJjqYWTQCLgS2A1XS6 J6G2AGoimo5duaDSuB4qs7qMO0j/bt/coPY1LrJUO4oa3kStiGrQncIZlxVyge13mwS8 zalA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GAz+oEc0ywmMJ9HvAHvDVrNMQHe+8CUiserQ8y7YA5Y=; b=Vdn4zdCC/Ut0IGyWbM+zEhUegbmsxMVFnwMouQ6AN8omrL9Df3QJc/U4UNFuQVoSRA UG/uvQ6hLBNorGRrOayFm8TYjxEAqK7WAGZUI+94dC4DFfBnyP9tXu6/Ll6H9XyDE3Tb +jcUz+HTpBBGdg/NHjFxt972hP4ikHsgGjBOn58ZlYjaBO1xBWdwYao5+81VcdZ7FzrP qBl9po1xKhLGcJdSJ0jUEkP8+9FDa4jbd35dZQ/oDSys+XSRb1PE7KswfkN6K/aFPYfu C7COtaQgLEz+QCkxEXNWVNQ8BfMkiQU37iCAqiOzDHqf7ETkjsktxX5gb1F3E5S3s5Yp jj4A== 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 h90si13780805edd.178.2019.09.13.02.18.04; Fri, 13 Sep 2019 02:18:36 -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 S2387513AbfIMJRt (ORCPT + 99 others); Fri, 13 Sep 2019 05:17:49 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:33530 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387424AbfIMJRt (ORCPT ); Fri, 13 Sep 2019 05:17:49 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1i8hhm-0007jT-F3; Fri, 13 Sep 2019 19:17:27 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 13 Sep 2019 19:17:18 +1000 Date: Fri, 13 Sep 2019 19:17:18 +1000 From: Herbert Xu To: Arnd Bergmann Cc: Zhou Wang , "David S. Miller" , Jonathan Cameron , Hao Fang , Kenneth Lee , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] crypto: hisilicon - avoid unused function warning Message-ID: <20190913091718.GA6382@gondor.apana.org.au> References: <20190906152250.1450649-1-arnd@arndb.de> <20190906152250.1450649-2-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190906152250.1450649-2-arnd@arndb.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Sep 06, 2019 at 05:22:30PM +0200, Arnd Bergmann wrote: > The only caller of hisi_zip_vf_q_assign() is hidden in an #ifdef, > so the function causes a warning when CONFIG_PCI_IOV is disabled: > > drivers/crypto/hisilicon/zip/zip_main.c:740:12: error: unused function 'hisi_zip_vf_q_assign' [-Werror,-Wunused-function] > > Move it into the same #ifdef. > > Fixes: 79e09f30eeba ("crypto: hisilicon - add SRIOV support for ZIP") > Signed-off-by: Arnd Bergmann > --- > drivers/crypto/hisilicon/zip/zip_main.c | 2 ++ > 1 file changed, 2 insertions(+) Please find a way to fix this warning without reducing compiler coverage. I prefer to see any compile issues immediately rather than through automated build testing. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt