linux-stable/drivers/hwtracing/coresight
James Clark 5e67191818 coresight: etm4x: Fix width of CCITMIN field
commit cc0271a339 upstream.

CCITMIN is a 12 bit field and doesn't fit in a u8, so extend it to u16.
This probably wasn't an issue previously because values higher than 255
never occurred.

But since commit 4aff040bcc ("coresight: etm: Override TRCIDR3.CCITMIN
on errata affected cpus"), a comparison with 256 was done to enable the
errata, generating the following W=1 build error:

  coresight-etm4x-core.c:1188:24: error: result of comparison of
  constant 256 with expression of type 'u8' (aka 'unsigned char') is
  always false [-Werror,-Wtautological-constant-out-of-range-compare]

   if (drvdata->ccitmin == 256)

Cc: stable@vger.kernel.org
Fixes: 2e1cdfe184 ("coresight-etm4x: Adding CoreSight ETM4x driver")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310302043.as36UFED-lkp@intel.com/
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: James Clark <james.clark@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20231101115206.70810-1-james.clark@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-20 11:50:11 +01:00
..
coresight-catu.c
coresight-catu.h
coresight-cfg-afdo.c
coresight-cfg-preload.c
coresight-cfg-preload.h
coresight-config.c
coresight-config.h
coresight-core.c coresight: Fix loss of connection info when a module is unloaded 2023-07-19 16:21:54 +02:00
coresight-cpu-debug.c
coresight-cti-core.c
coresight-cti-platform.c
coresight-cti-sysfs.c coresight: cti: Add PM runtime call in enable_store 2023-03-10 09:33:31 +01:00
coresight-cti.h
coresight-etb10.c
coresight-etm-cp14.c
coresight-etm-perf.c coresight: etm_pmu: Set the module field 2023-05-11 23:03:29 +09:00
coresight-etm-perf.h
coresight-etm.h
coresight-etm3x-core.c
coresight-etm3x-sysfs.c
coresight-etm4x-cfg.c
coresight-etm4x-cfg.h
coresight-etm4x-core.c coresight: etm4x: Remove bogous __exit annotation for some functions 2023-12-13 18:39:22 +01:00
coresight-etm4x-sysfs.c
coresight-etm4x.h coresight: etm4x: Fix width of CCITMIN field 2024-01-20 11:50:11 +01:00
coresight-funnel.c
coresight-platform.c
coresight-priv.h
coresight-replicator.c
coresight-self-hosted-trace.h
coresight-stm.c
coresight-syscfg-configfs.c
coresight-syscfg-configfs.h
coresight-syscfg.c
coresight-syscfg.h
coresight-sysfs.c
coresight-tmc-core.c
coresight-tmc-etf.c coresight: tmc: Explicit type conversions to prevent integer overflow 2023-09-13 09:42:52 +02:00
coresight-tmc-etr.c coresight: tmc-etr: Disable warnings for allocation failures 2023-11-08 14:10:57 +01:00
coresight-tmc.h coresight: tmc: Explicit type conversions to prevent integer overflow 2023-09-13 09:42:52 +02:00
coresight-tpiu.c
coresight-trbe.c coresight: trbe: Fix TRBE potential sleep in atomic context 2023-09-13 09:42:56 +02:00
coresight-trbe.h
Kconfig
Makefile