From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from galahad.ideasonboard.com ([185.26.127.97]:45921 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751713AbdLSRRC (ORCPT ); Tue, 19 Dec 2017 12:17:02 -0500 From: Laurent Pinchart To: Mauro Carvalho Chehab Cc: Sakari Ailus , Sakari Ailus , Linux Media Mailing List , Mauro Carvalho Chehab , Hans Verkuil , Laurent Pinchart , Marek Szyprowski , Tomasz Figa , Ramesh Shanmugasundaram , Ricardo Ribalda Delgado Subject: Re: [PATCH 2/8] media: v4l2-ioctl.h: convert debug into an enum of bits Date: Tue, 19 Dec 2017 19:17:12 +0200 Message-ID: <2448808.QM7caob540@avalon> In-Reply-To: <20171219133758.6cf22460@vento.lan> References: <20171219141235.mgiyoeeiyfn2z4zh@paasikivi.fi.intel.com> <20171219133758.6cf22460@vento.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-media-owner@vger.kernel.org List-ID: Hi Mauro, On Tuesday, 19 December 2017 17:37:58 EET Mauro Carvalho Chehab wrote: > Em Tue, 19 Dec 2017 16:12:35 +0200 Sakari Ailus escreveu: > > On Tue, Dec 19, 2017 at 04:02:02PM +0200, Laurent Pinchart wrote: > >> And furthermore using enum types in the uAPI is a bad idea as the enum > >> size is architecture-dependent. That's why we use integer types in > >> structures used as ioctl arguments. > > > > I guess we have an argeement on that, enums are a no-go for uAPI, for > > reasons not related to the topic at hand. > > Huh? We're not talking about uAPI. This is kAPI. Using enums there is OK. Sure, there's no disagreement about that. The point was that, as both uAPI and kAPI should be documented, and we can't use enums for uAPI, we need a way to document non-enum types, which we could then use to document the kAPI the same way. -- Regards, Laurent Pinchart