initial commit

This commit is contained in:
uzy lol 2024-12-06 21:15:17 -08:00
parent e6c1865815
commit f4d4db43f8
3 changed files with 2 additions and 13 deletions

View File

@ -14,4 +14,3 @@ all:
clean:
make -C $(KERNELDIR) M=$(PWD) clean

View File

@ -125,7 +125,7 @@ static int __init audio_mixer_init(void) {
return major_number;
}
audio_class = class_create(THIS_MODULE, CLASS_NAME);
audio_class = class_create(THIS_MODULE, CLASS_NAME); // Use the module owner and class name
if (IS_ERR(audio_class)) {
unregister_chrdev(major_number, DEVICE_NAME);
printk(KERN_ALERT "Audio Mixer: Failed to register device class\n");

View File

@ -61,13 +61,3 @@ run: $(ROOTNAME)$(HW)$(FOPTION)
vrun: $(ROOTNAME)$(HW)$(FOPTION)
valgrind ./$(ROOTNAME)$(HW)$(FOPTION) $(RUNOPTIONS)
# Additional target for audio_test
CC = gcc
CFLAGS = -Wall -Wextra -Werror
audio_test: audio_test.c
$(CC) $(CFLAGS) -o audio_test audio_test.c
clean:
rm -f audio_test