Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1405495 > unrolled thread
| Started by | Andrey Ryabinin <aryabinin@virtuozzo.com> |
|---|---|
| First post | 2016-05-23 18:30 +0200 |
| Last post | 2016-05-23 18:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] mm: slub: remove unused virt_to_obj() Andrey Ryabinin <aryabinin@virtuozzo.com> - 2016-05-23 18:30 +0200
| From | Andrey Ryabinin <aryabinin@virtuozzo.com> |
|---|---|
| Date | 2016-05-23 18:30 +0200 |
| Subject | [PATCH] mm: slub: remove unused virt_to_obj() |
| Message-ID | <rC0TT-8cl-3@gated-at.bofh.it> |
It's unused since commit 7ed2f9e66385 ("mm, kasan: SLAB support")
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
include/linux/slub_def.h | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index 665cd0c..d1faa01 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -111,22 +111,6 @@ static inline void sysfs_slab_remove(struct kmem_cache *s)
}
#endif
-
-/**
- * virt_to_obj - returns address of the beginning of object.
- * @s: object's kmem_cache
- * @slab_page: address of slab page
- * @x: address within object memory range
- *
- * Returns address of the beginning of object
- */
-static inline void *virt_to_obj(struct kmem_cache *s,
- const void *slab_page,
- const void *x)
-{
- return (void *)x - ((x - slab_page) % s->size);
-}
-
void object_err(struct kmem_cache *s, struct page *page,
u8 *object, char *reason);
--
2.7.3
Back to top | Article view | linux.kernel
csiph-web