OpenCloudOS-Kernel/drivers/hwtracing/coresight
Arnd Bergmann 59d63de076 coresight: catu: fix clang build warning
Clang points out a syntax error, as the etr_catu_buf_ops structure is
declared 'static' before the type is known:

In file included from drivers/hwtracing/coresight/coresight-tmc-etr.c:12:
drivers/hwtracing/coresight/coresight-catu.h:116:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct etr_buf_operations' [-Wtentative-definition-incomplete-type]
static const struct etr_buf_operations etr_catu_buf_ops;
                                       ^
drivers/hwtracing/coresight/coresight-catu.h:116:21: note: forward declaration of 'struct etr_buf_operations'
static const struct etr_buf_operations etr_catu_buf_ops;

This seems worth fixing in the code, so replace pointer to the empty
constant structure with a NULL pointer. We need an extra NULL pointer
check here, but the result should be better object code otherwise,
avoiding the silly empty structure.

Fixes: 434d611cdd ("coresight: catu: Plug in CATU as a backend for ETR buffer")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
[Fixed line over 80 characters]
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-25 22:00:14 +02:00
..
Kconfig coresight: Introduce support for Coresight Address Translation Unit 2018-07-15 13:52:58 +02:00
Makefile coresight: Introduce support for Coresight Address Translation Unit 2018-07-15 13:52:58 +02:00
coresight-catu.c coresight: catu: Claim device before use 2018-09-25 20:09:19 +02:00
coresight-catu.h coresight: catu: fix clang build warning 2019-04-25 22:00:14 +02:00
coresight-cpu-debug.c coresight: cpu-debug: Support for CA73 CPUs 2019-02-08 12:27:36 +01:00
coresight-dynamic-replicator.c coresight: dynamic-replicator: Claim device for use 2018-09-25 20:09:19 +02:00
coresight-etb10.c coresight: etb10: Add support for CLAIM tag 2018-12-06 15:41:55 +01:00
coresight-etm-cp14.c coresight: Moving framework and drivers to SPDX identifier 2018-05-14 16:19:59 +02:00
coresight-etm-perf.c perf, pt, coresight: Fix address filters for vmas with non-zero offset 2019-02-22 16:52:07 -03:00
coresight-etm-perf.h coresight: perf: Add "sinks" group to PMU directory 2019-02-08 12:27:36 +01:00
coresight-etm.h coresight: etm3x: Don't use contextID with PID namespaces 2018-07-15 13:52:56 +02:00
coresight-etm3x-sysfs.c coresight: etm3x: Don't use contextID with PID namespaces 2018-07-15 13:52:56 +02:00
coresight-etm3x.c ARM: 8838/1: drivers: amba: Updates to component identification for driver matching. 2019-02-26 11:23:48 +00:00
coresight-etm4x-sysfs.c coresight: etm4x: Don't use contextID with PID namespaces 2018-07-15 13:52:56 +02:00
coresight-etm4x.c ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00
coresight-etm4x.h coresight: etm4x: Don't use contextID with PID namespaces 2018-07-15 13:52:56 +02:00
coresight-funnel.c coresight: funnel: Claim devices before use 2018-09-25 20:09:19 +02:00
coresight-priv.h ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00
coresight-replicator.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-stm.c ARM updates for 5.1-rc1 2019-03-15 14:37:46 -07:00
coresight-tmc-etf.c coresight: etf: Release CLAIM tag after disabling the HW 2018-12-06 15:41:55 +01:00
coresight-tmc-etr.c coresight: catu: fix clang build warning 2019-04-25 22:00:14 +02:00
coresight-tmc.c ARM: 8838/1: drivers: amba: Updates to component identification for driver matching. 2019-02-26 11:23:48 +00:00
coresight-tmc.h coresight: etm-perf: Add support for ETR backend 2018-09-25 20:09:18 +02:00
coresight-tpiu.c coresight: perf: Remove set_buffer call back 2018-09-25 20:09:18 +02:00
coresight.c coresight: Use event attributes for sink selection 2019-02-08 12:27:36 +01:00
of_coresight.c coresight: Use of_node_name_eq for node name comparisons 2019-02-08 12:27:36 +01:00