From: David Hildenbrand <david@redhat.com>
To: kvm@vger.kernel.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Radim Krčmář" <rkrcmar@redhat.com>,
david@redhat.com, "Thomas Huth" <thuth@redhat.com>,
"Cornelia Huck" <cohuck@redhat.com>,
"Christian Borntraeger" <borntraeger@de.ibm.com>
Subject: [kvm-unit-tests PATCH v1 3/5] s390x: make sure cpacf.h can be used
Date: Tue, 19 Sep 2017 16:50:31 +0200 [thread overview]
Message-ID: <20170919145033.16959-4-david@redhat.com> (raw)
In-Reply-To: <20170919145033.16959-1-david@redhat.com>
We don't define BUG(), just use a return instead.
Signed-off-by: David Hildenbrand <david@redhat.com>
---
lib/s390x/asm/cpacf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/s390x/asm/cpacf.h b/lib/s390x/asm/cpacf.h
index e06f255..ae2ec53 100644
--- a/lib/s390x/asm/cpacf.h
+++ b/lib/s390x/asm/cpacf.h
@@ -179,7 +179,7 @@ static inline int __cpacf_check_opcode(unsigned int opcode)
case CPACF_PRNO:
return test_facility(57); /* check for MSA5 */
default:
- BUG();
+ return 0;
}
}
--
2.13.5
next prev parent reply other threads:[~2017-09-19 14:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-19 14:50 [kvm-unit-tests PATCH v1 0/5] s390x: IPM/SPM and MSA tests David Hildenbrand
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 1/5] s390x: add a test case for the ipm + spm instructions David Hildenbrand
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 2/5] s390x: add cpacf.h from Linux David Hildenbrand
2017-09-19 14:50 ` David Hildenbrand [this message]
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 4/5] s390x: query and store STFL(E) facilitites David Hildenbrand
2017-09-19 14:50 ` [kvm-unit-tests PATCH v1 5/5] s390x: test for various MSA instructions David Hildenbrand
2017-09-20 7:25 ` [kvm-unit-tests PATCH v1 0/5] s390x: IPM/SPM and MSA tests Paolo Bonzini
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=20170919145033.16959-4-david@redhat.com \
--to=david@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=thuth@redhat.com \
/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.