From da2c65815c062fd012b7b77eee76be0905eb29f6 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 20 Sep 2021 10:23:08 +0200 Subject: [PATCH] page-alloc: further adjust assign_page{,s}() The on-commit editing of 5260e8fb93f0 ("xen: re-define assign_pages and introduce a new function assign_page") didn't go quite far enough: A local variable and a function argument also would have wanted adjusting. Signed-off-by: Jan Beulich Reviewed-by: Bertrand Marquis Reviewed-by: Stefano Stabellini --- xen/common/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index b64c07ae92..6142c7bb6a 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -2269,7 +2269,7 @@ int assign_pages( unsigned int memflags) { int rc = 0; - unsigned long i; + unsigned int i; spin_lock(&d->page_alloc_lock); @@ -2339,7 +2339,7 @@ int assign_pages( int assign_page(struct page_info *pg, unsigned int order, struct domain *d, unsigned int memflags) { - return assign_pages(pg, 1UL << order, d, memflags); + return assign_pages(pg, 1U << order, d, memflags); } struct page_info *alloc_domheap_pages( -- 2.30.2