]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "io_uring: mark io_uring_fops/io_op_defs as __read_mostly"
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Oct 2020 21:01:40 +0000 (15:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Oct 2020 15:25:43 +0000 (09:25 -0600)
commit76549924ec24e11853e06c5878c8ae7237a7ea6c
treed64954b5c85de1898e6dccb685b5efc41b2120f9
parent5cb8b79389ac52c6e1cf3db2f9ed646309f932b0
Revert "io_uring: mark io_uring_fops/io_op_defs as __read_mostly"

This reverts commit 46fb409b7ce5480779d9e3e88e9036fd4bd9e110.

This change didn't make a lot of sense, and as Linus reports, it actually
fails on clang:

   /tmp/io_uring-dd40c4.s:26476: Warning: ignoring changed section
   attributes for .data..read_mostly

The arrays are already marked const so, by definition, they are not
just read-mostly, they are read-only.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c