[PATCH] elfcore.h: add trailing semi-colon in elf_core_copy_regs()
From: Marcin Nowakowski
Date: Mon Nov 21 2016 - 07:26:01 EST
Invocation of ELF_CORE_COPY_REGS macro is missing a trailing semi-colon
thus requiring all macro implementations to include one, which is
contrary to the typical kernel coding style and checkpatch.pl
complains about such macro definitions.
This makes it also consistent with all other ELF_CORE_* macro
invocations throughout this file.
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@xxxxxxxxxx>
---
include/linux/elfcore.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index 698d51a..be55557 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -11,7 +11,7 @@ struct coredump_params;
static inline void elf_core_copy_regs(elf_gregset_t *elfregs, struct pt_regs *regs)
{
#ifdef ELF_CORE_COPY_REGS
- ELF_CORE_COPY_REGS((*elfregs), regs)
+ ELF_CORE_COPY_REGS((*elfregs), regs);
#else
BUG_ON(sizeof(*elfregs) != sizeof(*regs));
*(struct pt_regs *)elfregs = *regs;
--
2.7.4