From: Pavel Emelyanov The task_struct->pid member is going to be deprecated, so start using the helpers (task_pid_nr/task_pid_vnr/task_pid_nr_ns) in the kernel. The first thing to start with is the pid, printed to dmesg - in this case we may safely use task_pid_nr(). Besides, printks produce more (much more) than a half of all the explicit pid usage. Signed-off-by: Pavel Emelyanov Signed-off-by: Andrew Morton --- fs/reiser4/debug.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN fs/reiser4/debug.h~reiser4-use-helpers-to-obtain-task-pid-in-printks fs/reiser4/debug.h --- a/fs/reiser4/debug.h~reiser4-use-helpers-to-obtain-task-pid-in-printks +++ a/fs/reiser4/debug.h @@ -15,7 +15,7 @@ #define DCALL(lev, fun, reperr, label, format, ...) \ ({ \ fun(lev "reiser4[%.16s(%i)]: %s (%s:%i)[%s]:\n" format "\n" , \ - current->comm, current->pid, __FUNCTION__, \ + current->comm, task_pid_nr(current), __FUNCTION__, \ __FILE__, __LINE__, label, ## __VA_ARGS__); \ }) _