[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] hw/net/e1000e: Fix compiler w

From: Jason Wang
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] hw/net/e1000e: Fix compiler warning
Date: Tue, 26 Jul 2016 10:27:03 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

On 2016年07月25日 13:47, Changlong Xie wrote:
slave:~/.xie/qemu-colo # gcc --version
gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]

slave:~/.xie/qemu-colo # make -j8
CC    hw/net/e1000e_core.o
hw/net/e1000e_core.c:56: warning: ‘e1000e_set_interrupt_cause’ declared inline 
after being called
hw/net/e1000e_core.c:56: warning: previous declaration of 
‘e1000e_set_interrupt_cause’ was here
LINK  x86_64-softmmu/qemu-system-x86_64

Reviewed-by: Dmitry Fleytman <address@hidden>
Signed-off-by: Changlong Xie <address@hidden>
  hw/net/e1000e_core.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c
index badb1fe..e0bd31c 100644
--- a/hw/net/e1000e_core.c
+++ b/hw/net/e1000e_core.c
@@ -52,7 +52,7 @@
                                       second according to spec */
  #define E1000E_MAX_TX_FRAGS (64)
-static void
+static inline void
  e1000e_set_interrupt_cause(E1000ECore *core, uint32_t val);
static inline void

Applied, thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]