aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-02-27 16:27:19 -0500
committerOlof Johansson <olof@lixom.net>2012-02-27 16:45:54 -0500
commite77a6b313fdfe4faa8f9a8edf919c7eb8d095fb5 (patch)
treea86e5aa454b20b1d697c88adfda68e584c3e41f6 /arch/arm/mach-tegra/include/mach
parentbdc93a77da75ee421125896ce4bbd91afff63809 (diff)
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 <linux/bug.h>, 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 <linux/bug.h>. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach')
-rw-r--r--arch/arm/mach-tegra/include/mach/uncompress.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/include/mach/uncompress.h b/arch/arm/mach-tegra/include/mach/uncompress.h
index b066ba0ee3c3..5a440f315e57 100644
--- a/arch/arm/mach-tegra/include/mach/uncompress.h
+++ b/arch/arm/mach-tegra/include/mach/uncompress.h
@@ -25,13 +25,15 @@
25#ifndef __MACH_TEGRA_UNCOMPRESS_H 25#ifndef __MACH_TEGRA_UNCOMPRESS_H
26#define __MACH_TEGRA_UNCOMPRESS_H 26#define __MACH_TEGRA_UNCOMPRESS_H
27 27
28#include <linux/kernel.h>
29#include <linux/types.h> 28#include <linux/types.h>
30#include <linux/serial_reg.h> 29#include <linux/serial_reg.h>
31 30
32#include <mach/iomap.h> 31#include <mach/iomap.h>
33#include <mach/irammap.h> 32#include <mach/irammap.h>
34 33
34#define BIT(x) (1 << (x))
35#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
36
35#define DEBUG_UART_SHIFT 2 37#define DEBUG_UART_SHIFT 2
36 38
37volatile u8 *uart; 39volatile u8 *uart;