drivers/staging/axis-fifo/axis-fifo.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
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
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 :(
© 2016 - 2026 Red Hat, Inc.