[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZXcnlzDhcy8_CizZ@google.com>
Date: Mon, 11 Dec 2023 07:15:35 -0800
From: Sean Christopherson <seanjc@...gle.com>
To: "'Guanjun'" <guanjun@...ux.alibaba.com>
Cc: dave.hansen@...ux.intel.com, luto@...nel.org, peterz@...radead.org,
kirill.shutemov@...ux.intel.com, yu.c.zhang@...ux.intel.com,
tabba@...gle.com, xiaoyao.li@...el.com, pbonzini@...hat.com,
x86@...nel.org, kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] KVM: Move kvm_gmem_migrate_folio inside CONFIG_MIGRATION
On Mon, Dec 11, 2023, 'Guanjun' wrote:
> From: Guanjun <guanjun@...ux.alibaba.com>
>
> 'kvm_gmem_migrate_folio' is only used when CONFIG_MIGRATION
> is defined, And it will triggers the compiler warning about
> 'kvm_gmem_migrate_folio' defined but not used when CONFIG_MIGRATION
> isn't defined.
>
> The compiler complained like that:
> arch/x86/kvm/../../../virt/kvm/guest_memfd.c:262:12: error: ‘kvm_gmem_migrate_folio’ defined but not used [-Werror=unused-function]
> 262 | static int kvm_gmem_migrate_folio(struct address_space *mapping,
> | ^~~~~~~~~~~~~~~~~~~~~~
Already fixed, commit 80583d0cfd8f ("KVM: guest-memfd: fix unused-function warning")
in kvm/next.
https://lore.kernel.org/all/20231208184908.2298225-1-pbonzini@redhat.com
Powered by blists - more mailing lists