From: Markus Elfring <Markus.Elfring@web•de>
To: linux-arm-kernel@lists•infradead.org,
Catalin Marinas <catalin.marinas@arm•com>,
Mark Brown <broonie@kernel•org>, Will Deacon <will@kernel•org>,
Yeoreum Yun <yeoreum.yun@arm•com>,
Yicong Yang <yangyicong@hisilicon•com>
Cc: LKML <linux-kernel@vger•kernel.org>, kernel-janitors@vger•kernel.org
Subject: [PATCH] arm64/cpufeature: Simplify data output in c_show()
Date: Thu, 4 Jun 2026 15:19:15 +0200 [thread overview]
Message-ID: <7b929238-1c8c-470b-a6ad-c929090f4c82@web.de> (raw)
From: Markus Elfring <elfring@users•sourceforge.net>
Date: Thu, 4 Jun 2026 15:13:00 +0200
Move the specification for a line break from a seq_puts() call
to a seq_printf() call.
The source code was transformed by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users•sourceforge.net>
---
arch/arm64/kernel/cpuinfo.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
index d50e2a9b066b..a9704a11de57 100644
--- a/arch/arm64/kernel/cpuinfo.c
+++ b/arch/arm64/kernel/cpuinfo.c
@@ -272,10 +272,8 @@ static int c_show(struct seq_file *m, void *v)
if (cpu_have_feature(j))
seq_printf(m, " %s", hwcap_str[j]);
}
- seq_puts(m, "\n");
- seq_printf(m, "CPU implementer\t: 0x%02x\n",
- MIDR_IMPLEMENTOR(midr));
+ seq_printf(m, "\nCPU implementer\t: 0x%02x\n", MIDR_IMPLEMENTOR(midr));
seq_puts(m, "CPU architecture: 8\n");
seq_printf(m, "CPU variant\t: 0x%x\n", MIDR_VARIANT(midr));
seq_printf(m, "CPU part\t: 0x%03x\n", MIDR_PARTNUM(midr));
--
2.54.0
reply other threads:[~2026-06-04 13:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=7b929238-1c8c-470b-a6ad-c929090f4c82@web.de \
--to=markus.elfring@web$(echo .)de \
--cc=broonie@kernel$(echo .)org \
--cc=catalin.marinas@arm$(echo .)com \
--cc=kernel-janitors@vger$(echo .)kernel.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=will@kernel$(echo .)org \
--cc=yangyicong@hisilicon$(echo .)com \
--cc=yeoreum.yun@arm$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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