diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2023-07-14 10:42:56 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-07-24 12:12:24 +0200 |
commit | 5216d853cb154a4866c9984fd41f71583e8bdd39 (patch) | |
tree | c2d66434751d0746b1474e601517fa8a8ed26764 /arch/s390/hypfs | |
parent | e7e828ebeb5d80d42c9ac514db5fb3d33367cf10 (diff) | |
download | lwn-5216d853cb154a4866c9984fd41f71583e8bdd39.tar.gz lwn-5216d853cb154a4866c9984fd41f71583e8bdd39.zip |
s390/hypfs: stop using ENOSYS error code
ENOSYS should only be returned to userspace when a syscall
is not implemented. The only known user, 'hyptop' is not explicitely
checking for -ENOSYS, therefore use EOPNOTSUPP instead. It is very
unlikely that there are other users, so this change should have no
impact on userspace.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/hypfs')
-rw-r--r-- | arch/s390/hypfs/hypfs_diag.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c index ea4c436f86a0..279b7bba4d43 100644 --- a/arch/s390/hypfs/hypfs_diag.c +++ b/arch/s390/hypfs/hypfs_diag.c @@ -67,7 +67,7 @@ void *diag204_get_buffer(enum diag204_format fmt, int *pages) *pages = diag204((unsigned long)DIAG204_SUBC_RSI | (unsigned long)DIAG204_INFO_EXT, 0, NULL); if (*pages <= 0) - return ERR_PTR(-ENOSYS); + return ERR_PTR(-EOPNOTSUPP); } diag204_buf = __vmalloc_node(array_size(*pages, PAGE_SIZE), PAGE_SIZE, GFP_KERNEL, NUMA_NO_NODE, @@ -127,7 +127,7 @@ static int diag204_probe(void) diag204_set_info_type(DIAG204_INFO_SIMPLE); goto out; } else { - rc = -ENOSYS; + rc = -EOPNOTSUPP; goto fail_store; } out: @@ -144,7 +144,7 @@ int diag204_store(void *buf, int pages) rc = diag204((unsigned long)diag204_store_sc | (unsigned long)diag204_get_info_type(), pages, buf); - return rc < 0 ? -ENOSYS : 0; + return rc < 0 ? -EOPNOTSUPP : 0; } struct dbfs_d204_hdr { |