diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-11-08 12:14:02 +0100 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2021-11-08 17:40:17 +0100 |
commit | 501586ea5974a9dafee41f54a66326addb01a5ac (patch) | |
tree | e6884bbbab38a6290857b25249deec4a1ca8072d /arch/x86/xen/mmu_pv.c | |
parent | xen/balloon: rename alloc/free_xenballooned_pages (diff) | |
download | linux-501586ea5974a9dafee41f54a66326addb01a5ac.tar.xz linux-501586ea5974a9dafee41f54a66326addb01a5ac.zip |
xen/balloon: fix unused-variable warning
In configurations with CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=n
and CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y, gcc warns about an
unused variable:
drivers/xen/balloon.c:83:12: error: 'xen_hotplug_unpopulated' defined but not used [-Werror=unused-variable]
Since this is always zero when CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
is disabled, turn it into a preprocessor constant in that case.
Fixes: 121f2faca2c0 ("xen/balloon: rename alloc/free_xenballooned_pages")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20211108111408.3940366-1-arnd@kernel.org
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'arch/x86/xen/mmu_pv.c')
0 files changed, 0 insertions, 0 deletions