From mboxrd@z Thu Jan 1 00:00:00 1970 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 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