From: James Clark <james.clark@linaro.org>
To: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>, suzuki.poulose@arm.com
Cc: mike.leach@linaro.org, alexander.shishkin@linux.intel.com,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Abaci Robot <abaci@linux.alibaba.com>
Subject: Re: [PATCH -next] coresight: remove unneeded semicolon
Date: Thu, 20 Nov 2025 11:23:55 +0000 [thread overview]
Message-ID: <30c078df-82ff-4914-b5a2-58cb2d6dd073@linaro.org> (raw)
In-Reply-To: <20251120094105.2766068-1-jiapeng.chong@linux.alibaba.com>
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
prev parent reply other threads:[~2025-11-20 11:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-20 9:41 Jiapeng Chong
2025-11-20 11:23 ` James Clark [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30c078df-82ff-4914-b5a2-58cb2d6dd073@linaro.org \
--to=james.clark@linaro.org \
--cc=abaci@linux.alibaba.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=coresight@lists.linaro.org \
--cc=jiapeng.chong@linux.alibaba.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.leach@linaro.org \
--cc=suzuki.poulose@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®