mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Lei Yang <leiyang@nec-labs.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	kernelnewbies <kernelnewbies@nl.linux.org>
Subject: Re: modversion.h in kernel 2.6.x
Date: Tue, 3 Aug 2004 21:06:49 +0200	[thread overview]
Message-ID: <20040803190649.GA20041@mars.ravnborg.org> (raw)
In-Reply-To: <1091570120.5487.82.camel@bijar.nec-labs.com>

On Tue, Aug 03, 2004 at 02:55:20PM -0700, Lei Yang wrote:
> Hello,
> 
> Could anyone tell me what happened with modversion.h in 2.6.x? I want to
> build a module whose makefile indicates that,
> 
> ifdef CONFIG_MODVERSIONS
> MODVERSIONS:= -DMODVERSIONS -include
> $(KERNEL_DIR)/include/linux/modversions.h
> CKERNOPS += $(MODVERSIONS)
> endif

This is a sign of a broken module.
Request the author to use the kbuild infrastructure when building the module.
See Documentation/kbuild/modules.txt and Driver porting series at lwn.net for
good examples.

If you do not need CONFIG_MODVERSION then try to disable it and compile
the module, you may be lucky that it works.

But be carefull not to enable any options that may change ABI, for example reg-parm=3
is know to cause problems if not used consistently.

	Sam

      parent reply	other threads:[~2004-08-03 19:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-03 21:55 Lei Yang
2004-08-03 19:05 ` Arjan van de Ven
2004-08-03 19:06 ` Sam Ravnborg [this message]

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=20040803190649.GA20041@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=kernelnewbies@nl.linux.org \
    --cc=leiyang@nec-labs.com \
    --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®