From: Shawn Guo Date: Thu, 6 Oct 2011 13:57:24 +0000 (+0100) Subject: ARM: 7122/1: localtimer: add header linux/errno.h explicitly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bb1ac3ec95cf0cce5145617b140f2090ed45d565;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: 7122/1: localtimer: add header linux/errno.h explicitly Per the text in Documentation/SubmitChecklist as below, we should explicitly have header linux/errno.h in localtimer.h for ENXIO reference. 1: If you use a facility then #include the file that defines/declares that facility. Don't depend on other header files pulling in ones that you use. Otherwise, we may run into some compiling error like the following one, if any file includes localtimer.h without CONFIG_LOCAL_TIMERS defined. arch/arm/include/asm/localtimer.h: In function ‘local_timer_setup’: arch/arm/include/asm/localtimer.h:53:10: error: ‘ENXIO’ undeclared (first use in this function) Signed-off-by: Shawn Guo Signed-off-by: Russell King --- diff --git a/arch/arm/include/asm/localtimer.h b/arch/arm/include/asm/localtimer.h index 080d74f8128d..ff66638ff54d 100644 --- a/arch/arm/include/asm/localtimer.h +++ b/arch/arm/include/asm/localtimer.h @@ -10,6 +10,8 @@ #ifndef __ASM_ARM_LOCALTIMER_H #define __ASM_ARM_LOCALTIMER_H +#include + struct clock_event_device; /*