From patchwork Wed Sep 6 13:10:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 111773 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp846661qge; Wed, 6 Sep 2017 06:11:12 -0700 (PDT) X-Google-Smtp-Source: ADKCNb5cf2nuO1yi8jFTMvvGVYbE48JbnERnaHb3YwKLHFEkcoeHY6S5Pd1JBH+4+eG/gN8Sn2Ym X-Received: by 10.99.3.15 with SMTP id 15mr7314822pgd.403.1504703472676; Wed, 06 Sep 2017 06:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504703472; cv=none; d=google.com; s=arc-20160816; b=H1sAmUbLzk43xF40viKg2+4yBYCFT2o+9XoGgAYdZJPRd9eVZPI1H0bg7g+7TSLM2f gtlzxh85y/IN51rNrX8rKk2Fc1o+0UUnZe95qpt48Pm4N6fQIzW/anIG6AjoqY7fNwSA zuwaAkRaMWisc5EW1KVcDNHMQ7qAA/kA45TmzPs6VEi2hd44p1Fa0vIakwADdAqHZg0l cI9uRO4eIP6YDgf/mtZsDpFhi0IIesl7jeIQn2S2XsUEJcCZwMWJ4i//tf51dSfpOCAH XSI3hVk8Rd4iC0ArPrQyR6345iOmMnUAgRpb+qC61SEj60mpqNtrD7ASjq3hD1C/E0k8 hgdQ== 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=uv6gDFFSgkZuMX4O09UqRyFnmVcXuXNq+Dha9XA9QZs=; b=0Q+9Om0V80hcGKVelsiMeVp9/nKc0VY3XjRStYJ9+gZI91xDgWJ7G5KYULvxGh+P56 c7tT7delb1jnq5AztvX8rgmEZsMbB9KNh2tSRWvdZUcX9AgsWZq0tIAoJRGEqqDPLDTr F+Er/CV2k1tkI7N935tBMaAq9aSzfsnQNjhTyw3CifY5wpIh7iiTVNkcdAVbGFzGkNxA FmcOm4sQbg7mN9S1aaoDEgeNgx86p2MRs5ClHilwSQQiPOraibIGJKci5S3hgUK3qyAP 0wmGqzxNBf0KJKEX1lT8cPwSq5hy6yf6JP/Pmf7mUXd667ONea6Cn2eSCaYy2IAds2v4 1Uqw== 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 p8si1156320pfk.512.2017.09.06.06.11.12; Wed, 06 Sep 2017 06:11:12 -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 S1751369AbdIFNLK (ORCPT + 1 other); Wed, 6 Sep 2017 09:11:10 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:61744 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750957AbdIFNLK (ORCPT ); Wed, 6 Sep 2017 09:11:10 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MEEDQ-1diwH02Z32-00FS64; Wed, 06 Sep 2017 15:10:38 +0200 From: Arnd Bergmann To: Herbert Xu , "David S. Miller" Cc: Arnd Bergmann , Jesper Nilsson , Lars Persson , Niklas Cassel , linux-arm-kernel@axis.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: axis - hide an unused variable Date: Wed, 6 Sep 2017 15:10:15 +0200 Message-Id: <20170906131033.2690066-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:0pb3isw5pjT5uNAs/QR/MK1rZmtQvsIrmGLTKWS2/sAyMMY7FHJ ohBTVfgEOMDof/oOA7ln8WU6Y/QnAVQ9O1Jwv5M3x8evpdaUXAR0RRnsDOUKJHWYza3Tsv+ sMrU31ccdbk198X45gYZHbyrxGTyASAbA3c+gtT4aUB61UULsCvnpTuVlFddIfU8OCv00zc 4Auvo36zsyKwWUJCVbazQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:rMscwWl7dlM=:GOqAlEd1HvEmOX1ZrluvW+ RB8705aLnWGP8WWmClUE7D/hwgNCnV9amsQd7ZShWeWOOYJMixWmrnqGRdhTkNv1pv8hxPWdX KkleEHbg71VWn2ZwEwnIBd9QQtfNJ74e9fIUP7oVeWR/CV6B+dGMzDVpR5jNmqlE4nA9eFUJT Bzn17XTe3lCn/FMEmYF8UsqBSNcBXLZUEZAvdUAhbYYxbDx+d6yLB63Y/l9Wt8M3e7OmSOnSn mP5wVAuPrNzGsPnca5QJ8377Xlz0zLPqxdUgacl6gGyUPv/7HW4+gYpfhoF7DvSuxFvCxMbHn fLtIRDUWEvY1XTX/ryNFoF/gxPSxs/B7j2EObLsg2mF6KYPtroS/+XLo0HQUYJ24wntw6YHVY zzN6fJgKL3sVWIwFBa5+BCyqLNQqtuipVIMt5xDpQceeK+pXEent6N0nNLIOI0LZVaec4y7L9 +N3iv21U2SMB+cQypjNMzgxj/Q8XG2YuJtE3sjpP23xPJ+jz7z8o1VYo1St2WFG9k0gsqaAoS Uzeor9pLOiwZGY3Un2lGW0GkRFGtEKn3Cavzjx5F8Sc0Qppig3CfjsLe2jbFdRVbdRJrzB+HH OqKrLKY4Ng33e9xT/DPWFBGOMrBkfDP1PH6r+8cb36bFhe2aYMy7slUt53qc1ZfqcWpCX/cfi 1DvQJmglR+WEAFtryvxqf+P9zyn0jK1mF35dPyh6kK7MlMlUEXX1SK0PWrwQ87sv32GhwaBx8 XzenqW66h4z4wE16RR3w553P03Pc5LQSGnyHIA== Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: 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") Acked-by: Lars Persson Signed-off-by: Arnd Bergmann --- Originally sent on August 25, but hasn't made it into linux-next yet. Resending it in case it got lost, sorry for any duplicates if this was still pending. --- drivers/crypto/axis/artpec6_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 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);