From: Jeremy Linton <jeremy.linton@arm.com>
To: Gavin Shan <gshan@redhat.com>, kernel test robot <lkp@intel.com>,
linux-arm-kernel@lists.infradead.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
steven.price@arm.com, sami.mujawar@arm.com,
suzuki.poulose@arm.com, will@kernel.org, catalin.marinas@arm.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/1] arm64: rsi: Add automatic arm-cca-guest module loading
Date: Tue, 3 Dec 2024 09:30:43 -0600 [thread overview]
Message-ID: <a64a21cc-6d10-4e8f-9ab9-87aca44ca858@arm.com> (raw)
In-Reply-To: <b1923d68-726a-4864-8661-54588a634d95@redhat.com>
On 12/3/24 2:56 AM, Gavin Shan wrote:
>
>
> On 12/3/24 4:03 PM, kernel test robot wrote:
>> Hi Jeremy,
>>
>> kernel test robot noticed the following build warnings:
>>
>> [auto build test WARNING on arm64/for-next/core]
>> [also build test WARNING on linus/master v6.13-rc1 next-20241128]
>> [cannot apply to kvmarm/next soc/for-next arm/for-next arm/fixes]
>> [If your patch is applied to the wrong git tree, kindly drop us a note.
>> And when submitting patch, we suggest to use '--base' as documented in
>> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>>
>> url: https://github.com/intel-lab-lkp/linux/commits/Jeremy-Linton/
>> arm64-rsi-Add-automatic-arm-cca-guest-module-loading/20241203-080347
>> base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/
>> linux.git for-next/core
>> patch link: https://lore.kernel.org/r/20241203000156.72451-2-
>> jeremy.linton%40arm.com
>> patch subject: [PATCH v2 1/1] arm64: rsi: Add automatic arm-cca-guest
>> module loading
>> config: arm64-randconfig-004-20241203 (https://download.01.org/0day-
>> ci/archive/20241203/202412031348.bp5i3ws2-lkp@intel.com/config)
>> compiler: clang version 20.0.0git (https://github.com/llvm/llvm-
>> project 592c0fe55f6d9a811028b5f3507be91458ab2713)
>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/
>> archive/20241203/202412031348.bp5i3ws2-lkp@intel.com/reproduce)
>>
>> If you fix the issue in a separate patch/commit (i.e. not just a new
>> version of
>> the same patch/commit), kindly add following tags
>> | Reported-by: kernel test robot <lkp@intel.com>
>> | Closes: https://lore.kernel.org/oe-kbuild-all/202412031348.bp5i3ws2-
>> lkp@intel.com/
>>
>> All warnings (new ones prefixed by >>):
>>
>>>> drivers/virt/coco/arm-cca-guest/arm-cca-guest.c:224:21: warning:
>>>> attribute declaration must precede definition [-Wignored-attributes]
>> 224 | static const struct __maybe_unused platform_device_id
>> arm_cca_match[] = {
>> | ^
>> include/linux/compiler_attributes.h:356:56: note: expanded from
>> macro '__maybe_unused'
>> 356 | #define __maybe_unused
>> __attribute__((__unused__))
>> | ^
>> include/linux/mod_devicetable.h:607:8: note: previous definition
>> is here
>> 607 | struct platform_device_id {
>> | ^
>>>> drivers/virt/coco/arm-cca-guest/arm-cca-guest.c:224:55: warning:
>>>> unused variable 'arm_cca_match' [-Wunused-const-variable]
>> 224 | static const struct __maybe_unused platform_device_id
>> arm_cca_match[] = {
>> |
>> ^~~~~~~~~~~~~
>> 2 warnings generated.
>>
>>
>> vim +224 drivers/virt/coco/arm-cca-guest/arm-cca-guest.c
>>
>> 222
>> 223 /* modalias, so userspace can autoload this module when RSI
>> is available */
>> > 224 static const struct __maybe_unused platform_device_id
>> arm_cca_match[] = {
>> 225 { RSI_PDEV_NAME, 0},
>> 226 { }
>> 227 };
>> 228
>>
>
> The definition may have to be something like below, to avoid the
> compiling warning.
>
> static const struct platform_device_id __maybe_unused arm_cca_match[] = {
I should have tested this with clang rather than copy/pasting the
utilization from somewhere else! It looks like a number of other kernel
users are putting it before the '=', but its sorta annoying because it
seems like the kind of warning that should be suppressed globally for
this case (module device description in module that can be built in).
> ...
> };
>
> Thanks,
> Gavin
>
next prev parent reply other threads:[~2024-12-03 15:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 0:01 [PATCH v2 0/1] arm64: CCA TSM module autoloading Jeremy Linton
2024-12-03 0:01 ` [PATCH v2 1/1] arm64: rsi: Add automatic arm-cca-guest module loading Jeremy Linton
2024-12-03 1:22 ` Gavin Shan
2024-12-03 6:03 ` kernel test robot
2024-12-03 8:56 ` Gavin Shan
2024-12-03 15:30 ` Jeremy Linton [this message]
2024-12-05 2:08 ` Gavin Shan
2024-12-03 6:16 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a64a21cc-6d10-4e8f-9ab9-87aca44ca858@arm.com \
--to=jeremy.linton@arm.com \
--cc=catalin.marinas@arm.com \
--cc=gshan@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sami.mujawar@arm.com \
--cc=steven.price@arm.com \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox