From: James Clark Date: Thu, 23 Nov 2023 12:04:58 +0000 (+0000) Subject: coresight: Fix undeclared variable warnings from sparse checker X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a7195f3f93836f518e07da11d0b068e71149d17e;p=linux.git 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 Signed-off-by: Suzuki K Poulose Link: https://lore.kernel.org/r/20231123120459.287578-4-james.clark@arm.com --- diff --git a/drivers/hwtracing/coresight/coresight-cfg-afdo.c b/drivers/hwtracing/coresight/coresight-cfg-afdo.c index 84b31184252bb..e794f2e145fad 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 */