aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-08 15:10:21 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:40 -0700
commit80759030ba5c13b4f2d92b992be559ce7ee5b15b (patch)
tree521a78825ebe73430e0d3c2686fc2b6ab487f2c6 /storage.c
parentFix undefined symbol linearization case (diff)
downloadsparse-80759030ba5c13b4f2d92b992be559ce7ee5b15b.tar.gz
sparse-80759030ba5c13b4f2d92b992be559ce7ee5b15b.tar.bz2
sparse-80759030ba5c13b4f2d92b992be559ce7ee5b15b.zip
Expose storage allocators to users of the storage code.
Diffstat (limited to 'storage.c')
-rw-r--r--storage.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/storage.c b/storage.c
index 363774c..5451507 100644
--- a/storage.c
+++ b/storage.c
@@ -18,21 +18,6 @@
ALLOCATOR(storage, "storages");
ALLOCATOR(storage_hash, "storage hash");
-static inline struct storage *alloc_storage(void)
-{
- return __alloc_storage(0);
-}
-
-static inline struct storage_hash *alloc_storage_hash(struct storage *s)
-{
- struct storage_hash *entry = __alloc_storage_hash(0);
- struct storage **usep = &entry->storage;
-
- *usep = s;
- add_ptr_list(&s->users, usep);
- return entry;
-}
-
#define MAX_STORAGE_HASH 64
struct storage_hash_list *storage_hash_table[MAX_STORAGE_HASH];