mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Daniel Mack <daniel@caiaq.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Input: fix faulty XXinput_* calls
Date: Tue, 17 Aug 2010 22:14:38 -0700	[thread overview]
Message-ID: <20100818051435.GA1583@core.coreip.homeip.net> (raw)
In-Reply-To: <20100817162625.GA13896@core.coreip.homeip.net>

On Tue, Aug 17, 2010 at 09:26:25AM -0700, Dmitry Torokhov wrote:
> On Tue, Aug 17, 2010 at 04:38:51PM +0200, Daniel Mack wrote:
> > On Sat, Aug 14, 2010 at 11:52:13PM +0200, Geert Uytterhoeven wrote:
> > > On Thu, Aug 12, 2010 at 18:22, Dmitry Torokhov
> > > <dmitry.torokhov@gmail.com> wrote:
> > > > From: Daniel Mack <daniel@caiaq.de>
> > > >
> > > > They've been introduced by 987a6c02 ("Input: switch to input_abs_*()
> > > > access functions") and they appear to be some kind of debug left-over.
> > > >
> > > > [Dmitry Torokhov: these are my fault - I added XX prefixes in places where
> > > >  I wanted to do additional review of the code but failed to actually do
> > > >  that in these particular instances.]
> > > >
> > > > Signed-off-by: Daniel Mack <daniel@caiaq.de>
> > > > Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
> > > > ---
> > > >
> > > >  drivers/input/joystick/amijoy.c  |    2 +-
> > > 
> > > Thanks, amijoy.c compiles now.
> > > 
> > > But hil_kbd.c still doesn't compile:
> > > 
> > > > diff --git a/drivers/input/keyboard/hil_kbd.c b/drivers/input/keyboard/hil_kbd.c
> > > > index ddd5afd..dcc86b9 100644
> > > > --- a/drivers/input/keyboard/hil_kbd.c
> > > > +++ b/drivers/input/keyboard/hil_kbd.c
> > > > @@ -235,7 +235,7 @@ static void hil_dev_handle_ptr_events(struct hil_dev *ptr)
> > > >                        if (val < input_abs_min(dev, ABS_X + i))
> > > >                                input_abs_set_min(dev, ABS_X + i, val);
> > > >                        if (val > input_abs_max(dev, ABS_X + i))
> > > 
> > > error: implicit declaration of function ‘input_abs_max’.
> > > 
> > > And indeed, input_abs_max() does not exist, while hil_kbd.c has 4 callers.
> > 
> > Sorry about that. hil_kbd wasn't built on my system with an
> > allmodconfig, as I just got to know. Below is a fix for this unfortunate
> > trouble.
> > 
> 
> I think there still a couple of spots need to be adjusted. How about
> this one? (Sorry for the silence, I'm in the middle of a vacation).

And still there were more issues (missing semicolons, I think they were
there for a long time as TABLET_AUTOADJUST is not normally defined). I
have a fix that makes hil_kbd.c compile in my tree and I will post a
pull request in a day or so.

Thanks.

-- 
Dmitry

  reply	other threads:[~2010-08-18  5:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12 16:22 Dmitry Torokhov
2010-08-14 21:52 ` Geert Uytterhoeven
2010-08-17  7:46   ` Geert Uytterhoeven
2010-08-17 14:38   ` Daniel Mack
2010-08-17 16:26     ` Dmitry Torokhov
2010-08-18  5:14       ` Dmitry Torokhov [this message]
2010-08-18 11:54         ` Daniel Mack

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=20100818051435.GA1583@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=daniel@caiaq.de \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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

Powered by JetHome