Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1005261rdd; Wed, 10 Jan 2024 06:06:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmk/FAfvI7Jp5ebbBwVvabq7zZGVpT91yTd2ebAND6STiq0ExV7VpjgVv/mU6hzJXsF+Kp X-Received: by 2002:a17:903:22c6:b0:1d5:4c65:6f67 with SMTP id y6-20020a17090322c600b001d54c656f67mr1029280plg.111.1704895608662; Wed, 10 Jan 2024 06:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704895608; cv=none; d=google.com; s=arc-20160816; b=ZltKpRjDh3wRPgg0OMsbwRgVUKO+ZEofpsGfmPlV6Gn58ejqbslpJUuPGhp75ZUy9b RnowUwRbiSoI+IX5b8G00kNOLMscd9p0rDm53hne7ifsC2w+YK/x0N3lwoo1BR4Pi6+p zfHjVcrrbazk/DiHrIOPqqKRIk8Hvt5XSAqG5lsuMsznT2vkNqe6VJNe+xOvrx1H3Qz/ QNdB8+JZx3Qa5JcEaazHHrx7/nbjV/+DJPg4msaKQJQFy7IQZcKMNC3x2CxY3uLpbXod TPKRif58t0/6hgqkBp5TkIHwzhJL9wRFI5KPaRUSTVK1gKAjOH8Bqxgq4VT+LaMWj1Oz tESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=dcCCCp02GfXch83jSpZR2sin1kHIE4TQ5XUITStRmkg=; fh=TzxcpWgMr0ZHRVWWO//RG91rk/VEV7I73tOUOq+KfKQ=; b=NJMi/0eXjqyLayth7scgwhDIufwFZX/4wZUil0a2WIhfXRzl7GwuU92DMIbs3yl051 QFktf7kE5l+Crc33AHP1Hm5mIQUw20kXCU19ult1a/bGycANlNiUjVaua6ZOZLVyarBv NQTmlZ3rGpeXWAT0HFinS5yhDE9fY777ymbmPiX2+VvrgeoBZUWDa7Ygho0ixyF4Q/0c D1vx+rLva+mrBodgxr/fjBVcDbGvAdTCNJF4M61tIfaCc97el815LVfX7KT2LZZ1qg/C GmfDqUjsdwffZ581ZDtG8wypg6E5rTEAucCU4/Rk5oeGyh19v3M7irqGv+Te51ZOIGOu VUDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b18-20020a170902b61200b001d4a28a6d05si3660350pls.591.2024.01.10.06.06.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 06:06:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-22294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B18BBB26B3D for ; Wed, 10 Jan 2024 14:01:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C8FC4A98E; Wed, 10 Jan 2024 14:00:58 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD745495F1 for ; Wed, 10 Jan 2024 14:00:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 0E5CE2F4; Wed, 10 Jan 2024 06:01:41 -0800 (PST) Received: from [10.57.46.83] (unknown [10.57.46.83]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 230AE3F5A1; Wed, 10 Jan 2024 06:00:54 -0800 (PST) Message-ID: <4eef0b8d-3702-429b-bf9b-50e176498833@arm.com> Date: Wed, 10 Jan 2024 14:00:52 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 8/8] coresight: Remove unused stubs Content-Language: en-GB To: James Clark , coresight@lists.linaro.org Cc: 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 References: <20231212155407.1429121-1-james.clark@arm.com> <20231212155407.1429121-9-james.clark@arm.com> <01c15dbe-57d3-4aa1-9d68-81a01ec2a3a7@arm.com> From: Suzuki K Poulose In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 09/01/2024 16:48, James Clark wrote: > > > On 09/01/2024 10:38, Suzuki K Poulose wrote: >> Hi James >> >> On 12/12/2023 15:54, James Clark wrote: >>> These are a bit annoying to keep up to date when the function signatures >>> change. But if CONFIG_CORESIGHT isn't enabled, then they're not used >>> anyway so just delete them. >>> >> >> Have you tried building an arm32 kernel with this change in ? Looks like >> arch/arm/kernel/hw_breakpoint.c includes linux/coresight.h and a build >> with CONFIG_CORSIGHT=n might break the build ? So is > > arm32 and CONFIG_CORESIGHT=n works because hw_breakpoint.c doesn't use > any of those symbols, only #defines that were outside the #if > IS_ENABLED(CONFIG_CORESIGHT), specifically CORESIGHT_UNLOCK. > >> drivers/accel/habanalabs/common/habanalabs.h. Now, I am not sure if they > > habanalabs is interesting, it depends on X86_64, but CONFIG_CORESIGHT > depends on ARM || ARM64, so I think we can assume it's also only looking > for #defines and inlines, and not actual code. > > Either way I can't find any build config that actually ever built this, > meaning it's always been dead code. I would have expected some build > robot to have flagged an error by now as I've seen that on other > coresight patches. > >> really need it (even if they do, we may be able to remove the dependency >> on the header file. >> > > They do really need it, also for the CORESIGHT_UNLOCK definition, but > not any functions. Thanks for checking this. Suzuki