net: remove SOCK_DEBUG macro
authorDenis Kirjanov <kirjanov@gmail.com>
Tue, 19 Dec 2023 14:38:20 +0000 (17:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Dec 2023 20:31:01 +0000 (20:31 +0000)
Since there are no more users of the macro let's finally
burn it

Signed-off-by: Denis Kirjanov <dkirjanov@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h

index 2fb3ea2d2ec311fa24d1157a8799eab66e115f9e..30d3980dd57c56cba09a592d0232dd142a15f81a 100644 (file)
  * the other protocols.
  */
 
-/* Define this to get the SOCK_DBG debugging facility. */
-#define SOCK_DEBUGGING
-#ifdef SOCK_DEBUGGING
-#define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \
-                                       printk(KERN_DEBUG msg); } while (0)
-#else
-/* Validate arguments and do nothing */
-static inline __printf(2, 3)
-void SOCK_DEBUG(const struct sock *sk, const char *msg, ...)
-{
-}
-#endif
-
 /* This is the per-socket lock.  The spinlock provides a synchronization
  * between user contexts and software interrupt processing, whereas the
  * mini-semaphore synchronizes multiple users amongst themselves.