diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2019-12-06 10:27:51 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-12-11 21:53:24 +0300 |
commit | 157309a97015d8b32d65847d8a6d493d1a958e93 (patch) | |
tree | 2e04f90a8e2822c8c91fb98fff4df5bb9b700e9d /arch | |
parent | 0539ad0b22877225095d8adef0c376f52cc23834 (diff) | |
download | linux-157309a97015d8b32d65847d8a6d493d1a958e93.tar.xz |
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')
-rw-r--r-- | arch/s390/include/asm/uv.h | 2 |
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 |