From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755543AbdABOya (ORCPT ); Mon, 2 Jan 2017 09:54:30 -0500 Received: from lb2-smtp-cloud2.xs4all.net ([194.109.24.25]:35731 "EHLO lb2-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750973AbdABOy2 (ORCPT ); Mon, 2 Jan 2017 09:54:28 -0500 Subject: Re: [PATCH 0/8] [media] v4l2-core: Fine-tuning for some function implementations To: Sakari Ailus , SF Markus Elfring References: <9268b60d-08ba-c64e-1848-f84679d64f80@users.sourceforge.net> <20161227115111.GN16630@valkosipuli.retiisi.org.uk> Cc: linux-media@vger.kernel.org, Dave Hansen , Jan Kara , Javier Martinez Canillas , "Kirill A. Shutemov" , Lorenzo Stoakes , Mauro Carvalho Chehab , Michal Hocko , Sakari Ailus , LKML , kernel-janitors@vger.kernel.org From: Hans Verkuil Message-ID: Date: Mon, 2 Jan 2017 15:54:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <20161227115111.GN16630@valkosipuli.retiisi.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/27/16 12:51, Sakari Ailus wrote: > Hi Markus, > > On Mon, Dec 26, 2016 at 09:41:19PM +0100, SF Markus Elfring wrote: >> From: Markus Elfring >> Date: Mon, 26 Dec 2016 21:30:12 +0100 >> >> Some update suggestions were taken into account >> from static source code analysis. >> >> Markus Elfring (8): >> v4l2-async: Use kmalloc_array() in v4l2_async_notifier_unregister() >> v4l2-async: Delete an error message for a failed memory allocation in v4l2_async_notifier_unregister() >> videobuf-dma-sg: Use kmalloc_array() in videobuf_dma_init_user_locked() >> videobuf-dma-sg: Adjust 24 checks for null values >> videobuf-dma-sg: Move two assignments for error codes in __videobuf_mmap_mapper() >> videobuf-dma-sg: Improve a size determination in __videobuf_mmap_mapper() >> videobuf-dma-sg: Delete an unnecessary return statement in videobuf_vm_close() >> videobuf-dma-sg: Add some spaces for better code readability in videobuf_dma_init_user_locked() > > I don't really disagree with the videobuf changes as such --- the original > code sure seems quite odd, but I wonder whether we want to do this kind of > cleanups in videobuf. Videobuf will be removed likely in not too distant > future; when exactly, Hans can guesstimate better than me. Cc him. > The videobuf code is frozen as far as I am concerned, and I won't pick up these cleanup patches. While they look perfectly reasonable, I don't want to risk any breakage there. The last thing I want to do is to have to debug in the videobuf code. Sorry Markus, just stay away from the videobuf-* sources. Regards, Hans