diff mbox

[kvm-unit-tests,03/17] libcflat: moving MIN/MAX here

Message ID 1477468040-21034-4-git-send-email-peterx@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Peter Xu Oct. 26, 2016, 7:47 a.m. UTC
That's something can be used outside alloc.c.

Signed-off-by: Peter Xu <peterx@redhat.com>
---
 lib/alloc.c    | 3 ---
 lib/libcflat.h | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Andrew Jones Nov. 4, 2016, 4:15 p.m. UTC | #1
On Wed, Oct 26, 2016 at 03:47:06PM +0800, Peter Xu wrote:
> That's something can be used outside alloc.c.
> 
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
>  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 a80df04..f0308f6 100644
> --- a/lib/libcflat.h
> +++ b/lib/libcflat.h
> @@ -39,6 +39,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

Reviewed-by: Andrew Jones <drjones@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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 a80df04..f0308f6 100644
--- a/lib/libcflat.h
+++ b/lib/libcflat.h
@@ -39,6 +39,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;