module compiling : asm/linkage.h file not found

后端 未结 5 1616
别跟我提以往
别跟我提以往 2021-01-01 19:18

I am trying to compile an example of \"hello world\" Kernel Module, problems found on ubuntu 11.04, kernel 3.2.6, gcc 4.5.2 and fedora 16, kernel 3.2.7, gcc 4.6.7.

c

5条回答
  •  余生分开走
    2021-01-01 19:38

    asm should be a link to the actual architecture you're compiling for, not to asm-generic.
    You can't compile a generic kernel module, that would work on a generic architecture. You have to compile it for the particular architecture you're going to use.

    I don't know why the asm didn't exist. It should be created as part of the configuration process.
    You might get other errors later, if configuration is incomplete in other ways.

提交回复
热议问题