]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srp: Avoid problems if a header uses pr_fmt
authorJoe Perches <joe@perches.com>
Fri, 1 Feb 2013 22:33:58 +0000 (14:33 -0800)
committerRoland Dreier <roland@purestorage.com>
Fri, 30 May 2014 04:32:54 +0000 (21:32 -0700)
commita4cf8ca09ccfcd76cc97da53793675bc8e58aa60
tree8923b0a6da967939016c77251a3094317070af3d
parentefaff8eae4d6d1cac5145a3a264df747d3330954
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: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srp/ib_srp.c