From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Xu Subject: [PATCH v3 05/13] libcflat: moving MIN/MAX here Date: Mon, 14 Nov 2016 17:28:03 -0500 Message-ID: <1479162491-20764-6-git-send-email-peterx@redhat.com> References: <1479162491-20764-1-git-send-email-peterx@redhat.com> Cc: drjones@redhat.com, agordeev@redhat.com, jan.kiszka@web.de, rkrcmar@redhat.com, pbonzini@redhat.com, peterx@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50532 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938936AbcKNW2S (ORCPT ); Mon, 14 Nov 2016 17:28:18 -0500 In-Reply-To: <1479162491-20764-1-git-send-email-peterx@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: That's something can be used outside alloc.c. Reviewed-by: Andrew Jones Signed-off-by: Peter Xu --- lib/alloc.c | 3 --- lib/libcflat.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/alloc.c b/lib/alloc.c index e1d7b8a..58af52b 100644 --- a/lib/alloc.c +++ b/lib/alloc.c @@ -7,9 +7,6 @@ #include "asm/spinlock.h" #include "asm/io.h" -#define MIN(a, b) ((a) < (b) ? (a) : (b)) -#define MAX(a, b) ((a) > (b) ? (a) : (b)) - #define PHYS_ALLOC_NR_REGIONS 256 struct phys_alloc_region { diff --git a/lib/libcflat.h b/lib/libcflat.h index d0b0fd1..79695f6 100644 --- a/lib/libcflat.h +++ b/lib/libcflat.h @@ -40,6 +40,9 @@ #define SZ_2M 0x200000 #define SZ_1G 0x40000000 +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + typedef uint8_t u8; typedef int8_t s8; typedef uint16_t u16; -- 2.7.4