Commit d236cd0e authored by Joe Perches's avatar Joe Perches Committed by Roland Dreier

IB/srp: Avoid problems if a header uses pr_fmt

SRP defines pr_fmt(fmt) to be "PFX fmt", and then includes a bunch of
header files before it gets around to defining PFX.  This causes
problems if any of the header files do a pr_... and use pr_fmt().

Fix this by using KBUILD_MODNAME instead of the private PFX.
Acked-by: default avatarChris Metcalf <cmetcalf@tilera.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 5cfb1782
......@@ -30,7 +30,7 @@
* SOFTWARE.
*/
#define pr_fmt(fmt) PFX fmt
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/init.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment