Skip to content

Conversation

idoleat
Copy link
Collaborator

@idoleat idoleat commented Apr 3, 2024

The original include/linux/compiler.h does not contain the definition of READ_ONCE and WRITE_ONCE macro. Other compiler.h files locate at tools/include/linux/compiler.h and tools/virtio/linux/compiler.h. Considering the former ought to be the commonly included one, by it's file placement, I replace the reference with the link to the former.

The original `include/linux/compiler.h` does not contain the definition
of READ_ONCE and WRITE_ONCE macro. Other `compiler.h` files locate at
`tools/include/linux/compiler.h` and `tools/virtio/linux/compiler.h`.
Considering the former ought to be the commonly included one, by it's
file placement, I replace the reference with the link to the
former.
@jserv
Copy link
Contributor

jserv commented Apr 3, 2024

Specify the header include/asm-generic/rwonce.h instead.

Replace reference to `tools/include/linux/compiler.h` with reference to
`include/asm-generic/rwonce.h`
@jserv jserv merged commit d26ef59 into sysprog21:main Apr 3, 2024
@jserv
Copy link
Contributor

jserv commented Apr 3, 2024

Thank @idoleat for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants