Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1570076ybj; Fri, 20 Sep 2019 12:37:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0+3VBvyxpOUxfWQopg0dngxAwJUtFfl4fB+hSiLHjuIu16sdshrH2YQDHdHjSqB9wse0X X-Received: by 2002:a05:6402:184d:: with SMTP id v13mr24476314edy.56.1569008244511; Fri, 20 Sep 2019 12:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569008244; cv=none; d=google.com; s=arc-20160816; b=hChlC9+03YKPOBnNsA33qxVkBxqe5PtqWzEnpVdYiM+r7fv9Z5wkX0awUZgbKo7JT/ gJ1mM8VcZWLbJYiLx8MHJuNM/sB571CPxpnEm8dDa292U4XzifMYfgcaIt5ekYCfT7oq U0X1OSlE7xdPnbYduTVBZNvC5jl0lKFrzziQbHNFIAB6z4LoBwveaL3Eum9orZ566Nta aYeATSqZpXBDi43m0PtRdptM5VXcxWW2A+Y6/fi+dYstyVeAtloALDj/DM8DChGRp/SJ nqj2PSCcJBk5/2YiholEeCRhtBbD4AdUdzsWSOtnHcfQfzN7CKfenvJvyKrcv4VrQYQU uB8A== 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=JFvfLD57SGK8VjkCKSmqRpbcZP8QLRvoW2K6UT2Yl8c=; b=wUWlv37RcwxRLRu/d6sr6eO9J5mJC6pAkJdM374Yq4SKg2fBnOjUj1iqu5rUJWH1Si V824P8IUOexWtB6sowyn2Jqgy9r/o2Ux/izSG7YR7ikqF7s2hLc64XE0EXVqlo55cuxJ jGt3pp3gDZgKmDLAkXCvkl01/Tqgt5DGnvAO+9//CQXtgg9uA8pS1XynBx8/QqMYtf69 dRW/jDpRF6Il0yt8Xm84ZCZG+fjAgzQoHkgkT6oMspa8lzR5agfaGhMNnGEIjqSBwGgq P0VonC3dqUla9gnEBj4MFTp4egIwtwQkkU7qq0oGIDWvkJgQDWTV5jiwK02rr1m2+xEA lM6Q== 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 h13si1929696edw.348.2019.09.20.12.36.58; Fri, 20 Sep 2019 12:37:23 -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 S1727190AbfITNG5 (ORCPT + 99 others); Fri, 20 Sep 2019 09:06:57 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:34626 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfITNG5 (ORCPT ); Fri, 20 Sep 2019 09:06:57 -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 1iBIZf-0007uP-Gh; Fri, 20 Sep 2019 23:03:48 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 20 Sep 2019 23:03:45 +1000 Date: Fri, 20 Sep 2019 23:03:45 +1000 From: Herbert Xu To: Arnd Bergmann Cc: Zhou Wang , "David S. Miller" , Kenneth Lee , Shiju Jose , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] [v2] crypto: hisilicon - avoid unused function warning Message-ID: <20190920130345.GA23752@gondor.apana.org.au> References: <20190919140650.1289963-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190919140650.1289963-1-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 Thu, Sep 19, 2019 at 04:05:52PM +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] > > Replace the #ifdef with an IS_ENABLED() check that leads to the > function being dropped based on the configuration. > > Fixes: 79e09f30eeba ("crypto: hisilicon - add SRIOV support for ZIP") > Signed-off-by: Arnd Bergmann > --- > drivers/crypto/hisilicon/zip/zip_main.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt