On Wed, Mar 29, 2023 at 12:56 PM Jens Axboe <axboe@xxxxxxxxx> wrote: > > Nope, still fails with it moved below. Ouch. I guess the 'const' cast may be the only way then. It sounds like gcc may warn whenever it sees an assignment to any structure that has a const member, rather than when it sees an assignment to that particular member. Sad. Linus