Skip to contentSkip to conversation

riscv: kexec_elf: Remove unused pr_fmt definition

PATCH In review Hui Wang 2 participants 2 messages May 25 – May 28 RISC-V

lore
Share & tools
lore

Hui Wang

author
#0 lore raw

PATCH 1/1 riscv: kexec_elf: Remove unused pr_fmt definition

Remove the pr_fmt macro as no pr_*() calls exist in this file. The prefix string "kexec_image: " is also not appropriate for kexec_elf.c, if pr_fmt is needed in the future, referring to kexec_image.c, a more appropriate prefix like "kexec_file(elf): " can be added at that time.

---
 arch/riscv/kernel/kexec_elf.c | 2 --
 1 file changed, 2 deletions(-)
arch/riscv/kernel/kexec_elf.c +0 -2
index 531d348db84d..05fd33104f3d 100644
@@ -10,8 +10,6 @@
  * for kernel.
  */
 
-#define pr_fmt(fmt)	"kexec_image: " fmt
-
 #include <linux/elf.h>
 #include <linux/kexec.h>
 #include <linux/slab.h>
Signature · 7 lines
2.43.0


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
maintainer
#1 lore raw
Quoted 6 lines · Hui Wang

Remove the pr_fmt macro as no pr_*() calls exist in this file. The prefix string "kexec_image: " is also not appropriate for kexec_elf.c, if pr_fmt is needed in the future, referring to kexec_image.c, a more appropriate prefix like "kexec_file(elf): " can be added at that time.

Thanks, queued for v7.2.

- Paul

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv