mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[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 <[email protected]> Acked-by: Paul Jackson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b52402c783
commit
9a8488965d
2 changed files with 2 additions and 2 deletions
|
|
@ -1432,7 +1432,7 @@ void cpuset_exit(struct task_struct *tsk)
|
|||
* tasks cpuset.
|
||||
**/
|
||||
|
||||
const cpumask_t cpuset_cpus_allowed(const struct task_struct *tsk)
|
||||
cpumask_t cpuset_cpus_allowed(const struct task_struct *tsk)
|
||||
{
|
||||
cpumask_t mask;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue