Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp244467imm; Thu, 20 Sep 2018 22:48:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYH+JNYAXgRtQGB+kpvP5cEdaC5Vnvr/TMra7CB4Omij1gkHBS6/z1oh+PGbDLHBN9BLFWL X-Received: by 2002:a63:5558:: with SMTP id f24-v6mr11309006pgm.37.1537508884457; Thu, 20 Sep 2018 22:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537508884; cv=none; d=google.com; s=arc-20160816; b=ZBf5utcVRgLTuEXRsHYjgDs4hpmUWYuR70qxwyUgVgiUqtJUvwvebNTxbjm0w6ygFn 843QQEWmmUq6B9otBAOGDn8zDsK00Ch7582Oslk3MQ6VcIXhB8o1ujVeMB2csbFtMFNb scOkjZwyG9ajE1onaZelb7lflLnnE5vSE5t50Pi0UGH05N0j3NBFEr5ACRJX2hi4oLPX 6Idnpu+B2kp1XQxAoSVO5551D70YSWSeBYwyuZGLL2CxUQo39fck5HFfMThR4fQl37pD f5IOUDsGHgQYjhjzhshYGoM9RKMnANt+etLM8UFrKMk48UspFFbEOQWBOFk+f4Oz6Jz7 9IiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1jlOaKJpNbFlHCI3bzcJ2kbm1hCgeBu+OSceIqZBlw0=; b=zZ13rfbrUtYbX30NnlmknTtccnDrd93dZlQfG1nUMbVCsRTxpc1ebCP4PL8wXkFmP0 xNYHRGopwSV8qaxHTOFNUH4HITjA11YebixwMON3ToV5c9s7HAYO6oMQeVdchmnp5aOk ghdR3m5rBTX4Qo25T5C3NInxbsCWiHjxQNAbhZjI356AgL3HSQkAZSREcM1oE6dHvRTz ZtozFZft55FdtMYd5qudEKZb+DXcYVbrphF9CznyJOCH+ARL5+BvQpTHLycgw8Lxg1RY 4xht6hD/R08y90HWuwL0zBEjomP/VqvdJvfS8COGlQY9C5Us67cuvLkGHpaXULngb8V+ UGkQ== ARC-Authentication-Results: i=1; mx.google.com; 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 1-v6si27583046plm.34.2018.09.20.22.47.48; Thu, 20 Sep 2018 22:48:04 -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; 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 S2389243AbeIULeK (ORCPT + 99 others); Fri, 21 Sep 2018 07:34:10 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:46414 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbeIULeK (ORCPT ); Fri, 21 Sep 2018 07:34:10 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1g3EGx-0005Zw-Ni; Fri, 21 Sep 2018 13:46:35 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1g3EGt-0000bV-2f; Fri, 21 Sep 2018 13:46:31 +0800 Date: Fri, 21 Sep 2018 13:46:31 +0800 From: Herbert Xu To: Stefan Agner Cc: davem@davemloft.net, ard.biesheuvel@linaro.org, linux@armlinux.org.uk, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cpufeature: avoid warning when compiling with clang Message-ID: <20180921054631.m573qaxoqhql3juj@gondor.apana.org.au> References: <20180916043825.23247-1-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180916043825.23247-1-stefan@agner.ch> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 15, 2018 at 09:38:24PM -0700, Stefan Agner wrote: > The table id (second) argument to MODULE_DEVICE_TABLE is often > referenced otherwise. This is not the case for CPU features. This > leads to warnings when building the kernel with Clang: > arch/arm/crypto/aes-ce-glue.c:450:1: warning: variable > 'cpu_feature_match_AES' is not needed and will not be emitted > [-Wunneeded-internal-declaration] > module_cpu_feature_match(AES, aes_init); > ^ > > Avoid warnings by using __maybe_unused, similar to commit 1f318a8bafcf > ("modules: mark __inittest/__exittest as __maybe_unused"). > > Fixes: 67bad2fdb754 ("cpu: add generic support for CPU feature based module autoloading") > Signed-off-by: Stefan Agner > --- > include/linux/cpufeature.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt