We have developed a far amount of whitespace damage over time.  Do a one off
cleanup of all of the breakage now.

Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
 HOWTO                        |    2 +-
 README                       |    2 +-
 elf64ppc.c                   |    2 +-
 elflink.c                    |   16 ++++++++--------
 hugeadm.c                    |    2 +-
 hugeutils.c                  |    8 ++++----
 kernel-features.c            |    8 ++++----
 ld.hugetlbfs                 |    2 +-
 ldscripts/elf32ppclinux.xB   |    2 +-
 ldscripts/elf32ppclinux.xBDT |    2 +-
 ldscripts/elf64ppc.xBDT      |    2 +-
 libhugetlbfs_internal.h      |    2 +-
 localversion                 |    2 +-
 morecore.c                   |    2 +-
 pagesize.c                   |    2 +-
 tests/Makefile               |   12 ++++++------
 tests/mprotect.c             |    2 +-
 17 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/HOWTO b/HOWTO
index 260d8cf..54519e2 100644
--- a/HOWTO
+++ b/HOWTO
@@ -404,7 +404,7 @@ convince gcc to invoke the ld.hugetlbfs script instead of 
the system
 linker, rather than modifying your build procedure to invoke the
 ld.hugetlbfs directly; the compilers may often add special libraries
 or other linker options which can be fiddly to reproduce by hand.
-To make this easier, 'make install' will install ld.hugetlbfs into 
+To make this easier, 'make install' will install ld.hugetlbfs into
 $PREFIX/share/libhugetlbfs and create an 'ld' symlink to it.
 
 Then with gcc, you invoke it as a linker with two options:
diff --git a/README b/README
index bff0b68..d97e308 100644
--- a/README
+++ b/README
@@ -10,7 +10,7 @@ After a series of preview releases, we have tested a huge 
array of the
 supported usage scenarios using benchmarks and real HPC applications.
 Usability and reliability have greatly improved.  But... due to the
 incredible diversity of applications that exist, there is bound to be a few
-that will not work correctly.  
+that will not work correctly.
 
 If using libhugetlbfs makes your application slower:
 
diff --git a/elf64ppc.c b/elf64ppc.c
index a6638db..8c86fca 100644
--- a/elf64ppc.c
+++ b/elf64ppc.c
@@ -25,7 +25,7 @@
 /*
  * The powerpc 64-bit ELF ABI defines the location and size of the plt as
  * follows (see the ELF ABI and powerpc64 supplement for details):
- * 
+ *
  * Location:   (data segment p_vaddr) + (data segment p_filesz)
  * Size:       (dynamic symbol table DT_PTRELSZ entry) + 24
  *
diff --git a/elflink.c b/elflink.c
index bae6cf6..63229f6 100644
--- a/elflink.c
+++ b/elflink.c
@@ -309,7 +309,7 @@ static int find_or_create_share_path(long page_size)
        return 0;
 }
 
-/* 
+/*
  * Look for non-zero BSS data inside a range and print out any matches
  */
 
@@ -497,9 +497,9 @@ static void get_extracopy(struct seg_info *seg, const 
Elf_Phdr *phdr, int phnum)
        if (numsyms < 0)
                goto bail;
 
-       /* 
-        * We must ensure any returns done hereafter have sane start and end 
-        * values, as the criss-cross apple sauce algorithm is beginning 
+       /*
+        * We must ensure any returns done hereafter have sane start and end
+        * values, as the criss-cross apple sauce algorithm is beginning
         */
        end = start;
 
