From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
To: kernel test robot <lkp@intel.com>
Cc: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>,
llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Palmer Dabbelt <palmer@rivosinc.com>,
Conor Dooley <conor.dooley@microchip.com>
Subject: Re: [linux-next:master 13230/13643] arch/riscv/errata/andes/errata.c:46:14: warning: result of comparison of constant 9223372036854811205 with expression of type 'unsigned long' is always true
Date: Tue, 5 Sep 2023 11:20:17 +0100 [thread overview]
Message-ID: <CA+V-a8v6P_BXKd+XzCToczNOV9g9jS=r3isisSAuh=xXfZ32UQ@mail.gmail.com> (raw)
In-Reply-To: <202309020548.rbrIJu6S-lkp@intel.com>
On Fri, Sep 1, 2023 at 10:58 PM kernel test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: a47fc304d2b678db1a5d760a7d644dac9b067752
> commit: f2863f30d1b05e5ecf61c063609cb974954d47f8 [13230/13643] riscv: errata: Add Andes alternative ports
> config: riscv-randconfig-r015-20230902 (https://download.01.org/0day-ci/archive/20230902/202309020548.rbrIJu6S-lkp@intel.com/config)
> compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230902/202309020548.rbrIJu6S-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/202309020548.rbrIJu6S-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> arch/riscv/errata/andes/errata.c:29:16: error: variable has incomplete type 'struct sbiret'
> 29 | struct sbiret ret;
> | ^
> arch/riscv/errata/andes/errata.c:29:9: note: forward declaration of 'struct sbiret'
> 29 | struct sbiret ret;
> | ^
> arch/riscv/errata/andes/errata.c:35:8: error: call to undeclared function 'sbi_ecall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 35 | ret = sbi_ecall(ANDESTECH_SBI_EXT_ANDES, ANDES_SBI_EXT_IOCP_SW_WORKAROUND,
> | ^
> >> arch/riscv/errata/andes/errata.c:46:14: warning: result of comparison of constant 9223372036854811205 with expression of type 'unsigned long' is always true [-Wtautological-constant-out-of-range-compare]
> 46 | if (arch_id != ANDESTECH_AX45MP_MARCHID || impid != ANDESTECH_AX45MP_MIMPID)
> | ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning and 2 errors generated.
>
After applying the below four patches we shouldn't be seeing this
randconfig warnings:
https://patchwork.kernel.org/project/linux-riscv/patch/20230901105111.311200-1-prabhakar.mahadev-lad.rj@bp.renesas.com/
https://patchwork.kernel.org/project/linux-riscv/patch/20230901105858.311745-1-prabhakar.mahadev-lad.rj@bp.renesas.com/
https://patchwork.kernel.org/project/linux-riscv/patch/20230901110320.312674-1-prabhakar.mahadev-lad.rj@bp.renesas.com/
https://patchwork.kernel.org/project/linux-riscv/patch/20230901110936.313171-1-prabhakar.mahadev-lad.rj@bp.renesas.com/
Cheers,
Prabhakar
>
> vim +46 arch/riscv/errata/andes/errata.c
>
> 40
> 41 static bool errata_probe_iocp(unsigned int stage, unsigned long arch_id, unsigned long impid)
> 42 {
> 43 if (!IS_ENABLED(CONFIG_ERRATA_ANDES_CMO))
> 44 return false;
> 45
> > 46 if (arch_id != ANDESTECH_AX45MP_MARCHID || impid != ANDESTECH_AX45MP_MIMPID)
> 47 return false;
> 48
> 49 if (!ax45mp_iocp_sw_workaround())
> 50 return false;
> 51
> 52 /* Set this just to make core cbo code happy */
> 53 riscv_cbom_block_size = 1;
> 54 riscv_noncoherent_supported();
> 55
> 56 return true;
> 57 }
> 58
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
>
next prev parent reply other threads:[~2023-09-05 10:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-01 21:57 kernel test robot
2023-09-05 10:20 ` Lad, Prabhakar [this message]
2023-09-06 0:57 ` Palmer Dabbelt
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='CA+V-a8v6P_BXKd+XzCToczNOV9g9jS=r3isisSAuh=xXfZ32UQ@mail.gmail.com' \
--to=prabhakar.csengg@gmail.com \
--cc=conor.dooley@microchip.com \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=palmer@rivosinc.com \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
/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