mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Problem while adding a module to the kernel
@ 2003-06-09  6:45 BalaKrishna Mallipeddi
  0 siblings, 0 replies; only message in thread
From: BalaKrishna Mallipeddi @ 2003-06-09  6:45 UTC (permalink / raw)
  To: linux-kernel

Hi,
   while adding a module to Montavista Linux for PPC
architecture i am in trouble. 

   First i added a simple system call with a simple
print statement and it is working fine. 
    For easy development i am writing as module to
replace this existing system call.

   After that developed a simple module to replace
this system call and it also working. While developing
the actual module, i am getting problems.

  While compiling the module i got the following
warning:

rfs_fdisk_module.c:343: warning: implicit declaration
of function `ioctl'

While including the module in to kernel using 'insmod'
i am getting the following errors:
root@(none):/home/chois/rfs_modules/fdisk# insmod
rfs_fdisk_module.o
rfs_fdisk_module.o: unresolved symbol read
rfs_fdisk_module.o: unresolved symbol reboot
rfs_fdisk_module.o: unresolved symbol lseek
rfs_fdisk_module.o: unresolved symbol _exit
rfs_fdisk_module.o: unresolved symbol write
rfs_fdisk_module.o: unresolved symbol ioctl
rfs_fdisk_module.o:
Hint: You are trying to load a module without a GPL
compatible license
      and it has unresolved symbols.  Contact the
module supplier for
      assistance, only they can help you.

I included 'unistd.h' and 'sys/reboot.h' headers. To
resolve these errors if i include the headers
'sys/ioctl.h', 'string.h','sys/types.h', 'stdlib.h' it
is giving many errors of type 'redefinition of
'......' symbol. 

If anybody helps me i am greatful to you. Also let me
know any good documents for what precautions(what to
do and what not to do) to take for kernel programming.

Thanks & Regards



=====
BalaKrishna Mallipeddi
Member Technical Staff Software
Innomedia Technologies Pvt. Ltd.,
#3278, 12th Main, HAL 2nd stage,
Bangalore-560008,
INDIA
Phone : 5278389 + 123

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-09  6:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-09  6:45 Problem while adding a module to the kernel BalaKrishna Mallipeddi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®