diff options
| author | James Clark <james.clark@arm.com> | 2023-11-23 12:04:58 +0000 |
|---|---|---|
| committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2024-02-12 10:18:41 +0000 |
| commit | a7195f3f93836f518e07da11d0b068e71149d17e (patch) | |
| tree | 84023227bbf5379d71da17f2eba5bc3a22a6d7ee /drivers | |
| parent | 54daf07e63321d98473777527ce4853fa8eac33d (diff) | |
| download | linux-a7195f3f93836f518e07da11d0b068e71149d17e.tar.gz linux-a7195f3f93836f518e07da11d0b068e71149d17e.tar.bz2 linux-a7195f3f93836f518e07da11d0b068e71149d17e.zip | |
coresight: Fix undeclared variable warnings from sparse checker
Including the header with the declarations fixes the following warning
with a C=1 build:
coresight-cfg-afdo.c:102:27: warning: symbol 'strobe_etm4x' was not declared. Should it be static?
coresight-cfg-afdo.c:141:26: warning: symbol 'afdo_etm4x' was not declared. Should it be static?
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/20231123120459.287578-4-james.clark@arm.com
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/hwtracing/coresight/coresight-cfg-afdo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwtracing/coresight/coresight-cfg-afdo.c b/drivers/hwtracing/coresight/coresight-cfg-afdo.c index 84b31184252b..e794f2e145fa 100644 --- a/drivers/hwtracing/coresight/coresight-cfg-afdo.c +++ b/drivers/hwtracing/coresight/coresight-cfg-afdo.c @@ -9,6 +9,7 @@ /* ETMv4 includes and features */ #if IS_ENABLED(CONFIG_CORESIGHT_SOURCE_ETM4X) #include "coresight-etm4x-cfg.h" +#include "coresight-cfg-preload.h" /* preload configurations and features */ |
