X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=include%2Flinux%2Fworkqueue.h;h=13e1adf55c4c7c0ba30d81bbc54abe6d56b93b5e;hb=49c355617f603b8e71ec117c1f940152a998528a;hp=3cd51e579ab1c2cddd3960e1154b9c493794a85b;hpb=ff2bad5f899421850f7e9bc956450e4c61b0b95d;p=cascardo%2Flinux.git diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 3cd51e579ab1..13e1adf55c4c 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -41,6 +41,11 @@ struct delayed_work { struct timer_list timer; }; +static inline struct delayed_work *to_delayed_work(struct work_struct *work) +{ + return container_of(work, struct delayed_work, work); +} + struct execute_work { struct work_struct work; };