All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.34-rc3: Can't insmod after make, because versions now differ?!
@ 2010-04-05  5:36 Pavel Machek
  2010-04-05  6:45 ` Andreas Mohr
  2010-04-05 15:24 ` Frans Pop
  0 siblings, 2 replies; 6+ messages in thread
From: Pavel Machek @ 2010-04-05  5:36 UTC (permalink / raw)
  To: kernel list

Hi!

I guess version check is needed, but this is excessive:

Apr  5 07:33:16 amd kernel: udlfb: version magic
'2.6.34-rc3-00345-ge8240f9-dirty SMP mod_unload CORE2 ' should be
'2.6.34-rc3-00344-g548fc0a-dirty SMP mod_unload CORE2 '

Yes, I played with git and recompiled my kernel in order to get new
module version, but... not even insmod -f works.

Having to reboot every time I recompile the module or play with git
makes modules useless for development :-(.
								Pavel
 
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: 2.6.34-rc3: Can't insmod after make, because versions now differ?!
  2010-04-05  5:36 2.6.34-rc3: Can't insmod after make, because versions now differ?! Pavel Machek
@ 2010-04-05  6:45 ` Andreas Mohr
  2010-04-05 15:24 ` Frans Pop
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Mohr @ 2010-04-05  6:45 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

Hi,

> Having to reboot every time I recompile the module or play with git
> makes modules useless for development :-(.

Confirmed. -rc3 (from 2.6.33 - sorry) was the only kernel I ever
observed this on (I simply changed a driver and redid make modules_install,
boom, version string (/lib/modules/...) changed from 2.6.34-rc3 to
2.6.34-rc3-...-dirty, despite having kept my git unupdated and on the
2.6.34-rc3 tag.

Andreas Mohr

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

* Re: 2.6.34-rc3: Can't insmod after make, because versions now differ?!
  2010-04-05  5:36 2.6.34-rc3: Can't insmod after make, because versions now differ?! Pavel Machek
  2010-04-05  6:45 ` Andreas Mohr
@ 2010-04-05 15:24 ` Frans Pop
  2010-04-06  7:06   ` Pavel Machek
  1 sibling, 1 reply; 6+ messages in thread
From: Frans Pop @ 2010-04-05 15:24 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel

Pavel Machek wrote:
> Apr  5 07:33:16 amd kernel: udlfb: version magic
> '2.6.34-rc3-00345-ge8240f9-dirty SMP mod_unload CORE2 ' should be
> '2.6.34-rc3-00344-g548fc0a-dirty SMP mod_unload CORE2 '
> 
> Yes, I played with git and recompiled my kernel in order to get new
> module version, but... not even insmod -f works.
> 
> Having to reboot every time I recompile the module or play with git
> makes modules useless for development :-(.

Disable CONFIG_LOCALVERSION_AUTO?

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

* Re: 2.6.34-rc3: Can't insmod after make, because versions now differ?!
  2010-04-05 15:24 ` Frans Pop
@ 2010-04-06  7:06   ` Pavel Machek
  2010-04-06 13:00     ` Frans Pop
  0 siblings, 1 reply; 6+ messages in thread
From: Pavel Machek @ 2010-04-06  7:06 UTC (permalink / raw)
  To: Frans Pop; +Cc: linux-kernel

> Pavel Machek wrote:
> > Apr  5 07:33:16 amd kernel: udlfb: version magic
> > '2.6.34-rc3-00345-ge8240f9-dirty SMP mod_unload CORE2 ' should be
> > '2.6.34-rc3-00344-g548fc0a-dirty SMP mod_unload CORE2 '
> > 
> > Yes, I played with git and recompiled my kernel in order to get new
> > module version, but... not even insmod -f works.
> > 
> > Having to reboot every time I recompile the module or play with git
> > makes modules useless for development :-(.
> 
> Disable CONFIG_LOCALVERSION_AUTO?

Yes, but... should module version checking be fixed so that it does
not interfere like that?
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: 2.6.34-rc3: Can't insmod after make, because versions now differ?!
  2010-04-06  7:06   ` Pavel Machek
@ 2010-04-06 13:00     ` Frans Pop
  2010-04-06 13:26       ` Pavel Machek
  0 siblings, 1 reply; 6+ messages in thread
From: Frans Pop @ 2010-04-06 13:00 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel

On Tuesday 06 April 2010, Pavel Machek wrote:
> Yes, but... should module version checking be fixed so that it does
> not interfere like that?

I don't think so. Essentially you are getting what you configured: an 
extremely fine-grained kernel version. It's up to you to decide whether 
the benefits of that outweigh the limitations it brings.

Stripping parts of the kernel version for module compatibility checks could 
interfere with suffixes explicitly added by distros to specify ABI 
compatibility.

Cheers,
FJP

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

* Re: 2.6.34-rc3: Can't insmod after make, because versions now differ?!
  2010-04-06 13:00     ` Frans Pop
@ 2010-04-06 13:26       ` Pavel Machek
  0 siblings, 0 replies; 6+ messages in thread
From: Pavel Machek @ 2010-04-06 13:26 UTC (permalink / raw)
  To: Frans Pop; +Cc: linux-kernel

On Tue 2010-04-06 15:00:31, Frans Pop wrote:
> On Tuesday 06 April 2010, Pavel Machek wrote:
> > Yes, but... should module version checking be fixed so that it does
> > not interfere like that?
> 
> I don't think so. Essentially you are getting what you configured: an 
> extremely fine-grained kernel version. It's up to you to decide whether 
> the benefits of that outweigh the limitations it brings.

Yes, I want descriptive version strings. And yes, I'd like to use
modules, and do development.

Unfortunately, these two seem mutually exclusive. Given that Linus
made noises (iirc) about 'everyone should set localversion_auto'... 

> Stripping parts of the kernel version for module compatibility checks could 
> interfere with suffixes explicitly added by distros to specify ABI 
> compatibility.

So split the version into regular parts and very detailed parts,
putting explicit user options into 'regular'?

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2010-04-06 13:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-05  5:36 2.6.34-rc3: Can't insmod after make, because versions now differ?! Pavel Machek
2010-04-05  6:45 ` Andreas Mohr
2010-04-05 15:24 ` Frans Pop
2010-04-06  7:06   ` Pavel Machek
2010-04-06 13:00     ` Frans Pop
2010-04-06 13:26       ` Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.