From 621f43ffe2eb4e2565663f14f8027467b1a8146e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Fri, 20 Jun 2025 18:56:17 +0200 Subject: [PATCH] linuxkpi: Declare several log message prefixes The amdgpu DRM driver started to use `HW_ERR` in Linux 6.9. Reviewed by: emaste, manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50990 --- sys/compat/linuxkpi/common/include/linux/printk.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/printk.h b/sys/compat/linuxkpi/common/include/linux/printk.h index da9d45122d4..d2d19768278 100644 --- a/sys/compat/linuxkpi/common/include/linux/printk.h +++ b/sys/compat/linuxkpi/common/include/linux/printk.h @@ -94,4 +94,10 @@ print_hex_dump_bytes(const char *prefix_str, const int prefix_type, 0; \ }) +#define FW_BUG "[Firmware Bug]: " +#define FW_WARN "[Firmware Warn]: " +#define FW_INFO "[Firmware Info]: " +#define HW_ERR "[Hardware Error]: " +#define DEPRECATED "[Deprecated]: " + #endif /* _LINUXKPI_LINUX_PRINTK_H_ */