]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
Fix build warning in kernel/cpuset.c
authorArnd Bergmann <arnd@arndb.de>
Sat, 24 Sep 2016 21:29:51 +0000 (23:29 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 20 Oct 2016 13:05:50 +0000 (08:05 -0500)
commita44d6aad2ce6b6707eae5683923779c34d0aa10f
treeca9a752bd3a9a53317a853ffeae6d0f5ed362be6
parent3e4b3c3a4f2f849c705add69375970e5621f27b7
Fix build warning in kernel/cpuset.c

BugLink: http://bugs.launchpad.net/bugs/1629386
>           2 ../kernel/cpuset.c:2101:11: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
>           1 ../kernel/cpuset.c:2101:2: warning: initialization from incompatible pointer type
>           1 ../kernel/cpuset.c:2101:2: warning: (near initialization for 'cpuset_cgrp_subsys.fork')

This got introduced by 06ec7a1d7646 ("cpuset: make sure new tasks
conform to the current config of the cpuset"). In the upstream
kernel, the function prototype was changed as of b53202e63089
("cgroup: kill cgrp_ss_priv[CGROUP_CANFORK_COUNT] and friends").

That patch is not suitable for stable kernels, and fortunately
the warning seems harmless as the prototypes only differ in the
second argument that is unused. Adding that argument gets rid
of the warning:

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
kernel/cpuset.c