From: Stephen Warren Date: Mon, 27 Feb 2012 21:27:19 +0000 (-0700) Subject: ARM: tegra: uncompress.h: Don't depend on kernel headers X-Git-Tag: v3.4-rc1~73^2~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e77a6b313fdfe4faa8f9a8edf919c7eb8d095fb5;p=pandora-kernel.git ARM: tegra: uncompress.h: Don't depend on kernel headers This fixes the following compile error: CC arch/arm/boot/compressed/misc.o In file included from arch/arm/boot/compressed/misc.c:28:0: arch/arm/mach-tegra/include/mach/uncompress.h: In function 'arch_decomp_setup': arch/arm/mach-tegra/include/mach/uncompress.h:125:2: error: implicit declaration of function 'BUILD_BUG_ON_ZERO' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors This is due to use of the ARRAY_SIZE() macro. Typically, this would be solved by including , but the compressor code isn't part of the kernel, and so should not include kernel headers. Instead, define the few macros the code uses directly, and in a way that doesn't depend on . Signed-off-by: Stephen Warren Signed-off-by: Olof Johansson --- Reading git-diff-tree failed