-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/sys/unix: Missing constants for fadvise() for Linux/arm #16816
Comments
That adds maintenance pain for everybody in the future when your manual edits would keep getting auto-removed, and people would have to keep manually adding them back. Related: #15282 /cc @ianlancetaylor |
Ok, I understand. If there is anything I can do to help (at least anything that's not "refactor this all"), please let me know. |
Actually, let's just separate out the hand-written files. As long as you don't manually touch the machine-generated ones we should be fine. Feel free to send CLs adding to or creating |
That would work for now, adding the constants manually to a new file In order to mitigate this, the constants need to be removed from I'd really like to solve my problem here, but I don't that this is a good idea. How is If I understood @ianlancetaylor in #15114 (comment) correctly, rebuilding the machine generated files produces many unrelated changes (which confirms my observations). |
You shouldn't need to change types_linux.go or add types_linux_arm.go. Just run mkall.sh on a ARM GNU/Linux system. Then manually revert the unrelated changes. |
Ok, I'll see if I can get access to some box on ARM. |
Submitted as https://go-review.googlesource.com/31641 |
CL https://golang.org/cl/31641 mentions this issue. |
This is a followup-issue for #15114, which added constants for the
Fadvise()
syscall for amd64 and 386 on Linux. I discovered that the constants are also missing for Linux/arm. For all the other architectures they are there, only arm is missing.I've tried running
mkall.sh
but this fails:Is
mkall.sh
supposed to be run on the target architecture?I propose adding the constants FADV_* manually to
ztypes_linux_arm.go
, the constants are the same: https://github.com/thorvalds/linux/blob/master/include/uapi/linux/fadvise.hWould a CL which adds the constants manually be accepted?
Could you please advise me how to add the constants for Linux on arm?
The text was updated successfully, but these errors were encountered: