Add the kvm_warn() and kvm_warn_ratelimited() macros to print a kernel warning. Signed-off-by: Alexandru Elisei <alexandru.elisei@xxxxxxx> --- include/linux/kvm_host.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index ae7735b490b4..ada5019ad93d 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -605,6 +605,10 @@ struct kvm { #define kvm_err(fmt, ...) \ pr_err("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__) +#define kvm_warn(fmt, ...) \ + pr_warn("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__) +#define kvm_warn_ratelimited(fmt, ...) \ + pr_warn_ratelimited("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__) #define kvm_info(fmt, ...) \ pr_info("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__) #define kvm_debug(fmt, ...) \ -- 2.33.0 _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm