From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Michael Date: Sun, 26 Jan 2020 22:31:58 +0000 Subject: [PATCH] KVM: PPC: Book3S PR: Fix -Werror=return-type build failure Message-Id: <87v9oxkfxd.fsf@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org Signed-off-by: David Michael --- Hi, I attempted to build 5.4.15 for PPC with KVM enabled using GCC 9.2.0 (on Gentoo), and compilation fails due to no return statement in a non-void function. Can this fix be applied? Thanks. David arch/powerpc/kvm/book3s_pr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index ce4fcf76e..eb86a2f26 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c @@ -2030,6 +2030,7 @@ static int kvm_vm_ioctl_get_smmu_info_pr(struct kvm *kvm, { /* We should not get called */ BUG(); + return 0; } #endif /* CONFIG_PPC64 */ -- 2.21.1