I copy and paste code from this URL for creating and reading/writing a proc file using a kernel module and get the error that proc_root is undeclared. This same example is on a
That example is out of date. Under the current kernel API, pass NULL for the root of procfs.
NULL
Also, instead of create_proc_entry, you should use proc_create() with a proper const struct file_operations *.
create_proc_entry
proc_create()
const struct file_operations *