From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: "Christian Thießen" <christian.thiessen@airbus.com>,
"Ahmad Fatoum" <a.fatoum@barebox.org>
Subject: [PATCH] checkpatch: drop ENOSYS warning
Date: Tue, 16 Sep 2025 09:19:35 +0200 [thread overview]
Message-ID: <20250916071938.3224210-1-a.fatoum@barebox.org> (raw)
We don't have system calls in barebox and we make ample use of ENOSYS,
so let's drop the checkpatch warning to avoid confusion.
Reported-by: Christian Thießen <christian.thiessen@airbus.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
scripts/checkpatch.pl | 8 --------
1 file changed, 8 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9093841d8179..1592497fb38a 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -4102,14 +4102,6 @@ sub process {
"Prefer dev_$level(... to dev_printk(KERN_$orig, ...\n" . $herecurr);
}
-# ENOSYS means "bad syscall nr" and nothing else. This will have a small
-# number of false positives, but assembly files are not checked, so at
-# least the arch entry code will not trigger this warning.
- if ($line =~ /\bENOSYS\b/) {
- WARN("ENOSYS",
- "ENOSYS means 'invalid syscall nr' and nothing else\n" . $herecurr);
- }
-
# function brace can't be on same line, except for #defines of do while,
# or if closed on same line
if ($perl_version_ok &&
--
2.47.3
next reply other threads:[~2025-09-16 7:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-16 7:19 Ahmad Fatoum [this message]
2025-09-16 9:37 ` Sascha Hauer
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=20250916071938.3224210-1-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
--cc=christian.thiessen@airbus.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