Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1171245ybe; Fri, 6 Sep 2019 13:01:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyx1gWW6i96DeCDMkXcGmQgEsGr4Zaly6XOd8QV4PYdiJ+Rjx50Vaq6kR2WAWMu/RtVf9/C X-Received: by 2002:a65:430a:: with SMTP id j10mr9770709pgq.374.1567800098973; Fri, 06 Sep 2019 13:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567800098; cv=none; d=google.com; s=arc-20160816; b=jh34IX9M1Jfdbsu+Rs0wtD7K0lZ5Isn3FCFGJydA39nyX2KEd6+3JbKW199s1GwaJg UF7pl86SvUJJgfZKWzzefZuhbK/ZD2UnzjlL7kq1SzJ7bd4CwsWmIGAstQ+uKCncF/8v lz91qQT7v63F971xOo/JW2tugBZkqRnxnDzIqfZualxW0Cj9q+9V+G/88/9deWGdw5eg 24cJvnoh8ecgAEdb5yIq7C67SMyXaJ17h2IkXDM+CGBfhdoHkZdGtMYJPBwKZPoGrc4f 3pSeaR9OjNSWhCo+/nTMZRH0XVpg95T+V54Dt0BHn141TYGuBNPr42GZesZ+4XsX2o55 va8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=2zFd1C/agb9X6Azm/F2Mv1e0rMGkWG2WQwlqDQjULHo=; b=VxL2oYrnD1G/CXhYMpF3Dq0g9Wv0jT6xQyd/bq8G053ZEZ8/nH7HkaNj0ZoFWGEUzR ao1JWDsnKTTqAuJ432kUUpirXwP/68USbGpFtkBE5kCJN6QsxbmaEIq0XGfK6o9yQ8EJ FCrYb0RW3A0vZhfzwgRzww8mPPlG5zrgpH58DysRL3JuWwxbsXwCZAv7gOheioi/NxzD BSRnXEO4aLr27O0qD5gqnmiOnkNYzNXfYYfAeH8lWbzRJrqDKk7ryfsY9/kMOibf9tmz 8nYi83ui3gtTjJ3mZZdIyE4o5+QZA/XWtJrvyHKTMbCAHUyvJB7XTZLw0wn9c1XU2ZRL UGcQ== 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 w18si6359042pfn.277.2019.09.06.13.01.25; Fri, 06 Sep 2019 13:01:38 -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 S2388396AbfIFPXg (ORCPT + 99 others); Fri, 6 Sep 2019 11:23:36 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:57609 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbfIFPXf (ORCPT ); Fri, 6 Sep 2019 11:23:35 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1MC3L9-1i0zgF3HKf-00CQ6I; Fri, 06 Sep 2019 17:23:14 +0200 From: Arnd Bergmann To: Zhou Wang , Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , Jonathan Cameron , Hao Fang , Kenneth Lee , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] crypto: hisilicon - avoid unused function warning Date: Fri, 6 Sep 2019 17:22:30 +0200 Message-Id: <20190906152250.1450649-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190906152250.1450649-1-arnd@arndb.de> References: <20190906152250.1450649-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:ltG7Dz//KZqox/ulRWhNwr6SfqbMWug5c/0Q+nuvztJL6BD1vJA EmHRbJP1qdS6LHV68X6MZAAlJG0X0zCKPWwfoQuPwwOy5llTfWPGPYi7Zj45BMLWklrozkT xKHwcH9T6mMO5c4xJ4zh27kGw9XbnlTJfrQ+d9MTzb37QOjUaolFjo9vQHybDkA9bQR7viF ipY6Iu17Pt9qIK8PGMl+Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:1uFE00/QaKM=:RpHBHFJ7z5dUtAY8BG6QR+ PXPkJAqDK11VOHtVg5HxdhFLKQ+dv/ca8OlweOakzJCAkjIs3YgBwZ7CfxItKbFwc1fZX0mEc OcDTEGGCOhC36+aAYf71NFoxz3SpDzq3nQhpeF+mjfdvcAvoxbDsDtpBl2XlHPYh6xoxuRILZ G5dVVc1XZC2R2AVqeiHpdOEcoiRLQdFM9s8+MOp843H5/kt0F1znnd1UVz0EBGu5g+qVguH4I 7Wl2S+TCgbGTrCKAmRd6ZBFRsgPeP1kYWxvtZRcy5TcD4CDaikGoShMSiFA2sNDW2S3U2yaLA CJd4Ref3oLxIQvj0l4ozsBEshGINdKP7RjxX8qhsBsi6MF1qS/j0ITT2t1u2ag9uKj4hoDXvC VRcNAaGawP1JaexgXFrCkBOLoO+/2qtx47EQBQGkblceVV0AxOrd2xggwfNlCdsHmdUOYPp3C eofed5/n/MO5X5bZd/LqgZ7LeykztBwws0w6hrCb4dFA4fi5CITEvnIXdAMjtVcafJpWjYBgk wbPZciDvGyvwz5zaaJ9BxVVjZUiv6P2IdEojIhhgKwP1EQFmpeu0jrqICOYr2qOGWiv0JZVdG L/n8IW91EQA0dbjoE5Rq/bZbbFSCD1gPwHiQYQqftj7YLquEvs3eQrs6CPtbdwfqeaYRAY0ty TmH/FXTsdxtA4FDaFdGAu5FNiYLiDUAZJw9Ja/MBhc8op4w685vGfeNZTyv7OlMpnGZH3wvJp A0cVeScbtsRqEh4ZfhgrrGxOLzdsdCCbgPrXQAL6MJRKZR99wONcWBxJHDkCojWZDJXxHXFzY C0fpJCXDkBSmo9cVpJLE9/hEBmaFrKdTfVOanF7laQKELtPrsM= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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(+) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index 6e0ca75585d4..bd0283c2fa87 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -736,6 +736,7 @@ static int hisi_zip_probe(struct pci_dev *pdev, const struct pci_device_id *id) return ret; } +#ifdef CONFIG_PCI_IOV /* Currently we only support equal assignment */ static int hisi_zip_vf_q_assign(struct hisi_zip *hisi_zip, int num_vfs) { @@ -764,6 +765,7 @@ static int hisi_zip_vf_q_assign(struct hisi_zip *hisi_zip, int num_vfs) return 0; } +#endif static int hisi_zip_clear_vft_config(struct hisi_zip *hisi_zip) { -- 2.20.0