Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21650 - mm-sources-2.5.69-r8 -- SET_MODULE_OWNER macro not defined for non-net drivers
Summary: mm-sources-2.5.69-r8 -- SET_MODULE_OWNER macro not defined for non-net drivers
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL: http://lwn.net/Articles/27756/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-24 20:19 UTC by Boyd Waters
Modified: 2003-06-27 13:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boyd Waters 2003-05-24 20:19:13 UTC
SET_MODULE_OWNER is not defined for non-network-driver modules, which b0rks the
compile.

I ran into this for APM and "Dell Laptop Support module"

Rusty wants this macro deprecated, but some things still use it. It is trivial
to fix once you know what's going on, but I spent all afternoon banging against
it...


Reproducible: Always
Steps to Reproduce:
1. emerge mm-sources
2. <we get mm-sources-2.5.69-mm8>
3. cd /usr/src
4. type -l linux && rm -f linux && ln -s linux-2.5.69-mm8 linux
5. cd linux
6. make config <configure apm as part of the kernel>
7. make bzImage
8. wait a while
9. linking the kernel dies, SET_MODULE_OWNER is not a defined symbol 
Actual Results:  
kernel compile fails

Expected Results:  
kernel actually compiles

#define SET_MODULE_OWNER(dev) ((dev)->owner = THIS_MODULE)

I simply edited the offending .c files and added this #define

arch/i386/kernel/apm.c
drivers/char/i8k.c

were the files that I had trouble with, YMMV...
Comment 1 Jay Pfeifer (RETIRED) gentoo-dev 2003-06-27 13:57:11 UTC
this is a developmental source and we do not provide support for it. please contact the mm kernel maintainer directly.