Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [linux-next:master 9417/16121] drivers/hwtracing/coresight/coresight-etm4x-core.c:1183:24: warning: result of comparison of constant 256 with expression of type 'u8' (aka 'unsigned char') is always false
@ 2023-10-30 12:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-10-30 12:42 UTC (permalink / raw
  To: Anshuman Khandual
  Cc: llvm, oe-kbuild-all, Linux Memory Management List,
	Suzuki K Poulose, Mike Leach

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c503e3eec382ac708ee7adf874add37b77c5d312
commit: 0f55b43dedcdae2b871f0fec59d8c672e62ff5de [9417/16121] coresight: etm: Override TRCIDR3.CCITMIN on errata affected cpus
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20231030/202310302043.as36UFED-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/20231030/202310302043.as36UFED-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/202310302043.as36UFED-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/hwtracing/coresight/coresight-etm4x-core.c:1183:24: warning: result of comparison of constant 256 with expression of type 'u8' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
    1183 |                 if (drvdata->ccitmin == 256)
         |                     ~~~~~~~~~~~~~~~~ ^  ~~~
   1 warning generated.


vim +1183 drivers/hwtracing/coresight/coresight-etm4x-core.c

  1172	
  1173	static void etm4_fixup_wrong_ccitmin(struct etmv4_drvdata *drvdata)
  1174	{
  1175		/*
  1176		 * Erratum affected cpus will read 256 as the minimum
  1177		 * instruction trace cycle counting threshold whereas
  1178		 * the correct value should be 4 instead. Override the
  1179		 * recorded value for 'drvdata->ccitmin' to workaround
  1180		 * this problem.
  1181		 */
  1182		if (is_midr_in_range_list(read_cpuid_id(), etm_wrong_ccitmin_cpus)) {
> 1183			if (drvdata->ccitmin == 256)
  1184				drvdata->ccitmin = 4;
  1185		}
  1186	}
  1187	

-- 
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-10-30 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-30 12:42 [linux-next:master 9417/16121] drivers/hwtracing/coresight/coresight-etm4x-core.c:1183:24: warning: result of comparison of constant 256 with expression of type 'u8' (aka 'unsigned char') is always false 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).