Hello. Linux kernel 2.6.39 removes deprecated RW_LOCK_UNLOCKED. It has been stated in include/linux/rwlock_types.h that one should use __RW_LOCK_UNLOCKED(lockname) or DEFINE_RWLOCK(x) marcros for static initialization. This patch fixes the issue using the first one.
Index: pf_ring.c =================================================================== --- pf_ring.c (revision 4616) +++ pf_ring.c (working copy) @@ -155,7 +155,7 @@ /* List of virtual filtering devices */ static struct list_head virtual_filtering_devices_list; -static rwlock_t virtual_filtering_lock = RW_LOCK_UNLOCKED; +static rwlock_t virtual_filtering_lock = __RW_LOCK_UNLOCKED(virtual_filtering_lock); /* List of all clusters */ static struct list_head ring_cluster_list; -- Best regards, Fedor Sakharov _______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
