WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] i386: Fix the build.

# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1209653075 -3600
# Node ID bb2301b33760e74960dc9b845d9251f6f4cd2fd1
# Parent  4b1bbcf18eb5a6c7d3e1b96306e8f6cec5209f09
i386: Fix the build.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/acpi/boot.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 4b1bbcf18eb5 -r bb2301b33760 xen/arch/x86/acpi/boot.c
--- a/xen/arch/x86/acpi/boot.c  Thu May 01 14:04:12 2008 +0100
+++ b/xen/arch/x86/acpi/boot.c  Thu May 01 15:44:35 2008 +0100
@@ -465,8 +465,9 @@ static void __init
 static void __init
 acpi_fadt_parse_reg(struct acpi_table_fadt *fadt)
 {
-       unsigned int len = min(fadt->header.length, sizeof(*fadt));
-
+       unsigned int len;
+
+       len = min_t(unsigned int, fadt->header.length, sizeof(*fadt));
        memcpy(&acpi_gbl_FADT, fadt, len);
 
        if (len > offsetof(struct acpi_table_fadt, xpm1b_event_block)) {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] i386: Fix the build., Xen patchbot-unstable <=