Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1419138 > unrolled thread

[PATCH] arch/blackfin/kernel/module.c: Use KBUILD_MODNAME instead of mod->name for pr_fmt()

Started bychengang@emindsoft.com.cn
First post2016-06-10 11:20 +0200
Last post2016-06-10 11:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] arch/blackfin/kernel/module.c: Use KBUILD_MODNAME instead of mod->name for pr_fmt() chengang@emindsoft.com.cn - 2016-06-10 11:20 +0200

#1419138 — [PATCH] arch/blackfin/kernel/module.c: Use KBUILD_MODNAME instead of mod->name for pr_fmt()

Fromchengang@emindsoft.com.cn
Date2016-06-10 11:20 +0200
Subject[PATCH] arch/blackfin/kernel/module.c: Use KBUILD_MODNAME instead of mod->name for pr_fmt()
Message-ID<rIqLD-2IM-9@gated-at.bofh.it>
From: Chen Gang <chengang@emindsoft.com.cn>

When use pr_warn(), it will break building because of mod undefined, so
fix it just like another architectures have done.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 arch/blackfin/kernel/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/blackfin/kernel/module.c b/arch/blackfin/kernel/module.c
index 4489efc..162b2a2 100644
--- a/arch/blackfin/kernel/module.c
+++ b/arch/blackfin/kernel/module.c
@@ -4,7 +4,7 @@
  * Licensed under the GPL-2 or later
  */
 
-#define pr_fmt(fmt) "module %s: " fmt, mod->name
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/moduleloader.h>
 #include <linux/elf.h>
-- 
1.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web