Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp284095rdh; Thu, 23 Nov 2023 04:07:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3o1UX1ubjsfXZejfgoUH/7tTxghHDe3bxOfpjet5MAb2FDltrVLMTNuj65iZTKODYw0T5 X-Received: by 2002:a05:6a00:1ca8:b0:6c3:78a4:223 with SMTP id y40-20020a056a001ca800b006c378a40223mr5416880pfw.18.1700741224313; Thu, 23 Nov 2023 04:07:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700741224; cv=none; d=google.com; s=arc-20160816; b=mu10uYCJkHvph7K3RYOo0HskGdY8IA13LkMpsf0E4vpSqP6AOSsey1E/0L2bMOODJp GS5SCPM+sYDClLJpfNY6RFO0zdwS+eRJe3YoQDDNE3skqgYEOz0WswtMuBybyiMYNSDt ++mfnucsODPeG6/U+b1o9PRmJxL/Jow7GpHiZ/mG95X2MxdEvmjb2e1zbSa78iUjcamU JbmwLQSbFA92kf9jtBWYdt8/cRTp51S79qWUC0goTW9Rr3N46CTuILJJIclrhrUbBmBz f46nnh1iUsa1xUjCnALB6dDokk9G/MXvhHJH5JXgUrniyyH7a7mygOy80icnzwo34K1e CGzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8a4ACM5urlIH/FTLgILfMOTkFX871c/y/R9emkBHUmM=; fh=L0mtDxzbexvY93/TXVDPqRiMSUezBOF86XyL0RxKhcM=; b=CBtNIoHysShr6COs6sWsXkc6JAOYQW7dRgID8SJP8W7esv7ebO54L+ztBHsiH2P5k4 l1/sSjNGknq8JYThO7jxa1p8l/c9p7XhwliHgshTH3Qmw5mIPm8nzB3dPr5PI3ygE5bn 6/h0affzgsfY+6+NLoiC2fuADpPi3cRyoEwhtt16RAd8puDhqKm5zZpjeHUWBbASYko3 EG+bWeT0n2DZaod2ucN49xpygdrZjkOawJluHtInmOxwlz+88kq8jBb4pmD5Ev1lNdhE 4iWrkNaT1KhFvIzioPZhdHu0eBotigewayKWp1oPJkBVtC2eJwvXD7WgRc1Xj0PeD/Ym Kh2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id j15-20020a056a00130f00b006cbae9e5105si1124151pfu.113.2023.11.23.04.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 04:07:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 99DB580739E8; Thu, 23 Nov 2023 04:06:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345232AbjKWMGc (ORCPT + 99 others); Thu, 23 Nov 2023 07:06:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345243AbjKWMG0 (ORCPT ); Thu, 23 Nov 2023 07:06:26 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1FD9D56 for ; Thu, 23 Nov 2023 04:06:32 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B457D1042; Thu, 23 Nov 2023 04:07:18 -0800 (PST) Received: from e127643.arm.com (unknown [10.57.3.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A56DA3F7A6; Thu, 23 Nov 2023 04:06:30 -0800 (PST) From: James Clark To: coresight@lists.linaro.org, suzuki.poulose@arm.com Cc: James Clark , Mike Leach , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 3/4] coresight: Fix undeclared variable warnings from sparse checker Date: Thu, 23 Nov 2023 12:04:58 +0000 Message-Id: <20231123120459.287578-4-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231123120459.287578-1-james.clark@arm.com> References: <20231123120459.287578-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 04:06:55 -0800 (PST) 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 --- drivers/hwtracing/coresight/coresight-cfg-afdo.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.34.1