From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Ravnborg Date: Sun, 04 Jan 2009 08:51:12 +0000 Subject: Re: [PATCH] sparc: Clean arch-specific code in prom_common.c Message-Id: <20090104085112.GC31198@uranus.ravnborg.org> List-Id: References: <49601548.509@gmail.com> In-Reply-To: <49601548.509@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org On Sun, Jan 04, 2009 at 12:47:52PM +1100, Julian Calaby wrote: > sparc: Clean arch-specific code in prom_common.c > > prom_nextprop() and prom_firstprop() have slightly different calling > conventions in 32 and 64 bit SPARC. > > prom_common.c uses a ifdef guard to ensure that these functions are > called correctly. > > Adjust code to eliminate this ifdef by using a calling convention that > is compatible with both 32 and 64 bit SPARC. > > Signed-off-by: Julian Calaby Looks good. Reviewed-by: Sam Ravnborg As a natural next step you could eliminate the following: #ifdef CONFIG_SPARC32 strcpy(p->name, name); #endif by moving this strcpy() to the prom_* functions for sparc32. Sam