lkml.org 
[lkml]   [2016]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] elfcore.h: add trailing semi-colon in elf_core_copy_regs()
Date
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@imgtec.com>
---
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
\
 
 \ /
  Last update: 2016-11-21 13:26    [W:0.019 / U:1.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site