From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sceptre.pobox.com (sceptre.pobox.com [207.106.133.20]) by ozlabs.org (Postfix) with ESMTP id 5165DDDEC4 for ; Thu, 9 Aug 2007 07:57:33 +1000 (EST) Date: Wed, 8 Aug 2007 16:57:14 -0500 From: Nathan Lynch To: Linas Vepstas Subject: Re: [PATCH 6/6] pseries: eliminate global var Message-ID: <20070808215714.GB10114@localdomain> References: <20070808195916.GA20055@austin.ibm.com> <20070808200115.GA20134@austin.ibm.com> <20070808200210.GB20134@austin.ibm.com> <20070808200337.GC20134@austin.ibm.com> <20070808200448.GD20134@austin.ibm.com> <20070808200615.GE20134@austin.ibm.com> <20070808200713.GF20134@austin.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20070808200713.GF20134@austin.ibm.com> Cc: ppc-dev , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Linas Vepstas wrote: > --- linux-2.6.22-git2.orig/include/asm-powerpc/nvram.h 2007-07-08 18:32:17.000000000 -0500 > +++ linux-2.6.22-git2/include/asm-powerpc/nvram.h 2007-08-08 13:34:27.000000000 -0500 > @@ -62,14 +62,19 @@ struct nvram_partition { > unsigned int index; > }; > > - > -extern int nvram_write_error_log(char * buff, int length, unsigned int err_type); > -extern int nvram_read_error_log(char * buff, int length, unsigned int * err_type); > -extern int nvram_clear_error_log(void); > extern struct nvram_partition *nvram_find_partition(int sig, const char *name); > > -extern int pSeries_nvram_init(void); > extern int mmio_nvram_init(void); > + > +#ifdef CONFIG_PPC_PSERIES > +extern int pSeries_nvram_init(void); > +extern int nvram_write_error_log(char * buff, int length, > + unsigned int err_type, unsigned int err_seq); > +extern int nvram_read_error_log(char * buff, int length, > + unsigned int * err_type, unsigned int *err_seq); > +extern int nvram_clear_error_log(void); > +#endif /* CONFIG_PPC_PSERIES */ Declarations need not be #ifdef'd.