]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PCI: shpchp: Remove unused logging wrappers
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 17 Feb 2025 09:55:49 +0000 (11:55 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Feb 2025 22:54:42 +0000 (16:54 -0600)
The shpchp hotplug driver defines logging wrapper with generic names which
are just duplicates of existing generic printk() wrappers. They are also
unused so remove them.

Link: https://lore.kernel.org/r/20250217095550.2789-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/shpchp.h

index f0e2d2d54d712a6e72e438abac3724b5bdde4dc8..10ba0bfac4191c8f29d1dfc382a5ffa466ecfbe9 100644 (file)
@@ -33,18 +33,6 @@ extern bool shpchp_poll_mode;
 extern int shpchp_poll_time;
 extern bool shpchp_debug;
 
-#define dbg(format, arg...)                                            \
-do {                                                                   \
-       if (shpchp_debug)                                               \
-               printk(KERN_DEBUG "%s: " format, MY_NAME, ## arg);      \
-} while (0)
-#define err(format, arg...)                                            \
-       printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
-#define info(format, arg...)                                           \
-       printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
-#define warn(format, arg...)                                           \
-       printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
-
 #define ctrl_dbg(ctrl, format, arg...)                                 \
        do {                                                            \
                if (shpchp_debug)                                       \