-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc][errno] Remove non asm generic error number #92172
Conversation
@llvm/pr-subscribers-libc Author: Robin Caloudis (robincaloudis) ChangesThe following small thing caught my eye:
Full diff: https://github.com/llvm/llvm-project/pull/92172.diff 1 Files Affected:
diff --git a/libc/include/llvm-libc-macros/generic-error-number-macros.h b/libc/include/llvm-libc-macros/generic-error-number-macros.h
index b5b1b676dacc3..cb4411fbac665 100644
--- a/libc/include/llvm-libc-macros/generic-error-number-macros.h
+++ b/libc/include/llvm-libc-macros/generic-error-number-macros.h
@@ -43,7 +43,6 @@
#define EPIPE 32
#define EDOM 33
#define ERANGE 34
-#define EILSEQ 35
#define ENAMETOOLONG 36
#define EOVERFLOW 75
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this!
You are welcome. Do you mind merging this PR? I still lack write access. |
Hi, |
Thanks for pointing out! Yes, it did. I realised it too. Didn't manage to fix it in the morning. I will look into it around 6pm (UTC+1). You are more than welcome to go ahead if you have an idea on how to fix the build. Thanks! |
This fixes a build error on the AMDGPU buildbot introduced in PR llvm#92172
This fixes a build error on the AMDGPU buildbot introduced in PR #92172
The following small thing caught my eye: 1) `EILSEQ` is not part of the generic asm error number macros. See the [full list of generic asm errno codes](https://github.com/torvalds/linux/blob/4b95dc87362aa57bdd0dcbad109ca5e5ef3cbb6c/include/uapi/asm-generic/errno-base.h). AFAIK the generic asm errno numbers are common between different operating systems and architectures. `EILSEQ` is not part of this common set of errno's. 2) `EILSEQ`'s value is wrong. During the addition of `EILSEQ` in https://reviews.llvm.org/D151129, the value `35` was probably chosen as its the consecutive number. This is not correct. The actual values can be looked up for example here: * [For Linux kernel](https://github.com/search?q=repo%3Atorvalds%2Flinux+EILSEQ&type=code&p=1): `EILSEQ = 84` (uapi; i.e. x86_64), `EILSEQ = 88` (mips), `EILSEQ = 47` (parisc) * [For Darwin kernel](https://github.com/apple-oss-distributions/xnu/blob/main/bsd/sys/errno.h#L237): `EILSEQ = 92`
This fixes a build error on the AMDGPU buildbot introduced in PR llvm#92172
The following small thing caught my eye:
EILSEQ
is not part of the generic asm error number macros. See the full list of generic asm errno codes. AFAIK the generic asm errno numbers are common between different operating systems and architectures.EILSEQ
is not part of this common set of errno's.EILSEQ
's value is wrong. During the addition ofEILSEQ
in https://reviews.llvm.org/D151129, the value35
was probably chosen as its the consecutive number. This is not correct. The actual values can be looked up for example here:EILSEQ = 84
(uapi; i.e. x86_64),EILSEQ = 88
(mips),EILSEQ = 47
(parisc)EILSEQ = 92