@@ -598,7 +598,7 @@ static unsigned long hugetlb_prev_slice_end(unsigned long 
addr)
 }
 
 /*
- * Store a copy of the given program header 
+ * Store a copy of the given program header
  */
 static int save_phdr(int table_idx, int phnum, const ElfW(Phdr) *phdr)
 {
@@ -617,7 +617,7 @@ static int save_phdr(int table_idx, int phnum, const 
ElfW(Phdr) *phdr)
                prot |= PROT_WRITE;
        if (phdr->p_flags & PF_X)
                prot |= PROT_EXEC;
-       
+
        htlb_seg_table[table_idx].vaddr = (void *) phdr->p_vaddr;
        htlb_seg_table[table_idx].filesz = phdr->p_filesz;
        htlb_seg_table[table_idx].memsz = phdr->p_memsz;
@@ -817,7 +817,7 @@ static void check_range_empty(void *addr, unsigned long len)
 
 /*
  * Copy a program segment into a huge page. If possible, try to copy the
- * smallest amount of data possible, unless the user disables this 
+ * smallest amount of data possible, unless the user disables this
  * optimization via the HUGETLB_ELFMAP environment variable.
  */
 static int prepare_segment(struct seg_info *seg)
@@ -866,7 +866,7 @@ static int prepare_segment(struct seg_info *seg)
                return -1;
        }
 
-       /* 
+       /*
         * Minimizing the amount of data copied will maximize performance.
         * By definition, the filesz portion of the segment contains
         * initialized data and must be copied.  If part of the memsz portion
diff --git a/hugeadm.c b/hugeadm.c
index cee6aac..8434eef 100644
--- a/hugeadm.c
+++ b/hugeadm.c
@@ -260,7 +260,7 @@ int main(int argc, char** argv)
        };
 
        hugetlbfs_setup_debug();
-        setup_mounts();
+       setup_mounts();
 
        while (ret != -1) {
                ret = getopt_long(argc, argv, opts, long_opts, &index);
diff --git a/hugeutils.c b/hugeutils.c
index a319e89..ae60f39 100644
--- a/hugeutils.c
+++ b/hugeutils.c
@@ -359,7 +359,7 @@ static void debug_show_page_sizes(void)
                DEBUG("   Size: %li kB %s  Mount: %s\n",
                        hpage_sizes[i].pagesize / 1024,
                        i == hpage_sizes_default_idx ? "(default)" : "",
-                       hpage_sizes[i].mount); 
+                       hpage_sizes[i].mount);
 }
 
 #define LINE_MAXLEN    2048
@@ -638,8 +638,8 @@ int getpagesizes(long pagesizes[], int n_elem)
                /* Install the base page size. */
                if (n_elem && pagesizes)
                        pagesizes[0] = sysconf(_SC_PAGESIZE);
-                if (n_elem == 1)
-                        return 1;
+               if (n_elem == 1)
+                       return 1;
 
                ret = gethugepagesizes(pagesizes + 1, n_elem - 1);
        }
@@ -753,7 +753,7 @@ int hugetlbfs_prefault(int fd, void *addr, size_t length)
         * process tried to access the missing memory.
         *
         * The value of this environment variable is read during library
-        * initialisation and sets __hugetlbfs_prefault accordingly. If 
+        * initialisation and sets __hugetlbfs_prefault accordingly. If
         * prefaulting is enabled and we can't get all that were requested,
         * -ENOMEM is returned. The caller is expected to release the entire
         * mapping and optionally it may recover by mapping base pages instead.
diff --git a/kernel-features.c b/kernel-features.c
index 89f76b6..8a80117 100644
--- a/kernel-features.c
+++ b/kernel-features.c
@@ -41,7 +41,7 @@ static struct feature kernel_features[] = {
                .name                   = "private_reservations",
                .required_version       = "2.6.27-rc1",
        },
-}; 
+};
 
 static void debug_kernel_version(void)
 {
@@ -82,7 +82,7 @@ static int str_to_ver(const char *str, struct kernel_version 
*ver)
 
        /* Advance the str by the number of characters indicated by sscanf */
        str += nr_chars;
-               
+
        /* Try to match a post/stable version */
        err = sscanf(str, ".%u", &ver->post);
        if (err == 1)
@@ -225,7 +225,7 @@ void setup_features()
                struct kernel_version ver;
                char *name = kernel_features[i].name;
                char *pos;
-               
+
                str_to_ver(kernel_features[i].required_version, &ver);
 
                /* Has the user overridden feature detection? */
@@ -247,5 +247,5 @@ void setup_features()
                                kernel_features[i].name);
                        feature_mask |= (1UL << i);
                }
-       }               
+       }
 }
