I believe __hugetlbfs_init_debug() can be static? It's only called from
another static function, even though that one is a constructor. Not sure
why it was extern'd in libhugetlbfs_internal.h, as it's not used by
anyone else. Compile- and run-tested (make check and make checkv).

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>


diff --git a/debug.c b/debug.c
index 90fa5dc..d561a14 100644
--- a/debug.c
+++ b/debug.c
@@ -31,7 +31,7 @@ int __hugetlbfs_verbose = 1;
 
 static int initialized;
 
-void __hugetlbfs_init_debug(void)
+static void __hugetlbfs_init_debug(void)
 {
        char *env;
 
diff --git a/libhugetlbfs_internal.h b/libhugetlbfs_internal.h
index 34325cb..5de2e1d 100644
--- a/libhugetlbfs_internal.h
+++ b/libhugetlbfs_internal.h
@@ -48,8 +48,6 @@ extern int sharing;
        if (__hugetlbfs_verbose >= 3) \
                fprintf(stderr, __VA_ARGS__)
 
-extern void __hugetlbfs_init_debug(void);
-
 struct seg_info {
        void *vaddr;
        unsigned long filesz, memsz;

-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to