[PATCH 01/18] ARM: asm/pl080.h: Protect against multiple inclusion of header file

Linus Walleij linus.walleij at linaro.org
Sat Jul 30 18:16:31 EDT 2011


2011/7/29 Viresh Kumar <viresh.kumar at st.com>:

> <asm/hardware/pl080.h> doesn't have protection to deal with multiple inclusion.
> And so we get compilation errors in cases where this file is included more than
> once. This patch adds #ifdefs at the top of file to protect it against multiple
> inclusions.
>
> Signed-off-by: Viresh Kumar <viresh.kumar at st.com>

Good idea.
Acked-by: Linus Walleij <linus.walleij at linaro.org>

Thanks,
Linus Walleij



More information about the linux-arm-kernel mailing list