Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

Compute Module • Can't compile module anymore :-( (was: Re: CM4+Python+Bit banging)

$
0
0
Everything worked so well... I reinstalled the OS and I though I just run Make and I have a driver again. But I do not.

I did the same thing (installed kernel-headers etc.). Now the version is:
Linux raspberrypi 6.6.20+rpt-rpi-v7l #1 SMP Raspbian 1:6.6.20-1+rpt1 (2024-03-07) armv7l GNU/Linux

I think I did not have exactly the same version earlier, but not sure.

Anyway, driver won't compile anymore. None of the examples I have (copied from examples from here and there). The first issue is "class_create" function.
My code looks like this:
dev_class = class_create(THIS_MODULE,"test_class")

And the error message says:
/usr/src/linux-headers-6.6.20+rpt-common-rpi/include/linux/export.h:29:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
struct class * __must_check class_create(const char *name);

Like class_create function has changed??

Starting from last week I have experienced all kinds of issues doing exactly the same as weeks/months. The base image is exactly the same. The only difference is the result of apt-get full-upgrade etc.

Anyone recognized what an earth is going on?

Statistics: Posted by gotaf80307 — Sat Mar 16, 2024 6:41 pm



Viewing all articles
Browse latest Browse all 3552

Trending Articles