From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Thu, 18 Aug 2011 22:03:00 -0700 Subject: multiple dependent out-of-tree modules In-Reply-To: References: Message-ID: <20110819050300.GA32352@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, Aug 18, 2011 at 10:40:12PM -0300, Jorgyano Bruno wrote: > > Hello guys! > > I'm working with three out-of-tree kernel modules,? > one of them?export symbols used by the others.? > At compile time, MODPOST warns?about undefined symbols,? > which are defined on the first module? > and?used in the second and third modules.? > When I try to load the modules?"insmod"?returns the error "Unknown Symbol in > module" for those symbols warned by MODPOST. > > How can I to compile several out-of-tree modules which depends on one another > and make ?to the dependant modules look for the needed symbols on the > directories of the modules which have the symbols? Use modprobe, not insmod, and you will be fine. greg k-h