]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 7122/1: localtimer: add header linux/errno.h explicitly
authorShawn Guo <shawn.guo@linaro.org>
Thu, 6 Oct 2011 13:57:24 +0000 (14:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 8 Oct 2011 09:04:27 +0000 (10:04 +0100)
commitbe7cfd87ba87d4998e815531b3f72b7931896495
treeed7f63ab3b2b6572c7af8046d6fa744c046ae4f6
parent221c79e61eb932315bdb90aa0f6b73e41e26d71d
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 <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/localtimer.h