All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/libxc: Fix build of 32bit toolstacks on CentOS 5.x following XSA-125
@ 2015-04-13 16:03 Andrew Cooper
  2015-04-13 16:04 ` [PATCH] [XEN-4.4] " Andrew Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Andrew Cooper @ 2015-04-13 16:03 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, Wei Liu, Ian Jackson, Ian Campbell

gcc 4.1 of CentOS 5.x era does not like the typecheck in min() between
uint64_t and unsigned long.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>

---
This needs backporting to 4.5
---
 tools/libxc/xc_domain.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index 95e3098..9434045 100644
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -2034,7 +2034,7 @@ int xc_domain_memory_mapping(
     max_batch_sz = nr_mfns;
     do
     {
-        nr = min(nr_mfns - done, max_batch_sz);
+        nr = min_t(unsigned long, nr_mfns - done, max_batch_sz);
         domctl.u.memory_mapping.nr_mfns = nr;
         domctl.u.memory_mapping.first_gfn = first_gfn + done;
         domctl.u.memory_mapping.first_mfn = first_mfn + done;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-06-23 14:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-13 16:03 [PATCH] tools/libxc: Fix build of 32bit toolstacks on CentOS 5.x following XSA-125 Andrew Cooper
2015-04-13 16:04 ` [PATCH] [XEN-4.4] " Andrew Cooper
2015-06-10 10:33   ` Ian Jackson
2015-06-23 10:55   ` Ian Jackson
2015-06-23 12:45     ` Andrew Cooper
2015-06-23 13:21     ` Ian Jackson
2015-06-23 13:26       ` Andrew Cooper
2015-06-23 13:44         ` Ian Jackson
2015-06-23 14:16           ` Ian Jackson
2015-06-23 14:23             ` Andrew Cooper
2015-04-13 16:33 ` [PATCH] " Ian Jackson
2015-04-13 16:37   ` Andrew Cooper
2015-04-22 15:43     ` Andrew Cooper
2015-05-13 11:42       ` [PING] " Andrew Cooper
2015-05-21 15:57         ` [PING] " Andrew Cooper
2015-06-10 10:26 ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.