Skip to contentSkip to conversation

Kill unused macros...

PATCH In review David Miller 2 participants 2 messages Jun 17, 2008

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 Kill unused macros...

I noticed this while working on something unrelated in the net-next-2.6 tree, applied and pushed to kernel.org

sctp: Kill SCTP_SOCK_SLEEP_{PRE,POST}, unused.

---
 include/net/sctp/sctp.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
include/net/sctp/sctp.h +0 -2
index 5672d48..17b932b 100644
@@ -220,8 +220,6 @@ extern struct kmem_cache *sctp_bucket_cachep __read_mostly;
 #define sctp_release_sock(sk)    release_sock(sk)
 #define sctp_bh_lock_sock(sk)    bh_lock_sock(sk)
 #define sctp_bh_unlock_sock(sk)  bh_unlock_sock(sk)
-#define SCTP_SOCK_SLEEP_PRE(sk)  SOCK_SLEEP_PRE(sk)
-#define SCTP_SOCK_SLEEP_POST(sk) SOCK_SLEEP_POST(sk)
 
 /* SCTP SNMP MIB stats handlers */
 DECLARE_SNMP_STAT(struct sctp_mib, sctp_statistics);
#1 lore raw
Quoted 6 lines · David Miller

I noticed this while working on something unrelated in the net-next-2.6 tree, applied and pushed to kernel.org

sctp: Kill SCTP_SOCK_SLEEP_{PRE,POST}, unused.

OK, thanks. It looks like there were supposed to be part of some debug output that didn't get fully removed first time around.

-vlad

Quoted 18 lines
---
 include/net/sctp/sctp.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
include/net/sctp/sctp.h +0 -2
index 5672d48..17b932b 100644
@@ -220,8 +220,6 @@ extern struct kmem_cache *sctp_bucket_cachep __read_mostly;
 #define sctp_release_sock(sk)    release_sock(sk)
 #define sctp_bh_lock_sock(sk)    bh_lock_sock(sk)
 #define sctp_bh_unlock_sock(sk)  bh_unlock_sock(sk)
-#define SCTP_SOCK_SLEEP_PRE(sk)  SOCK_SLEEP_PRE(sk)
-#define SCTP_SOCK_SLEEP_POST(sk) SOCK_SLEEP_POST(sk)
 
 /* SCTP SNMP MIB stats handlers */
 DECLARE_SNMP_STAT(struct sctp_mib, sctp_statistics);