diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c index dbb436863e7f6e1f9183791211918b2563f1c6ca..b9926ee0052c37bc5d6f68cada276f010ea6bad9 100644 --- a/drivers/staging/zram/zram_drv.c +++ b/drivers/staging/zram/zram_drv.c @@ -697,7 +697,8 @@ int zram_init_device(struct zram *zram) return ret; } -void zram_slot_free_notify(struct block_device *bdev, unsigned long index) +static void zram_slot_free_notify(struct block_device *bdev, + unsigned long index) { struct zram *zram; diff --git a/drivers/staging/zram/zram_drv.h b/drivers/staging/zram/zram_drv.h index 7fdeb7d39ae91b4993983761255f758fbf18e52d..e5cd2469b6a088e034c1dea8c098dd8fd3463313 100644 --- a/drivers/staging/zram/zram_drv.h +++ b/drivers/staging/zram/zram_drv.h @@ -47,7 +47,7 @@ static const unsigned default_disksize_perc_ram = 25; * Pages that compress to size greater than this are stored * uncompressed in memory. */ -static const unsigned max_zpage_size = PAGE_SIZE / 4 * 3; +static const size_t max_zpage_size = PAGE_SIZE / 4 * 3; /* * NOTE: max_zpage_size must be less than or equal to: