Re: [PATCH 2/9] timers: provide a "modern" variant of timers

From
Christoph Hellwig <hch@lst.de>
Date
2017-05-18 08:41:39
Also in
linux-s390, lkml
Reply to
Christoph Hellwig, 2017-05-18
On Thu, May 18, 2017 at 10:24:48AM +0200, Christoph Hellwig wrote:
quoted
b) give the union a name (breaks any reference to timer_list->func in C code):

 +       union {
 +               void            (*func)(struct timer_list *timer);
 +               void            (*function)(unsigned long);
 +       } u;
I'll look into that, as it seems a lot safer, and places outside
the timer code shouldn't really touch it (although I bet they do,
so more fixes for this series..)
Meh.  All the old init_timer users set function directly, so
I guess we need to use the other approach.
Thread (39 messages) 39 messages, 7 authors, last reply 2017-05-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help