[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231219143820.9379-2-dkirjanov@suse.de>
Date: Tue, 19 Dec 2023 17:38:20 +0300
From: Denis Kirjanov <kirjanov@...il.com>
To: netdev@...r.kernel.org
Cc: pabeni@...hat.com,
Denis Kirjanov <dkirjanov@...e.de>
Subject: [PATCH net-next v2 2/2] net: remove SOCK_DEBUG macro
Since there are no more users of the macro let's finally
burn it
Signed-off-by: Denis Kirjanov <dkirjanov@...e.de>
---
include/net/sock.h | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/include/net/sock.h b/include/net/sock.h
index 8b6fe164b218..7c0353fcdfaf 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -76,19 +76,6 @@
* 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.
--
2.35.1
Powered by blists - more mailing lists