From patchwork Thu Oct 22 14:36:28 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 36688 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1B5B1B7BB0 for ; Fri, 23 Oct 2009 02:05:47 +1100 (EST) Received: from localhost ([127.0.0.1]:54083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0zEW-0003An-Hy for incoming@patchwork.ozlabs.org; Thu, 22 Oct 2009 11:05:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0ymn-0007ky-7w for qemu-devel@nongnu.org; Thu, 22 Oct 2009 10:37:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0yme-0007fq-WC for qemu-devel@nongnu.org; Thu, 22 Oct 2009 10:37:01 -0400 Received: from [199.232.76.173] (port=46180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0yme-0007fm-NX for qemu-devel@nongnu.org; Thu, 22 Oct 2009 10:36:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23618) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0yme-0007GU-99 for qemu-devel@nongnu.org; Thu, 22 Oct 2009 10:36:56 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9MEatqZ016695 for ; Thu, 22 Oct 2009 10:36:55 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9MEaaig026416; Thu, 22 Oct 2009 10:36:54 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Thu, 22 Oct 2009 16:36:28 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 15/20] gus: remove IO_WRITE_PROTO X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- hw/gus.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hw/gus.c b/hw/gus.c index 101e645..d9c47b1 100644 --- a/hw/gus.c +++ b/hw/gus.c @@ -41,9 +41,6 @@ #define GUS_ENDIANNESS 0 #endif -#define IO_WRITE_PROTO(name) \ - static void name (void *opaque, uint32_t nport, uint32_t val) - typedef struct GUSState { ISADevice dev; GUSEmuState emu; @@ -73,14 +70,14 @@ static uint32_t gus_readw (void *opaque, uint32_t nport) return gus_read (&s->emu, nport, 2); } -IO_WRITE_PROTO (gus_writeb) +static void gus_writeb (void *opaque, uint32_t nport, uint32_t val) { GUSState *s = opaque; gus_write (&s->emu, nport, 1, val); } -IO_WRITE_PROTO (gus_writew) +static void gus_writew (void *opaque, uint32_t nport, uint32_t val) { GUSState *s = opaque;