mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Måns Rullgård" <mru@kth.se>
To: linux-kernel@vger.kernel.org
Subject: Re: Oops in register_chrdev, what did I do?
Date: Mon, 02 Aug 2004 11:36:15 +0200	[thread overview]
Message-ID: <yw1xllgxg9v4.fsf@kth.se> (raw)
In-Reply-To: <yw1xwu0i1vcp.fsf@kth.se>

Måns Rullgård <mru@kth.se> writes:

> While experimenting a bit with a small kernel module, I got this
> oops.  Digging further, I found that /proc/devices had an entry saying
>
> 248 <NULL>
>
> which would indicate that I passed a NULL name to register_chrdev(),
> only I didn't.  I used a string constant, so I can't see what changed
> it to NULL along the way.
>
> What am I missing here?

There was some confusion with compiler versions and flags, most
notably -mregparm.  Fixed now.  Sorry for the noise.

OTOH, wouldn't it be a good idea to refuse loading modules not
matching the running kernel?

-- 
Måns Rullgård
mru@kth.se


  parent reply	other threads:[~2004-08-02  9:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-01 20:01 Måns Rullgård
2004-08-02  1:09 ` Tommy Reynolds
2004-08-02  8:15   ` Måns Rullgård
2004-08-02  9:36 ` Måns Rullgård [this message]
2004-08-02  9:39   ` Arjan van de Ven
2004-08-02 10:09     ` Måns Rullgård
2004-08-02 10:10       ` Arjan van de Ven
2004-08-02 12:53         ` Måns Rullgård

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=yw1xllgxg9v4.fsf@kth.se \
    --to=mru@kth.se \
    --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®