Building R23.2 Kernel

Hi,

I am using gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu and gcc-linaro-5.3-2016.02-x86_64_armv8l-linux-gnueabihf as toolchains to build the kernel, when I call make zImage I encounter with the following error:

CC      arch/arm64/mm/dma-mapping.o
arch/arm64/mm/dma-mapping.c:579:22: error: '__atomic_get_pages' defined but not used [-Werror=unused-function]
 static struct page **__atomic_get_pages(void *addr)
                      ^
cc1: all warnings being treated as errors
make[1]: *** [arch/arm64/mm/dma-mapping.o] Error 1
make: *** [arch/arm64/mm] Error 2

How can I resolve this error? Thank you in advance.

How was the kernel configured prior to building? If config were wrong then there may be an attempt to build something without the prerequisites. Typically you’d make tegra21_defconfig and then menuconfig for edits.