Re: when will we ever learn

Garst R. Reese (reese@isn.net)
Thu, 27 Aug 1998 02:16:30 -0300


"David S. Miller" <davem@dm.cobaltmicro.com> wrote:
Date: Wed, 26 Aug 1998 03:46:58 -0700

That one cannot perform bitops on a char...

- --- mm/swapfile.c.~3~ Wed Aug 26 00:05:02 1998
+++ mm/swapfile.c Wed Aug 26 02:42:19 1998
@@ -489,7 +489,7 @@
int swap_header_version;
int lock_map_size = PAGE_SIZE;
int nr_good_pages = 0;
- - char tmp_lock_map = 0;
+ unsigned long tmp_lock_map = 0;

lock_kernel();
if (!capable(CAP_SYS_ADMIN))
-------------------------------------------
Then you also have to change swap.h line 46
unsigned char * swap_lockmap;
to:
unsigned long * swap_lockmap;

-- 
Garst

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html