Re: [PATCH] mm/memory.c: remove warning from an uninitialized spinlock.was: Re: 2.6.21-rc7-mm2

From: Jeremy Fitzhardinge
Date: Fri Apr 27 2007 - 20:27:46 EST


Andrew Morton wrote:
> --- a/mm/memory.c~add-apply_to_page_range-which-applies-a-function-to-a-pte-range-fix
> +++ a/mm/memory.c
> @@ -1455,7 +1455,7 @@ static int apply_to_pte_range(struct mm_
> pte_t *pte;
> int err;
> struct page *pmd_page;
> - spinlock_t *ptl;
> + spinlock_t *ptl = ptl; /* Suppress gcc warning */
>

Sigh. I guess so.

J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/