Remove empty destructor from drivers/usb/mon/mon_text.c Remove destructor and call kmem_cache_create with NULL for the destructor. Signed-off-by: Christoph Lameter Index: linux-2.6.17/drivers/usb/mon/mon_text.c =================================================================== --- linux-2.6.17.orig/drivers/usb/mon/mon_text.c 2006-06-17 18:49:35.000000000 -0700 +++ linux-2.6.17/drivers/usb/mon/mon_text.c 2006-06-19 17:12:45.189813867 -0700 @@ -61,7 +61,6 @@ struct mon_reader_text { }; static void mon_text_ctor(void *, kmem_cache_t *, unsigned long); -static void mon_text_dtor(void *, kmem_cache_t *, unsigned long); /* * mon_text_submit @@ -238,7 +237,7 @@ static int mon_text_open(struct inode *i (long)rp); rp->e_slab = kmem_cache_create(rp->slab_name, sizeof(struct mon_event_text), sizeof(long), 0, - mon_text_ctor, mon_text_dtor); + mon_text_ctor, NULL); if (rp->e_slab == NULL) { rc = -ENOMEM; goto err_slab; @@ -429,7 +428,3 @@ static void mon_text_ctor(void *mem, kme memset(mem, 0xe5, sizeof(struct mon_event_text)); } -static void mon_text_dtor(void *mem, kmem_cache_t *slab, unsigned long sflags) -{ - ; -}