diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 2449d9279131..8ef030828e9d 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -1774,6 +1774,7 @@ out_unlock: return retval ?: nbytes; } +#ifdef CONFIG_CPUSETS_ASSIST static ssize_t cpuset_write_resmask_assist(struct kernfs_open_file *of, struct cs_target tgt, size_t nbytes, loff_t off) @@ -1781,6 +1782,7 @@ static ssize_t cpuset_write_resmask_assist(struct kernfs_open_file *of, pr_info("cpuset_assist: setting %s to %s\n", tgt.name, tgt.cpus); return cpuset_write_resmask(of, tgt.cpus, nbytes, off); } +#endif static ssize_t cpuset_write_resmask_wrapper(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)