From patchwork Fri Sep 6 15:22:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 173256 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp863608ilq; Fri, 6 Sep 2019 08:23:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGwhPWEoSB92A8AyPxf+xvh1xVwxY+NS1wncCuu2WZhUaeSclyWEo2yDUAI54WPIuOgvix X-Received: by 2002:a17:902:142:: with SMTP id 60mr9826649plb.155.1567783416816; Fri, 06 Sep 2019 08:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567783416; cv=none; d=google.com; s=arc-20160816; b=EYoICAyuXZn1mAuJHCisYQUS+wwSt7MhTLHKm0ZRj+wX+WHaV7rm3UqkwkhrV3mVR2 FW5Ks6M5d/GaQ8wuRM/aOo9uTRb4zry4pJUIwsVEpcj7BHMlhHt6OhibHxWuMFiVP4+I Mt7zfkd3DM1336aN6p1TeaLECxySAVg8SPVxJAd3U3EcOiapUm+MmEePOfWWrCYTWuxP AWsyOHKE0oKtExGg5vD0nxgT6AnlxBkVevJr2TRVn6jXPQsbpGEv1cc3PNCGiWzn8GLT laAoGUe+IpxMEAplA0lL0HWNntioWr1oCjktdnOsY4timf1WPuudOfvR6u4QB4VpfYoV 4wxA== 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 k4si5166379pjl.104.2019.09.06.08.23.36; Fri, 06 Sep 2019 08:23: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 S2388396AbfIFPXg (ORCPT + 3 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 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(+) -- 2.20.0 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) {