Skip to content

x/sys/unix: Missing constants for fadvise() for Linux/arm #16816

@fd0

Description

@fd0

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:

$ GOOS=linux GOARCH=arm ./mkall.sh
gcc: error: unrecognized command line option '-marm'; did you mean '-mabm'?
gcc: error: unrecognized command line option '-marm'; did you mean '-mabm'?
fork/exec /tmp/go-build154582490/command-line-arguments/_obj/exe/mkpost: exec format error

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.h

Would a CL which adds the constants manually be accepted?

Could you please advise me how to add the constants for Linux on arm?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions