public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm-userspace: fix kzalloc macro
@ 2007-10-02  5:46 Rusty Russell
       [not found] ` <1191304012.6979.84.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2007-10-02  5:46 UTC (permalink / raw)
  To: kvm-devel; +Cc: Markus Rechberger

This was committed in 1d55c096cce99f069d9ac8e3b2195d45adce9549 on Feb 7,
and clearly never actually compiled.
---
 kernel/external-module-compat.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h
index 2e1a9f1..8e62efb 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -126,9 +126,9 @@ static inline int smp_call_function_single2(int cpu, void (*func)(void *info),
 #define kzalloc(size,flags)			\
 ({						\
 	void *__ret = kmalloc(size, flags);	\
-	if (__ret)
-		memset(__ret, 0, size);
-	__ret;
+	if (__ret)				\
+		memset(__ret, 0, size);		\
+	__ret;					\
 })
 #endif
 #endif
-- 
1.5.1.3




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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

* Re: [PATCH] kvm-userspace: fix kzalloc macro
       [not found] ` <1191304012.6979.84.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2007-10-02  8:36   ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-10-02  8:36 UTC (permalink / raw)
  To: Rusty Russell; +Cc: kvm-devel, Markus Rechberger

Rusty Russell wrote:
> This was committed in 1d55c096cce99f069d9ac8e3b2195d45adce9549 on Feb 7,
> and clearly never actually compiled.
>   

Applied thanks.


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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

end of thread, other threads:[~2007-10-02  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02  5:46 [PATCH] kvm-userspace: fix kzalloc macro Rusty Russell
     [not found] ` <1191304012.6979.84.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-10-02  8:36   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox