All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.5.4-pre6 apm compile fix
@ 2002-02-11  2:26 Udo A. Steinberg
  2002-02-11  3:02 ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Udo A. Steinberg @ 2002-02-11  2:26 UTC (permalink / raw)
  To: Linus Torvalds, Linux Kernel


Hi Linus,

The attached patch fixes the following compiler warning in -pre6:

apm.c: In function `apm_mainloop':
apm.c:1376: warning: comparison between pointer and integer
apm.c:1384: warning: comparison between pointer and integer

nr_running is really a function and not an integer.

I believe this had already been applied in earlier 2.5 and then somehow
vanished, probably due to an update by whoever maintains apm.c

Regards,
-Udo.


--- linux-2.5.4-pre-vanilla/arch/i386/kernel/apm.c      Mon Feb 11 03:04:25 2002
+++ linux-2.5.4-pre/arch/i386/kernel/apm.c      Mon Feb 11 03:04:51 2002
@@ -1348,7 +1348,7 @@
  * decide if we should just power down.
  *
  */
-#define system_idle() (nr_running == 1)
+#define system_idle() (nr_running() == 1)
 
 static void apm_mainloop(void)
 {

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-02-12 21:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-11  2:26 [PATCH] 2.5.4-pre6 apm compile fix Udo A. Steinberg
2002-02-11  3:02 ` Alan Cox
2002-02-12  1:21   ` Stephen Rothwell
2002-02-12 16:59     ` Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.