From nobody Sat Jul 12 15:02:39 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1486017388872760.2924371442431; Wed, 1 Feb 2017 22:36:28 -0800 (PST) Received: from localhost ([::1]:54669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZB0K-0002ng-U8 for importer@patchew.org; Thu, 02 Feb 2017 01:36:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZ9k3-0007fF-3W for qemu-devel@nongnu.org; Thu, 02 Feb 2017 00:15:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZ9jx-00042r-Pt for qemu-devel@nongnu.org; Thu, 02 Feb 2017 00:15:31 -0500 Received: from ozlabs.org ([2401:3900:2:1::2]:57663) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cZ9jx-0003yP-A9; Thu, 02 Feb 2017 00:15:25 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 3vDSqV09J8z9s8Y; Thu, 2 Feb 2017 16:15:00 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1486012502; bh=tBBzx6xmZXi6uaxWG++Nc1RecOi3rOCvazra968aXFg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m9AGQvqgWrqP3Y+IpO+2l+BsChaf8Phb4CtR/ZTRm4Z0HkfksJ9dNTDxw+OlzKOgK tqCjIRZ0XiQo/ocTLSnbyYWejXHSc2MPu0VzQQ9imGOkC/mTP6B/nTZ/zjWwa/HAI/ c+uPJHoVsmCM4u1ygudwKpa2O/362qInlVkK5Z3U= From: David Gibson To: peter.maydell@linaro.org Date: Thu, 2 Feb 2017 16:14:08 +1100 Message-Id: <20170202051445.5735-71-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170202051445.5735-1-david@gibson.dropbear.id.au> References: <20170202051445.5735-1-david@gibson.dropbear.id.au> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: [Qemu-devel] [PULL 070/107] host-utils: Move 128-bit guard macro to .c file X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, thuth@redhat.com, qemu-devel@nongnu.org, Jose Ricardo Ziviani , mdroth@linux.vnet.ibm.com, agraf@suse.de, aik@ozlabs.ru, qemu-ppc@nongnu.org, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Jose Ricardo Ziviani It is not possible to implement functions in host-utils.c for architectures with quadwords because the guard is implemented in the Makefile. This patch move the guard out of the Makefile to the implementation file. Signed-off-by: Jose Ricardo Ziviani Reviewed-by: Eric Blake Signed-off-by: David Gibson --- util/Makefile.objs | 2 +- util/host-utils.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/util/Makefile.objs b/util/Makefile.objs index c1f247d..56c8c23 100644 --- a/util/Makefile.objs +++ b/util/Makefile.objs @@ -12,7 +12,7 @@ util-obj-$(CONFIG_POSIX) +=3D memfd.o util-obj-$(CONFIG_WIN32) +=3D oslib-win32.o util-obj-$(CONFIG_WIN32) +=3D qemu-thread-win32.o util-obj-y +=3D envlist.o path.o module.o -util-obj-$(call lnot,$(CONFIG_INT128)) +=3D host-utils.o +util-obj-y +=3D host-utils.o util-obj-y +=3D bitmap.o bitops.o hbitmap.o util-obj-y +=3D fifo8.o util-obj-y +=3D acl.o diff --git a/util/host-utils.c b/util/host-utils.c index b166e57..3495262 100644 --- a/util/host-utils.c +++ b/util/host-utils.c @@ -26,6 +26,7 @@ #include "qemu/osdep.h" #include "qemu/host-utils.h" =20 +#ifndef CONFIG_INT128 /* Long integer helpers */ static inline void mul64(uint64_t *plow, uint64_t *phigh, uint64_t a, uint64_t b) @@ -158,4 +159,5 @@ int divs128(int64_t *plow, int64_t *phigh, int64_t divi= sor) =20 return overflow; } +#endif =20 --=20 2.9.3