xen/mm: Drop ARM put_gfn() stub
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 22 Oct 2018 14:25:14 +0000 (15:25 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Nov 2018 17:58:46 +0000 (17:58 +0000)
commitb7c741606451d86dba8af58265c6093bad1327d1
tree44b47f8e5813e7b2e36da0355c0da936dceeca90
parentd6e02850d3b45c9658457214a749cc48097bdef4
xen/mm: Drop ARM put_gfn() stub

On x86, get_gfn_*() and put_gfn() are reference counting pairs.  All the
get_gfn_*() functions are called from within CONFIG_X86 sections, but
put_gfn() is stubbed out on ARM.

As a result, the common code reads as if ARM is dropping references it never
acquired.

Put all put_gfn() calls in common code inside CONFIG_X86 to make the code
properly balanced, and drop the ARM stub.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/grant_table.c
xen/common/memory.c
xen/include/asm-arm/mm.h