diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2021-04-14 08:43:49 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-04-15 23:10:50 +0200 |
commit | 1a594f0afa2b176531e600a6bf8074849fe2a780 (patch) | |
tree | 5663c3300ffce5412922674ff6ae6a9a696ea62f /arch/x86 | |
parent | um: pgtable.h: Fix W=1 warning for empty body in 'do' statement (diff) | |
download | linux-1a594f0afa2b176531e600a6bf8074849fe2a780.tar.xz linux-1a594f0afa2b176531e600a6bf8074849fe2a780.zip |
um: elf.h: Fix W=1 warning for empty body in 'do' statement
Use the common kernel style to eliminate a warning:
./arch/x86/um/asm/elf.h:215:32: warning: suggest braces around empty body in ‘do’ statement [-Wempty-body]
#define SET_PERSONALITY(ex) do ; while(0)
^
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>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/um/asm/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/um/asm/elf.h b/arch/x86/um/asm/elf.h index c907b20d4993..dcaf3b38a9e0 100644 --- a/arch/x86/um/asm/elf.h +++ b/arch/x86/um/asm/elf.h @@ -212,6 +212,6 @@ extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); extern long elf_aux_hwcap; #define ELF_HWCAP (elf_aux_hwcap) -#define SET_PERSONALITY(ex) do ; while(0) +#define SET_PERSONALITY(ex) do {} while(0) #endif |