diff --git a/ld.hugetlbfs b/ld.hugetlbfs
index 154d427..f851fc0 100755
--- a/ld.hugetlbfs
+++ b/ld.hugetlbfs
@@ -51,7 +51,7 @@ while [ -n "$1" ]; do
        --)
            args=("[EMAIL PROTECTED]" "$@")
            break
-           ;;     
+           ;;
        *)
            args[$i]="$arg"
            i=$[i+1]
diff --git a/ldscripts/elf32ppclinux.xB b/ldscripts/elf32ppclinux.xB
index a81090c..bf96081 100644
--- a/ldscripts/elf32ppclinux.xB
+++ b/ldscripts/elf32ppclinux.xB
@@ -205,7 +205,7 @@ SECTIONS
    *(.dynbss)
    *(.bss .bss.* .gnu.linkonce.b.*)
    *(COMMON)
-   /* 
+   /*
     * Align here to ensure that the .bss section occupies space up to
     * _end. Additionally (for huge pages) align to a segment boundary.
     * This ensures that no normal page mappings will be created in this
diff --git a/ldscripts/elf32ppclinux.xBDT b/ldscripts/elf32ppclinux.xBDT
index f2ff565..68ddebf 100644
--- a/ldscripts/elf32ppclinux.xBDT
+++ b/ldscripts/elf32ppclinux.xBDT
@@ -196,7 +196,7 @@ SECTIONS
    *(.dynbss)
    *(.bss .bss.* .gnu.linkonce.b.*)
    *(COMMON)
-   /* 
+   /*
     * Align here to ensure that the .bss section occupies space up to
     * _end. Additionally (for huge pages) align to a segment boundary.
     * This ensures that no normal page mappings will be created in this
diff --git a/ldscripts/elf64ppc.xBDT b/ldscripts/elf64ppc.xBDT
index ac81ae1..dbc4847 100644
--- a/ldscripts/elf64ppc.xBDT
+++ b/ldscripts/elf64ppc.xBDT
@@ -189,7 +189,7 @@ SECTIONS
    *(.dynbss)
    *(.bss .bss.* .gnu.linkonce.b.*)
    *(COMMON)
-   /* 
+   /*
     * Align here to ensure that the .bss section occupies space up to
     * _end. Additionally (for huge pages) align to a segment boundary.
     * This ensures that no normal page mappings will be created in this
diff --git a/libhugetlbfs_internal.h b/libhugetlbfs_internal.h
index 2fce2dc..d8e9e00 100644
--- a/libhugetlbfs_internal.h
+++ b/libhugetlbfs_internal.h
@@ -23,7 +23,7 @@
  *
  * All external functions declared here are library static and must be
  * internalised using a define of the following form:
- * 
+ *
  *     #define foo __lh_foo
  */
 
diff --git a/localversion b/localversion
index adb2f06..5d50aca 100755
--- a/localversion
+++ b/localversion
@@ -58,7 +58,7 @@ else
                exit 1
        fi
 
-       # No version control, use the modification times 
+       # No version control, use the modification times
        # of the source.
        for s in "$@"
        do
diff --git a/morecore.c b/morecore.c
index 19d18b8..95d0470 100644
--- a/morecore.c
+++ b/morecore.c
@@ -295,7 +295,7 @@ void hugetlbfs_setup_morecore(void)
        __morecore = &hugetlbfs_morecore;
 
        /* Set some allocator options more appropriate for hugepages */
-       
+
        if (shrink_ok)
                mallopt(M_TRIM_THRESHOLD, hpage_size / 2);
        else
diff --git a/pagesize.c b/pagesize.c
index 11dd68d..c2be7a8 100644
--- a/pagesize.c
+++ b/pagesize.c
@@ -80,7 +80,7 @@ int main(int argc, char** argv)
        long pagesizes[MAX_PAGESIZES];
        int i;
 
