diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2023-08-25 18:40:26 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-08-25 18:40:26 +0300 |
commit | 8879515e1219857df1f142e23840b91a37cbde88 (patch) | |
tree | e8b50bda9faeb91ae9f8b30d5fee22fa533591b0 /arch | |
parent | a038ae7148469ab6cf4afadb155a15d9554a0b59 (diff) | |
download | linux-8879515e1219857df1f142e23840b91a37cbde88.tar.xz |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/loongarch/include/asm/ptrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/include/asm/ptrace.h b/arch/loongarch/include/asm/ptrace.h index 164bc90672e4..f3ddaed9ef7f 100644 --- a/arch/loongarch/include/asm/ptrace.h +++ b/arch/loongarch/include/asm/ptrace.h @@ -162,7 +162,7 @@ static inline void regs_set_return_value(struct pt_regs *regs, unsigned long val #define instruction_pointer(regs) ((regs)->csr_era) #define profile_pc(regs) instruction_pointer(regs) -extern void die(const char *, struct pt_regs *); +extern void die(const char *str, struct pt_regs *regs); static inline void die_if_kernel(const char *str, struct pt_regs *regs) { |