From: Greg KH <gregkh@linuxfoundation.org>
To: Rajveer Chaudhari <rajveer.chaudhari.linux@gmail.com>
Cc: ovidiu.panait.oss@gmail.com, gshahrouzi@gmail.com,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: axis-fifo: remove unused header includes
Date: Mon, 23 Feb 2026 15:43:09 +0100 [thread overview]
Message-ID: <2026022303-aspect-dandruff-8fcc@gregkh> (raw)
In-Reply-To: <20260214134008.21501-1-rajveer.chaudhari.linux@gmail.com>
On Sat, Feb 14, 2026 at 07:10:08PM +0530, Rajveer Chaudhari wrote:
> Remove unused header includes from axis-fifo.c to
> reduce unnecessary dependencies and improve compilation time.
>
> Replaced kernel.h include with container_of.h to directly
> include dependency instead of using it indirectly via kernel.h .
>
> Signed-off-by: Rajveer Chaudhari <rajveer.chaudhari.linux@gmail.com>
> ---
> drivers/staging/axis-fifo/axis-fifo.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c
> index 509d620d6ce7..c90bf2d841ce 100644
> --- a/drivers/staging/axis-fifo/axis-fifo.c
> +++ b/drivers/staging/axis-fifo/axis-fifo.c
> @@ -14,7 +14,7 @@
> * ----------------------------
> */
>
> -#include <linux/kernel.h>
> +#include <linux/container_of.h>
> #include <linux/of.h>
> #include <linux/platform_device.h>
> #include <linux/wait.h>
> @@ -27,9 +27,6 @@
> #include <linux/io.h>
> #include <linux/moduleparam.h>
> #include <linux/interrupt.h>
> -#include <linux/param.h>
> -#include <linux/fs.h>
> -#include <linux/types.h>
> #include <linux/uaccess.h>
> #include <linux/jiffies.h>
> #include <linux/miscdevice.h>
> --
> 2.53.0
>
>
Does not apply to 7.0-rc1 :(
prev parent reply other threads:[~2026-02-23 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-14 13:40 [PATCH] staging: axis-fifo: remove unused header includes Rajveer Chaudhari
2026-02-23 14:43 ` Greg KH [this message]
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=2026022303-aspect-dandruff-8fcc@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=gshahrouzi@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=ovidiu.panait.oss@gmail.com \
--cc=rajveer.chaudhari.linux@gmail.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