Re: [PATCH 1/2] cpufeature: avoid warning when compiling with clang

2018-09-20 Thread Herbert Xu
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: warnin

Re: [PATCH 1/2] cpufeature: avoid warning when compiling with clang

2018-09-18 Thread Ard Biesheuvel
On 15 September 2018 at 21:38, 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: variabl

[PATCH 1/2] cpufeature: avoid warning when compiling with clang

2018-09-15 Thread Stefan Agner
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