* [PATCH] elfcore: open brace '{' following struct go on the same line and Add missing spaces after '*'
[not found] <20230720030824.1505-1-xujianghui@cdjrlc.com>
@ 2023-07-20 3:09 ` sunran001
0 siblings, 0 replies; only message in thread
From: sunran001 @ 2023-07-20 3:09 UTC (permalink / raw)
To: mchehab; +Cc: linux-media, linux-kernel
ERROR: open brace '{' following struct go on the same line
ERROR: "foo* bar" should be "foo *bar"
Signed-off-by: Ran Sun <sunran001@208suo.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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-20 3:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20230720030824.1505-1-xujianghui@cdjrlc.com>
2023-07-20 3:09 ` [PATCH] elfcore: open brace '{' following struct go on the same line and Add missing spaces after '*' sunran001
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).