aboutsummaryrefslogtreecommitdiff
path: root/drivers/hwtracing
diff options
context:
space:
mode:
authorGravatar James Clark <james.clark@arm.com> 2023-11-23 12:04:58 +0000
committerGravatar Suzuki K Poulose <suzuki.poulose@arm.com> 2024-02-12 10:18:41 +0000
commita7195f3f93836f518e07da11d0b068e71149d17e (patch)
tree84023227bbf5379d71da17f2eba5bc3a22a6d7ee /drivers/hwtracing
parentcoresight: etm3x: Fix build warning (diff)
downloadlinux-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/hwtracing')
-rw-r--r--drivers/hwtracing/coresight/coresight-cfg-afdo.c1
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 */