I compiled (without warning) an example hello-5.cfrom the Linux Kernel Module Programming Guide , and when I tried to enable it, I received the following error:
hello-5.c
insmod: error inserting 'hello-5.ko': -1 Unknown symbol in module
I thought I would try splint to see if there were any obvious errors, but when I ran it, I got a lot of warnings from the kernel headers until it tried to parse asm/types.h
asm/types.h
anon@anon:~/kernel-source/lkmpg$ splint -I/lib/modules/$(uname -r)/build/include hello-5.c Splint 3.1.1 --- 03 Nov 2006 ( ... lots of warnings ... ) /lib/modules/2.6.24-24-insp8600/build/include/asm/types.h:13:24: Parse Error: Suspect missing struct or union keyword: __signed__ : unsigned short int. (For help on parse errors, see splint -help parseerrors.) *** Cannot continue.
So there are two questions:
, , :
splint- Splint Linux
make, gcc , .
. Linux:)
linux, C, , , , " C". , C- , .
, (03 Nov 2006), , , . , , - C-, .
03 Nov 2006
, ββLinux, , checker , . , , .
Source: https://habr.com/ru/post/1721011/More articles:In what order are Firefox extensions initialized? - firefox-addonWPF binding problem - c #Non Shared Ports on Amazon EC2 - amazonqueryset.exists () is not working correctly or am I not understanding something? - djangoAccess Windows 7 features using .NET. - .netIPhone Enterprise Distribution Program - iphoneJQuery ajax call does not accept alphanumeric parameters! - jqueryEliminate left recursion for E: = EE +tk, tcl exec stderr, stdout separately - scriptingImage against background image for UIButton - iphoneAll Articles