]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Fix unmap_vmas() compile warning
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:19:24 +0000 (18:19 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:19:24 +0000 (18:19 -0700)
Silence a bogus "may be used uninitialised" warning.  It only affects
architectures which use the tlb_finish_mmu() args.

mm/memory.c

index ab34c145d4c3b9ab4dfa7e95bd27e41bcd556d62..03ee8c3eb630255410506df98484c6e17f43dfee 100644 (file)
@@ -525,7 +525,7 @@ int unmap_vmas(struct mmu_gather **tlbp, struct mm_struct *mm,
                unsigned long end_addr, unsigned long *nr_accounted)
 {
        unsigned long zap_bytes = ZAP_BLOCK_SIZE;
-       unsigned long tlb_start;        /* For tlb_finish_mmu */
+       unsigned long tlb_start = 0;    /* For tlb_finish_mmu */
        int tlb_start_valid = 0;
        int ret = 0;