RDMA/core: Remove unused ibdev_printk
authorDr. David Alan Gilbert <linux@treblig.org>
Sat, 21 Dec 2024 01:40:20 +0000 (01:40 +0000)
committerLeon Romanovsky <leon@kernel.org>
Tue, 24 Dec 2024 10:00:42 +0000 (05:00 -0500)
The last use of ibdev_printk() was removed in 2019 by
commit b2299e83815c ("RDMA: Delete DEBUG code")

Remove it.

Note: The __ibdev_printk() is still used in the idev_err etc functions
so leave that.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://patch.msgid.link/20241221014021.343979-4-linux@treblig.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h

index ca9b956c034d37e6e6f937c16fa58595a3e17bf9..a74e192b558850a2942ec7b0ba680fa43f1960f2 100644 (file)
@@ -209,23 +209,6 @@ static void __ibdev_printk(const char *level, const struct ib_device *ibdev,
                printk("%s(NULL ib_device): %pV", level, vaf);
 }
 
-void ibdev_printk(const char *level, const struct ib_device *ibdev,
-                 const char *format, ...)
-{
-       struct va_format vaf;
-       va_list args;
-
-       va_start(args, format);
-
-       vaf.fmt = format;
-       vaf.va = &args;
-
-       __ibdev_printk(level, ibdev, &vaf);
-
-       va_end(args);
-}
-EXPORT_SYMBOL(ibdev_printk);
-
 #define define_ibdev_printk_level(func, level)                  \
 void func(const struct ib_device *ibdev, const char *fmt, ...)  \
 {                                                               \
index 6ddd5e3bb884e59f2637674e7b6dfe2fd4e5c4d3..77472e19ec0c5d6c4717b8ea59583b62c2e06dcb 100644 (file)
@@ -59,9 +59,6 @@ extern struct workqueue_struct *ib_comp_unbound_wq;
 
 struct ib_ucq_object;
 
-__printf(3, 4) __cold
-void ibdev_printk(const char *level, const struct ib_device *ibdev,
-                 const char *format, ...);
 __printf(2, 3) __cold
 void ibdev_emerg(const struct ib_device *ibdev, const char *format, ...);
 __printf(2, 3) __cold