Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp291411pxj; Wed, 26 May 2021 23:36:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrD0nZsZY2EYp8X1dGhRmfwJGPD81y4sq8Y4gV4DYCfYVxDEmDXvUxcCBG90PFA41jY5zM X-Received: by 2002:a92:db11:: with SMTP id b17mr1816772iln.277.1622097393607; Wed, 26 May 2021 23:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622097393; cv=none; d=google.com; s=arc-20160816; b=suZPSgaN1200zR+BtBv27qXbYDLVPQh+Nm+wJ4zJVPEEaI7/ecXg+lNOpaVghafilH xhSMjN+l1kCpHqdipkeWfXHKIWJ5Cb8N5LhwyUzTLZeGv9FBCm/g4PiYdutxlLqeEQrJ 3HOKu4kgdWA6J/B8peCqH1QcbPzudTuJcFxo6OzIT8Y8lXQKl9wT/X1lbTXA5OaCxRo3 lbgpBUrmIAses/Gknf+sS8sUI/bTA2Ecf4Du/xZFIeC2RrkzR8eXoje+XEj4/xvVVaXT lMnR7EkkDnvUbr+oc+kp9Hl/h6QMZnjqZxbSQjX6DFgklEFrHRQpFNa+csPi+0IVv0VR 5dDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=vzY8Oad/4R9FZQwiT5mR4g0+2i9N6VivPydMdc1n6Lw=; b=TTSohqn1TIidJPRxCRvyemIE7vesVMk5oOjKvPpy/IBkwUwT+dlBeCqQPT0O+CkJ2r X6Q8Rtbf7gBEoyZKDScn0smJv4iyqoHMs9NZGkVh5v8BN74EG4JXqfA8Vhv/a13tGEWb jnZ9KWfXAPaq8pnzwCL/u9MQrmnCDISECi6f9jsDIdI9U71SsEfj1vZh3D8kQnPa1JOB /YOOO32MTLRnXT/w1uImbXPalvZWb+RhIa9INW0QFO1PW/Vl+D/gpgnIYagBK+p0duUL BEEGXOwx6qNJGqlTtX9G8noaVloCbhG/QF0Ge7fliohBdMhhmddHiBnGhm+6inZqpcbJ 79TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jV1LydVt; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si1352436ilo.119.2021.05.26.23.36.08; Wed, 26 May 2021 23:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jV1LydVt; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233884AbhE0G36 (ORCPT + 99 others); Thu, 27 May 2021 02:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbhE0G3u (ORCPT ); Thu, 27 May 2021 02:29:50 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81817C061574; Wed, 26 May 2021 23:28:15 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id m190so2942302pga.2; Wed, 26 May 2021 23:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=vzY8Oad/4R9FZQwiT5mR4g0+2i9N6VivPydMdc1n6Lw=; b=jV1LydVtgiAkGzkhsRGre3UOT0KKR7Q6JRQR+9bK/8iY/hT6uZn9cc7AcYtFm8ZoGp RNgWfZUxeQjUQtejKhtLzBEC1RkLesoMSMd+/lUATBa47N/T5Lm+xCcQFIi+Ac+P7TDW lWpxbifbvjvkyq0SACzQyuuZqUbzbNsbON3+Eo4VGdctbHN/3IagWrDi75F6lJTNsIF0 AAH6Pq388+sKOxxMmlUuA0we62AIzOw7c87lH+DZRbrmeMLXq8XsMyV2qEs4ZZo3PAN/ OpkaluVCDZ7v+IYc8t9KxrBb2RByoHDbTMNvwyjbe5OLw/+9EQR2/AGYt7p0ROht9rk3 fh/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=vzY8Oad/4R9FZQwiT5mR4g0+2i9N6VivPydMdc1n6Lw=; b=c/vxr+RlbyKFtvZr1Dl9NQKp6OAy8+R6uuZ0rDZLpz8FWlWds9jMcMEhsQPjomp6jm du64IO4vqPMH5CjSazAcQJ2W/fzILdSrZjNpVIWUWhfQ6zBEtMCn3UlCpFZwirLcboRV 0X5slS8aUhBRFglgwMxC4BH2jp3G0z4L5tPOZH8rPLMmnNd4JOzXH2cuYiQt2xXIpAUU 1TYHep/299+vDEw1UZasst3WNZPkNVE64GVOwtMtlx5DILp5/O/sjsj7LBg5eW9Yf0hj d3xrQZ+35B8t9UAMyZuams+liQG/aXczFZ2TxC851WrDJ9CFVbXPgeYHwzVQbZLJfm9G 8Ijw== X-Gm-Message-State: AOAM530pS8EYxuVlLHXx/0Fr57aCMacxvv9lvPR2lPZJMOpgeU0z2Pbs Rs9Zj4LiGRS8w0Mfg4b6pmY= X-Received: by 2002:a63:e015:: with SMTP id e21mr2277845pgh.442.1622096895122; Wed, 26 May 2021 23:28:15 -0700 (PDT) Received: from raspberrypi ([125.141.84.155]) by smtp.gmail.com with ESMTPSA id s123sm935741pfb.78.2021.05.26.23.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 23:28:14 -0700 (PDT) Date: Thu, 27 May 2021 07:28:09 +0100 From: Austin Kim To: herbert@gondor.apana.org.au, davem@davemloft.net, catalin.marinas@arm.com, will@kernel.org, john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-security-module@vger.kernel.org, linux-crypto@vger.kernel.org, austindh.kim@gmail.com, austin.kim@lge.com Subject: [PATCH] crypto: arm64/gcm - remove Wunused-const-variable ghash_cpu_feature Message-ID: <20210527062809.GA1251@raspberrypi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org GCC compiler complains with below messages. warning: ‘ghash_cpu_feature’ defined but not used [-Wunused-const-variable=] static const struct cpu_feature ghash_cpu_feature[] = { ^~~~~~~~~~~~~~~~~ The variable with MODULE_DEVICE_TABLE() is registered as platform_driver. But ghash_cpu_feature is not used, so remove ghash_cpu_feature. Signed-off-by: Austin Kim --- arch/arm64/crypto/ghash-ce-glue.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm64/crypto/ghash-ce-glue.c b/arch/arm64/crypto/ghash-ce-glue.c index 720cd3a58da3..c3f27d0d5329 100644 --- a/arch/arm64/crypto/ghash-ce-glue.c +++ b/arch/arm64/crypto/ghash-ce-glue.c @@ -615,10 +615,5 @@ static void __exit ghash_ce_mod_exit(void) crypto_unregister_shash(&ghash_alg); } -static const struct cpu_feature ghash_cpu_feature[] = { - { cpu_feature(PMULL) }, { } -}; -MODULE_DEVICE_TABLE(cpu, ghash_cpu_feature); - module_init(ghash_ce_mod_init); module_exit(ghash_ce_mod_exit); -- 2.20.1