All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix complile warnings in suspend.c, 2.5.28
@ 2002-07-25 12:40 Craig Kulesa
  2002-07-25 21:53 ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Craig Kulesa @ 2002-07-25 12:40 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel



This fixes some compile time warnings in suspend.c.  Look sensible? 
It's tested, even with full rmap and slab-on-LRU patches.  Even worked 
when suspending from X!

--- linux-2.5.28-rmap-slablru/kernel/suspend.c~	Wed Jul 24 20:56:59 2002
+++ linux-2.5.28-rmap-slablru/kernel/suspend.c	Wed Jul 24 21:05:21 2002
@@ -66,6 +66,7 @@
 #include <linux/swapops.h>
 
 extern void signal_wake_up(struct task_struct *t);
+asmlinkage void sys_sync(void);	/* it's really int */
 
 unsigned char software_suspend_enabled = 0;
 
@@ -1004,8 +1005,9 @@
 
 static int bdev_write_page(struct block_device *bdev, long pos, void *buf)
 {
-	struct buffer_head *bh;
 #if 0
+	struct buffer_head *bh;
+
 	BUG_ON (pos%PAGE_SIZE);
 	bh = __bread(bdev, pos/PAGE_SIZE, PAGE_SIZE);
 	if (!bh || (!bh->b_data)) {


Craig Kulesa
Steward Obs.
Univ. of Arizona


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

end of thread, other threads:[~2002-07-26 10:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-25 12:40 [PATCH] Fix complile warnings in suspend.c, 2.5.28 Craig Kulesa
2002-07-25 21:53 ` Pavel Machek
2002-07-25 22:49   ` [PATCH] Fix compile " Craig Kulesa
2002-07-26  9:57     ` Pavel Machek
2002-07-26 10:31       ` Craig Kulesa

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.