From patchwork Thu Aug 24 22:19:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 110960 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp83908qge; Thu, 24 Aug 2017 15:20:41 -0700 (PDT) X-Received: by 10.98.30.7 with SMTP id e7mr7810173pfe.329.1503613241271; Thu, 24 Aug 2017 15:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503613241; cv=none; d=google.com; s=arc-20160816; b=iV5F8JUyR9dY3A6qWLbaWyZSjG6BngHM78A3o5zJ38/xZfeBVgAAIPP0OlApClGhnS Dwv45/ezMR8TMxlYQdpTj4oWZ0BNvaNGr/s1zD5nzezgj67tBzwr7KkPNjgye9nVH1Ko s7CRn4krn91x5hO2bvNoKdzFLmKql5n03u5pCYrIcCJQNgJKtxQfkfC6H3b2TpDDN8t7 KDodp1rVd2Nju9WDjhnfL89g5elhsUltUr2pxvhN6oH8BT9pGH+0fvxizmen8PTzQu6E UzPBWLvvq3Z9TsVqTV4DWd1BPinnxJW326zyqMwRKn+HqoIftU2Vp0C0OGas6SSwLwGW mcQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=D3aTAa/I4FaySunrF22oZzI/8wB/rqetxmNdG7zU1zo=; b=zU2YqXwia+UOuWcmGfso1Y4a8+NRhO9KqEC+culX9/aAz373wKPOkUJtatSrW/FkDC vMyWhRcQLySRQk93otmCCtVa7x6AWzPZCfDNNgUrPpi37GSGQrLnaIByIDNpBS0hSEbx EosNhMHBGLKO8fuvuicKddo0hAjeMGCCZuMiyKTLmFCXhU+BOgUrpoE0vLgynUui3vCR 9/ankGG6hxk6BYMTa9NZlMPjpIwlSIard81/mYBd/9VNoZiGalIXrq/l9mrgPZx9/slY McwlaLqrsBEWpxx2AG6N++KudMH3XPuUMUe+iK1z5VyN91s3P0YGserCd8uSxKWLMfSJ dMpA== 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 7si2460838pgt.251.2017.08.24.15.20.41; Thu, 24 Aug 2017 15:20:41 -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 S1753959AbdHXWUj (ORCPT + 1 other); Thu, 24 Aug 2017 18:20:39 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:63287 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753566AbdHXWUi (ORCPT ); Thu, 24 Aug 2017 18:20:38 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0LqU6b-1d7Fp93ffN-00e2pI; Fri, 25 Aug 2017 00:20:23 +0200 From: Arnd Bergmann To: Jesper Nilsson , Lars Persson , Niklas Cassel , Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , linux-arm-kernel@axis.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: axis - hide an unused variable Date: Fri, 25 Aug 2017 00:19:54 +0200 Message-Id: <20170824222016.731342-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:bcRBnbnaugRjMxh/Ae5gXnHTpNK86ADoyAq2KNXKj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linux-crypto@vger.kernel.org Without CONFIG_DEBUG_FS, we get a harmless warning: drivers/crypto/axis/artpec6_crypto.c:352:23: error: 'dbgfs_root' defined but not used [-Werror=unused-variable] This moves it into the #ifdef that hides the only user. Fixes: a21eb94fc4d3 ("crypto: axis - add ARTPEC-6/7 crypto accelerator driver") Signed-off-by: Arnd Bergmann --- drivers/crypto/axis/artpec6_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 Acked-by: Lars Persson diff --git a/drivers/crypto/axis/artpec6_crypto.c b/drivers/crypto/axis/artpec6_crypto.c index d9fbbf01062b..0f9754e07719 100644 --- a/drivers/crypto/axis/artpec6_crypto.c +++ b/drivers/crypto/axis/artpec6_crypto.c @@ -349,8 +349,6 @@ struct artpec6_crypto_aead_req_ctx { /* The crypto framework makes it hard to avoid this global. */ static struct device *artpec6_crypto_dev; -static struct dentry *dbgfs_root; - #ifdef CONFIG_FAULT_INJECTION static DECLARE_FAULT_ATTR(artpec6_crypto_fail_status_read); static DECLARE_FAULT_ATTR(artpec6_crypto_fail_dma_array_full); @@ -2984,6 +2982,8 @@ struct dbgfs_u32 { char *desc; }; +static struct dentry *dbgfs_root; + static void artpec6_crypto_init_debugfs(void) { dbgfs_root = debugfs_create_dir("artpec6_crypto", NULL);