Skip to content

Commit 8879515

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Add identifier names to arguments of die() declaration
Add identifier names to arguments of die() declaration in ptrace.h to fix the following checkpatch warnings: WARNING: function definition argument 'const char *' should also have an identifier name WARNING: function definition argument 'struct pt_regs *' should also have an identifier name Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent a038ae7 commit 8879515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/loongarch/include/asm/ptrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static inline void regs_set_return_value(struct pt_regs *regs, unsigned long val
162162
#define instruction_pointer(regs) ((regs)->csr_era)
163163
#define profile_pc(regs) instruction_pointer(regs)
164164

165-
extern void die(const char *, struct pt_regs *);
165+
extern void die(const char *str, struct pt_regs *regs);
166166

167167
static inline void die_if_kernel(const char *str, struct pt_regs *regs)
168168
{

0 commit comments

Comments
 (0)