public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [esmil:visionfive 25/75] arch/riscv/errata/andes/errata.c:46:14: warning: result of comparison of constant 9223372036854811205 with expression of type 'unsigned long' is always true
@ 2023-07-28  0:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-28  0:20 UTC (permalink / raw)
  To: Lad Prabhakar; +Cc: llvm, oe-kbuild-all, Emil Renner Berthing, Conor Dooley

tree:   https://github.com/esmil/linux visionfive
head:   4370487fce31acaedcc03e8bd2e64f3a9c591821
commit: fde37b6e790a93e8af8ec92d08f0ef9b48654876 [25/75] riscv: errata: Add Andes alternative ports
config: riscv-rv32_defconfig (https://download.01.org/0day-ci/archive/20230728/202307280827.AVHAaaoU-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230728/202307280827.AVHAaaoU-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/202307280827.AVHAaaoU-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> 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 generated.


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-28  0:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-28  0:20 [esmil:visionfive 25/75] arch/riscv/errata/andes/errata.c:46:14: warning: result of comparison of constant 9223372036854811205 with expression of type 'unsigned long' is always true kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox