Skip to contentSkip to conversation

gcov: return EOPNOTSUPP for unimplemented gcov domctl

PATCH In review Roger Pau Monne 3 participants 4 messages Nov 7, 2017 – Nov 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcov: return EOPNOTSUPP for unimplemented gcov domctl

ENOSYS should only be used by unimplemented top-level syscalls. Use EOPNOTSUPP instead.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Julien Grall <[email protected]>

---
 xen/common/gcov/gcov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/gcov/gcov.c +1 -1
index 35653fd8d8..283d2eec86 100644
@@ -239,7 +239,7 @@ int sysctl_gcov_op(struct xen_sysctl_gcov_op *op)
         break;
 
     default:
-        ret = -ENOSYS;
+        ret = -EOPNOTSUPP;
         break;
     }
 
Signature · 7 lines
2.13.6 (Apple Git-96)


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 07.11.17 at 13:31, <[email protected]> wrote:

ENOSYS should only be used by unimplemented top-level syscalls. Use EOPNOTSUPP instead.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw

Hi,

Quoted 8 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 07.11.17 at 13:31, <[email protected]> wrote:

ENOSYS should only be used by unimplemented top-level syscalls. Use EOPNOTSUPP instead.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#3 lore raw
In reply to Roger Pau Monne
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 07.11.17 at 13:31, <[email protected]> wrote:

ENOSYS should only be used by unimplemented top-level syscalls. Use EOPNOTSUPP instead.

Btw I've taken the liberty to make the title say "sysctl" instead of "domctl".

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel