Dear Sir,
Our help service is delivered by at most three volunteers of whom one is
not available these days.
We would appreciate it very much if you could refrain from reposting
your requests. Your practice does not speed up the reponse, on the
contrary, because I have to read all your mails in detail to check if
they are identical, and I hardly have time to study one.
Menawhile, would you please mind downloading the LAST version of
scanModem and not one which is three months old, and to run scanModem as
root, as instructed by the documentation, which you probably did not do
or the output would be complete.
Finally, just like with scanModem, you should always use the most recent
version of the driver which is slmodem-2.9.11-20061021.tar.gz and not
the one which you selected, I do not wherefrom and why.
Jacques Goldberg
Bijendra wrote:
subject:bijendra,Nepal Fedora Core release 4 (Stentz)Kernel kernel
2.6.11-1.1369_FC4
Dear sir,
hardware specification:
intel pentium4 845 glly
modem netodragon smartlink frontech modem (pci bus 1,device 1,function 0)as
apear in winxp
OEM string:
PCIVEN_10B9 & DEV_5459 & SUBSYS_545910A5 & REV_00 4 & 2AF9ED5 & 0 & 08F0
diaognostics querry modem
ATI3 Frontech SIL -26 (pri) on NetoDragon
From sofmodem.txt by scan modem utility,
SIL26 SML SML, slamr driver plus slmodemd
Here I downloaded slamr driver(slmodem 2.9.9 epre1.tar.gz),
slmodemd2.9.11.20051009gcc4.tar.gz and incase of SML smartlink object file.o
I will download (possibly I don't need)because I already have netodragon
object file.o(amrmo.o 373bytes slamrmo.o 380 bytes)and whole tar file
slmodem-2.9.10_netodragon.tar.gz( which includes directories drivers,modem
patches,scripts and files changes, copying, makefile, readme) from
www.netodragon.com download site.How to merge precompiled netodragon *.o
object file into slmodem2.9.9 ?
I)First case:Now I untar slmodem299epre1 to /home/modem folder and start
make clean, make,make all ,make install the output is messy(autput:-
makeuname.txt file attached).
uname -r produces 2.6.11-1.1369_FC4 that is I have extra version mismatched
problem.
II)Second case:My /usr/include doesn't have every file & uname -r dir is
mismatched so I compile with $kernel_dir =
/usr/src/kernels/2.6.11-1.1369_FC4-i686/ where there is adequate files.Is
this path correct ?Then make clean, make ,make install.
uname -r produces 2.6.11-1.1369_FC4 that is I have extra version mismatched
problem.
but as I put $kerne_dir defined the compilation should have gone
smoothly.The output attached as make2.txt.Thank you.
bijendra@xxxxxxxxxxx
________________________________________________
Message sent using enet Mail
------------------------------------------------------------------------
[root@localhost slmodem299epre1]# make
make -C modem all
make[1]: Entering directory `/home/slmodem299epre1/modem'
rebuild profile...
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_main.o -c modem_main.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_cmdline.o -c modem_cmdline.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_datafile.o -c modem_datafile .c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_at.o -c modem_at.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_timer.o -c modem_timer.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_pack.o -c modem_pack.c
modem_pack.c: In function ‘modem_async_get_bits’:
modem_pack.c:100: warning: pointer targets in passing argument 2 of ‘m->get_char s’ differ in signedness
modem_pack.c: In function ‘modem_async_put_bits’:
modem_pack.c:148: warning: pointer targets in passing argument 2 of ‘m->put_char s’ differ in signedness
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_ec.o -c modem_ec.c
modem_ec.c: In function ‘tx_info’:
modem_ec.c:723: warning: pointer targets in passing argument 2 of ‘l->modem->get _chars’ differ in signedness
modem_ec.c: In function ‘push_rest_data’:
modem_ec.c:811: warning: pointer targets in passing argument 2 of ‘l->modem->put _chars’ differ in signedness
modem_ec.c: In function ‘rx_info’:
modem_ec.c:860: warning: pointer targets in passing argument 2 of ‘l->modem->put _chars’ differ in signedness
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_comp.o -c modem_comp.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_param.o -c modem_param.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_debug.o -c modem_debug.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o homolog_data.o -c homolog_data.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_sinus.o -c dp_sinus.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_dummy.o -c dp_dummy.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o sysdep_common.o -c sysdep_common.c
gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_test.o -c modem_test.c
gcc -o modem_test modem_test.o modem_cmdline.o modem.o modem_datafile.o modem_at .o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o modem_debug. o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o
make[1]: Leaving directory `/home/slmodem299epre1/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.11-1.1369_FC4/build
make[1]: Entering directory `/home/slmodem299epre1/drivers'
cc -I/lib/modules/2.6.11-1.1369_FC4/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.4.20
make[2]: Entering directory `/home/slmodem299epre1/drivers'
cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D MODVERSIONS --include /lib/modules/2.6.11-1.1369_FC4/build/include/linux/modvers ions.h -I/lib/modules/2.6.11-1.1369_FC4/build/include -I. -I./../modem -o amrmo _init.o -c amrmo_init.c
cc1: error: /lib/modules/2.6.11-1.1369_FC4/build/include/linux/modversions.h: No such file or directory
In file included from amrmo_init.c:46:
/usr/include/linux/config.h:5:2: error: #error Incorrectly using glibc headers f or a kernel module
In file included from /usr/include/linux/interrupt.h:9,
from amrmo_init.c:52:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not avail able on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in users pace: atomicity not guaranteed
In file included from amrmo_init.c:52:
/usr/include/linux/interrupt.h:12:25: error: asm/hardirq.h: No such file or dire ctory
/usr/include/linux/interrupt.h:13:25: error: asm/softirq.h: No such file or dire ctory
amrmo_init.c:55:25: error: asm/uaccess.h: No such file or directory
amrmo_init.c:56:35: error: linux/devfs_fs_kernel.h: No such file or directory
amrmo_init.c:171: error: syntax error before ‘spinlock_t’
amrmo_init.c:171: warning: no semicolon at end of struct or union
amrmo_init.c:172: warning: type defaults to ‘int’ in declaration of ‘wait’
amrmo_init.c:172: warning: data definition has no type or storage class
amrmo_init.c:175: error: syntax error before ‘}’ token
amrmo_init.c:179: error: syntax error before ‘extern’
amrmo_init.c:180: error: syntax error before ‘extern’
amrmo_init.c:181: error: syntax error before ‘extern’
amrmo_init.c:182: error: syntax error before ‘extern’
amrmo_init.c:183: error: syntax error before ‘extern’
amrmo_init.c:184: error: syntax error before ‘extern’
amrmo_init.c:185: error: syntax error before ‘extern’
amrmo_init.c:186: error: syntax error before ‘extern’
amrmo_init.c:187: error: syntax error before ‘extern’
amrmo_init.c:188: error: syntax error before ‘extern’
amrmo_init.c:215: error: array type has incomplete element type
amrmo_init.c:217: error: ‘PCI_ANY_ID’ undeclared here (not in a function)
amrmo_init.c:278: error: invalid application of ‘sizeof’ to incomplete type ‘str uct pci_device_id’
amrmo_init.c:293: error: syntax error before ‘va_list’
amrmo_init.c: In function ‘amrmo_vprintf’:
amrmo_init.c:296: error: storage size of ‘tv’ isn’t known
amrmo_init.c:300: error: ‘fmt’ undeclared (first use in this function)
amrmo_init.c:300: error: (Each undeclared identifier is reported only once
amrmo_init.c:300: error: for each function it appears in.)
amrmo_init.c:300: warning: implicit declaration of function ‘strlen’
amrmo_init.c:300: warning: incompatible implicit declaration of built-in functio n ‘strlen’
amrmo_init.c:302: warning: implicit declaration of function ‘do_gettimeofday’
amrmo_init.c:306: warning: implicit declaration of function ‘sprintf’
amrmo_init.c:306: warning: incompatible implicit declaration of built-in functio n ‘sprintf’
amrmo_init.c:307: warning: implicit declaration of function ‘in_interrupt’
amrmo_init.c:310: warning: implicit declaration of function ‘vsprintf’
amrmo_init.c:310: error: ‘args’ undeclared (first use in this function)
amrmo_init.c:316: warning: implicit declaration of function ‘printk’
amrmo_init.c:316: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:316: error: syntax error before string constant
amrmo_init.c:296: warning: unused variable ‘tv’
amrmo_init.c: At top level:
amrmo_init.c:320: error: syntax error before ‘int’
amrmo_init.c: In function ‘amrmo_debug_printf’:
amrmo_init.c:323: error: ‘va_list’ undeclared (first use in this function)
amrmo_init.c:323: error: syntax error before ‘args’
amrmo_init.c:325: warning: implicit declaration of function ‘va_start’
amrmo_init.c:325: error: ‘args’ undeclared (first use in this function)
amrmo_init.c:327: warning: implicit declaration of function ‘va_end’
amrmo_init.c: At top level:
amrmo_init.c:337: error: syntax error before ‘void’
amrmo_init.c: In function ‘amrmo_update_status’:
amrmo_init.c:341: warning: implicit declaration of function ‘spin_lock_irqsave’
amrmo_init.c:341: error: dereferencing pointer to incomplete type
amrmo_init.c:342: error: dereferencing pointer to incomplete type
amrmo_init.c:343: warning: implicit declaration of function ‘wake_up’
amrmo_init.c:343: error: dereferencing pointer to incomplete type
amrmo_init.c:344: warning: implicit declaration of function ‘spin_unlock_irqrest ore’
amrmo_init.c:344: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:347: warning: ‘struct file’ declared inside parameter list
amrmo_init.c:347: warning: its scope is only this definition or declaration, whi ch is probably not what you want
amrmo_init.c: In function ‘amrmo_read’:
amrmo_init.c:349: error: dereferencing pointer to incomplete type
amrmo_init.c:352: warning: implicit declaration of function ‘access_ok’
amrmo_init.c:352: error: ‘VERIFY_READ’ undeclared (first use in this function)
amrmo_init.c:353: error: ‘EFAULT’ undeclared (first use in this function)
amrmo_init.c:354: error: dereferencing pointer to incomplete type
amrmo_init.c:355: error: dereferencing pointer to incomplete type
amrmo_init.c:356: error: dereferencing pointer to incomplete type
amrmo_init.c:356: error: dereferencing pointer to incomplete type
amrmo_init.c:357: warning: implicit declaration of function ‘copy_to_user’
amrmo_init.c:357: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:362: warning: ‘struct file’ declared inside parameter list
amrmo_init.c: In function ‘amrmo_write’:
amrmo_init.c:364: error: dereferencing pointer to incomplete type
amrmo_init.c:367: error: ‘VERIFY_WRITE’ undeclared (first use in this function)
amrmo_init.c:368: error: ‘EFAULT’ undeclared (first use in this function)
amrmo_init.c:369: error: dereferencing pointer to incomplete type
amrmo_init.c:370: error: dereferencing pointer to incomplete type
amrmo_init.c:371: warning: implicit declaration of function ‘copy_from_user’
amrmo_init.c:371: error: dereferencing pointer to incomplete type
amrmo_init.c:373: error: dereferencing pointer to incomplete type
amrmo_init.c:373: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:378: error: syntax error before ‘poll_table’
amrmo_init.c: In function ‘amrmo_poll’:
amrmo_init.c:380: error: ‘file’ undeclared (first use in this function)
amrmo_init.c:383: warning: implicit declaration of function ‘poll_wait’
amrmo_init.c:383: error: dereferencing pointer to incomplete type
amrmo_init.c:384: error: dereferencing pointer to incomplete type
amrmo_init.c:385: error: dereferencing pointer to incomplete type
amrmo_init.c:387: error: dereferencing pointer to incomplete type
amrmo_init.c:389: error: dereferencing pointer to incomplete type
amrmo_init.c:391: error: dereferencing pointer to incomplete type
amrmo_init.c:393: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:399: warning: ‘struct file’ declared inside parameter list
amrmo_init.c:399: warning: ‘struct inode’ declared inside parameter list
amrmo_init.c: In function ‘amrmo_ioctl’:
amrmo_init.c:401: error: dereferencing pointer to incomplete type
amrmo_init.c:405: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:405: error: syntax error before string constant
amrmo_init.c:409: error: dereferencing pointer to incomplete type
amrmo_init.c:410: error: dereferencing pointer to incomplete type
amrmo_init.c:411: error: dereferencing pointer to incomplete type
amrmo_init.c:412: error: dereferencing pointer to incomplete type
amrmo_init.c:413: warning: implicit declaration of function ‘put_user’
amrmo_init.c:414: error: ‘EFAULT’ undeclared (first use in this function)
amrmo_init.c:417: error: dereferencing pointer to incomplete type
amrmo_init.c:418: error: dereferencing pointer to incomplete type
amrmo_init.c:421: error: dereferencing pointer to incomplete type
amrmo_init.c:422: error: dereferencing pointer to incomplete type
amrmo_init.c:425: error: dereferencing pointer to incomplete type
amrmo_init.c:427: error: ‘EINVAL’ undeclared (first use in this function)
amrmo_init.c: At top level:
amrmo_init.c:430: warning: ‘struct file’ declared inside parameter list
amrmo_init.c:430: warning: ‘struct inode’ declared inside parameter list
amrmo_init.c: In function ‘amrmo_open’:
amrmo_init.c:433: warning: implicit declaration of function ‘MINOR’
amrmo_init.c:433: error: dereferencing pointer to incomplete type
amrmo_init.c:435: error: ‘ENODEV’ undeclared (first use in this function)
amrmo_init.c:439: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:439: error: syntax error before string constant
amrmo_init.c:440: error: dereferencing pointer to incomplete type
amrmo_init.c:441: error: ‘EBUSY’ undeclared (first use in this function)
amrmo_init.c:442: error: dereferencing pointer to incomplete type
amrmo_init.c:443: error: dereferencing pointer to incomplete type
amrmo_init.c:445: warning: implicit declaration of function ‘atomic_inc’
amrmo_init.c:445: error: ‘__this_module’ undeclared (first use in this function)
amrmo_init.c:445: warning: value computed is not used
amrmo_init.c:447: warning: implicit declaration of function ‘init_waitqueue_head ’
amrmo_init.c:447: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:451: warning: ‘struct file’ declared inside parameter list
amrmo_init.c:451: warning: ‘struct inode’ declared inside parameter list
amrmo_init.c: In function ‘amrmo_release’:
amrmo_init.c:453: error: dereferencing pointer to incomplete type
amrmo_init.c:454: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:454: error: syntax error before string constant
amrmo_init.c:455: error: dereferencing pointer to incomplete type
amrmo_init.c:456: error: dereferencing pointer to incomplete type
amrmo_init.c:457: error: dereferencing pointer to incomplete type
amrmo_init.c:458: error: dereferencing pointer to incomplete type
amrmo_init.c:460: warning: implicit declaration of function ‘atomic_dec’
amrmo_init.c:460: error: ‘__this_module’ undeclared (first use in this function)
amrmo_init.c:460: warning: value computed is not used
amrmo_init.c: At top level:
amrmo_init.c:465: error: variable ‘amrmo_fops’ has initializer but incomplete ty pe
amrmo_init.c:466: error: unknown field ‘owner’ specified in initializer
amrmo_init.c:466: error: ‘__this_module’ undeclared here (not in a function)
amrmo_init.c:466: warning: excess elements in struct initializer
amrmo_init.c:466: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:467: error: unknown field ‘llseek’ specified in initializer
amrmo_init.c:467: error: ‘no_llseek’ undeclared here (not in a function)
amrmo_init.c:467: warning: excess elements in struct initializer
amrmo_init.c:467: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:468: error: unknown field ‘read’ specified in initializer
amrmo_init.c:468: warning: excess elements in struct initializer
amrmo_init.c:468: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:469: error: unknown field ‘write’ specified in initializer
amrmo_init.c:469: warning: excess elements in struct initializer
amrmo_init.c:469: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:470: error: unknown field ‘poll’ specified in initializer
amrmo_init.c:470: warning: excess elements in struct initializer
amrmo_init.c:470: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:471: error: unknown field ‘ioctl’ specified in initializer
amrmo_init.c:471: warning: excess elements in struct initializer
amrmo_init.c:471: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:472: error: unknown field ‘open’ specified in initializer
amrmo_init.c:472: warning: excess elements in struct initializer
amrmo_init.c:472: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:473: error: unknown field ‘release’ specified in initializer
amrmo_init.c:473: warning: excess elements in struct initializer
amrmo_init.c:473: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c: In function ‘amrmo_pci_interrupt’:
amrmo_init.c:487: error: dereferencing pointer to incomplete type
amrmo_init.c: In function ‘amrmo_pci_probe’:
amrmo_init.c:505: error: ‘KERN_INFO’ undeclared (first use in this function)
amrmo_init.c:505: error: syntax error before string constant
amrmo_init.c:509: warning: implicit declaration of function ‘pci_enable_device’
amrmo_init.c:510: error: dereferencing pointer to incomplete type
amrmo_init.c:511: error: ‘ENODEV’ undeclared (first use in this function)
amrmo_init.c:513: warning: implicit declaration of function ‘kmalloc’
amrmo_init.c:513: error: dereferencing pointer to incomplete type
amrmo_init.c:513: error: ‘GFP_KERNEL’ undeclared (first use in this function)
amrmo_init.c:513: warning: assignment makes pointer from integer without a cast
amrmo_init.c:515: warning: implicit declaration of function ‘pci_disable_device’
amrmo_init.c:516: error: ‘ENOMEM’ undeclared (first use in this function)
amrmo_init.c:518: warning: implicit declaration of function ‘memset’
amrmo_init.c:518: warning: incompatible implicit declaration of built-in functio n ‘memset’
amrmo_init.c:518: error: dereferencing pointer to incomplete type
amrmo_init.c:520: error: dereferencing pointer to incomplete type
amrmo_init.c:520: error: dereferencing pointer to incomplete type
amrmo_init.c:521: error: dereferencing pointer to incomplete type
amrmo_init.c:521: error: dereferencing pointer to incomplete type
amrmo_init.c:522: error: dereferencing pointer to incomplete type
amrmo_init.c:523: error: dereferencing pointer to incomplete type
amrmo_init.c:523: error: dereferencing pointer to incomplete type
amrmo_init.c:524: warning: implicit declaration of function ‘pci_resource_flags’
amrmo_init.c:524: error: ‘IORESOURCE_MEM’ undeclared (first use in this function )
amrmo_init.c:525: warning: implicit declaration of function ‘pci_resource_start’
amrmo_init.c:526: warning: implicit declaration of function ‘pci_resource_len’
amrmo_init.c:527: error: dereferencing pointer to incomplete type
amrmo_init.c:530: error: dereferencing pointer to incomplete type
amrmo_init.c:535: error: dereferencing pointer to incomplete type
amrmo_init.c:536: error: dereferencing pointer to incomplete type
amrmo_init.c:541: warning: implicit declaration of function ‘spin_lock_init’
amrmo_init.c:541: error: dereferencing pointer to incomplete type
amrmo_init.c:542: error: dereferencing pointer to incomplete type
amrmo_init.c:544: error: dereferencing pointer to incomplete type
amrmo_init.c:544: error: dereferencing pointer to incomplete type
amrmo_init.c:545: error: dereferencing pointer to incomplete type
amrmo_init.c:546: error: ‘KERN_ERR’ undeclared (first use in this function)
amrmo_init.c:546: error: syntax error before string constant
amrmo_init.c:548: warning: implicit declaration of function ‘kfree’
amrmo_init.c:552: warning: implicit declaration of function ‘pci_set_master’
amrmo_init.c:554: warning: implicit declaration of function ‘pci_request_regions ’
amrmo_init.c:554: error: dereferencing pointer to incomplete type
amrmo_init.c:556: error: syntax error before string constant
amrmo_init.c:557: error: dereferencing pointer to incomplete type
amrmo_init.c:563: error: dereferencing pointer to incomplete type
amrmo_init.c:563: warning: implicit declaration of function ‘ioremap’
amrmo_init.c:564: error: dereferencing pointer to incomplete type
amrmo_init.c:565: error: syntax error before string constant
amrmo_init.c:566: warning: implicit declaration of function ‘pci_release_regions ’
amrmo_init.c:567: error: dereferencing pointer to incomplete type
amrmo_init.c:570: error: ‘EIO’ undeclared (first use in this function)
amrmo_init.c:574: warning: implicit declaration of function ‘request_irq’
amrmo_init.c:574: error: dereferencing pointer to incomplete type
amrmo_init.c:574: error: ‘SA_SHIRQ’ undeclared (first use in this function)
amrmo_init.c:575: error: dereferencing pointer to incomplete type
amrmo_init.c:577: error: syntax error before string constant
amrmo_init.c:578: error: dereferencing pointer to incomplete type
amrmo_init.c:579: warning: implicit declaration of function ‘iounmap’
amrmo_init.c:579: error: dereferencing pointer to incomplete type
amrmo_init.c:581: error: dereferencing pointer to incomplete type
amrmo_init.c:587: error: dereferencing pointer to incomplete type
amrmo_init.c:589: error: syntax error before string constant
amrmo_init.c:590: warning: implicit declaration of function ‘free_irq’
amrmo_init.c:590: error: dereferencing pointer to incomplete type
amrmo_init.c:591: error: dereferencing pointer to incomplete type
amrmo_init.c:592: error: dereferencing pointer to incomplete type
amrmo_init.c:594: error: dereferencing pointer to incomplete type
amrmo_init.c:602: error: dereferencing pointer to incomplete type
amrmo_init.c:608: error: ‘EBUSY’ undeclared (first use in this function)
amrmo_init.c:612: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:612: error: syntax error before string constant
amrmo_init.c:615: error: syntax error before string constant
amrmo_init.c:618: warning: implicit declaration of function ‘pci_set_drvdata’
amrmo_init.c:635: error: dereferencing pointer to incomplete type
amrmo_init.c:636: error: dereferencing pointer to incomplete type
amrmo_init.c:637: error: dereferencing pointer to incomplete type
amrmo_init.c:639: error: dereferencing pointer to incomplete type
amrmo_init.c: In function ‘amrmo_pci_remove’:
amrmo_init.c:647: warning: implicit declaration of function ‘pci_get_drvdata’
amrmo_init.c:647: warning: initialization makes pointer from integer without a c ast
amrmo_init.c:648: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:648: error: syntax error before string constant
amrmo_init.c:664: error: dereferencing pointer to incomplete type
amrmo_init.c:665: error: dereferencing pointer to incomplete type
amrmo_init.c:666: error: dereferencing pointer to incomplete type
amrmo_init.c:667: error: dereferencing pointer to incomplete type
amrmo_init.c:668: error: dereferencing pointer to incomplete type
amrmo_init.c:670: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:678: error: variable ‘amrmo_pci_driver’ has initializer but incompl ete type
amrmo_init.c:679: error: unknown field ‘name’ specified in initializer
amrmo_init.c:679: warning: excess elements in struct initializer
amrmo_init.c:679: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:680: error: unknown field ‘id_table’ specified in initializer
amrmo_init.c:680: warning: excess elements in struct initializer
amrmo_init.c:680: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:681: error: unknown field ‘probe’ specified in initializer
amrmo_init.c:681: warning: excess elements in struct initializer
amrmo_init.c:681: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:682: error: unknown field ‘remove’ specified in initializer
amrmo_init.c:682: warning: excess elements in struct initializer
amrmo_init.c:682: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c: In function ‘amrmo_init’:
amrmo_init.c:703: warning: implicit declaration of function ‘pci_present’
amrmo_init.c:704: error: ‘ENODEV’ undeclared (first use in this function)
amrmo_init.c:707: error: ‘KERN_INFO’ undeclared (first use in this function)
amrmo_init.c:707: error: syntax error before string constant
amrmo_init.c:714: warning: implicit declaration of function ‘pci_for_each_dev’
amrmo_init.c:714: error: syntax error before ‘{’ token
amrmo_init.c:701: warning: unused variable ‘err’
amrmo_init.c: At top level:
amrmo_init.c:724: error: syntax error before ‘if’
amrmo_init.c: In function ‘amrmo_exit’:
amrmo_init.c:777: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:777: error: syntax error before string constant
amrmo_init.c:778: warning: implicit declaration of function ‘unregister_chrdev’
amrmo_init.c:779: warning: implicit declaration of function ‘pci_unregister_driv er’
amrmo_init.c:789: confused by earlier errors, bailing out
make[2]: *** [amrmo_init.o] Error 1
make[2]: Leaving directory `/home/slmodem299epre1/drivers'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/slmodem299epre1/drivers'
make: *** [drivers] Error 2
------------------------------------------------------------------------
[root@localhost slmodem299epre1]# make
make -C modem all
make[1]: Entering directory `/home/slmodem299epre1/modem'
make[1]: Leaving directory `/home/slmodem299epre1/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.11-1.1369_FC4/build
make[1]: Entering directory `/home/slmodem299epre1/drivers'
cc -I/lib/modules/2.6.11-1.1369_FC4/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.4.20
make[2]: Entering directory `/home/slmodem299epre1/drivers'
cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS --include /lib/modules/2.6.11-1.1369_FC4/build/include/linux/modversions.h -I/lib/modules/2.6.11-1.1369_FC4/build/include -I. -I./../modem -o amrmo_init.o -c amrmo_init.c
cc1: error: /lib/modules/2.6.11-1.1369_FC4/build/include/linux/modversions.h: No such file or directory
In file included from amrmo_init.c:46:
/usr/include/linux/config.h:5:2: error: #error Incorrectly using glibc headers for a kernel module
In file included from /usr/include/linux/interrupt.h:9,
from amrmo_init.c:52:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from amrmo_init.c:52:
/usr/include/linux/interrupt.h:12:25: error: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:13:25: error: asm/softirq.h: No such file or directory
amrmo_init.c:55:25: error: asm/uaccess.h: No such file or directory
amrmo_init.c:56:35: error: linux/devfs_fs_kernel.h: No such file or directory
amrmo_init.c:171: error: syntax error before ‘spinlock_t’
amrmo_init.c:171: warning: no semicolon at end of struct or union
amrmo_init.c:172: warning: type defaults to ‘int’ in declaration of ‘wait’
amrmo_init.c:172: warning: data definition has no type or storage class
amrmo_init.c:175: error: syntax error before ‘}’ token
amrmo_init.c:179: error: syntax error before ‘extern’
amrmo_init.c:180: error: syntax error before ‘extern’
amrmo_init.c:181: error: syntax error before ‘extern’
amrmo_init.c:182: error: syntax error before ‘extern’
amrmo_init.c:183: error: syntax error before ‘extern’
amrmo_init.c:184: error: syntax error before ‘extern’
amrmo_init.c:185: error: syntax error before ‘extern’
amrmo_init.c:186: error: syntax error before ‘extern’
amrmo_init.c:187: error: syntax error before ‘extern’
amrmo_init.c:188: error: syntax error before ‘extern’
amrmo_init.c:215: error: array type has incomplete element type
amrmo_init.c:217: error: ‘PCI_ANY_ID’ undeclared here (not in a function)
amrmo_init.c:278: error: invalid application of ‘sizeof’ to incomplete type ‘struct pci_device_id’
amrmo_init.c:293: error: syntax error before ‘va_list’
amrmo_init.c: In function ‘amrmo_vprintf’:
amrmo_init.c:296: error: storage size of ‘tv’ isn’t known
amrmo_init.c:300: error: ‘fmt’ undeclared (first use in this function)
amrmo_init.c:300: error: (Each undeclared identifier is reported only once
amrmo_init.c:300: error: for each function it appears in.)
amrmo_init.c:300: warning: implicit declaration of function ‘strlen’
amrmo_init.c:300: warning: incompatible implicit declaration of built-in function ‘strlen’
amrmo_init.c:302: warning: implicit declaration of function ‘do_gettimeofday’
amrmo_init.c:306: warning: implicit declaration of function ‘sprintf’
amrmo_init.c:306: warning: incompatible implicit declaration of built-in function ‘sprintf’
amrmo_init.c:307: warning: implicit declaration of function ‘in_interrupt’
amrmo_init.c:310: warning: implicit declaration of function ‘vsprintf’
amrmo_init.c:310: error: ‘args’ undeclared (first use in this function)
amrmo_init.c:316: warning: implicit declaration of function ‘printk’
amrmo_init.c:316: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:316: error: syntax error before string constant
amrmo_init.c:296: warning: unused variable ‘tv’
amrmo_init.c: At top level:
amrmo_init.c:320: error: syntax error before ‘int’
amrmo_init.c: In function ‘amrmo_debug_printf’:
amrmo_init.c:323: error: ‘va_list’ undeclared (first use in this function)
amrmo_init.c:323: error: syntax error before ‘args’
amrmo_init.c:325: warning: implicit declaration of function ‘va_start’
amrmo_init.c:325: error: ‘args’ undeclared (first use in this function)
amrmo_init.c:327: warning: implicit declaration of function ‘va_end’
amrmo_init.c: At top level:
amrmo_init.c:337: error: syntax error before ‘void’
amrmo_init.c: In function ‘amrmo_update_status’:
amrmo_init.c:341: warning: implicit declaration of function ‘spin_lock_irqsave’
amrmo_init.c:341: error: dereferencing pointer to incomplete type
amrmo_init.c:342: error: dereferencing pointer to incomplete type
amrmo_init.c:343: warning: implicit declaration of function ‘wake_up’
amrmo_init.c:343: error: dereferencing pointer to incomplete type
amrmo_init.c:344: warning: implicit declaration of function ‘spin_unlock_irqrestore’
amrmo_init.c:344: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:347: warning: ‘struct file’ declared inside parameter list
amrmo_init.c:347: warning: its scope is only this definition or declaration, which is probably not what you want
amrmo_init.c: In function ‘amrmo_read’:
amrmo_init.c:349: error: dereferencing pointer to incomplete type
amrmo_init.c:352: warning: implicit declaration of function ‘access_ok’
amrmo_init.c:352: error: ‘VERIFY_READ’ undeclared (first use in this function)
amrmo_init.c:353: error: ‘EFAULT’ undeclared (first use in this function)
amrmo_init.c:354: error: dereferencing pointer to incomplete type
amrmo_init.c:355: error: dereferencing pointer to incomplete type
amrmo_init.c:356: error: dereferencing pointer to incomplete type
amrmo_init.c:356: error: dereferencing pointer to incomplete type
amrmo_init.c:357: warning: implicit declaration of function ‘copy_to_user’
amrmo_init.c:357: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:362: warning: ‘struct file’ declared inside parameter list
amrmo_init.c: In function ‘amrmo_write’:
amrmo_init.c:364: error: dereferencing pointer to incomplete type
amrmo_init.c:367: error: ‘VERIFY_WRITE’ undeclared (first use in this function)
amrmo_init.c:368: error: ‘EFAULT’ undeclared (first use in this function)
amrmo_init.c:369: error: dereferencing pointer to incomplete type
amrmo_init.c:370: error: dereferencing pointer to incomplete type
amrmo_init.c:371: warning: implicit declaration of function ‘copy_from_user’
amrmo_init.c:371: error: dereferencing pointer to incomplete type
amrmo_init.c:373: error: dereferencing pointer to incomplete type
amrmo_init.c:373: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:378: error: syntax error before ‘poll_table’
amrmo_init.c: In function ‘amrmo_poll’:
amrmo_init.c:380: error: ‘file’ undeclared (first use in this function)
amrmo_init.c:383: warning: implicit declaration of function ‘poll_wait’
amrmo_init.c:383: error: dereferencing pointer to incomplete type
amrmo_init.c:384: error: dereferencing pointer to incomplete type
amrmo_init.c:385: error: dereferencing pointer to incomplete type
amrmo_init.c:387: error: dereferencing pointer to incomplete type
amrmo_init.c:389: error: dereferencing pointer to incomplete type
amrmo_init.c:391: error: dereferencing pointer to incomplete type
amrmo_init.c:393: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:399: warning: ‘struct file’ declared inside parameter list
amrmo_init.c:399: warning: ‘struct inode’ declared inside parameter list
amrmo_init.c: In function ‘amrmo_ioctl’:
amrmo_init.c:401: error: dereferencing pointer to incomplete type
amrmo_init.c:405: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:405: error: syntax error before string constant
amrmo_init.c:409: error: dereferencing pointer to incomplete type
amrmo_init.c:410: error: dereferencing pointer to incomplete type
amrmo_init.c:411: error: dereferencing pointer to incomplete type
amrmo_init.c:412: error: dereferencing pointer to incomplete type
amrmo_init.c:413: warning: implicit declaration of function ‘put_user’
amrmo_init.c:414: error: ‘EFAULT’ undeclared (first use in this function)
amrmo_init.c:417: error: dereferencing pointer to incomplete type
amrmo_init.c:418: error: dereferencing pointer to incomplete type
amrmo_init.c:421: error: dereferencing pointer to incomplete type
amrmo_init.c:422: error: dereferencing pointer to incomplete type
amrmo_init.c:425: error: dereferencing pointer to incomplete type
amrmo_init.c:427: error: ‘EINVAL’ undeclared (first use in this function)
amrmo_init.c: At top level:
amrmo_init.c:430: warning: ‘struct file’ declared inside parameter list
amrmo_init.c:430: warning: ‘struct inode’ declared inside parameter list
amrmo_init.c: In function ‘amrmo_open’:
amrmo_init.c:433: warning: implicit declaration of function ‘MINOR’
amrmo_init.c:433: error: dereferencing pointer to incomplete type
amrmo_init.c:435: error: ‘ENODEV’ undeclared (first use in this function)
amrmo_init.c:439: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:439: error: syntax error before string constant
amrmo_init.c:440: error: dereferencing pointer to incomplete type
amrmo_init.c:441: error: ‘EBUSY’ undeclared (first use in this function)
amrmo_init.c:442: error: dereferencing pointer to incomplete type
amrmo_init.c:443: error: dereferencing pointer to incomplete type
amrmo_init.c:445: warning: implicit declaration of function ‘atomic_inc’
amrmo_init.c:445: error: ‘__this_module’ undeclared (first use in this function)
amrmo_init.c:445: warning: value computed is not used
amrmo_init.c:447: warning: implicit declaration of function ‘init_waitqueue_head’
amrmo_init.c:447: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:451: warning: ‘struct file’ declared inside parameter list
amrmo_init.c:451: warning: ‘struct inode’ declared inside parameter list
amrmo_init.c: In function ‘amrmo_release’:
amrmo_init.c:453: error: dereferencing pointer to incomplete type
amrmo_init.c:454: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:454: error: syntax error before string constant
amrmo_init.c:455: error: dereferencing pointer to incomplete type
amrmo_init.c:456: error: dereferencing pointer to incomplete type
amrmo_init.c:457: error: dereferencing pointer to incomplete type
amrmo_init.c:458: error: dereferencing pointer to incomplete type
amrmo_init.c:460: warning: implicit declaration of function ‘atomic_dec’
amrmo_init.c:460: error: ‘__this_module’ undeclared (first use in this function)
amrmo_init.c:460: warning: value computed is not used
amrmo_init.c: At top level:
amrmo_init.c:465: error: variable ‘amrmo_fops’ has initializer but incomplete type
amrmo_init.c:466: error: unknown field ‘owner’ specified in initializer
amrmo_init.c:466: error: ‘__this_module’ undeclared here (not in a function)
amrmo_init.c:466: warning: excess elements in struct initializer
amrmo_init.c:466: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:467: error: unknown field ‘llseek’ specified in initializer
amrmo_init.c:467: error: ‘no_llseek’ undeclared here (not in a function)
amrmo_init.c:467: warning: excess elements in struct initializer
amrmo_init.c:467: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:468: error: unknown field ‘read’ specified in initializer
amrmo_init.c:468: warning: excess elements in struct initializer
amrmo_init.c:468: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:469: error: unknown field ‘write’ specified in initializer
amrmo_init.c:469: warning: excess elements in struct initializer
amrmo_init.c:469: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:470: error: unknown field ‘poll’ specified in initializer
amrmo_init.c:470: warning: excess elements in struct initializer
amrmo_init.c:470: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:471: error: unknown field ‘ioctl’ specified in initializer
amrmo_init.c:471: warning: excess elements in struct initializer
amrmo_init.c:471: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:472: error: unknown field ‘open’ specified in initializer
amrmo_init.c:472: warning: excess elements in struct initializer
amrmo_init.c:472: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c:473: error: unknown field ‘release’ specified in initializer
amrmo_init.c:473: warning: excess elements in struct initializer
amrmo_init.c:473: warning: (near initialization for ‘amrmo_fops’)
amrmo_init.c: In function ‘amrmo_pci_interrupt’:
amrmo_init.c:487: error: dereferencing pointer to incomplete type
amrmo_init.c: In function ‘amrmo_pci_probe’:
amrmo_init.c:505: error: ‘KERN_INFO’ undeclared (first use in this function)
amrmo_init.c:505: error: syntax error before string constant
amrmo_init.c:509: warning: implicit declaration of function ‘pci_enable_device’
amrmo_init.c:510: error: dereferencing pointer to incomplete type
amrmo_init.c:511: error: ‘ENODEV’ undeclared (first use in this function)
amrmo_init.c:513: warning: implicit declaration of function ‘kmalloc’
amrmo_init.c:513: error: dereferencing pointer to incomplete type
amrmo_init.c:513: error: ‘GFP_KERNEL’ undeclared (first use in this function)
amrmo_init.c:513: warning: assignment makes pointer from integer without a cast
amrmo_init.c:515: warning: implicit declaration of function ‘pci_disable_device’
amrmo_init.c:516: error: ‘ENOMEM’ undeclared (first use in this function)
amrmo_init.c:518: warning: implicit declaration of function ‘memset’
amrmo_init.c:518: warning: incompatible implicit declaration of built-in function ‘memset’
amrmo_init.c:518: error: dereferencing pointer to incomplete type
amrmo_init.c:520: error: dereferencing pointer to incomplete type
amrmo_init.c:520: error: dereferencing pointer to incomplete type
amrmo_init.c:521: error: dereferencing pointer to incomplete type
amrmo_init.c:521: error: dereferencing pointer to incomplete type
amrmo_init.c:522: error: dereferencing pointer to incomplete type
amrmo_init.c:523: error: dereferencing pointer to incomplete type
amrmo_init.c:523: error: dereferencing pointer to incomplete type
amrmo_init.c:524: warning: implicit declaration of function ‘pci_resource_flags’
amrmo_init.c:524: error: ‘IORESOURCE_MEM’ undeclared (first use in this function)
amrmo_init.c:525: warning: implicit declaration of function ‘pci_resource_start’
amrmo_init.c:526: warning: implicit declaration of function ‘pci_resource_len’
amrmo_init.c:527: error: dereferencing pointer to incomplete type
amrmo_init.c:530: error: dereferencing pointer to incomplete type
amrmo_init.c:535: error: dereferencing pointer to incomplete type
amrmo_init.c:536: error: dereferencing pointer to incomplete type
amrmo_init.c:541: warning: implicit declaration of function ‘spin_lock_init’
amrmo_init.c:541: error: dereferencing pointer to incomplete type
amrmo_init.c:542: error: dereferencing pointer to incomplete type
amrmo_init.c:544: error: dereferencing pointer to incomplete type
amrmo_init.c:544: error: dereferencing pointer to incomplete type
amrmo_init.c:545: error: dereferencing pointer to incomplete type
amrmo_init.c:546: error: ‘KERN_ERR’ undeclared (first use in this function)
amrmo_init.c:546: error: syntax error before string constant
amrmo_init.c:548: warning: implicit declaration of function ‘kfree’
amrmo_init.c:552: warning: implicit declaration of function ‘pci_set_master’
amrmo_init.c:554: warning: implicit declaration of function ‘pci_request_regions’
amrmo_init.c:554: error: dereferencing pointer to incomplete type
amrmo_init.c:556: error: syntax error before string constant
amrmo_init.c:557: error: dereferencing pointer to incomplete type
amrmo_init.c:563: error: dereferencing pointer to incomplete type
amrmo_init.c:563: warning: implicit declaration of function ‘ioremap’
amrmo_init.c:564: error: dereferencing pointer to incomplete type
amrmo_init.c:565: error: syntax error before string constant
amrmo_init.c:566: warning: implicit declaration of function ‘pci_release_regions’
amrmo_init.c:567: error: dereferencing pointer to incomplete type
amrmo_init.c:570: error: ‘EIO’ undeclared (first use in this function)
amrmo_init.c:574: warning: implicit declaration of function ‘request_irq’
amrmo_init.c:574: error: dereferencing pointer to incomplete type
amrmo_init.c:574: error: ‘SA_SHIRQ’ undeclared (first use in this function)
amrmo_init.c:575: error: dereferencing pointer to incomplete type
amrmo_init.c:577: error: syntax error before string constant
amrmo_init.c:578: error: dereferencing pointer to incomplete type
amrmo_init.c:579: warning: implicit declaration of function ‘iounmap’
amrmo_init.c:579: error: dereferencing pointer to incomplete type
amrmo_init.c:581: error: dereferencing pointer to incomplete type
amrmo_init.c:587: error: dereferencing pointer to incomplete type
amrmo_init.c:589: error: syntax error before string constant
amrmo_init.c:590: warning: implicit declaration of function ‘free_irq’
amrmo_init.c:590: error: dereferencing pointer to incomplete type
amrmo_init.c:591: error: dereferencing pointer to incomplete type
amrmo_init.c:592: error: dereferencing pointer to incomplete type
amrmo_init.c:594: error: dereferencing pointer to incomplete type
amrmo_init.c:602: error: dereferencing pointer to incomplete type
amrmo_init.c:608: error: ‘EBUSY’ undeclared (first use in this function)
amrmo_init.c:612: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:612: error: syntax error before string constant
amrmo_init.c:615: error: syntax error before string constant
amrmo_init.c:618: warning: implicit declaration of function ‘pci_set_drvdata’
amrmo_init.c:635: error: dereferencing pointer to incomplete type
amrmo_init.c:636: error: dereferencing pointer to incomplete type
amrmo_init.c:637: error: dereferencing pointer to incomplete type
amrmo_init.c:639: error: dereferencing pointer to incomplete type
amrmo_init.c: In function ‘amrmo_pci_remove’:
amrmo_init.c:647: warning: implicit declaration of function ‘pci_get_drvdata’
amrmo_init.c:647: warning: initialization makes pointer from integer without a cast
amrmo_init.c:648: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:648: error: syntax error before string constant
amrmo_init.c:664: error: dereferencing pointer to incomplete type
amrmo_init.c:665: error: dereferencing pointer to incomplete type
amrmo_init.c:666: error: dereferencing pointer to incomplete type
amrmo_init.c:667: error: dereferencing pointer to incomplete type
amrmo_init.c:668: error: dereferencing pointer to incomplete type
amrmo_init.c:670: error: dereferencing pointer to incomplete type
amrmo_init.c: At top level:
amrmo_init.c:678: error: variable ‘amrmo_pci_driver’ has initializer but incomplete type
amrmo_init.c:679: error: unknown field ‘name’ specified in initializer
amrmo_init.c:679: warning: excess elements in struct initializer
amrmo_init.c:679: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:680: error: unknown field ‘id_table’ specified in initializer
amrmo_init.c:680: warning: excess elements in struct initializer
amrmo_init.c:680: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:681: error: unknown field ‘probe’ specified in initializer
amrmo_init.c:681: warning: excess elements in struct initializer
amrmo_init.c:681: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c:682: error: unknown field ‘remove’ specified in initializer
amrmo_init.c:682: warning: excess elements in struct initializer
amrmo_init.c:682: warning: (near initialization for ‘amrmo_pci_driver’)
amrmo_init.c: In function ‘amrmo_init’:
amrmo_init.c:703: warning: implicit declaration of function ‘pci_present’
amrmo_init.c:704: error: ‘ENODEV’ undeclared (first use in this function)
amrmo_init.c:707: error: ‘KERN_INFO’ undeclared (first use in this function)
amrmo_init.c:707: error: syntax error before string constant
amrmo_init.c:714: warning: implicit declaration of function ‘pci_for_each_dev’
amrmo_init.c:714: error: syntax error before ‘{’ token
amrmo_init.c:701: warning: unused variable ‘err’
amrmo_init.c: At top level:
amrmo_init.c:724: error: syntax error before ‘if’
amrmo_init.c: In function ‘amrmo_exit’:
amrmo_init.c:777: error: ‘KERN_DEBUG’ undeclared (first use in this function)
amrmo_init.c:777: error: syntax error before string constant
amrmo_init.c:778: warning: implicit declaration of function ‘unregister_chrdev’
amrmo_init.c:779: warning: implicit declaration of function ‘pci_unregister_driver’
amrmo_init.c:789: confused by earlier errors, bailing out
make[2]: *** [amrmo_init.o] Error 1
make[2]: Leaving directory `/home/slmodem299epre1/drivers'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/slmodem299epre1/drivers'
make: *** [drivers] Error 2