mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Remi Colinet <remi.colinet@wanadoo.fr>
To: Kernel List <linux-kernel@vger.kernel.org>
Subject: 2.6.0-test5 : Bug in include/linux/input.h ?
Date: Tue, 16 Sep 2003 21:42:38 +0200	[thread overview]
Message-ID: <3F6767AE.4090907@wanadoo.fr> (raw)

Hi,

While reading the input code, I found the following error in 
drivers/linux/input.h :

--- include/linux/input.h       2003-08-23 01:54:59.000000000 +0200
+++ include/linux/input.h.mod   2003-09-16 21:38:10.000000000 +0200
@@ -751,7 +751,7 @@
 #define LONG(x) ((x)/BITS_PER_LONG)

 #define INPUT_KEYCODE(dev, scancode) ((dev->keycodesize == 1) ? 
((u8*)dev->keycode)[scancode] : \
-       ((dev->keycodesize == 1) ? ((u16*)dev->keycode)[scancode] : 
(((u32*)dev->keycode)[scancode])))
+       ((dev->keycodesize == 2) ? ((u16*)dev->keycode)[scancode] : 
(((u32*)dev->keycode)[scancode])))

 #define init_input_dev(dev)    do { INIT_LIST_HEAD(&((dev)->h_list)); 
INIT_LIST_HEAD(&((dev)->node)); } while (0)

Remi


             reply	other threads:[~2003-09-16 19:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-16 19:42 Remi Colinet [this message]
2003-09-16 20:25 ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F6767AE.4090907@wanadoo.fr \
    --to=remi.colinet@wanadoo.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®