mm: Use static initialisers for immutable fields of 'struct vm_fault'
authorWill Deacon <will@kernel.org>
Thu, 14 Jan 2021 15:42:14 +0000 (15:42 +0000)
committerWill Deacon <will@kernel.org>
Thu, 21 Jan 2021 12:50:18 +0000 (12:50 +0000)
commit8c63ca5bc3e19f11128e8e285dcf20aac6768f97
tree49a45f35182ff79bca8132b5e8c432b5b703ac00
parent2b635dd372f6c8f27644c662bb48d10376ce561a
mm: Use static initialisers for immutable fields of 'struct vm_fault'

In preparation for const-ifying the anonymous struct field of
'struct vm_fault', ensure that it is initialised using designated
initialisers.

Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
mm/shmem.c
mm/swapfile.c