Skip to contentSkip to conversation

kvm-userspace: fix kzalloc macro

PATCH In review Rusty Russell 2 participants 2 messages Oct 2, 2007 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-userspace: fix kzalloc macro

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(-)
kernel/external-module-compat.h +3 -3
index 2e1a9f1..8e62efb 100644
@@ -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
Signature · 9 lines
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/

A message that is not in the archive (sent off-list or not yet received): 1191304012.6979.84.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]

#2 lore raw
Quoted 3 lines · Rusty Russell

This was committed in 1d55c096cce99f069d9ac8e3b2195d45adce9549 on Feb 7, and clearly never actually compiled.

Applied thanks.

Signature · 7 lines
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/