[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071013184006.GA2114@nineveh.local>
Date: Sat, 13 Oct 2007 14:40:07 -0400
From: Joseph Fannin <jfannin@...il.com>
To: "Rafael J. Wysocki" <rjw@...k.pl>
Cc: Joseph Fannin <jfannin@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org,
Domen Puncer <domen.puncer@...argo.com>
Subject: Re: 2.6.23-mm1 pm_prepare() and _finish() w/ args vs. without
On Sat, Oct 13, 2007 at 07:22:48PM +0200, Rafael J. Wysocki wrote:
> On Saturday, 13 October 2007 17:50, Joseph Fannin wrote:
> > On Thu, Oct 11, 2007 at 09:31:26PM -0700, Andrew Morton wrote:
> > >
> > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23/2.6.23-mm1/
> >
> >
> > Domen Puncer's change to support "MPC5200 low power mode" (in
> > powerpc-git, which is in Linus's tree now) adds new code calling
> > mpc52xx_pm_prepare and _finish with suspend_state_t as an argument,
> > while Rafael Wysocki's pm-rework-struct-platform_suspend_ops.patch
> > converts those to take no arguments. So the build fails:
>
> Ouch.
>
> I think that the appended patch is needed. Unfortunately, I can't test it here.
>
> --- linux-2.6.23-mm1.orig/include/asm-powerpc/mpc52xx.h
> +++ linux-2.6.23-mm1/include/asm-powerpc/mpc52xx.h
> @@ -267,9 +267,9 @@ extern int mpc52xx_set_wakeup_gpio(u8 pi
> extern int __init lite5200_pm_init(void);
>
> /* lite5200 calls mpc5200 suspend functions, so here they are */
> -extern int mpc52xx_pm_prepare(suspend_state_t);
> +extern int mpc52xx_pm_prepare(void);
> extern int mpc52xx_pm_enter(suspend_state_t);
> -extern int mpc52xx_pm_finish(suspend_state_t);
> +extern void mpc52xx_pm_finish(void);
These declarations are extern, but
pm-rework-struct-platform_suspend_ops.patch makes the function
definitions static, which doesn't seem to be allowed.
After removing the static bits from those two functions in
mpc52xx_pm.c it builds, but there are lots of warnings, which seem to
be related:
CC arch/powerpc/kernel/prom.o
In file included from arch/powerpc/platforms/52xx/mpc52xx_pic.c:34:
include/asm/mpc52xx.h:271: warning: parameter names (without types) in function declaration
CC arch/powerpc/platforms/52xx/mpc52xx_common.o
arch/powerpc/kernel/prom.c: In function ‘early_init_dt_scan_chosen’:
arch/powerpc/kernel/prom.c:784: warning: assignment from incompatible pointer type
arch/powerpc/kernel/prom.c:788: warning: assignment from incompatible pointer type
In file included from arch/powerpc/platforms/52xx/mpc52xx_common.c:20:
include/asm/mpc52xx.h:271: warning: parameter names (without types) in function declaration
CC arch/powerpc/platforms/52xx/mpc52xx_pci.o
CC arch/powerpc/kernel/traps.o
In file included from arch/powerpc/platforms/52xx/mpc52xx_pci.c:16:
include/asm/mpc52xx.h:271: warning: parameter names (without types) in function declaration
arch/powerpc/platforms/52xx/mpc52xx_pci.c: In function ‘mpc52xx_pci_setup’:
arch/powerpc/platforms/52xx/mpc52xx_pci.c:262: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘resource_size_t’
arch/powerpc/platforms/52xx/mpc52xx_pci.c:262: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘resource_size_t’
arch/powerpc/platforms/52xx/mpc52xx_pci.c:276: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘resource_size_t’
arch/powerpc/platforms/52xx/mpc52xx_pci.c:276: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘resource_size_t’
arch/powerpc/platforms/52xx/mpc52xx_pci.c:295: warning: cast to pointer from integer of different size
arch/powerpc/platforms/52xx/mpc52xx_pci.c:295: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘resource_size_t’
arch/powerpc/platforms/52xx/mpc52xx_pci.c:295: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘resource_size_t’
CC arch/powerpc/platforms/52xx/efika.o
In file included from arch/powerpc/platforms/52xx/efika.c:36:
include/asm/mpc52xx.h:271: warning: parameter names (without types) in function declaration
CC arch/powerpc/kernel/setup-common.o
CC arch/powerpc/platforms/52xx/lite5200.o
In file included from arch/powerpc/platforms/52xx/lite5200.c:44:
include/asm/mpc52xx.h:271: warning: parameter names (without types) in function declaration
The build is moving though, and I don't actually have this platform --
I just can't avoid building it when building for powermac. Thanks.
--
Joseph Fannin
jfannin@...il.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists