diff mbox series

[v2] checkpatch: Ignore ENOSYS warnings

Message ID 20210415020221.819731-1-seanga2@gmail.com
State Accepted
Commit 6829d60702706b95a7271fbf3db1981c7ce9e6b5
Delegated to: Tom Rini
Headers show
Series [v2] checkpatch: Ignore ENOSYS warnings | expand

Commit Message

Sean Anderson April 15, 2021, 2:02 a.m. UTC
There are no system calls in U-Boot, but ENOSYS is still allowed (and
preferred since 42a2668743 ("dm: core: Document the common error codes")).
Silence this warning.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Changes in v2:
- Removed accidentally-included tag

 .checkpatch.conf | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini April 23, 2021, 4:24 p.m. UTC | #1
On Wed, Apr 14, 2021 at 10:02:21PM -0400, Sean Anderson wrote:

> There are no system calls in U-Boot, but ENOSYS is still allowed (and
> preferred since 42a2668743 ("dm: core: Document the common error codes")).
> Silence this warning.
> 
> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/.checkpatch.conf b/.checkpatch.conf
index ed0c2150ba..9e40ea060b 100644
--- a/.checkpatch.conf
+++ b/.checkpatch.conf
@@ -26,6 +26,9 @@ 
 # addresses are __aligned(2)".
 --ignore PREFER_ETHER_ADDR_COPY
 
+# ENOSYS is a conventionally used error, even though U-Boot lacks system calls.
+--ignore ENOSYS
+
 # A bit shorter of a description is OK with us.
 --min-conf-desc-length=2