* [PATCH] coresight: cti: Remove unused variables in cti_{dis,en}able_hw()
@ 2022-10-24 15:12 Nathan Chancellor
2022-10-24 15:23 ` Suzuki K Poulose
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Chancellor @ 2022-10-24 15:12 UTC (permalink / raw)
To: Mathieu Poirier, Suzuki K Poulose
Cc: Mike Leach, Leo Yan, James Clark, coresight, linux-arm-kernel,
linux-kernel, Nathan Chancellor
Clean up the following warnings, as the variables are no longer used.
drivers/hwtracing/coresight/coresight-cti-core.c:93:17: warning: unused variable 'dev' [-Wunused-variable]
struct device *dev = &drvdata->csdev->dev;
^
drivers/hwtracing/coresight/coresight-cti-core.c:154:17: warning: unused variable 'dev' [-Wunused-variable]
struct device *dev = &drvdata->csdev->dev;
^
2 warnings generated.
Fixes: 665c157e0204 ("coresight: cti: Fix hang in cti_disable_hw()")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
drivers/hwtracing/coresight/coresight-cti-core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/hwtracing/coresight/coresight-cti-core.c b/drivers/hwtracing/coresight/coresight-cti-core.c
index 4a02ae23d3a0..c6e8c6542f24 100644
--- a/drivers/hwtracing/coresight/coresight-cti-core.c
+++ b/drivers/hwtracing/coresight/coresight-cti-core.c
@@ -90,7 +90,6 @@ void cti_write_all_hw_regs(struct cti_drvdata *drvdata)
static int cti_enable_hw(struct cti_drvdata *drvdata)
{
struct cti_config *config = &drvdata->config;
- struct device *dev = &drvdata->csdev->dev;
unsigned long flags;
int rc = 0;
@@ -151,7 +150,6 @@ static void cti_cpuhp_enable_hw(struct cti_drvdata *drvdata)
static int cti_disable_hw(struct cti_drvdata *drvdata)
{
struct cti_config *config = &drvdata->config;
- struct device *dev = &drvdata->csdev->dev;
struct coresight_device *csdev = drvdata->csdev;
spin_lock(&drvdata->spinlock);
base-commit: 665c157e0204176023860b51a46528ba0ba62c33
--
2.38.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] coresight: cti: Remove unused variables in cti_{dis,en}able_hw()
2022-10-24 15:12 [PATCH] coresight: cti: Remove unused variables in cti_{dis,en}able_hw() Nathan Chancellor
@ 2022-10-24 15:23 ` Suzuki K Poulose
0 siblings, 0 replies; 2+ messages in thread
From: Suzuki K Poulose @ 2022-10-24 15:23 UTC (permalink / raw)
To: Nathan Chancellor, Mathieu Poirier
Cc: Mike Leach, Leo Yan, James Clark, coresight, linux-arm-kernel,
linux-kernel
Hi Nathan
On 24/10/2022 16:12, Nathan Chancellor wrote:
> Clean up the following warnings, as the variables are no longer used.
>
> drivers/hwtracing/coresight/coresight-cti-core.c:93:17: warning: unused variable 'dev' [-Wunused-variable]
> struct device *dev = &drvdata->csdev->dev;
> ^
> drivers/hwtracing/coresight/coresight-cti-core.c:154:17: warning: unused variable 'dev' [-Wunused-variable]
> struct device *dev = &drvdata->csdev->dev;
> ^
> 2 warnings generated.
>
> Fixes: 665c157e0204 ("coresight: cti: Fix hang in cti_disable_hw()")
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Thanks for your patch, this is now reverted upstream. I have
queued a patch locally to sqaush the changes and plan to push
it once the revert lands upstream.
Thanks
Suzuki
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-24 15:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-24 15:12 [PATCH] coresight: cti: Remove unused variables in cti_{dis,en}able_hw() Nathan Chancellor
2022-10-24 15:23 ` Suzuki K Poulose
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).