Skip to content

Commit

Permalink
um: elf.h: Fix W=1 warning for empty body in 'do' statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Richard Weinberger committed Apr 15, 2021
1 parent 6e16631 commit 1a594f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/um/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1a594f0

Please sign in to comment.