ARM: 6961/1: zImage: Add build-time check for correctly-sized proc_type entries
authorDave Martin <dave.martin@linaro.org>
Tue, 14 Jun 2011 13:20:44 +0000 (14:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Jun 2011 10:33:20 +0000 (11:33 +0100)
commit946a105e16651c35e9cc670bff23812761f1ad35
treecc5c434db14553737808d7b86bb2d6938b06ca53
parent573619d165b85152eeddd3b3871002c48cd94e42
ARM: 6961/1: zImage: Add build-time check for correctly-sized proc_type entries

It is easy to mis-maintain the proc_types table such that the
entries become wrongly-sized and misaligned when the kernel is
built in Thumb-2.

This patch adds an assembly-time check which will turn most common
size/alignment mistakes in this table into build failures, to avoid
having to debug the boot-time kernel hang which would happen if the
resulting kernel were actually booted.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/head.S