From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754060AbaIANyk (ORCPT ); Mon, 1 Sep 2014 09:54:40 -0400 Received: from ducie-dc1.codethink.co.uk ([185.25.241.215]:37404 "EHLO ducie-dc1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751665AbaIANyi (ORCPT ); Mon, 1 Sep 2014 09:54:38 -0400 Message-ID: <54047A96.1090900@codethink.co.uk> Date: Mon, 01 Sep 2014 14:54:30 +0100 From: Rob Jones User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.7.0 MIME-Version: 1.0 To: Alexey Dobriyan CC: Linux Kernel Subject: Re: [PATCH] fs: replace int param with size_t for seq_open_private() References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I don't agree. Ultimately this parameter ends up as a parameter to kmalloc where it is expected to be a size_t. On 01/09/14 14:43, Alexey Dobriyan wrote: >> void *__seq_open_private(struct file *f, const struct seq_operations *ops, >> - int psize) >> + size_t psize) > > It should be "unsigned int" at most. > As almost all in-kernel lengths. > > Alexey > > -- Rob Jones Codethink Ltd mailto:rob.jones@codethink.co.uk tel:+44 161 236 5575