mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: modversion.h in kernel 2.6.x
  2004-08-03 21:55 modversion.h in kernel 2.6.x Lei Yang
@ 2004-08-03 19:05 ` Arjan van de Ven
  2004-08-03 19:06 ` Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Arjan van de Ven @ 2004-08-03 19:05 UTC (permalink / raw)
  To: Lei Yang; +Cc: linux-kernel, kernelnewbies

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

On Tue, 2004-08-03 at 23:55, 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,

this module has a broken makefile for 2.6 .....

it really should use the kbuild infrastructure instead.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: modversion.h in kernel 2.6.x
  2004-08-03 21:55 modversion.h in kernel 2.6.x Lei Yang
  2004-08-03 19:05 ` Arjan van de Ven
@ 2004-08-03 19:06 ` Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2004-08-03 19:06 UTC (permalink / raw)
  To: Lei Yang; +Cc: linux-kernel, kernelnewbies

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* modversion.h in kernel 2.6.x
@ 2004-08-03 21:55 Lei Yang
  2004-08-03 19:05 ` Arjan van de Ven
  2004-08-03 19:06 ` Sam Ravnborg
  0 siblings, 2 replies; 3+ messages in thread
From: Lei Yang @ 2004-08-03 21:55 UTC (permalink / raw)
  To: linux-kernel, kernelnewbies

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

I checked .config in source tree and yes, CONFIG_MODVERSIONS is defined
as 'y'. But there is just no modversions.h in /include/linux :( Also, I
don't think it is in kernel version 2.4.x.

What the hack is modversions.h? 

Thanks!

Lei


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-03 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-03 21:55 modversion.h in kernel 2.6.x Lei Yang
2004-08-03 19:05 ` Arjan van de Ven
2004-08-03 19:06 ` Sam Ravnborg

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®