Thanks for that. I had a look at that. I am surprised that very few
people have the same problems as I do. I checked the kernel source tree
for 2.6.21 and it appears linux/pci.h file has changed a bit from
2.6.17. I see that __pci_register_driver now returns a third argument,
KBUILD_MODNAME. Kernel 2.6.17 still returns two arguments. I believe
that the error may be related to that. I think I should be able to get
away with it by modifying the Makefile to explicitly include
KBUILD_MODNAME for all the compile modules. I did a make V=1 to print
the verbose messages and at the top of the output it says that kernel
configuration is invalid and is asking me to do a make oldconfig && make
proper. That does not seem right though considering that it's a fresh
DVD download of FC7 image. gcc version is 4.12. Does anyone have any
ideas as to what exactly has changed and what is it that I am doing
wrong in here. My first post of this issue has Makefile attached with it.
Thanks,
Dinesh
Andrea Gasparini wrote:
It appears that kbuild has changed a bit. I could not find much
information on this. Most of the links talk about adding a CFLAG with a
name for KBUILD_MODNAME. I have attached the Makefile if anybody wants
to look through. Please let me know what changes need to be made.
I found this symbol in
script/Makefile.lib
it tells:
79# $(modname_flags) #defines KBUILD_MODNAME as the name of the module it
will.
80# end up in (or would, if it gets compiled in)
so it seems related with $(modname) ... in this moment i don't have time to
investigate, but i think you can get some ideas by searching how it is
defined... ( $modname, i mean...)
hope this helps.
good night
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