[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8762fxcrvx.fsf@rustcorp.com.au>
Date: Fri, 27 Jan 2012 21:51:54 +1030
From: Rusty Russell <rusty@...tcorp.com.au>
To: Dmitry Antipov <dmitry.antipov@...aro.org>
Cc: linux-kernel@...r.kernel.org, linaro-dev@...ts.linaro.org,
patches@...aro.org, Dmitry Antipov <dmitry.antipov@...aro.org>
Subject: Re: [PATCH] module: avoid call vmalloc if init size is zero
On Fri, 27 Jan 2012 11:19:16 +0400, Dmitry Antipov <dmitry.antipov@...aro.org> wrote:
> For the architectures with it's own module_alloc(), if module init
> size is zero, avoiding module_alloc_update_bounds() and memset()
> no-op calls also eliminates warn_alloc_failed() zero-size warning
> in __vmalloc_node_range().
>
> Signed-off-by: Dmitry Antipov <dmitry.antipov@...aro.org>
Please fix __vmalloc_node_range() instead to return ZERO_SIZE_PTR.
And of course, vfree() to use ZERO_OR_NULL_PTR().
Thanks,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists