Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH v2 1/2] staging: sm750fb: remove unused <asm/mtrr.h> include
@ 2026-05-12  6:10 Chhabilal Dangal
  2026-05-12  6:10 ` [PATCH v2 2/2] staging: sm750fb: remove unused <linux/platform_device.h> include Chhabilal Dangal
  2026-05-12  6:13 ` [PATCH v2 1/2] staging: sm750fb: remove unused <asm/mtrr.h> include Greg Kroah-Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Chhabilal Dangal @ 2026-05-12  6:10 UTC (permalink / raw)
  To: Sudip Mukherjee, Teddy Wang, Greg Kroah-Hartman
  Cc: linux-fbdev, linux-staging, linux-kernel, Chhabilal Dangal

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.

Signed-off-by: Chhabilal Dangal <yogeshdangal66@gmail.com>
---
 drivers/staging/sm750fb/sm750_hw.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/sm750_hw.c
index a2798d428663..f491d3aca468 100644
--- a/drivers/staging/sm750fb/sm750_hw.c
+++ b/drivers/staging/sm750fb/sm750_hw.c
@@ -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"
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-12  6:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12  6:10 [PATCH v2 1/2] staging: sm750fb: remove unused <asm/mtrr.h> include Chhabilal Dangal
2026-05-12  6:10 ` [PATCH v2 2/2] staging: sm750fb: remove unused <linux/platform_device.h> include Chhabilal Dangal
2026-05-12  6:13   ` Greg Kroah-Hartman
2026-05-12  6:13 ` [PATCH v2 1/2] staging: sm750fb: remove unused <asm/mtrr.h> include Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox