[PATCH] SLUB: killed the unused "end" variable - Kernel

This is a discussion on [PATCH] SLUB: killed the unused "end" variable - Kernel ; Since the macro "for_each_object" introduced, the "end" variable becomes unused anymore. Signed-off-by: Denis Cheng --- mm/slub.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 84f59fd..9acb413 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1080,7 +1080,6 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] SLUB: killed the unused "end" variable

  1. [PATCH] SLUB: killed the unused "end" variable

    Since the macro "for_each_object" introduced, the "end" variable becomes unused anymore.

    Signed-off-by: Denis Cheng
    ---
    mm/slub.c | 2 --
    1 files changed, 0 insertions(+), 2 deletions(-)

    diff --git a/mm/slub.c b/mm/slub.c
    index 84f59fd..9acb413 100644
    --- a/mm/slub.c
    +++ b/mm/slub.c
    @@ -1080,7 +1080,6 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)
    struct page *page;
    struct kmem_cache_node *n;
    void *start;
    - void *end;
    void *last;
    void *p;

    @@ -1101,7 +1100,6 @@ static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)
    SetSlabDebug(page);

    start = page_address(page);
    - end = start + s->objects * s->size;

    if (unlikely(s->flags & SLAB_POISON))
    memset(start, POISON_INUSE, PAGE_SIZE << s->order);
    --
    1.5.3.4

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

  2. Re: [PATCH] SLUB: killed the unused "end" variable

    On Tue, 13 Nov 2007, Denis Cheng wrote:

    > Since the macro "for_each_object" introduced, the "end" variable becomes unused anymore.


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

+ Reply to Thread