From: Pei Xiao <xiaopeitux@foxmail.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: john.g.garry@oracle.com, linux-kernel@vger.kernel.org,
robh@kernel.org, xiaopei01@kylinos.cn, xuwei5@hisilicon.com
Subject: Re: [PATCH 1/3 V2] bus: hisi_lpc: remove unused head file in hisi_lpc.c
Date: Wed, 23 Apr 2025 11:30:42 +0800 [thread overview]
Message-ID: <tencent_695CF323FAB82DA8D22073BD6C4F56E62C09@qq.com> (raw)
In-Reply-To: <aAe5937NqfE_c34-@smile.fi.intel.com>
在 2025/4/22 23:47, Andy Shevchenko 写道:
> On Tue, Apr 22, 2025 at 07:31:22PM +0800, xiaopeitux@foxmail.com wrote:
>> From: Pei Xiao <xiaopei01@kylinos.cn>
>>
>> linux/console.h,linux/pci.h,linux/slab.h
>> are not used, removes it.
> There are more unused and many are missed.
> My diff looks like this:
>
> diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c
> index 53dd1573e323..4911afdac316 100644
> --- a/drivers/bus/hisi_lpc.c
> +++ b/drivers/bus/hisi_lpc.c
> @@ -7,17 +7,22 @@
> */
>
> #include <linux/acpi.h>
> -#include <linux/console.h>
> +#include <linux/bits.h>
> #include <linux/delay.h>
> +#include <linux/err.h>
> #include <linux/io.h>
> +#include <linux/ioport.h>
> #include <linux/logic_pio.h>
> +#include <linux/mod_devicetable.h>
> #include <linux/module.h>
> -#include <linux/of.h>
> #include <linux/of_platform.h>
> -#include <linux/pci.h>
> #include <linux/platform_device.h>
> +#include <linux/property.h>
> #include <linux/serial_8250.h>
> -#include <linux/slab.h>
> +#include <linux/spinlock.h>
> +#include <linux/types.h>
> +
> +#include <asm/byteorder.h>
Thanks for you help.
I have send v3 : https://lore.kernel.org/lkml/cover.1745377493.git.xiaopei01@kylinos.cn/
You are such a helpful and technically skilled expert!
Thanks again!
Pei.
>
> #define DRV_NAME "hisi-lpc"
>
>
> ...
>
>> #include <linux/acpi.h>
>> -#include <linux/console.h>
>> #include <linux/delay.h>
>> #include <linux/io.h>
>> #include <linux/logic_pio.h>
>> #include <linux/module.h>
>> #include <linux/of.h>
>> #include <linux/of_platform.h>
>> -#include <linux/pci.h>
>> #include <linux/platform_device.h>
>> #include <linux/serial_8250.h>
>> -#include <linux/slab.h>
next prev parent reply other threads:[~2025-04-23 3:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1745320689.git.xiaopei01@kylinos.cn>
2025-04-22 11:31 ` xiaopeitux
2025-04-22 15:47 ` Andy Shevchenko
2025-04-23 3:30 ` Pei Xiao [this message]
2025-04-22 11:31 ` [PATCH 2/3 V1] lib: logic_pio: export function symbol in logic_pio xiaopeitux
2025-04-22 15:27 ` Andy Shevchenko
2025-04-22 15:30 ` Andy Shevchenko
2025-04-22 16:05 ` John Garry
2025-04-23 3:36 ` Pei Xiao
2025-04-23 7:18 ` John Garry
2025-04-22 11:32 ` [PATCH 3/3 V2] lib: logic_pio: Add detailed comments for find_io_range() and logic_pio_trans_cpuaddr() xiaopeitux
2025-04-22 15:47 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_695CF323FAB82DA8D22073BD6C4F56E62C09@qq.com \
--to=xiaopeitux@foxmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=john.g.garry@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=xiaopei01@kylinos.cn \
--cc=xuwei5@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®