From: Fengguang Wu <fengguang.wu@xxxxxxxxx> mm/zsmalloc.c:309:65-66: WARNING: return of 0/1 in function 'zs_register_migration' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Fixes: 3d58cbb028bb ("mm: zsmalloc: Replace return type int with bool") CC: Souptick Joarder <jrdr.linux@xxxxxxxxx> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -306,7 +306,7 @@ static void SetZsPageMovable(struct zs_p #else static int zsmalloc_mount(void) { return 0; } static void zsmalloc_unmount(void) {} -static bool zs_register_migration(struct zs_pool *pool) { return 0; } +static bool zs_register_migration(struct zs_pool *pool) { return false; } static void zs_unregister_migration(struct zs_pool *pool) {} static void migrate_lock_init(struct zspage *zspage) {} static void migrate_read_lock(struct zspage *zspage) {} -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>