From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Subject: Re: kdbus: add header file Date: Thu, 30 Oct 2014 12:52:58 +0100 Message-ID: <5452269A.9050003@zonque.org> References: <1414620056-6675-1-git-send-email-gregkh@linuxfoundation.org> <3546486.lOZcZMmXYe@wuerfel> <6078917.F7Y7rNpK9C@wuerfel> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <6078917.F7Y7rNpK9C@wuerfel> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Arnd Bergmann , Tom Gundersen Cc: Greg Kroah-Hartman , Linux API , LKML , John Stultz , Tejun Heo , Marcel Holtmann , Ryan Lortie , Bastien Nocera , David Herrmann , Djalal Harouni , Simon McVittie , "alban.crequy" , "javier.martinez" List-Id: linux-api@vger.kernel.org On 10/30/2014 12:26 PM, Arnd Bergmann wrote: > On Thursday 30 October 2014 12:02:39 Tom Gundersen wrote: >> The nice thing about enums is of course that it helps with debugging >> as gdb can show the string representation rather than the number, >> because in contrast to #defines, an enum is something the compliler >> knows about. > > This doesn't get passed as an enum in user space though, and when debugging > the kernel it only helps within one function. Hmm, this is the header exported to userspace, so having enums in would make our lives easier, right? Hence, for now, I'd propose we keep it the way it is, and add new ioctls with defines once they are implemented. Are you okay with this? I'll add a comment to the file to give a heads-up. Thanks, Daniel