lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <e7038a35f30f746365c4fcf839854168@208suo.com>
Date:   Thu, 20 Jul 2023 11:09:34 +0800
From:   sunran001@...suo.com
To:     mchehab@...nel.org
Cc:     linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] elfcore: open brace '{' following struct go on the same line
 and Add missing spaces after '*'

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

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

Signed-off-by: Ran Sun <sunran001@...suo.com>
---
  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);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