From: David Michael <fedora.dm0@gmail.com>
To: kvm-ppc@vger.kernel.org
Subject: [PATCH] KVM: PPC: Book3S PR: Fix -Werror=return-type build failure
Date: Sun, 26 Jan 2020 22:31:58 +0000 [thread overview]
Message-ID: <87v9oxkfxd.fsf@gmail.com> (raw)
Signed-off-by: David Michael <fedora.dm0@gmail.com>
---
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
next reply other threads:[~2020-01-26 22:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-26 22:31 David Michael [this message]
2020-01-30 0:57 ` [PATCH] KVM: PPC: Book3S PR: Fix -Werror=return-type build failure Paul Mackerras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9oxkfxd.fsf@gmail.com \
--to=fedora.dm0@gmail.com \
--cc=kvm-ppc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.