From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: [PATCH] kvm-userspace: fix kzalloc macro Date: Tue, 02 Oct 2007 15:46:52 +1000 Message-ID: <1191304012.6979.84.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Markus Rechberger To: kvm-devel Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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/