* [PATCH -next] coresight: remove unneeded semicolon
@ 2025-11-20 9:41 Jiapeng Chong
2025-11-20 11:23 ` James Clark
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2025-11-20 9:41 UTC (permalink / raw)
To: suzuki.poulose
Cc: mike.leach, james.clark, alexander.shishkin, coresight,
linux-arm-kernel, linux-kernel, Jiapeng Chong, Abaci Robot
No functional modification involved.
./drivers/hwtracing/coresight/coresight-priv.h:238:2-3: Unneeded semicolon.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=27327
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/hwtracing/coresight/coresight-priv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/coresight-priv.h b/drivers/hwtracing/coresight/coresight-priv.h
index fd896ac07942..16f0cee8cad6 100644
--- a/drivers/hwtracing/coresight/coresight-priv.h
+++ b/drivers/hwtracing/coresight/coresight-priv.h
@@ -235,7 +235,7 @@ static inline void *coresight_get_uci_data_from_amba(const struct amba_id *table
if ((pid & table->mask) == table->id)
return coresight_get_uci_data(table);
table++;
- };
+ }
return NULL;
}
--
2.43.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] coresight: remove unneeded semicolon
2025-11-20 9:41 [PATCH -next] coresight: remove unneeded semicolon Jiapeng Chong
@ 2025-11-20 11:23 ` James Clark
0 siblings, 0 replies; 2+ messages in thread
From: James Clark @ 2025-11-20 11:23 UTC (permalink / raw)
To: Jiapeng Chong, suzuki.poulose
Cc: mike.leach, alexander.shishkin, coresight, linux-arm-kernel,
linux-kernel, Abaci Robot
On 20/11/2025 9:41 am, Jiapeng Chong wrote:
> No functional modification involved.
>
> ./drivers/hwtracing/coresight/coresight-priv.h:238:2-3: Unneeded semicolon.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=27327
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> drivers/hwtracing/coresight/coresight-priv.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hwtracing/coresight/coresight-priv.h b/drivers/hwtracing/coresight/coresight-priv.h
> index fd896ac07942..16f0cee8cad6 100644
> --- a/drivers/hwtracing/coresight/coresight-priv.h
> +++ b/drivers/hwtracing/coresight/coresight-priv.h
> @@ -235,7 +235,7 @@ static inline void *coresight_get_uci_data_from_amba(const struct amba_id *table
> if ((pid & table->mask) == table->id)
> return coresight_get_uci_data(table);
> table++;
> - };
> + }
> return NULL;
> }
>
Reviewed-by: James Clark <james.clark@linaro.org>
I turned on -Wextra-semi-stmt for Coresight but it results in hundreds
warnings because of the way macros like wmb() are always used with a
semicolon.
So I'm not really sure what the point of fixing these up is? Because
they can never all be fixed without a fundamental style change so why
not just ignore them?
James
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-20 11:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-20 9:41 [PATCH -next] coresight: remove unneeded semicolon Jiapeng Chong
2025-11-20 11:23 ` James Clark
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®