Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755017AbaJGSCe (ORCPT ); Tue, 7 Oct 2014 14:02:34 -0400 Received: from mail-vc0-f182.google.com ([209.85.220.182]:58661 "EHLO mail-vc0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754932AbaJGSC2 (ORCPT ); Tue, 7 Oct 2014 14:02:28 -0400 From: Jeff Layton X-Google-Original-From: Jeff Layton Date: Tue, 7 Oct 2014 14:02:25 -0400 To: Dmitry Kasatkin Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, "J. Bruce Fields" , "linux-kernel@vger.kernel.org" , linux-security-module Subject: Re: [PATCH v2 02/17] security: make security_file_set_fowner, f_setown and __f_setown void return Message-ID: <20141007140225.22301447@synchrony.poochiereds.net> In-Reply-To: References: <1409834323-7171-1-git-send-email-jlayton@primarydata.com> <1409834323-7171-3-git-send-email-jlayton@primarydata.com> <20141007171703.GA30274@infradead.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Oct 2014 20:34:57 +0300 Dmitry Kasatkin wrote: > On 7 October 2014 20:17, Christoph Hellwig wrote: > > On Tue, Oct 07, 2014 at 08:11:42PM +0300, Dmitry Kasatkin wrote: > >> If file_set_fowner op is now type of "void", how you can actually > >> return the value? > >> I think compiler must give error. How could you compile it? > > > > Returning void values is a GNU extension. I've seen it in a few > > places in the kernel. Although in general I'd prefer it we'd remove > > it (and have the compiler warn about it). > > > > Cool. There were patches around to use LLVM as well. > Will it work there? > Well, no one has complained so far, and this has been in linux-next for more than a month or so. I was just getting ready to send my pull request to Linus, so you caught this just in time. I'll respin this patch to not call "return" there and let it stew in -next for a couple of days before I send the pull request. Thanks, -- Jeff Layton -- 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/