[08/08] uml: va_copy fix

From: Greg KH (gregkh_at_suse.de)
Date: 04/05/05

  • Next message: James Morris: "Re: Netlink Connector / CBUS"
    Date:	Tue, 5 Apr 2005 09:48:15 -0700
    To: linux-kernel@vger.kernel.org, stable@kernel.org
    
    

    -stable review patch. If anyone has any objections, please let us know.

    ------------------

    Uses __va_copy instead of va_copy since some old versions of gcc (2.95.4
    for instance) don't accept va_copy.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
     clean-linux-2.6.11-paolo/arch/um/kernel/skas/uaccess.c |    3 ++-
     1 files changed, 2 insertions(+), 1 deletion(-)
    diff -puN arch/um/kernel/skas/uaccess.c~uml-va_copy_fix arch/um/kernel/skas/uaccess.c
    --- clean-linux-2.6.11/arch/um/kernel/skas/uaccess.c~uml-va_copy_fix	2005-04-01 22:37:11.000000000 +0200
    +++ clean-linux-2.6.11-paolo/arch/um/kernel/skas/uaccess.c	2005-04-01 22:37:11.000000000 +0200
    @@ -61,7 +61,8 @@ static void do_buffer_op(void *jmpbuf, v
     	void *arg;
     	int *res;
     
    -	va_copy(args, *(va_list *)arg_ptr);
    +	/* Some old gccs recognize __va_copy, but not va_copy */
    +	__va_copy(args, *(va_list *)arg_ptr);
     	addr = va_arg(args, unsigned long);
     	len = va_arg(args, int);
     	is_write = va_arg(args, int);
    _
    _______________________________________________
    stable mailing list
    stable@linux.kernel.org
    http://linux.kernel.org/mailman/listinfo/stable
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: James Morris: "Re: Netlink Connector / CBUS"

    Relevant Pages

    • Re: [java][eclipse] how to check
      ... Eric Sosman wrote: ... void *thread1(void *arg) { ... int *ptr = arg; ...
      (comp.programming.threads)
    • Re: Command Line Interpreter
      ... void * mount ... char *arg; ...
      (comp.programming)
    • RE: Hugetlb demanding paging for -mm tree
      ... >> to have correct functionality for hugetlb demand paging. ... +static void scrub_one_pmd ... *, int); ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: i386 entry.S problems
      ... > kernel; nothing can legitemately use them and in the last few years ... -asmlinkage void lcall27; ... static void __init set_task_gate(unsigned int n, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] deinline sleep/delay functions
      ... void ndelay(unsigned int nsecs) ... any delay function. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)