Skip to contentSkip to conversation

checkpatch: Ignore ENOSYS warnings

PATCH New Sean Anderson 2 participants 2 messages Apr 15, 2021 – Apr 23, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 checkpatch: Ignore ENOSYS warnings

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.

---

Changes in v2:
- Removed accidentally-included tag

 .checkpatch.conf | 3 +++
 1 file changed, 3 insertions(+)
.checkpatch.conf +3 -0
index ed0c2150ba..9e40ea060b 100644
@@ -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
 
Signature · 1 line
2.31.0
#1 lore raw

PATCH v2 1/1 checkpatch: Ignore ENOSYS warnings

Quoted 6 lines · Sean Anderson

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210423/fa8678d8/attachment.sig>