Debian Codegraph @

runtime/linux/autoconf-task-state.c

raw
1 /*
2 * Is this a kernel prior to the following kernel commit:
3 *
4 * commit 2f064a59a11ff9bc22e52e9678bc601404c7cb34
5 * Author: Peter Zijlstra <[email protected]>
6 * Date: 2021-06-11 10:28:17 +0200
7 *
8 * sched: Change task_struct::state
9 * Change the type and name of task_struct::state. Drop the volatile and
10 * shrink it to an 'unsigned int'. Rename it in order to find all uses
11 * such that we can use READ_ONCE/WRITE_ONCE as appropriate.
12 */
13
14 #include <linux/sched.h>
15
16 unsigned int bar (struct task_struct *foo);
17
18 unsigned int bar (struct task_struct *foo) {
19 return (foo->state = 0);
20 }