Skip to content

Chapter 11 Kernel module #5

@pararti

Description

@pararti

My linux kernel version 5.18.14-arch1-1 and hwkm.c don't work.
I have a next error -
error: in passing argument 4 "proc_create": incompatible pointer type [-Werror=incompatible-pointer-types]

proc_file = proc_create("hwkm", 0, NULL, &proc_file_fops);
| ^~~~~~~~~~~~~~~
| |
| const struct file_operations *
I know that in kernel 5.6 and more its done differently but i don't know how...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions