[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4d0f02ec-4a36-34f1-3bfd-3f4758c4eea3@suse.com>
Date: Mon, 8 Nov 2021 17:24:51 +0100
From: Juergen Gross <jgross@...e.com>
To: Arnd Bergmann <arnd@...nel.org>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Stefano Stabellini <sstabellini@...nel.org>,
Oscar Salvador <osalvador@...e.de>,
Pankaj Gupta <pankaj.gupta@...ud.ionos.com>,
Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...hat.com>,
xen-devel@...ts.xenproject.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] xen/balloon: fix unused-variable warning
On 08.11.21 12:14, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> 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@...db.de>
Reviewed-by: Juergen Gross <jgross@...e.com>
Juergen
Download attachment "OpenPGP_0xB0DE9DD628BF132F.asc" of type "application/pgp-keys" (3092 bytes)
Download attachment "OpenPGP_signature" of type "application/pgp-signature" (496 bytes)
Powered by blists - more mailing lists