From patchwork Wed Sep 28 11:00:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 116765 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 88A05B6F86 for ; Wed, 28 Sep 2011 21:45:29 +1000 (EST) Received: from localhost ([::1]:34755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8rtu-0006nP-VF for incoming@patchwork.ozlabs.org; Wed, 28 Sep 2011 07:02:06 -0400 Received: from eggs.gnu.org ([140.186.70.92]:46819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8rt5-0004iw-54 for qemu-devel@nongnu.org; Wed, 28 Sep 2011 07:01:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8rt2-0004EN-6M for qemu-devel@nongnu.org; Wed, 28 Sep 2011 07:01:15 -0400 Received: from david.siemens.de ([192.35.17.14]:33110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8rt1-0004DV-PK for qemu-devel@nongnu.org; Wed, 28 Sep 2011 07:01:12 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.13.6/8.13.6) with ESMTP id p8SB19B0013423; Wed, 28 Sep 2011 13:01:09 +0200 Received: from mchn199C.mchp.siemens.de ([139.25.109.49]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id p8SB18Vr017664; Wed, 28 Sep 2011 13:01:09 +0200 From: Jan Kiszka To: Anthony Liguori , qemu-devel Date: Wed, 28 Sep 2011 13:00:51 +0200 Message-Id: X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 192.35.17.14 Cc: Blue Swirl Subject: [Qemu-devel] [PATCH 05/22] i8259: Remove premature inline function attributes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The compiler is smarter in choosing the right optimization. Signed-off-by: Jan Kiszka --- hw/i8259.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index 6006123..f1d58ba 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -80,7 +80,7 @@ static uint64_t irq_count[16]; PicState2 *isa_pic; /* set irq level. If an edge is detected, then the IRR is set to 1 */ -static inline void pic_set_irq1(PicState *s, int irq, int level) +static void pic_set_irq1(PicState *s, int irq, int level) { int mask; mask = 1 << irq; @@ -107,7 +107,7 @@ static inline void pic_set_irq1(PicState *s, int irq, int level) /* return the highest priority found in mask (highest = smallest number). Return 8 if no irq */ -static inline int get_priority(PicState *s, int mask) +static int get_priority(PicState *s, int mask) { int priority; if (mask == 0) @@ -206,7 +206,7 @@ static void i8259_set_irq(void *opaque, int irq, int level) } /* acknowledge interrupt 'irq' */ -static inline void pic_intack(PicState *s, int irq) +static void pic_intack(PicState *s, int irq) { if (s->auto_eoi) { if (s->rotate_on_auto_eoi)