-        hugetlbfs_setup_debug();
+       hugetlbfs_setup_debug();
 
        while (ret != -1) {
                ret = getopt_long(argc, argv, opts, long_opts, &index);
diff --git a/tests/Makefile b/tests/Makefile
index f03ec68..27e5dd5 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -103,11 +103,11 @@ obj64/libheapshrink.so: obj64/heapshrink-helper-pic.o
 
 $(LIB_TESTS:%=obj32/%): %: %.o obj32/testutils.o obj32/libtestutils.o
        @$(VECHO) LD32 "(lib test)" $@
-       $(CC32) $(LDFLAGS) $(LDFLAGS32) -o $@ $^ $(LDLIBS) -lhugetlbfs 
+       $(CC32) $(LDFLAGS) $(LDFLAGS32) -o $@ $^ $(LDLIBS) -lhugetlbfs
 
 $(LIB_TESTS:%=obj64/%) $(LIB_TESTS_64:%=obj64/%): %: %.o obj64/testutils.o 
obj64/libtestutils.o
        @$(VECHO) LD64 "(lib test)" $@
-       $(CC64) $(LDFLAGS) $(LDFLAGS64) -o $@ $^ $(LDLIBS) -lhugetlbfs 
+       $(CC64) $(LDFLAGS) $(LDFLAGS64) -o $@ $^ $(LDLIBS) -lhugetlbfs
 
 $(NOLIB_TESTS:%=obj32/%): %: %.o obj32/testutils.o
        @$(VECHO) LD32 "(nolib test)" $@
@@ -147,11 +147,11 @@ $(HUGELINK_RW_TESTS:%=obj64/%): %: %.o $(HUGETLBFS_LD) 
obj64/testutils.o
 
 $(STRESS_TESTS:%=obj32/%): %: %.o obj32/testutils.o
        @$(VECHO) LD32 "(lib test)" $@
-       $(CC32) $(LDFLAGS) $(LDFLAGS32) -o $@ $^ $(LDLIBS) -lhugetlbfs 
+       $(CC32) $(LDFLAGS) $(LDFLAGS32) -o $@ $^ $(LDLIBS) -lhugetlbfs
 
 $(STRESS_TESTS:%=obj64/%): %: %.o obj64/testutils.o
        @$(VECHO) LD64 "(lib test)" $@
-       $(CC64) $(LDFLAGS) $(LDFLAGS64) -o $@ $^ $(LDLIBS) -lhugetlbfs 
+       $(CC64) $(LDFLAGS) $(LDFLAGS64) -o $@ $^ $(LDLIBS) -lhugetlbfs
 
 obj32/xB.%: $(SCRIPTS32).xB $(HUGETLBFS_LD) obj32/%.o obj32/testutils.o
        @$(VECHO) LD32 "(xB test)" $@
@@ -179,11 +179,11 @@ obj64/xBDT.%: $(SCRIPTS64).xBDT $(HUGETLBFS_LD) obj64/%.o 
obj64/testutils.o
 
 $(HELPERS:%=obj32/%): %: %.o
        @$(VECHO) LD32 "(helper)" $@
-       $(CC32) $(LDFLAGS) $(LDFLAGS32) -o $@ $^ $(LDLIBS) -lhugetlbfs 
+       $(CC32) $(LDFLAGS) $(LDFLAGS32) -o $@ $^ $(LDLIBS) -lhugetlbfs
 
 $(HELPERS:%=obj64/%): %: %.o
        @$(VECHO) LD64 "(helper)" $@
-       $(CC64) $(LDFLAGS) $(LDFLAGS64) -o $@ $^ $(LDLIBS) -lhugetlbfs 
+       $(CC64) $(LDFLAGS) $(LDFLAGS64) -o $@ $^ $(LDLIBS) -lhugetlbfs
 
 clean:
        @$(VECHO) CLEAN "(tests)"
diff --git a/tests/mprotect.c b/tests/mprotect.c
index 2bdc1fc..aa4673e 100644
--- a/tests/mprotect.c
+++ b/tests/mprotect.c
@@ -140,7 +140,7 @@ static void test_prot(void *p, int prot)
        }
 }
 
-static void test_mprotect(int fd, char *testname, 
+static void test_mprotect(int fd, char *testname,
                          unsigned long len1, int prot1,
                          unsigned long len2, int prot2)
 {
-- 
1.6.0.2.711.gf1ba4


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to