[xen master] gcov: return EOPNOTSUPP for unimplemented gcov sysctl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] gcov: return EOPNOTSUPP for unimplemented gcov sysctl

patchbot
commit 9862926902ba035a3741afdf03da40a4d4b57a6f
Author:     Roger Pau Monné <[hidden email]>
AuthorDate: Wed Nov 8 13:41:51 2017 +0100
Commit:     Jan Beulich <[hidden email]>
CommitDate: Wed Nov 8 13:41:51 2017 +0100

    gcov: return EOPNOTSUPP for unimplemented gcov sysctl
   
    ENOSYS should only be used by unimplemented top-level syscalls. Use
    EOPNOTSUPP instead.
   
    Suggested-by: Jan Beulich <[hidden email]>
    Signed-off-by: Roger Pau Monné <[hidden email]>
    Reviewed-by: Jan Beulich <[hidden email]>
    Release-acked-by: Julien Grall <[hidden email]>
---
 xen/common/gcov/gcov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/common/gcov/gcov.c b/xen/common/gcov/gcov.c
index 35653fd..283d2ee 100644
--- a/xen/common/gcov/gcov.c
+++ b/xen/common/gcov/gcov.c
@@ -239,7 +239,7 @@ int sysctl_gcov_op(struct xen_sysctl_gcov_op *op)
         break;
 
     default:
-        ret = -ENOSYS;
+        ret = -EOPNOTSUPP;
         break;
     }
 
--
generated by git-patchbot for /home/xen/git/xen.git#master


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog