linux-um archives
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net,
	Nelson Castillo <nelsoneci@gmail.com>
Cc: Linux en-Caja <linuxencaja@googlegroups.com>
Subject: Re: [uml-devel] Using __initcall from um/drivers/chan_kern.c / fun with keyboard
Date: Mon, 3 Oct 2005 20:51:00 +0200	[thread overview]
Message-ID: <200510032051.00444.blaisorblade@yahoo.it> (raw)
In-Reply-To: <2accc2ff0510022302i427f5730w56c3d0c28f7ff201@mail.gmail.com>

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 [4]).


> --------------
> # cat /proc/keystrokes
> 29
> --------------

> I read [1] and skimmed over [2] 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 
arch/um/include/init.h)

>   Blaisorblade told me to it in serio[3], but I don't know
>   where I should put the hooks. I think I can also use
>   drivers/char/keyboard.c
If it's arch-independent, you maybe can. But you'd better ask this on LKML, 
probably.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.messenger.yahoo.com



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2005-10-03 18:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03  6:02 [uml-devel] Using __initcall from um/drivers/chan_kern.c / fun with keyboard Nelson Castillo
2005-10-03 18:51 ` Blaisorblade [this message]
2005-10-03 19:04   ` Nelson Castillo

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=200510032051.00444.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=linuxencaja@googlegroups.com \
    --cc=nelsoneci@gmail.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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