Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7018908ybi; Thu, 13 Jun 2019 08:14:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9HQq87dCKSTKi+YY6bQmDPkfyZLTtk6e+qnlk4JMvG02pQpVUEeKq62UWiUi2WUy8H9TN X-Received: by 2002:a17:902:a405:: with SMTP id p5mr17693270plq.51.1560438853795; Thu, 13 Jun 2019 08:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438853; cv=none; d=google.com; s=arc-20160816; b=vDNCFZj4J0Wns2WREGfNBqix2S7iMhhrOCZsKLzDYrVtl4sCQqUB7gNqMshlc9eUQz tCW894EO5bCm8M+ktMqqhMN3YOdEXwc/LYFP8f68hlpRsLM+Fp9NzS+epGm6ST/n4tvv HefbWSivp8iGmytIeqn2/pUl4jYSBfOXrwcdkyqw4BN/zDZWZ0ONm7k7sY7atMlJH1ep yITxdNZzbD/zTlpL1/a4Exth4GYmXuktPB36sGVzd92Es8B7SmYtCHuzab+pVxtctQRH fSfGNkEmGs7IQs8FHLiMmuTUU6ybMwc6BJ/dT9N2FKGUF5WS7tAwtm0bNaIlZvh837nm uZDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=lqFnaDW+9/xHLzVEVBrjvlhUhiFuYKzg8AqyfeNkaLU=; b=VpTLvdB3UUol5PKTYE4konbsb0ifyBfxD2HjUbAlTaUAwepF1hFv0D0IdBrQoQk0sS v4Wkj0oZ+v5vrJVtvtjzKP8396CUD5tqUzIDa2bqnVn1ElZJaASz7GUS+LNFeTCLwo7J dfr/KuWWu1WWdb5kFCERAOrou9Hx7OErlRxjJd+ciLuQfJKE1VfV+mKpq5XFSZkLqblk hKrWty7H4GuPmWI8nH9iypHH8kYJvqKqUbXG4dnpDaKVMg9AzZB13zXSqhwLprJsW6kN gdU4mNDvwbnCGvr+6k9gNh63niMZXd1hwViasvK+jQTu0lzRYCtwYokWOS++v3jzYWuO 4EqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f187si3609338pfb.265.2019.06.13.08.13.57; Thu, 13 Jun 2019 08:14:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388281AbfFMPNP (ORCPT + 99 others); Thu, 13 Jun 2019 11:13:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39916 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732268AbfFMNfB (ORCPT ); Thu, 13 Jun 2019 09:35:01 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C97C330C7E65; Thu, 13 Jun 2019 13:34:52 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-109.rdu2.redhat.com [10.10.120.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id B8B695C3F8; Thu, 13 Jun 2019 13:34:50 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <6b6f5bb0-1426-239b-ac9f-281e31ddcd04@infradead.org> References: <6b6f5bb0-1426-239b-ac9f-281e31ddcd04@infradead.org> <20190607151228.GA1872258@magnolia> <155991702981.15579.6007568669839441045.stgit@warthog.procyon.org.uk> <155991706083.15579.16359443779582362339.stgit@warthog.procyon.org.uk> <29222.1559922719@warthog.procyon.org.uk> To: Randy Dunlap Cc: dhowells@redhat.com, "Darrick J. Wong" , viro@zeniv.linux.org.uk, raven@themaw.net, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/13] uapi: General notification ring definitions [ver #4] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30225.1560432885.1@warthog.procyon.org.uk> Date: Thu, 13 Jun 2019 14:34:45 +0100 Message-ID: <30226.1560432885@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Thu, 13 Jun 2019 13:35:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Randy Dunlap wrote: > What is the problem with inline functions in UAPI headers? It makes compiler problems more likely; it increases the potential for name collisions with userspace; it makes for more potential problems if the headers are imported into some other language; and it's not easy to fix a bug in one if userspace uses it, just in case fixing the bug breaks userspace. Further, in this case, the first of Darrick's functions (calculating the length) is probably reasonable, but the second is not. It should crank the tail pointer and then use that, but that requires > >> Also, weird multiline comment style. > > > > Not really. > > Yes really. No. It's not weird. If anything, the default style is less good for several reasons. I'm going to deal with this separately as I need to generate some stats first. David