make domain_adjust_tot_pages() __must_check
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Dec 2018 11:19:04 +0000 (12:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Dec 2018 11:19:04 +0000 (12:19 +0100)
commitc46dba0d72e519743823c76c676858ad1af48b90
tree7df711706af591661c2a511977714c2e22c1f900
parent88f90693c74d5877f6b343076c31739e8754fb00
make domain_adjust_tot_pages() __must_check

Even if unlikely, donate_page() should not ignore the possible need to
obtain a domain reference. To make people look more closely when they
add new uses of domain_adjust_tot_pages(), force its return value to be
checked. This in turn requires a benign change to assign_pages().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c
xen/common/page_alloc.c
xen/include/xen/mm.h