mm: Mark anonymous struct field of 'struct vm_fault' as 'const'
The fields of this struct are only ever read after being initialised, so
mark it 'const' before somebody tries to modify it again. GCC will then
complain (with an error) about modification of these fields after they
have been initialised, although LLVM currently allows them without even
Hopefully, future versions of LLVM will emit a warning.
Cc: Kirill A. Shutemov <email@example.com>
Cc: Linus Torvalds <firstname.lastname@example.org>
Signed-off-by: Will Deacon <email@example.com>
1 file changed