Re: [-mm patch] drivers/cdrom/sbpcd.c: fix the compilation

Nish Aravamudan
2005-08-19T23:45:28Z

On 8/19/05, Adrian Bunk <bunk@stusta.de> wrote:
> On Fri, Aug 19, 2005 at 04:33:31AM -0700, Andrew Morton wrote:
> >...
> > Changes since 2.6.13-rc5-mm1:
> >...
> > +drivers-cdrom-fix-up-schedule_timeout-usage.patch
> >...
>
> I sell copies of gcc at reasonable prices...
>
> <-- snip -->
>
> ...
> CC drivers/cdrom/sbpcd.o
> ...
> drivers/cdrom/sbpcd.c:830: warning: implicit declaration of function 'schedule_interruptible_timeout'
> ...
> LD .tmp_vmlinux1
> drivers/built-in.o: In function `sbp_sleep':sbpcd.c:
> (.text+0x7c4592): undefined reference to `schedule_interruptible_timeout'
> make: *** [.tmp_vmlinux1] Error 1
>
> <-- snip -->
>
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
>
> --- linux-2.6.13-rc6-mm1-full/drivers/cdrom/sbpcd.c.old 2005-08-19 20:43:18.000000000 +0200
> +++ linux-2.6.13-rc6-mm1-full/drivers/cdrom/sbpcd.c 2005-08-19 20:44:46.000000000 +0200
> @@ -827,7 +827,7 @@
> static void sbp_sleep(u_int time)
> {
> sti();
> - schedule_interruptible_timeout(time);
> + schedule_timeout_interruptible(time);

::sigh:: Thanks, Adrian!

-Nish