Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750876Ab2BLFqu (ORCPT ); Sun, 12 Feb 2012 00:46:50 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:41616 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742Ab2BLFqt (ORCPT ); Sun, 12 Feb 2012 00:46:49 -0500 Subject: Re: [PATCH RFC v2] slab: introduce kmalloc_array Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Xi Wang In-Reply-To: <20120211121923.GA3341@p183.telecom.by> Date: Sun, 12 Feb 2012 00:46:44 -0500 Cc: Jens Axboe , Pekka Enberg , Andrew Morton , Dan Carpenter , linux-kernel@vger.kernel.org, Christoph Lameter , Matt Mackall , David Rientjes Content-Transfer-Encoding: 7bit Message-Id: References: <4F33BF05.208@gmail.com> <4F33C7D7.1060801@kernel.dk> <32FA0BD0-7C0D-4ED4-B375-4736FC70AC05@gmail.com> <4F33CEAE.60400@gmail.com> <3F3C1079-91B3-4AD4-97ED-EACAD3CB085F@gmail.com> <20120211121923.GA3341@p183.telecom.by> To: Alexey Dobriyan X-Mailer: Apple Mail (2.1084) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 604 Lines: 17 On Feb 11, 2012, at 7:19 AM, Alexey Dobriyan wrote: > But there is no misuse. > > Both kaalloc(non-const, const) and kaalloc(const, non-const) are OK. > It's just first case happens more often. Any k*alloc(const, non-const) example? I feel like in most cases it is the caller code that should get fixed, such as: https://lkml.org/lkml/2012/2/10/135 - xi -- 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/