static int device_uevent(const struct device *dev, struct kobj_uevent_env *kenv)
now I have another problem:
In file included from ./include/linux/linkage.h:7,
from ./include/linux/kernel.h:8,
from /usr/src/dahdi/drivers/dahdi/dahdi-sysfs-chan.c:26:
/usr/src/dahdi/drivers/dahdi/dahdi-sysfs-chan.c: In function ‘dahdi_sysfs_chan_init’:
./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 *
/usr/src/dahdi/drivers/dahdi/dahdi-sysfs-chan.c:485:36: note: in expansion of macro ‘THIS_MODULE’
485 | dahdi_class = class_create(THIS_MODULE, “dahdi”);
| ^~~~~~~~~~~
In file included from ./include/linux/device.h:31,
from /usr/src/dahdi/include/dahdi/kernel.h:42,
from /usr/src/dahdi/drivers/dahdi/dahdi-sysfs-chan.c:30:
./include/linux/device/class.h:230:54: note: expected ‘const char *’ but argument is of type ‘struct module *’
230 | struct class * __must_check class_create(const char *name);
| ^~
/usr/src/dahdi/drivers/dahdi/dahdi-sysfs-chan.c:485:23: error: too many arguments to function ‘class_create’
485 | dahdi_class = class_create(THIS_MODULE, “dahdi”);
| ^~
In file included from ./include/linux/device.h:31,
from /usr/src/dahdi/include/dahdi/kernel.h:42,
from /usr/src/dahdi/drivers/dahdi/dahdi-sysfs-chan.c:30:
./include/linux/device/class.h:230:29: note: declared here
230 | struct class * __must_check class_create(const char *name);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:299: /usr/src/dahdi/drivers/dahdi/dahdi-sysfs-chan.o] Error 1
make[1]: *** [Makefile:1934: /usr/src/dahdi/drivers/dahdi] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/5.14.0-427.13.1.el9_4.x86_64’
make: *** [Makefile:74: modules] Error 2