From patchwork Tue Jan 16 18:53:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 10167931 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AF2D8600CA for ; Tue, 16 Jan 2018 18:53:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ADCE1FE82 for ; Tue, 16 Jan 2018 18:53:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F04E204FD; Tue, 16 Jan 2018 18:53:43 +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=-6.9 required=2.0 tests=BAYES_00,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 3678B1FE82 for ; Tue, 16 Jan 2018 18:53:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751453AbeAPSxl (ORCPT ); Tue, 16 Jan 2018 13:53:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60050 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbeAPSxk (ORCPT ); Tue, 16 Jan 2018 13:53:40 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C6476C057F83; Tue, 16 Jan 2018 18:53:40 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.43.2.160]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8CBAA60C9E; Tue, 16 Jan 2018 18:53:31 +0000 (UTC) From: Andrew Jones To: kvm@vger.kernel.org Cc: pbonzini@redhat.com, rkrcmar@redhat.com, cdall@linaro.org, david@redhat.com, lvivier@redhat.com, thuth@redhat.com Subject: [PATCH kvm-unit-tests 01/11] arm/arm64: cleanup alloc.h includes Date: Tue, 16 Jan 2018 19:53:02 +0100 Message-Id: <20180116185312.7257-2-drjones@redhat.com> In-Reply-To: <20180116185312.7257-1-drjones@redhat.com> References: <20180116185312.7257-1-drjones@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 16 Jan 2018 18:53:40 +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 It used to be necessary for the phys_addr_t typedef, but now it doesn't make sense in a few places. Signed-off-by: Andrew Jones --- lib/arm/asm/setup.h | 1 - lib/arm/mmu.c | 1 - lib/arm64/asm/page.h | 2 -- lib/arm64/spinlock.c | 1 + 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/arm/asm/setup.h b/lib/arm/asm/setup.h index b0d51f5f0721..42bf9ba8c716 100644 --- a/lib/arm/asm/setup.h +++ b/lib/arm/asm/setup.h @@ -6,7 +6,6 @@ * This work is licensed under the terms of the GNU LGPL, version 2. */ #include -#include /* phys_addr_t */ #include #include diff --git a/lib/arm/mmu.c b/lib/arm/mmu.c index 2e5c993f1e7f..9e420269f1c0 100644 --- a/lib/arm/mmu.c +++ b/lib/arm/mmu.c @@ -12,7 +12,6 @@ #include #include -#include "alloc.h" #include "alloc_page.h" #include "vmalloc.h" #include diff --git a/lib/arm64/asm/page.h b/lib/arm64/asm/page.h index 01b4cf664aff..f06a6941971c 100644 --- a/lib/arm64/asm/page.h +++ b/lib/arm64/asm/page.h @@ -23,8 +23,6 @@ #define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE) -#include - typedef u64 pteval_t; typedef u64 pmdval_t; typedef u64 pgdval_t; diff --git a/lib/arm64/spinlock.c b/lib/arm64/spinlock.c index a3907f03cacd..fac4fc9a7c20 100644 --- a/lib/arm64/spinlock.c +++ b/lib/arm64/spinlock.c @@ -5,6 +5,7 @@ * * This work is licensed under the terms of the GNU LGPL, version 2. */ +#include #include #include #include