|
@@ -122,7 +122,7 @@ enum buddy {
|
|
|
};
|
|
|
|
|
|
/* Converts an allocation size in bytes to size in zbud chunks */
|
|
|
-static int size_to_chunks(int size)
|
|
|
+static int size_to_chunks(size_t size)
|
|
|
{
|
|
|
return (size + CHUNK_SIZE - 1) >> CHUNK_SHIFT;
|
|
|
}
|
|
@@ -247,7 +247,7 @@ void zbud_destroy_pool(struct zbud_pool *pool)
|
|
|
* gfp arguments are invalid or -ENOMEM if the pool was unable to allocate
|
|
|
* a new page.
|
|
|
*/
|
|
|
-int zbud_alloc(struct zbud_pool *pool, unsigned int size, gfp_t gfp,
|
|
|
+int zbud_alloc(struct zbud_pool *pool, size_t size, gfp_t gfp,
|
|
|
unsigned long *handle)
|
|
|
{
|
|
|
int chunks, i, freechunks;
|