um: pgtable.h: Fix W=1 warning for empty body in 'do' statement
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 14 Apr 2021 06:43:48 +0000 (23:43 -0700)
committerRichard Weinberger <richard@nod.at>
Thu, 15 Apr 2021 21:10:46 +0000 (23:10 +0200)
commit6e166319a63448c1ba9e310ddd94c8e3e9ac4e3c
tree00cce8d0ce071acfbfc38acce0ff7b026143b51f
parentc521db95d4e3f7ba7dd8fd0679ff148d848c1d4b
um: pgtable.h: Fix W=1 warning for empty body in 'do' statement

Use the common kernel style to eliminate a warning:

./arch/um/include/asm/pgtable.h:305:47: warning: suggest braces around empty body in ‘do’ statement [-Wempty-body]
 #define update_mmu_cache(vma,address,ptep) do ; while (0)
                                               ^
mm/filemap.c:3212:3: note: in expansion of macro ‘update_mmu_cache’
   update_mmu_cache(vma, addr, vmf->pte);
   ^~~~~~~~~~~~~~~~

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: linux-um@lists.infradead.org
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/pgtable.h