[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202405081255.MGvZEuuc-lkp@intel.com>
Date: Wed, 8 May 2024 12:25:36 +0800
From: kernel test robot <lkp@...el.com>
To: Jiaxun Yang <jiaxun.yang@...goat.com>,
Paul Burton <paulburton@...nel.org>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-mips@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
Jiaxun Yang <jiaxun.yang@...goat.com>
Subject: Re: [PATCH 5/5] MIPS: cm: Probe GCR address from DeviceTree
Hi Jiaxun,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 2b84edefcad14934796fad37b16512b6a2ca467e]
url: https://github.com/intel-lab-lkp/linux/commits/Jiaxun-Yang/MIPS-generic-Do-__dt_setup_arch-in-prom_init/20240507-170413
base: 2b84edefcad14934796fad37b16512b6a2ca467e
patch link: https://lore.kernel.org/r/20240507-cm_probe-v1-5-11dbfd598f3c%40flygoat.com
patch subject: [PATCH 5/5] MIPS: cm: Probe GCR address from DeviceTree
config: mips-randconfig-r113-20240508 (https://download.01.org/0day-ci/archive/20240508/202405081255.MGvZEuuc-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 0ab4458df0688955620b72cc2c72a32dffad3615)
reproduce: (https://download.01.org/0day-ci/archive/20240508/202405081255.MGvZEuuc-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405081255.MGvZEuuc-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/mips/kernel/mips-cm.c:193:13: warning: result of comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always false [-Wtautological-constant-out-of-range-compare]
193 | if (*cmgcr == OF_BAD_ADDR)
| ~~~~~~ ^ ~~~~~~~~~~~
1 warning generated.
vim +193 arch/mips/kernel/mips-cm.c
183
184 static int __init mips_cm_fdt_scan(unsigned long node, const char *uname,
185 int depth, void *data)
186 {
187 unsigned long *cmgcr = data;
188
189 if (!of_flat_dt_is_compatible(node, "mti,mips-cm"))
190 return 0;
191
192 *cmgcr = of_flat_dt_translate_address(node);
> 193 if (*cmgcr == OF_BAD_ADDR)
194 *cmgcr = 0;
195
196 return 0;
197 }
198
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists