linux_dsm_epyc7002/drivers/hwtracing/coresight
Stephen Boyd e3b7868435 coresight: STM: Clean up __iomem type usage
The casting and other things here is odd, and causes sparse to
complain:

drivers/hwtracing/coresight/coresight-stm.c:279:35: warning: incorrect type in argument 1 (different address spaces)
drivers/hwtracing/coresight/coresight-stm.c:279:35:    expected void [noderef] <asn:2>*addr
drivers/hwtracing/coresight/coresight-stm.c:279:35:    got struct stm_drvdata *drvdata
drivers/hwtracing/coresight/coresight-stm.c:327:17: warning: incorrect type in argument 2 (different address spaces)
drivers/hwtracing/coresight/coresight-stm.c:327:17:    expected void volatile [noderef] <asn:2>*addr
drivers/hwtracing/coresight/coresight-stm.c:327:17:    got void *addr
drivers/hwtracing/coresight/coresight-stm.c:330:17: warning: incorrect type in argument 2 (different address spaces)
drivers/hwtracing/coresight/coresight-stm.c:330:17:    expected void volatile [noderef] <asn:2>*addr
drivers/hwtracing/coresight/coresight-stm.c:330:17:    got void *addr
drivers/hwtracing/coresight/coresight-stm.c:333:17: warning: incorrect type in argument 2 (different address spaces)
drivers/hwtracing/coresight/coresight-stm.c:333:17:    expected void volatile [noderef] <asn:2>*addr
drivers/hwtracing/coresight/coresight-stm.c:333:17:    got void *addr

>From what I can tell, we don't really need to treat ch_addr as
anything besides a pointer, and we can just do pointer math
instead of ORing in the bits of the offset and achieve the same
thing.

Also, we were passing a drvdata pointer to the
coresight_timeout() function, but we really wanted to pass the
address of the register base. Luckily the base is the first
member of the structure, so everything works out, but this is
quite unsafe if we ever change the structure layout. Clean this
all up so sparse stops complaining on this code.

Reported-by: Satyajit Desai <sadesai@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-28 16:05:49 +02:00
..
coresight-cpu-debug.c coresight: add support for CPU debug module 2017-06-09 11:45:25 +02:00
coresight-dynamic-replicator.c coresight: Add support for Coresight SoC 600 components 2017-08-28 16:05:49 +02:00
coresight-etb10.c coresight: Use the new helper for defining registers 2017-08-28 16:05:48 +02:00
coresight-etm3x-sysfs.c coresight: Use the new helper for defining registers 2017-08-28 16:05:48 +02:00
coresight-etm3x.c coresight: ptm: Adds trace return stack option programming for PTM. 2017-08-28 16:05:48 +02:00
coresight-etm4x-sysfs.c coresight: Use the new helper for defining registers 2017-08-28 16:05:48 +02:00
coresight-etm4x.c coresight: etm4x: Adds trace return stack option programming for ETMv4. 2017-08-28 16:05:48 +02:00
coresight-etm4x.h coresight: etm4x: Fix enabling of cycle accurate tracing in perf. 2017-01-25 11:46:42 +01:00
coresight-etm-cp14.c coresight: moving to new "hwtracing" directory 2015-04-03 16:17:04 +02:00
coresight-etm-perf.c coresight: pmu: Adds return stack option to perf coresight pmu 2017-08-28 16:05:48 +02:00
coresight-etm-perf.h coresight: etm-perf: configuring filters from perf core 2016-08-31 13:05:43 +02:00
coresight-etm.h coresight: ptm: Adds trace return stack option programming for PTM. 2017-08-28 16:05:48 +02:00
coresight-funnel.c coresight: Add support for Coresight SoC 600 components 2017-08-28 16:05:49 +02:00
coresight-priv.h coresight tmc: Add helpers for accessing 64bit registers 2017-08-28 16:05:48 +02:00
coresight-replicator.c coresight: Use local coresight_desc instances 2016-08-31 13:05:43 +02:00
coresight-stm.c coresight: STM: Clean up __iomem type usage 2017-08-28 16:05:49 +02:00
coresight-tmc-etf.c coresight tmc: Add helpers for accessing 64bit registers 2017-08-28 16:05:48 +02:00
coresight-tmc-etr.c coresight tmc: Support for save-restore in ETR 2017-08-28 16:05:49 +02:00
coresight-tmc.c coresight tmc: Add support for Coresight SoC 600 TMC 2017-08-28 16:05:49 +02:00
coresight-tmc.h coresight tmc: Add support for Coresight SoC 600 TMC 2017-08-28 16:05:49 +02:00
coresight-tpiu.c coresight: Add support for Coresight SoC 600 components 2017-08-28 16:05:49 +02:00
coresight.c coresight: Add barrier packet for synchronisation 2017-08-28 16:05:47 +02:00
Kconfig coresight replicator: Cleanup programmable replicator naming 2017-08-28 16:05:48 +02:00
Makefile coresight replicator: Cleanup programmable replicator naming 2017-08-28 16:05:48 +02:00
of_coresight.c coresight: refactor with function of_coresight_get_cpu 2017-06-09 11:45:25 +02:00