* current -git adbhid.c build error
@ 2007-10-16 18:16 Joseph Fannin
2007-10-17 4:19 ` Paul Mackerras
0 siblings, 1 reply; 3+ messages in thread
From: Joseph Fannin @ 2007-10-16 18:16 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Dmitry Torokhov
Hello.
Commit b981d8b3f5e008ff10d993be633ad00564fc22cd in Linus's git tree
did this:
@@ -374,9 +373,9 @@ adbhid_input_keycode(int id, int scancode, int repeat)
#endif /* CONFIG_PPC_PMAC */
}
- if (adbhid[id]->keycode[keycode]) {
- input_report_key(adbhid[id]->input,
- adbhid[id]->keycode[keycode],
adbhid[id]->!up_flag);
+ key = adbhid[id]->keycode[keycode];
+ if (key) {
+ input_report_key(adbhid[id]->input, key, !up_flag);
input_sync(adbhid[id]->input);
} else
printk(KERN_INFO "Unhandled ADB key (scancode %#02x)
%s.\n", keycode,
... but did not define "key":
drivers/macintosh/adbhid.c: In function ‘adbhid_input_keycode’:
drivers/macintosh/adbhid.c:376: error: ‘key’ undeclared (first use in this function)
Gitweb says something about a merge conflict in this file, so maybe
Linus did this, and not Dmitry?
I'll leave it up to someone else to decide how best this variable
should be defined.
--
Joseph Fannin
jfannin@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: current -git adbhid.c build error
2007-10-16 18:16 current -git adbhid.c build error Joseph Fannin
@ 2007-10-17 4:19 ` Paul Mackerras
2007-10-17 4:31 ` Dmitry Torokhov
0 siblings, 1 reply; 3+ messages in thread
From: Paul Mackerras @ 2007-10-17 4:19 UTC (permalink / raw)
To: Joseph Fannin; +Cc: linuxppc-dev, Dmitry Torokhov
Joseph Fannin writes:
> Commit b981d8b3f5e008ff10d993be633ad00564fc22cd in Linus's git tree
> did this:
>
>
> @@ -374,9 +373,9 @@ adbhid_input_keycode(int id, int scancode, int repeat)
> #endif /* CONFIG_PPC_PMAC */
> }
>
> - if (adbhid[id]->keycode[keycode]) {
> - input_report_key(adbhid[id]->input,
> - adbhid[id]->keycode[keycode],
> adbhid[id]->!up_flag);
> + key = adbhid[id]->keycode[keycode];
> + if (key) {
> + input_report_key(adbhid[id]->input, key, !up_flag);
> input_sync(adbhid[id]->input);
> } else
> printk(KERN_INFO "Unhandled ADB key (scancode %#02x)
> %s.\n", keycode,
>
> ... but did not define "key":
It was a mis-merge between 555ddbb4, which made that change and *did*
add the declaration of key, and 9a402b64, which deleted the line that
the declaration of key was added to.
We need the patch below. Dmitry, will you push it or will I?
Paul.
[PATCH] Restore declaration of key in adbhid_input_keycode.
Merge commit b981d8b3f5e008ff10d993be633ad00564fc22cd lost the
declaration of `key' that 555ddbb4e2191c8823df2d61525218ac39481385
added, resulting in failure to compile. This fixes it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
---
diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c
index 8cce016..2766e4f 100644
--- a/drivers/macintosh/adbhid.c
+++ b/drivers/macintosh/adbhid.c
@@ -282,7 +282,7 @@ static void
adbhid_input_keycode(int id, int scancode, int repeat)
{
struct adbhid *ahid = adbhid[id];
- int keycode, up_flag;
+ int keycode, up_flag, key;
keycode = scancode & 0x7f;
up_flag = scancode & 0x80;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: current -git adbhid.c build error
2007-10-17 4:19 ` Paul Mackerras
@ 2007-10-17 4:31 ` Dmitry Torokhov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2007-10-17 4:31 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
On Wednesday 17 October 2007, Paul Mackerras wrote:
>
> It was a mis-merge between 555ddbb4, which made that change and *did*
> add the declaration of key, and 9a402b64, which deleted the line that
> the declaration of key was added to.
Oops, sorry.
>
> We need the patch below. Dmitry, will you push it or will I?
>
Please do. Thanks!
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-17 4:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16 18:16 current -git adbhid.c build error Joseph Fannin
2007-10-17 4:19 ` Paul Mackerras
2007-10-17 4:31 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).