Skip to contentSkip to conversation

Problem with using spinlocks when kernel is compiled without smp-support

DISCUSSION Robert Hancock 1 participant 1 message Dec 9, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Dirk Henning Gerdes

Hello Andrew!

I have the following problem on 2.6.15-rc5-mm1

When compiling a module using spinlocks I get the following error-message, when SMP is disabled in my Kernel-config:

..

Quoted 2 lines

shouldn't it be possible to use spinlocks in my code even if I don't support SMP for compatiblity ?

Yes, it is, something must be set up wrong in your compilation. In particular, are you trying to use old 2.4-style makefiles to build instead of one that calls the kernel's build system? If so, don't, it doesn't work..

Signature · 3 lines
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/