From patchwork Fri Sep 28 08:33:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 10619157 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 689FB174A for ; Fri, 28 Sep 2018 08:33:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C10428497 for ; Fri, 28 Sep 2018 08:33:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 508D52863D; Fri, 28 Sep 2018 08:33:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0200928497 for ; Fri, 28 Sep 2018 08:33:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729234AbeI1Oz7 (ORCPT ); Fri, 28 Sep 2018 10:55:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58988 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729227AbeI1Oz7 (ORCPT ); Fri, 28 Sep 2018 10:55:59 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 74904308427D; Fri, 28 Sep 2018 08:33:21 +0000 (UTC) Received: from thuth.com (ovpn-116-58.ams2.redhat.com [10.36.116.58]) by smtp.corp.redhat.com (Postfix) with ESMTP id BF65220155E2; Fri, 28 Sep 2018 08:33:19 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org, Paolo Bonzini , =?utf-8?b?UmFk?= =?utf-8?b?aW0gS3LEjW3DocWZ?= Cc: David Hildenbrand , Drew Jones , Janosch Frank Subject: [kvm-unit-tests PATCH 3/4] s390x: Make code compilable with -Wmissing-prototypes and -Wstrict-prototypes Date: Fri, 28 Sep 2018 10:33:01 +0200 Message-Id: <1538123582-17442-4-git-send-email-thuth@redhat.com> In-Reply-To: <1538123582-17442-1-git-send-email-thuth@redhat.com> References: <1538123582-17442-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.25 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Fri, 28 Sep 2018 08:33:21 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Include the right header in mmu.c to make sure that the implementations match the prototypes, and avoid old-style declaration in float.h. Signed-off-by: Thomas Huth Reviewed-by: David Hildenbrand --- lib/s390x/asm/float.h | 2 +- lib/s390x/mmu.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/s390x/asm/float.h b/lib/s390x/asm/float.h index e994e15..f61fa62 100644 --- a/lib/s390x/asm/float.h +++ b/lib/s390x/asm/float.h @@ -24,7 +24,7 @@ static inline uint32_t get_fpc(void) return fpc; } -static inline uint8_t get_fpc_dxc() +static inline uint8_t get_fpc_dxc(void) { return get_fpc() >> 8; } diff --git a/lib/s390x/mmu.c b/lib/s390x/mmu.c index 70753c3..912236c 100644 --- a/lib/s390x/mmu.c +++ b/lib/s390x/mmu.c @@ -15,6 +15,7 @@ #include #include #include +#include "mmu.h" static pgd_t *table_root;