“a99bcdce8395e3eab534d69eb886a1563030bc00”上不存在“...target/iscsi/git@gitcode.net:openharmony/kernel_linux.git”
提交 9bd54f64 编写于 作者: C Chen Gang 提交者: Mark Salter

c6x: include: asm: setup: Include "linux/types.h"

Some modules may assume "asm/setup.h" already include all headers which
needed by itself. So need let "asm/setup.h" include "linux/types.h", the
related error:

  C [M]  drivers/input/joydev.o
  In file included from include/asm-generic/page.h:23:0,
                   from ./arch/c6x/include/asm/page.h:9,
                   from include/asm-generic/io.h:14,
                   from arch/c6x/include/generated/asm/io.h:1,
                   from drivers/input/joydev.c:15:
  ./arch/c6x/include/asm/setup.h:17:27: error: unknown type name 'phys_addr_t'
   extern int c6x_add_memory(phys_addr_t start, unsigned long size);
                             ^
Signed-off-by: NChen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: NMark Salter <msalter@redhat.com>
上级 06745d74
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#define _ASM_C6X_SETUP_H #define _ASM_C6X_SETUP_H
#include <uapi/asm/setup.h> #include <uapi/asm/setup.h>
#include <linux/types.h>
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
extern int c6x_add_memory(phys_addr_t start, unsigned long size); extern int c6x_add_memory(phys_addr_t start, unsigned long size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册