Commit d294eb83d8d39a29f01dad391f15fc3a29aa04f9

Authored by Frederic Weisbecker
Committed by Ingo Molnar
1 parent b5ff7df3df

cpusets: scan_for_empty_cpusets(), cpuset doesn't seem to be so const

This fixes a warning on latest -tip:

 kernel/cpuset.c: Dans la fonction «scan_for_empty_cpusets» :
 kernel/cpuset.c:1932: attention : passing argument 1 of «list_add_tail» discards qualifiers from pointer target type

Actually the struct cpuset *root passed in parameter to scan_for_empty_cpusets
is not supposed to be const since an entry is added on the tail of its list.
Just correct the qualifier.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1921,7 +1921,7 @@
1921 1921 * that has tasks along with an empty 'mems'. But if we did see such
1922 1922 * a cpuset, we'd handle it just like we do if its 'cpus' was empty.
1923 1923 */
1924   -static void scan_for_empty_cpusets(const struct cpuset *root)
  1924 +static void scan_for_empty_cpusets(struct cpuset *root)
1925 1925 {
1926 1926 LIST_HEAD(queue);
1927 1927 struct cpuset *cp; /* scans cpusets being updated */