From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Xu Subject: [kvm-unit-tests PATCH 06/14] util: move MAX/MIN macro into util.h Date: Fri, 14 Oct 2016 20:40:44 +0800 Message-ID: <1476448852-30062-7-git-send-email-peterx@redhat.com> References: <1476448852-30062-1-git-send-email-peterx@redhat.com> Cc: jan.kiszka@web.de, agordeev@redhat.com, drjones@redhat.com, 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]:41744 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932196AbcJNMlQ (ORCPT ); Fri, 14 Oct 2016 08:41:16 -0400 In-Reply-To: <1476448852-30062-1-git-send-email-peterx@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Peter Xu --- lib/alloc.c | 3 --- lib/util.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/util.h b/lib/util.h index 4c4b441..1462f4f 100644 --- a/lib/util.h +++ b/lib/util.h @@ -20,4 +20,7 @@ */ extern int parse_keyval(char *s, long *val); +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + #endif -- 2.7.4