Skip to content

Commit 6e16631

Browse files
rddunlaprichardweinberger
authored andcommitted
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 <[email protected]> Cc: Jeff Dike <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Anton Ivanov <[email protected]> Cc: [email protected] Signed-off-by: Richard Weinberger <[email protected]>
1 parent c521db9 commit 6e16631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/um/include/asm/pgtable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
302302
struct mm_struct;
303303
extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr);
304304

305-
#define update_mmu_cache(vma,address,ptep) do ; while (0)
305+
#define update_mmu_cache(vma,address,ptep) do {} while (0)
306306

307307
/* Encode and de-code a swap entry */
308308
#define __swp_type(x) (((x).val >> 5) & 0x1f)

0 commit comments

Comments
 (0)