]> git.baikalelectronics.ru Git - kernel.git/commit
kmsg_dump.h: fix build when CONFIG_PRINTK is disabled
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 15 Jun 2011 22:08:17 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Jun 2011 03:03:59 +0000 (20:03 -0700)
commitb917ebf030bd1f681a1c29c7eec937e9dbd85a5b
treea41d3d942acae278b67bb2fa92b4aa791dc02dc4
parent389ffe10ed14c0768227f96fb3d188aedf480188
kmsg_dump.h: fix build when CONFIG_PRINTK is disabled

Fix <linux/kmsg_dump.h> when CONFIG_PRINTK is not enabled:

  include/linux/kmsg_dump.h:56: error: 'EINVAL' undeclared (first use in this function)
  include/linux/kmsg_dump.h:61: error: 'EINVAL' undeclared (first use in this function)

Looks like commit b9da2cf41785 ("kmsg_dump: fix build for
CONFIG_PRINTK=n") uses EINVAL without having the needed header file(s),
but I'm sure that I build tested that patch also.  oh well.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kmsg_dump.h