[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211019092308.aldow6jmtx4jffb5@bogus>
Date: Tue, 19 Oct 2021 10:23:08 +0100
From: Sudeep Holla <sudeep.holla@....com>
To: Mianhan Liu <liumh1@...nghaitech.edu.cn>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Sudeep Holla <sudeep.holla@....com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] drivers/base/arch_topology.c: remove superfluous
header
On Wed, Sep 29, 2021 at 03:31:38AM +0800, Mianhan Liu wrote:
> arch_topology.c hasn't use any macro or function declared in linux/percpu.h,
> linux/smp.h and linux/string.h.
> Thus, these files can be removed from arch_topology.c safely without
> affecting the compilation of the drivers/base/ module
>
> Signed-off-by: Mianhan Liu <liumh1@...nghaitech.edu.cn>
>
> ---
> drivers/base/arch_topology.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c
> index 434076659..92200873b 100644
> --- a/drivers/base/arch_topology.c
> +++ b/drivers/base/arch_topology.c
> @@ -12,15 +12,12 @@
> #include <linux/device.h>
> #include <linux/of.h>
> #include <linux/slab.h>
> -#include <linux/string.h>
> #include <linux/sched/topology.h>
> #include <linux/cpuset.h>
> #include <linux/cpumask.h>
> #include <linux/init.h>
> -#include <linux/percpu.h>
Don't you need linux/percpu-defs.h for DEFINE_PER_CPU then ?
--
Regards,
Sudeep
Powered by blists - more mailing lists