staging: sm750fb: remove unused <asm/mtrr.h> include
PATCH v2 1/2 staging: sm750fb: remove unused <asm/mtrr.h> include
sm750_hw.c includes <asm/mtrr.h> under CONFIG_MTRR but calls no mtrr_add() or mtrr_del() functions. The driver instead uses the architecture-independent arch_phys_wc_add/arch_phys_wc_del in sm750.c.
Remove the dead include.
--- drivers/staging/sm750fb/sm750_hw.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/staging/sm750fb/sm750_hw.c +0 -4
@@ -13,10 +13,6 @@#include <linux/vmalloc.h> #include <linux/pagemap.h> #include <linux/console.h> -#ifdef CONFIG_MTRR -#include <asm/mtrr.h> -#endif -#include <linux/platform_device.h> #include <linux/sizes.h> #include "sm750.h"
Signature · 1 line
2.54.0
PATCH v2 2/2 staging: sm750fb: remove unused <linux/platform_device.h> include
sm750_accel.c and sm750_cursor.c include <linux/platform_device.h> but never call any platform device APIs. This is a PCI driver.
Remove the dead includes.
--- drivers/staging/sm750fb/sm750_accel.c | 1 - drivers/staging/sm750fb/sm750_cursor.c | 44 -------------------------- 2 files changed, 45 deletions(-)
drivers/staging/sm750fb/sm750_accel.c +0 -1
@@ -13,7 +13,6 @@#include <linux/vmalloc.h> #include <linux/pagemap.h> #include <linux/console.h> -#include <linux/platform_device.h> #include "sm750.h" #include "sm750_accel.h"
drivers/staging/sm750fb/sm750_cursor.c +0 -44
53 lines not on this page · raw message
Signature · 1 line
2.54.0
Greg Kroah-Hartman
maintainerQuoted 29 lines · Chhabilal Dangal
sm750_hw.cincludes <asm/mtrr.h> underCONFIG_MTRRbut calls nomtrr_add()ormtrr_del()functions. The driver instead uses the architecture-independent arch_phys_wc_add/arch_phys_wc_del insm750.c.Remove the dead include.
Signed-off-by Chhabilal Dangal <[email protected]>--- drivers/staging/sm750fb/sm750_hw.c | 4 ---- 1 file changed, 4 deletions(-)drivers/staging/sm750fb/sm750_hw.c +0
-4@@ -13,10 +13,6 @@#include <linux/vmalloc.h> #include <linux/pagemap.h> #include <linux/console.h> -#ifdef CONFIG_MTRR -#include <asm/mtrr.h> -#endif -#include <linux/platform_device.h> #include <linux/sizes.h> #include "sm750.h" Signature · 1 line
2.54.0
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot
Greg Kroah-Hartman
maintainerRe: [PATCH v2 2/2] staging: sm750fb: remove unused <linux/platform_device.h> include
In reply to Chhabilal DangalQuoted 4 lines · Chhabilal Dangal
sm750_accel.candsm750_cursor.cinclude <linux/platform_device.h> but never call any platform device APIs. This is a PCI driver.Remove the dead includes.
You do more than just that in this patch :(