Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753854AbYATLZe (ORCPT ); Sun, 20 Jan 2008 06:25:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752766AbYATLZ1 (ORCPT ); Sun, 20 Jan 2008 06:25:27 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:57216 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752453AbYATLZ0 (ORCPT ); Sun, 20 Jan 2008 06:25:26 -0500 Date: Sun, 20 Jan 2008 12:25:25 +0100 (CET) From: Jan Engelhardt To: Rusty Russell cc: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Jeff Garzik , Tejun Heo Subject: Re: [PATCH 2/6] typesafe: kthread_create and kthread_run In-Reply-To: <200801202048.34796.rusty@rustcorp.com.au> Message-ID: References: <200801202046.14746.rusty@rustcorp.com.au> <200801202047.22943.rusty@rustcorp.com.au> <200801202048.34796.rusty@rustcorp.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 601 Lines: 16 On Jan 20 2008 20:48, Rusty Russell wrote: >+ */ >+#define kthread_create(threadfn, data, namefmt...) ({ \ >+ int (*_threadfn)(typeof(data)) = (threadfn); \ >+ __kthread_create((void *)_threadfn, (data), namefmt); \ >+}) If you have namefmt... you need that varagrs cpp trick. IIRC: __kthread_create((void *)_threadfn, (data), namefmt, __VA_ARGS__); -- 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/