--- linux-2.6.x/net/dccp/ipv4.c 2005-09-25 15:49:57.000000000 +0300 +++ linux-2.6.x-RT/net/dccp/ipv4.c 2005-09-26 15:06:02.000000000 +0300 @@ -28,10 +28,10 @@ #include "dccp.h" struct inet_hashinfo __cacheline_aligned dccp_hashinfo = { - .lhash_lock = RW_LOCK_UNLOCKED, + .lhash_lock = RW_LOCK_UNLOCKED(dccp_hashinfo.lhash_lock), .lhash_users = ATOMIC_INIT(0), .lhash_wait = __WAIT_QUEUE_HEAD_INITIALIZER(dccp_hashinfo.lhash_wait), - .portalloc_lock = SPIN_LOCK_UNLOCKED, + .portalloc_lock = SPIN_LOCK_UNLOCKED(dccp_hashinfo.portalloc_lock), .port_rover = 1024 - 1, }; --- linux-2.6.x/net/dccp/minisocks.c 2005-09-25 15:49:57.000000000 +0300 +++ linux-2.6.x-RT/net/dccp/minisocks.c 2005-09-26 15:07:41.000000000 +0300 @@ -26,7 +26,7 @@ struct inet_timewait_death_row dccp_death_row = { .sysctl_max_tw_buckets = NR_FILE * 2, .period = DCCP_TIMEWAIT_LEN / INET_TWDR_TWKILL_SLOTS, - .death_lock = SPIN_LOCK_UNLOCKED, + .death_lock = SPIN_LOCK_UNLOCKED(dccp_death_row.death_lock), .hashinfo = &dccp_hashinfo, .tw_timer = TIMER_INITIALIZER(inet_twdr_hangman, 0, (unsigned long)&dccp_death_row),