Skip to contentSkip to conversation

checkpatch: Ignore ENOSYS warnings

PATCH New Sean Anderson 2 participants 4 messages Apr 12, 2021 – Apr 14, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 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.

Seriies-to: sjg
---

 .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 1/1 checkpatch: Ignore ENOSYS warnings

Hi Sean,

Quoted 7 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.

Seriies-to: sjg

This looks OK, except for that tag.

Regards,
Simon

Quoted 22 lines

---

 .checkpatch.conf | 3 +++
 1 file changed, 3 insertions(+)
.checkpatch.conf +3 -1
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
 
--

2.31.0

#2 lore raw

PATCH 1/1 checkpatch: Ignore ENOSYS warnings

Quoted 4 lines · Simon Glass

Hi Sean,

Quoted 1 line · Sean Anderson
Quoted 8 lines
Quoted 6 lines

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.

Seriies-to: sjg

This looks OK, except for that tag.

Should I resend the patch?

--Sean

Quoted 27 lines

Regards,
Simon

Quoted 22 lines

---

  .checkpatch.conf | 3 +++
  1 file changed, 3 insertions(+)
.checkpatch.conf +3 -1
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
 
--

2.31.0

#3 lore raw

PATCH 1/1 checkpatch: Ignore ENOSYS warnings

Hi Sean,

Quoted 10 lines · Sean Anderson
Quoted 8 lines · Simon Glass

Hi Sean,

Quoted 5 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.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Seriies-to: sjg

This looks OK, except for that tag.

Should I resend the patch?

Yes I think that would be easiest.