Skip to content

Compilation error #1

Description

@uts09

I am getting below error while compiling the code.

Kernel version:3.10.0-327.el7.x86_64

/root/uts/driver/softlockup_test.c:36:5: error: implicit declaration of function ‘set_cpus_allowed’ [-Werror=implicit-function-declaration]
set_cpus_allowed(task0, *cpumask_of(0));
^
cc1: some warnings being treated as errors

Makefile

[root@localhost driver]# cat Makefile
obj-m = softlockup_test.o
KVERSION = $(shell uname -r)
all:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean

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