mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
treewide: Replace DECLARE_TASKLET() with DECLARE_TASKLET_OLD()
This converts all the existing DECLARE_TASKLET() (and ...DISABLED) macros with DECLARE_TASKLET_OLD() in preparation for refactoring the tasklet callback type. All existing DECLARE_TASKLET() users had a "0" data argument, it has been removed here as well. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
f9dc3713df
commit
b13fecb1c3
16 changed files with 26 additions and 21 deletions
|
@ -612,12 +612,17 @@ struct tasklet_struct
|
|||
unsigned long data;
|
||||
};
|
||||
|
||||
#define DECLARE_TASKLET(name, func, data) \
|
||||
struct tasklet_struct name = { NULL, 0, ATOMIC_INIT(0), func, data }
|
||||
|
||||
#define DECLARE_TASKLET_DISABLED(name, func, data) \
|
||||
struct tasklet_struct name = { NULL, 0, ATOMIC_INIT(1), func, data }
|
||||
#define DECLARE_TASKLET_OLD(name, _func) \
|
||||
struct tasklet_struct name = { \
|
||||
.count = ATOMIC_INIT(0), \
|
||||
.func = _func, \
|
||||
}
|
||||
|
||||
#define DECLARE_TASKLET_DISABLED_OLD(name, _func) \
|
||||
struct tasklet_struct name = { \
|
||||
.count = ATOMIC_INIT(1), \
|
||||
.func = _func, \
|
||||
}
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue