From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henrik Rydberg Subject: Re: [RFC] Input: define separate EVIOCGKEYCODE_V2/EVIOCSKEYCODE_V2 Date: Thu, 09 Dec 2010 20:04:36 +0100 Message-ID: <4D012844.3020009@euromail.se> References: <20101209093948.GD8821@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from ch-smtp03.sth.basefarm.net ([80.76.149.214]:46341 "EHLO ch-smtp03.sth.basefarm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754176Ab0LITFo (ORCPT ); Thu, 9 Dec 2010 14:05:44 -0500 In-Reply-To: <20101209093948.GD8821@core.coreip.homeip.net> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: Linux Input , LKML , linux-media@vger.kernel.org, Mauro Carvalho Chehab , Jiri Kosina , Jarod Wilson , =?ISO-8859-1?Q?David_H=E4rdeman?= On 12/09/2010 10:39 AM, Dmitry Torokhov wrote: > The desire to keep old names for the EVIOCGKEYCODE/EVIOCSKEYCODE while > extending them to support large scancodes was a mistake. While we tried > to keep ABI intact (and we succeeded in doing that, programs compiled > on older kernels will work on newer ones) there is still a problem with > recompiling existing software with newer kernel headers. > > New kernel headers will supply updated ioctl numbers and kernel will > expect that userspace will use struct input_keymap_entry to set and > retrieve keymap data. But since the names of ioctls are still the same > userspace will happily compile even if not adjusted to make use of the > new structure and will start miraculously fail in the field. > > To avoid this issue let's revert EVIOCGKEYCODE/EVIOCSKEYCODE definitions > and add EVIOCGKEYCODE_V2/EVIOCSKEYCODE_V2 so that userspace can explicitly > select the style of ioctls it wants to employ. > > Signed-off-by: Dmitry Torokhov > --- Would the header change suffice in itself? Either way, also checked that the bugfixes following the original patch is still in effect, so looks ok to me. Henrik