Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: asm/pl080.h: Protect against multiple inclusion of header file

<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@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Viresh Kumar and committed by
Vinod Koul
47850a27 d7db8080

+4
+4
arch/arm/include/asm/hardware/pl080.h
··· 21 21 * OneNAND features. 22 22 */ 23 23 24 + #ifndef ASM_PL080_H 25 + #define ASM_PL080_H 26 + 24 27 #define PL080_INT_STATUS (0x00) 25 28 #define PL080_TC_STATUS (0x04) 26 29 #define PL080_TC_CLEAR (0x08) ··· 141 138 u32 control1; 142 139 }; 143 140 141 + #endif /* ASM_PL080_H */