aboutsummaryrefslogtreecommitdiffstats
path: root/lib/errname.c
diff options
context:
space:
mode:
authorHelge Deller <[email protected]>2023-11-23 19:28:27 +0000
committerHelge Deller <[email protected]>2023-11-25 08:43:18 +0000
commite5f3e299a2b1e9c3ece24a38adfc089aef307e8a (patch)
tree225799adfb44bfc2881d76512a3683f8ed90f315 /lib/errname.c
parentparisc: Use natural CPU alignment for bug_table (diff)
downloadkernel-e5f3e299a2b1e9c3ece24a38adfc089aef307e8a.tar.gz
kernel-e5f3e299a2b1e9c3ece24a38adfc089aef307e8a.zip
parisc: Drop the HP-UX ENOSYM and EREMOTERELEASE error codes
Those return codes are only defined for the parisc architecture and are leftovers from when we wanted to be HP-UX compatible. They are not returned by any Linux kernel syscall but do trigger problems with the glibc strerrorname_np() and strerror() functions as reported in glibc issue #31080. There is no need to keep them, so simply remove them. Signed-off-by: Helge Deller <[email protected]> Reported-by: Bruno Haible <[email protected]> Closes: https://sourceware.org/bugzilla/show_bug.cgi?id=31080 Cc: [email protected]
Diffstat (limited to 'lib/errname.c')
-rw-r--r--lib/errname.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/errname.c b/lib/errname.c
index dd1b998552cd..4f9112b38f3a 100644
--- a/lib/errname.c
+++ b/lib/errname.c
@@ -111,9 +111,6 @@ static const char *names_0[] = {
E(ENOSPC),
E(ENOSR),
E(ENOSTR),
-#ifdef ENOSYM
- E(ENOSYM),
-#endif
E(ENOSYS),
E(ENOTBLK),
E(ENOTCONN),
@@ -144,9 +141,6 @@ static const char *names_0[] = {
#endif
E(EREMOTE),
E(EREMOTEIO),
-#ifdef EREMOTERELEASE
- E(EREMOTERELEASE),
-#endif
E(ERESTART),
E(ERFKILL),
E(EROFS),