Skip to content

Unable to compile on 5.14 #125

@aminems

Description

@aminems

I'm using Oracle Linux 9 with kernel 5.14.0-427.13.1.el9_4.x86_64
I'm not able to compile the latest version of udmabuf

/u-dma-buf.c:2494:22: error: implicit declaration of function ‘device_add_properties’; did you mean ‘device_add_groups’? [-Werror=implicit-function-declaration]
2494 | retval = device_add_properties(dev, props);

./include/linux/export.h:17:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
17 | #define THIS_MODULE (&__this_module)
| ~^~~~~~~~~~~~~~~
| |
| struct module *

/u-dma-buf.c:3658:25: error: too many arguments to function ‘class_create’
3658 | udmabuf_sys_class = class_create(THIS_MODULE, DRIVER_NAME);

The first two errors could be resolved by ignoring the warning, but the last one is a real one.

Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions