aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2019-12-06 08:27:51 +0100
committerVasily Gorbik <gor@linux.ibm.com>2019-12-11 19:53:24 +0100
commit157309a97015d8b32d65847d8a6d493d1a958e93 (patch)
tree2e04f90a8e2822c8c91fb98fff4df5bb9b700e9d /arch/s390
parents390/cpum_sf: Avoid SBD overflow condition in irq handler (diff)
downloadlinux-dev-157309a97015d8b32d65847d8a6d493d1a958e93.tar.xz
linux-dev-157309a97015d8b32d65847d8a6d493d1a958e93.zip
s390/uv: use EOPNOTSUPP instead of ENOTSUPP
ENOTSUP is just an internal kernel error and should never reach userspace. The return value of the share function is not exported to userspace, but to avoid giving bad examples let us use EOPNOTSUPP: Suggested-by: Heiko Carstens <heiko.carstens@de.ibm.com> Acked-by: Janosch Frank <frankja@linux.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/include/asm/uv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h
index ef3c00b049ab..4093a2856929 100644
--- a/arch/s390/include/asm/uv.h
+++ b/arch/s390/include/asm/uv.h
@@ -86,7 +86,7 @@ static inline int share(unsigned long addr, u16 cmd)
};
if (!is_prot_virt_guest())
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
/*
* Sharing is page wise, if we encounter addresses that are
* not page aligned, we assume something went wrong. If