The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Thushara.M.S" <thusharms@gmail.com>
To: jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org,
	anna-maria@linutronix.de, frederic@kernel.org, shuah@kernel.org,
	linux-kernel@vger.kernel.org
Cc: linux-kselftest@vger.kernel.org, "Thushara.M.S" <thusharms@gmail.com>
Subject: [PATCH] selftests: timers: rtcpie: Fix checkpatch reported errors
Date: Sat, 24 May 2025 18:30:11 +0000	[thread overview]
Message-ID: <20250524183011.114490-1-thusharms@gmail.com> (raw)

Errors reported:
ERROR: spaces required around that '=' (ctx:VxV)
ERROR: spaces required around that '<=' (ctx:VxV)
ERROR: spaces required around that '*=' (ctx:VxV)
ERROR: spaces required around that '=' (ctx:VxV)
ERROR: spaces required around that '<' (ctx:VxV)
ERROR: space required after that ',' (ctx:VxV)

total: 6 errors, 0 warnings, 141 lines checked

Signed-off-by: Thushara.M.S <thusharms@gmail.com>
---
 tools/testing/selftests/timers/rtcpie.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/testing/selftests/timers/rtcpie.c b/tools/testing/selftests/timers/rtcpie.c
index 7c07edd0d450..aa5a20fd8df2 100644
--- a/tools/testing/selftests/timers/rtcpie.c
+++ b/tools/testing/selftests/timers/rtcpie.c
@@ -75,7 +75,7 @@ int main(int argc, char **argv)
 	fflush(stderr);
 
 	/* The frequencies 128Hz, 256Hz, ... 8192Hz are only allowed for root. */
-	for (tmp=2; tmp<=64; tmp*=2) {
+	for (tmp = 2; tmp <= 64; tmp *= 2) {
 
 		retval = ioctl(fd, RTC_IRQP_SET, tmp);
 		if (retval == -1) {
@@ -99,7 +99,7 @@ int main(int argc, char **argv)
 			exit(errno);
 		}
 
-		for (i=1; i<21; i++) {
+		for (i = 1; i < 21; i++) {
 			gettimeofday(&start, NULL);
 			/* This blocks */
 			retval = read(fd, &data, sizeof(unsigned long));
@@ -118,7 +118,7 @@ int main(int argc, char **argv)
 				exit(-1);
 			}
 
-			fprintf(stderr, " %d",i);
+			fprintf(stderr, " %d", i);
 			fflush(stderr);
 		}
 
-- 
2.43.0


                 reply	other threads:[~2025-05-24 18:30 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=20250524183011.114490-1-thusharms@gmail.com \
    --to=thusharms@gmail.com \
    --cc=anna-maria@linutronix.de \
    --cc=frederic@kernel.org \
    --cc=jstultz@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=sboyd@kernel.org \
    --cc=shuah@kernel.org \
    --cc=tglx@linutronix.de \
    /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