Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH v3 1/3] staging: sm750fb: remove unused <asm/mtrr.h> include
@ 2026-05-12  6:34 Chhabilal Dangal
  2026-05-12  6:34 ` [PATCH v3 2/3] staging: sm750fb: remove unused <linux/platform_device.h> include Chhabilal Dangal
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Chhabilal Dangal @ 2026-05-12  6:34 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 no
mtrr_add/mtrr_del calls exist in the file; the driver uses
arch_phys_wc_add/arch_phys_wc_del in sm750.c instead.

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] 5+ messages in thread

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12  6:34 [PATCH v3 1/3] staging: sm750fb: remove unused <asm/mtrr.h> include Chhabilal Dangal
2026-05-12  6:34 ` [PATCH v3 2/3] staging: sm750fb: remove unused <linux/platform_device.h> include Chhabilal Dangal
2026-05-12  7:20   ` Ahmet Sezgin Duran
2026-05-12  6:34 ` [PATCH v3 3/3] staging: sm750fb: remove unused functions Chhabilal Dangal
2026-05-12  7:36 ` [PATCH v3 1/3] 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