sysprog21 / concurrency-primer

Concurrency Primer
Creative Commons Attribution Share Alike 4.0 International
79 stars 13 forks source link

Fix wrong reference to READ_ONCE and WRITE_ONCE macro #1

Closed idoleat closed 6 months ago

idoleat commented 6 months ago

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 commented 6 months ago

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

jserv commented 6 months ago

Thank @idoleat for contributing!