]> sourceware.org Git - lvm2.git/commitdiff
Use static indentifier for internal functions
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 26 Oct 2010 08:59:05 +0000 (08:59 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 26 Oct 2010 08:59:05 +0000 (08:59 +0000)
Functions _align_chunk() and  _new_chunk() are used only internally inside
pool-fast.c - so keep them static inside this object file.

WHATS_NEW
libdm/mm/pool-fast.c

index d5c190c5f4da161f52c0b2fe53a0faa302701f5c..22ad5627745d00a737af534e527ab829cc112542 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.76
 ===================================
+  Use static for internal _align_chunk() and _new_chunk() from pool-fast.c.
   Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
   Add lvm2app functions to query any pv, vg, or lv property / report field.
 
index d9030cfaad0058e2b1d7370013b903ed28b93cb1..ebd982e6d7ede256e713ae40b954c0192e05eb2c 100644 (file)
@@ -33,8 +33,8 @@ struct dm_pool {
        unsigned object_alignment;
 };
 
-void _align_chunk(struct chunk *c, unsigned alignment);
-struct chunk *_new_chunk(struct dm_pool *p, size_t s);
+static void _align_chunk(struct chunk *c, unsigned alignment);
+static struct chunk *_new_chunk(struct dm_pool *p, size_t s);
 static void _free_chunk(struct chunk *c);
 
 /* by default things come out aligned for doubles */
@@ -240,12 +240,12 @@ void dm_pool_abandon_object(struct dm_pool *p)
        p->object_alignment = DEFAULT_ALIGNMENT;
 }
 
-void _align_chunk(struct chunk *c, unsigned alignment)
+static void _align_chunk(struct chunk *c, unsigned alignment)
 {
        c->begin += alignment - ((unsigned long) c->begin & (alignment - 1));
 }
 
-struct chunk *_new_chunk(struct dm_pool *p, size_t s)
+static struct chunk *_new_chunk(struct dm_pool *p, size_t s)
 {
        struct chunk *c;
 
This page took 0.045491 seconds and 5 git commands to generate.