Received: from eggs.gnu.org ([2001:4830:134:3::10]:35791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4QQw-0006U5-BJ for qemu-devel@nongnu.org; Wed, 31 Jul 2013 03:02:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4QQr-0001dJ-Gy for qemu-devel@nongnu.org; Wed, 31 Jul 2013 03:02:54 -0400 Message-ID: <1375254138.2561.5.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Wed, 31 Jul 2013 10:02:18 +0300 In-Reply-To: <1375216883-23969-1-git-send-email-sw@weilnetz.de> References: <1375216883-23969-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for 1.6] tci: Fix broken build (compiler warning caused by redefined macro BIT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial , Anthony Liguori , qemu-devel On Tue, 2013-07-30 at 22:41 +0200, Stefan Weil wrote: > The definition of macro BIT in tci/tcg-target.c now conflicts with the > definition of the same macro in includes qemu/bitops.h. > > This conflict was triggered by a recent change in the include chain of > tcg.c (probably commit 949fc82314cc84162e64a5323764527a542421ce). I would add explicit "#include qemu/bitops.h" For some reason the compilation was ok when the path was submitted, thanks! Marcel > > Signed-off-by: Stefan Weil > --- > tcg/tci/tcg-target.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/tcg/tci/tcg-target.c b/tcg/tci/tcg-target.c > index d1241b5..e118bc7 100644 > --- a/tcg/tci/tcg-target.c > +++ b/tcg/tci/tcg-target.c > @@ -34,9 +34,6 @@ > tcg_abort(); \ > } while (0) > > -/* Single bit n. */ > -#define BIT(n) (1 << (n)) > - > /* Bitfield n...m (in 32 bit value). */ > #define BITS(n, m) (((0xffffffffU << (31 - n)) >> (31 - n + m)) << m) >