mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
cgroup/cpuset: Move cpu.h include to cpuset-internal.h
The newly created cpuset-v1.c file uses cpus_read_lock/unlock() functions
which are defined in cpu.h but not included in cpuset-internal.h yet
leading to compilation error under certain kernel configurations. Fix it
by moving the cpu.h include from cpuset.c to cpuset-internal.h. While
at it, sort the include files in alphabetic order.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202408311612.mQTuO946-lkp@intel.com/
Fixes: 047b830974
("cgroup/cpuset: move relax_domain_level to cpuset-v1.c")
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
3f9319c691
commit
8c7e22fc91
@ -3,11 +3,12 @@
|
|||||||
#ifndef __CPUSET_INTERNAL_H
|
#ifndef __CPUSET_INTERNAL_H
|
||||||
#define __CPUSET_INTERNAL_H
|
#define __CPUSET_INTERNAL_H
|
||||||
|
|
||||||
#include <linux/union_find.h>
|
|
||||||
#include <linux/cpumask.h>
|
|
||||||
#include <linux/spinlock.h>
|
|
||||||
#include <linux/cpuset.h>
|
|
||||||
#include <linux/cgroup.h>
|
#include <linux/cgroup.h>
|
||||||
|
#include <linux/cpu.h>
|
||||||
|
#include <linux/cpumask.h>
|
||||||
|
#include <linux/cpuset.h>
|
||||||
|
#include <linux/spinlock.h>
|
||||||
|
#include <linux/union_find.h>
|
||||||
|
|
||||||
/* See "Frequency meter" comments, below. */
|
/* See "Frequency meter" comments, below. */
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#include "cgroup-internal.h"
|
#include "cgroup-internal.h"
|
||||||
#include "cpuset-internal.h"
|
#include "cpuset-internal.h"
|
||||||
|
|
||||||
#include <linux/cpu.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user