Skip to content

Commit

Permalink
net: remove SOCK_DEBUG macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis Kirjanov authored and David S. Miller committed Dec 26, 2023
1 parent 8e5443d commit b1dffcf
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b1dffcf

Please sign in to comment.