* [PATCH] staging: axis-fifo: remove unused header includes
@ 2026-02-14 13:40 Rajveer Chaudhari
2026-02-23 14:43 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Rajveer Chaudhari @ 2026-02-14 13:40 UTC (permalink / raw)
To: gregkh, ovidiu.panait.oss, gshahrouzi
Cc: linux-staging, linux-kernel, Rajveer Chaudhari
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: axis-fifo: remove unused header includes
2026-02-14 13:40 [PATCH] staging: axis-fifo: remove unused header includes Rajveer Chaudhari
@ 2026-02-23 14:43 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2026-02-23 14:43 UTC (permalink / raw)
To: Rajveer Chaudhari
Cc: ovidiu.panait.oss, gshahrouzi, linux-staging, linux-kernel
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 :(
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-23 14:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-14 13:40 [PATCH] staging: axis-fifo: remove unused header includes Rajveer Chaudhari
2026-02-23 14:43 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox