patch-1.3.16 linux/drivers/net/ibmtr.c

Next file: linux/drivers/net/lance.c
Previous file: linux/drivers/net/hp100.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.15/linux/drivers/net/ibmtr.c linux/drivers/net/ibmtr.c
@@ -349,7 +349,10 @@
   ti->page_mask=0;
   if (ti->shared_ram_paging == 0xf) { /* No paging in adapter */
     ti->mapped_ram_size = ti->avail_shared_ram;
-  } else { unsigned char pg_size;
+  } else {
+#ifdef ENABLE_PAGING
+    unsigned char pg_size;
+#endif
 
 	DPRINTK("shared ram page size: %dK\n",ti->mapped_ram_size/2);
 #ifdef ENABLE_PAGING

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this