Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758655Ab2BIXoM (ORCPT ); Thu, 9 Feb 2012 18:44:12 -0500 Received: from perches-mx.perches.com ([206.117.179.246]:34833 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758437Ab2BIXn4 (ORCPT ); Thu, 9 Feb 2012 18:43:56 -0500 Message-ID: <1328831033.1823.2.camel@joe2Laptop> Subject: Re: [PATCH RFC v2] slab: introduce kmalloc_array From: Joe Perches To: Andrew Morton Cc: Jesper Juhl , Xi Wang , Jens Axboe , Pekka Enberg , Dan Carpenter , linux-kernel@vger.kernel.org, Christoph Lameter , Matt Mackall , David Rientjes Date: Thu, 09 Feb 2012 15:43:53 -0800 In-Reply-To: <20120209150652.5b1d19dc.akpm@linux-foundation.org> References: <20120207141155.GA16184@elgon.mountain> <4F323388.7040902@kernel.dk> <20120208142513.4db2493a.akpm@linux-foundation.org> <4F33BF05.208@gmail.com> <4F33C7D7.1060801@kernel.dk> <32FA0BD0-7C0D-4ED4-B375-4736FC70AC05@gmail.com> <4F33CEAE.60400@gmail.com> <20120209150652.5b1d19dc.akpm@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 813 Lines: 23 On Thu, 2012-02-09 at 15:06 -0800, Andrew Morton wrote: > On Thu, 9 Feb 2012 23:47:42 +0100 (CET) > Jesper Juhl wrote: > > > -static inline void *kcalloc(size_t n, size_t size, gfp_t flags) > > > +static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags) > [] > > Does this want adding to Documentation/CodingStyle "Chapter 14: Allocating > > memory" ? > > Spose so. We could possibly cook up a checkpatch rule too ;) > Symmetry please. [kv]malloc_array [kv]malloc_node_array -- 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/