[PATCH] elfcore: open brace '{' following struct go on the same line and Add missing spaces after '*'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ERROR: open brace '{' following struct go on the same line

ERROR: "foo* bar" should be "foo *bar"

Signed-off-by: Ran Sun <sunran001@xxxxxxxxxx>
---
 include/linux/elfcore.h | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index bd5560542c79..88dea6c5091a 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -14,8 +14,7 @@

 struct coredump_params;

-struct elf_siginfo
-{
+struct elf_siginfo {
 	int	si_signo;			/* signal number */
 	int	si_code;			/* extra code */
 	int	si_errno;			/* errno */
@@ -29,8 +28,7 @@ struct elf_siginfo
  * the SVR4 structure, but more Linuxy, with things that Linux does
  * not support and which gdb doesn't really use excluded.
  */
-struct elf_prstatus_common
-{
+struct elf_prstatus_common {
 	struct elf_siginfo pr_info;	/* Info associated with signal */
 	short	pr_cursig;		/* Current signal */
 	unsigned long pr_sigpend;	/* Set of pending signals */
@@ -45,8 +43,7 @@ struct elf_prstatus_common
 	struct __kernel_old_timeval pr_cstime;	/* Cumulative system time */
 };

-struct elf_prstatus
-{
+struct elf_prstatus {
 	struct elf_prstatus_common common;
 	elf_gregset_t pr_reg;	/* GP registers */
 	int pr_fpvalid;		/* True if math co-processor being used.  */
@@ -54,8 +51,7 @@ struct elf_prstatus

 #define ELF_PRARGSZ	(80)	/* Number of chars for args */

-struct elf_prpsinfo
-{
+struct elf_prpsinfo {
 	char	pr_state;	/* numeric process state */
 	char	pr_sname;	/* char for pr_state */
 	char	pr_zomb;	/* zombie */
@@ -84,7 +80,7 @@ static inline void elf_core_copy_regs(elf_gregset_t *elfregs, struct pt_regs *re
 #endif
 }

-static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t* elfregs) +static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t *elfregs)
 {
 #if defined (ELF_CORE_COPY_TASK_REGS)
 	return ELF_CORE_COPY_TASK_REGS(t, elfregs);



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux