From patchwork Fri Sep 28 08:32:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 10619151 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 800EF174A for ; Fri, 28 Sep 2018 08:33:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7115328497 for ; Fri, 28 Sep 2018 08:33:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63C4C2863D; Fri, 28 Sep 2018 08:33:17 +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 1CD3928497 for ; Fri, 28 Sep 2018 08:33:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729217AbeI1Ozx (ORCPT ); Fri, 28 Sep 2018 10:55:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48156 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726971AbeI1Ozw (ORCPT ); Fri, 28 Sep 2018 10:55:52 -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 4C8123082A42; Fri, 28 Sep 2018 08:33:15 +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 9C2A220155E2; Fri, 28 Sep 2018 08:33:13 +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 0/4] Compile with -Wmissing-prototypes and -Wstrict-prototypes Date: Fri, 28 Sep 2018 10:32:58 +0200 Message-Id: <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.45]); Fri, 28 Sep 2018 08:33:15 +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 Compiling with -Wmissing-prototypes and -Wstrict-prototypes should help us to make sure that implementations always match the prototypes in the headers, so we hopefully can avoid some bugs in the future this way. Thomas Huth (4): x86: Declare local functions as "static" and specify argument types x86: Add missing prototypes and mark more local functions as static s390x: Make code compilable with -Wmissing-prototypes and -Wstrict-prototypes Makefile: Compile with -Wmissing-prototypes and -Wstrict-prototypes Makefile | 1 + lib/s390x/asm/float.h | 2 +- lib/s390x/mmu.c | 1 + lib/x86/desc.c | 5 +++++ lib/x86/setup.c | 4 +++- x86/cmpxchg8b.c | 2 +- x86/eventinj.c | 6 ++++-- x86/kvmclock.c | 11 ++++++----- x86/pku.c | 3 ++- x86/smap.c | 1 + x86/taskswitch2.c | 12 +++++++----- x86/tsc.c | 4 ++-- x86/umip.c | 6 +++--- x86/vmx.c | 6 +++--- 14 files changed, 40 insertions(+), 24 deletions(-)