lkml.org 
[lkml]   [2008]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 0/6] RFC: Typesafe callbacks
From
Date
Rusty Russell <rusty@rustcorp.com.au> 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


\
 
 \ /
  Last update: 2008-01-22 05:23    [W:0.084 / U:1.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site