2021-09-28 19:23:42

by Mianhan Liu

[permalink] [raw]
Subject: [PATCH -next] drivers/auxdisplay/cfag12864bfb.c: remove superfluous header files from cfag12864bfb.c

cfag12864bfb.c hasn't use any macro or function declared in linux/delay.h,
linux/string.h and linux/uaccess.h.
Thus, these files can be removed from cfag12864bfb.c safely without
affecting the compilation of the drivers/auxdisplay/ module

Signed-off-by: Mianhan Liu <[email protected]>

---
drivers/auxdisplay/cfag12864bfb.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/auxdisplay/cfag12864bfb.c b/drivers/auxdisplay/cfag12864bfb.c
index d66821adf..9e6681f19 100644
--- a/drivers/auxdisplay/cfag12864bfb.c
+++ b/drivers/auxdisplay/cfag12864bfb.c
@@ -12,13 +12,10 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
-#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/fb.h>
#include <linux/mm.h>
#include <linux/platform_device.h>
-#include <linux/string.h>
-#include <linux/uaccess.h>
#include <linux/cfag12864b.h>

#define CFAG12864BFB_NAME "cfag12864bfb"
--
2.25.1



2021-10-21 22:12:57

by Miguel Ojeda

[permalink] [raw]
Subject: Re: [PATCH -next] drivers/auxdisplay/cfag12864bfb.c: remove superfluous header files from cfag12864bfb.c

On Tue, Sep 28, 2021 at 9:21 PM Mianhan Liu <[email protected]> wrote:
>
> cfag12864bfb.c hasn't use any macro or function declared in linux/delay.h,
> linux/string.h and linux/uaccess.h.
> Thus, these files can be removed from cfag12864bfb.c safely without
> affecting the compilation of the drivers/auxdisplay/ module

Applied, thanks!

Cheers,
Miguel