PATCH: 2.5.69 kernel/suspend.c compile warning

Daniele Bellucci (danielebellucci@libero.it)
Wed, 7 May 2003 14:30:11 +0200


gcc -Wp,-MD,kernel/.suspend.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototype
s -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-b
oundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default -nostdinc -iwithprefi
x include -DKBUILD_BASENAME=suspend -DKBUILD_MODNAME=suspend -c -o kernel/.t
mp_suspend.o kernel/suspend.c
kernel/suspend.c: In function `freeze_processes':
kernel/suspend.c:228: warning: comparison of distinct pointer types lacks a cast

--- linux-2.5.69-orig/kernel/suspend.c 2003-05-05 09:51:08.000000000 +0200
+++ linux-2.5.69-my/kernel/suspend.c 2003-05-08 14:07:19.000000000 +0200
@@ -201,7 +201,8 @@
/* 0 = success, else # of processes that we failed to stop */
int freeze_processes(void)
{
- int todo, start_time;
+ int todo;
+ unsigned long start_time;
struct task_struct *g, *p;

printk( "Stopping tasks: " );

http://web.tiscali.it/bellucda/2.5.69-freeze_processes.diff

-
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/