提交 aacdc356 编写于 作者: C Corey Minyard 提交者: Zheng Zengkai

ipmi: Fix pr_fmt to avoid compilation issues

stable inclusion
from stable-v5.10.121
commit eb7a71b7b2b8ed33d05bc68f6c6f408cc3dc96f3
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=eb7a71b7b2b8ed33d05bc68f6c6f408cc3dc96f3

--------------------------------

[ Upstream commit 2ebaf18a ]

The was it was wouldn't work in some situations, simplify it.  What was
there was unnecessary complexity.
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NCorey Minyard <cminyard@mvista.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 0927d21f
......@@ -11,8 +11,8 @@
* Copyright 2002 MontaVista Software Inc.
*/
#define pr_fmt(fmt) "%s" fmt, "IPMI message handler: "
#define dev_fmt pr_fmt
#define pr_fmt(fmt) "IPMI message handler: " fmt
#define dev_fmt(fmt) pr_fmt(fmt)
#include <linux/module.h>
#include <linux/errno.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册