Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756497AbYAVEVN (ORCPT ); Mon, 21 Jan 2008 23:21:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753296AbYAVEU7 (ORCPT ); Mon, 21 Jan 2008 23:20:59 -0500 Received: from ns2.suse.de ([195.135.220.15]:57911 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752920AbYAVEU6 (ORCPT ); Mon, 21 Jan 2008 23:20:58 -0500 To: Rusty Russell Cc: Tejun Heo , Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Jeff Garzik Subject: Re: [PATCH 0/6] RFC: Typesafe callbacks References: <200801202046.14746.rusty@rustcorp.com.au> <200801212233.04989.rusty@rustcorp.com.au> <47949257.1000102@gmail.com> <200801221027.15002.rusty@rustcorp.com.au> From: Andi Kleen Date: 22 Jan 2008 05:20:55 +0100 In-Reply-To: <200801221027.15002.rusty@rustcorp.com.au> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 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: 746 Lines: 14 Rusty Russell writes: > === > Attempt to create callbacks which take unsigned long as well as > correct pointer types. FWIW i had something similar using the gcc union extension at some point for ioctls because I was tired for all the ugly casts from unsigned long arg to void * in ioctl handlers. But I decided to not push it because sparse would have likely choked on it, and sparse actually finds a lot of bugs so it's more important than having a few more casts. -Andi -- 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/