lkml.org 
[lkml]   [2011]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-next: build warning after merge of the tip and rcu trees
Hi all,

After merging the tip tree, today's linux-next build (x86_64 allmodconfig)
produced this warning:

kernel/debug/kdb/kdb_support.c: In function 'kdb_task_state_char':
kernel/debug/kdb/kdb_support.c:639:2: warning: passing argument 1 of 'is_idle_task' discards 'const' qualifier from pointer target type [enabled by default]
include/linux/sched.h:2097:20: note: expected 'struct task_struct *' but argument is of type 'const struct task_struct *'

Introduced by commit 7fc20c5cbdd1 ("kdb: Make KDB use the new
is_idle_task() API").

This begs the question: Why does is_idle_task() not take a "const struct task_struct *"?
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-12-20 08:27    [from the cache]
©2003-2011 Jasper Spaans