From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754183Ab2A0Sp0 (ORCPT ); Fri, 27 Jan 2012 13:45:26 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:57576 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751383Ab2A0SpZ (ORCPT ); Fri, 27 Jan 2012 13:45:25 -0500 Date: Fri, 27 Jan 2012 22:45:19 +0400 From: Cyrill Gorcunov To: "Eric W. Biederman" Cc: LKML , Andrew Morton , Pavel Emelyanov , KOSAKI Motohiro , Pavel Emelyanov , Andrey Vagin , KOSAKI Motohiro , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Glauber Costa , Andi Kleen , Tejun Heo , Matt Helsley , Pekka Enberg , Eric Dumazet , Vasiliy Kulikov , Alexey Dobriyan , Valdis.Kletnieks@vt.edu Subject: Re: [RFC c/r 2/4] [RFC] syscalls, x86: Add __NR_kcmp syscall v7 Message-ID: <20120127184519.GJ11086@moon> References: <20120127175342.273260614@openvz.org> <20120127175939.795551339@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 27, 2012 at 10:40:54AM -0800, Eric W. Biederman wrote: > Can you make the prototype: > static int kcmp_ptr(void *v1, void *v2, enum kcmp_type type) > > So the caller does not need to have casts? Sure. > I believe I commented on this earlier but it looks like it got lost in > the noise. > > file == NULL != file == NULL. > > When you can't lookup the file kcmp should return -EBADF. > Yes, Eric, I somehow missed it in replies flowing. I'll update. Thanks! Cyrill