This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] timers, pointers to functions and type safety
- From: Thomas Gleixner <tglx at linutronix dot de>
- To: Al Viro <viro at ftp dot linux dot org dot uk>
- Cc: Linus Torvalds <torvalds at osdl dot org>, linux-arch at vger dot kernel dot org, linux-kernel at vger dot kernel dot org, gcc at gcc dot gnu dot org
- Date: Sat, 02 Dec 2006 13:59:30 +0100
- Subject: Re: [RFC] timers, pointers to functions and type safety
- References: <20061201172149.GC3078@ftp.linux.org.uk>
- Reply-to: tglx at linutronix dot de
On Fri, 2006-12-01 at 17:21 +0000, Al Viro wrote:
> Now, there's another question: how do we get there? Or, at least, from
> current void (*)(unsigned long) to void (*)(void *)...
I think the real solution should be
void (*function)(struct timer_list *timer);
and hand the timer itself to the callback. Most of the timers are
embedded into data structures anyway and for the rest we can easily
build one.
> "A fscking huge patch flipping everything at once" is obviously not an
> answer; too much PITA merging and impossible to review.
There are ~ 500 files affected and this is in the range of cleanups we
did recently at the end of the merge window already. I'd volunteer to
hack this up and keep the patch up to date until the final merge. I have
done that before and I'm not scared about it. The patches are a couple
of lines per file and I do not agree that this is impossible to review.
tglx