On Monday 03 October 2005 08:02, Nelson Castillo wrote:
> Hi, I'm sending a patch that allows me to query the
> number of keys pressed by the user (I'll copy ).
> # cat /proc/keystrokes
> I read  and skimmed over  and I think I'm using
> the __init and __initcall macros well, but I get this
> error when I try to use them:
> CC arch/um/drivers/chan_kern.o
> arch/um/drivers/chan_kern.c:111: error: `proc_kst_init' undeclared
> here (not in a function)
> arch/um/drivers/chan_kern.c:98: warning: `proc_kts_init' defined but not
If you pasted the correct error message and the correct code, they both say
"kst" on one line and "kts" on the other. You have a trivial typo.
> What should I do/try?
> Can I use these macros in um/drivers/chan_kern.c?
Yes, take the right include and you can (use <linux/init.h>, not
> Blaisorblade told me to it in serio, but I don't know
> where I should put the hooks. I think I can also use
If it's arch-independent, you maybe can. But you'd better ask this on LKML,
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
Yahoo! Messenger: chiamate gratuite in tutto il mondo