swap: Fix ports using swapmap_add where swapmap_init should be used
authorAlan Cox <alan@linux.intel.com>
Sun, 25 Nov 2018 18:40:10 +0000 (18:40 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 25 Nov 2018 18:40:10 +0000 (18:40 +0000)
Fixes 'free' command reporting

Kernel/platform-msx1/discard.c
Kernel/platform-nascom/devgm833.c
Kernel/platform-nascom/discard.c
Kernel/platform-rc2014-tiny/discard.c
Kernel/platform-rc2014/discard.c
Kernel/platform-sbcv2/discard.c

index 54f6e5a..c0ad3ec 100644 (file)
@@ -95,5 +95,5 @@ void platform_swap_found(uint8_t letter, uint8_t m)
   if (n > MAX_SWAPS)
     n = MAX_SWAPS;
   while(n)
-    swapmap_add(n--);
+    swapmap_init(n--);
 }
index cdd3683..394224c 100644 (file)
@@ -138,7 +138,7 @@ void gm833_init(void)
                /* Add swap */
                openshift = i >= 2 ? 2 : 1;
                for (i = 0; i < openshift * 8 ; i++)
-                       swapmap_add(i);
+                       swapmap_init(i);
        }
        kprintf("gm833: %dK found", num_gm833 * 512);
        kprintf(", %dK allocated for swap.\n", openshift * 512);
index b7d58c5..afe0988 100644 (file)
@@ -56,5 +56,5 @@ void platform_swap_found(uint8_t letter, uint8_t m)
        if (n > MAX_SWAPS)
                n = MAX_SWAPS;
        while (n)
-               swapmap_add(n--);
+               swapmap_init(n--);
 }
index 5766275..2a91275 100644 (file)
@@ -29,7 +29,7 @@ void platform_swap_found(uint8_t letter, uint8_t m)
   if (n > MAX_SWAPS)
     n = MAX_SWAPS;
   while(n)
-    swapmap_add(n--);
+    swapmap_init(n--);
 }
 
 void device_init(void)
index 74a92be..c4016de 100644 (file)
@@ -70,7 +70,7 @@ void platform_swap_found(uint8_t letter, uint8_t m)
                n = MAX_SWAPS;
 #ifdef SWAPDEV
        while (n)
-               swapmap_add(n--);
+               swapmap_init(n--);
 #endif
 }
 
index 127dcf5..84ee59e 100644 (file)
@@ -78,7 +78,7 @@ void platform_swap_found(uint8_t letter, uint8_t m)
   if (n > MAX_SWAPS)
     n = MAX_SWAPS;
   while(n)
-    swapmap_add(n--);
+    swapmap_init(n--);
 }
 
 /*