Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757129Ab1EXSrw (ORCPT ); Tue, 24 May 2011 14:47:52 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:17090 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756197Ab1EXSru (ORCPT ); Tue, 24 May 2011 14:47:50 -0400 Date: Tue, 24 May 2011 11:47:05 -0700 From: Randy Dunlap To: Stephen Rothwell , akpm Cc: linux-next@vger.kernel.org, LKML Subject: [PATCH -next] kmsg_dump.h: fix build when CONFIG_PRINTK is disabled Message-Id: <20110524114705.16e254f1.randy.dunlap@oracle.com> In-Reply-To: <20110524140212.a4f19769.sfr@canb.auug.org.au> References: <20110524140212.a4f19769.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4DDBFD34.002E:SCFMA922111,ss=1,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1233 Lines: 37 From: Randy Dunlap Fix 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 previous commit: commit 595dd3d8bf953254d8d2f30f99c54fe09c470040 Author: Randy Dunlap Date: Tue Dec 1 10:52:02 2009 -0800 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 --- include/linux/kmsg_dump.h | 1 + 1 file changed, 1 insertion(+) --- linux-next-20110524.orig/include/linux/kmsg_dump.h +++ linux-next-20110524/include/linux/kmsg_dump.h @@ -12,6 +12,7 @@ #ifndef _LINUX_KMSG_DUMP_H #define _LINUX_KMSG_DUMP_H +#include #include enum kmsg_dump_reason { -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/