-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
Which kernel are you building this against? When I try to build this on a kernel > 3.10 I get this error
/home/jacob/dev/ldd4/misc-modules/seq.c: In function ‘ct_init’:
/home/jacob/dev/ldd4/misc-modules/seq.c:97:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
entry = create_proc_entry("sequence", 0, NULL);
^
/home/jacob/dev/ldd4/misc-modules/seq.c:97:8: warning: assignment makes pointer from integer without a cast
entry = create_proc_entry("sequence", 0, NULL);
^
/home/jacob/dev/ldd4/misc-modules/seq.c:99:8: error: dereferencing pointer to incomplete type
entry->proc_fops = &ct_file_ops;
This can be fixed by using proc_create (see Documentation/filesystems/seq_file.txt from the latest tree line 65 for reference or search for create_proc here https://www.kernel.org/doc/Documentation/filesystems/seq_file.txt)
After fixing that more errors pop up, so I'd like to know which kernel you intend to base the latest book off of so I might try to compile these myself.
Metadata
Metadata
Assignees
Labels
No labels