From: Benoit Boissinot Date: Sat, 16 Apr 2005 22:25:59 +0000 (-0700) Subject: [PATCH] cpuset: remove function attribute const X-Git-Tag: v2.6.12-rc3~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a8488965dc4c42a4a1f84cab907c7d6c5cf1563;p=pandora-kernel.git [PATCH] cpuset: remove function attribute const gcc-4 warns with include/linux/cpuset.h:21: warning: type qualifiers ignored on function return type cpuset_cpus_allowed is declared with const extern const cpumask_t cpuset_cpus_allowed(const struct task_struct *p); First const should be __attribute__((const)), but the gcc manual explains that: "Note that a function that has pointer arguments and examines the data pointed to must not be declared const. Likewise, a function that calls a non-const function usually must not be const. It does not make sense for a const function to return void." The following patch remove const from the function declaration. Signed-off-by: Benoit Boissinot Acked-by: Paul Jackson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed