Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2562565imm; Sat, 15 Sep 2018 21:39:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaYzbqq5D6RMrMq9wgjOTo41fFBfxJPXKXSbsgd8kmG8DFDH9mvOuMgT3uve9BZwU+csXI6 X-Received: by 2002:a63:b95e:: with SMTP id v30-v6mr17991939pgo.221.1537072742511; Sat, 15 Sep 2018 21:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537072742; cv=none; d=google.com; s=arc-20160816; b=qeiVpD1rf6PYMmtHQtQmc9uQNmsXK2Ph9s3u+A2AE/oZgBrCQ6lp6J5hIR3crVXtQv xZ0aW06VnaEbYi22w4XpyKIWwHmKAJlwKvZfw5NoWSlDg3M5DdpnxSC0ei2jJatInoDW aUfG+VaZ0rUcK5vVQU7496hagdYT6PABF5LVnvzu5znqIep1s+n0VIj5gTpPFdqH+3ej npS81FAP/yac2tvAXn0M4DDRdduZG5g1ysU+I2o03oY1MpLHh/S+H6F4Ey4/Tk0Ef1Ku yVpUQmTIUB2oZ2lEmjueLv5Y/31ogOcT01dzb4eIxmYWzLF/vGDKZn3QDpoxJ3iaL5ne ou1w== 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 :dkim-signature; bh=lA4pWBiapQwb05oCOx8c7PAm+j6USrDO0AnRCDFKdjo=; b=wDZiW13Plj/QlLRk7EneMxEGT008l110RzOl8POmc6X62tjG7GKLDBms08BkGM8qxF l+QIH6QLjVIZtzPzp8m0tCKSLToRa6W7S7UMbj2KBUHOzlRW+fm/qHbsRNLlx5kD2qNU 3/b0fZtO5+XMbiKCaMqA/t6bsJMtYpiSjXi/MR7d5DSr4MSsgPb+DWoX4QBjRhf7Kg2o oQo2h/25fQy234i8j4BpvFIXSCfctK28EjAf+qCvKX2O42qZAH43SdI/b2pnGJg/1fjx hJ6neYyXwsQ4KgKjdE4Y0DTX54lTJLPqbACC0kSosXxtXq6yoO5qRkvcrnWjb8PbZOBM 4hsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=zrh4Hx9H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 f7-v6si11781633pfc.174.2018.09.15.21.38.47; Sat, 15 Sep 2018 21:39:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=zrh4Hx9H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727146AbeIPKAQ (ORCPT + 99 others); Sun, 16 Sep 2018 06:00:16 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:38480 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725739AbeIPKAP (ORCPT ); Sun, 16 Sep 2018 06:00:15 -0400 Received: from trochilidae.hsd1.wa.comcast.net (unknown [IPv6:2601:602:8700:fb00:81ae:bc59:4e6c:42ca]) by mail.kmu-office.ch (Postfix) with ESMTPSA id EFC6B5C2222; Sun, 16 Sep 2018 06:38:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1537072718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lA4pWBiapQwb05oCOx8c7PAm+j6USrDO0AnRCDFKdjo=; b=zrh4Hx9Hr25DRjwB0zna5s84CAvsiwduWmtJ3iQRBg0nesurFQg2QIR/t3Olmw2/ZUcG5O dUHBabNBOPzMgvswxo9IrzdefgdVDSplb9dY1/9QaDswe4guMVhjTVDMzHIkoFlNwNMxPr ZMsjOzwfBi4G/GPHnxTinjTRAPCcxXY= From: Stefan Agner To: herbert@gondor.apana.org.au, davem@davemloft.net, ard.biesheuvel@linaro.org Cc: linux@armlinux.org.uk, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH 2/2] crypto: arm/crc32 - avoid warning when compiling with Clang Date: Sat, 15 Sep 2018 21:38:25 -0700 Message-Id: <20180916043825.23247-2-stefan@agner.ch> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180916043825.23247-1-stefan@agner.ch> References: <20180916043825.23247-1-stefan@agner.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The table id (second) argument to MODULE_DEVICE_TABLE is often referenced otherwise. This is not the case for CPU features. This leads to a warning when building the kernel with Clang: arch/arm/crypto/crc32-ce-glue.c:239:33: warning: variable 'crc32_cpu_feature' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const struct cpu_feature crc32_cpu_feature[] = { ^ Avoid warnings by using __maybe_unused, similar to commit 1f318a8bafcf ("modules: mark __inittest/__exittest as __maybe_unused"). Fixes: 2a9faf8b7e43 ("crypto: arm/crc32 - enable module autoloading based on CPU feature bits") Signed-off-by: Stefan Agner --- arch/arm/crypto/crc32-ce-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/crypto/crc32-ce-glue.c b/arch/arm/crypto/crc32-ce-glue.c index 96e62ec105d0..cd9e93b46c2d 100644 --- a/arch/arm/crypto/crc32-ce-glue.c +++ b/arch/arm/crypto/crc32-ce-glue.c @@ -236,7 +236,7 @@ static void __exit crc32_pmull_mod_exit(void) ARRAY_SIZE(crc32_pmull_algs)); } -static const struct cpu_feature crc32_cpu_feature[] = { +static const struct cpu_feature __maybe_unused crc32_cpu_feature[] = { { cpu_feature(CRC32) }, { cpu_feature(PMULL) }, { } }; MODULE_DEVICE_TABLE(cpu, crc32_cpu_feature); -- 2.19.0