我是为 Android 构建内核的新手。我遇到了一个问题,好几天都没能解决。错误如下:../kernel/cgroup/cpuset.c:1794:16:错误:声明“str...
我是为 Android 构建内核的新手。我遇到了一个问题,好几天都无法解决。错误如下:
../kernel/cgroup/cpuset.c:1794:16: error: declaration of 'struct cs_target' will not be visible outside of this function [-Werror,-Wvisibility]
struct cs_target tgt, size_t nbytes,
^
../kernel/cgroup/cpuset.c:1794:26: error: variable has incomplete type 'struct cs_target'
struct cs_target tgt, size_t nbytes,
^
../kernel/cgroup/cpuset.c:1794:16: note: forward declaration of 'struct cs_target'
struct cs_target tgt, size_t nbytes,
我该如何解决这个问题? 来源
以下是我的步骤:
cd /home/me/kuroneko_r_mt6765
export ARCH=arm64
export SUBARCH=arm
export CLANG_TRIPLE=aarch64-linux-gnu-
export CROSS_COMPILE=aarch64-linux-gnu-
export CROSS_COMPILE_ARM32=arm-linux-gnueabi-
make blossom_defconfig O=out
make -j4 CC=clang O=out