Skip to contentSkip to conversation

arch/powerpc: Add missing includes

PATCH In review Thierry Reding 2 participants 4 messages Oct 29, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arch/powerpc: Add missing includes

From: Thierry Reding <[email protected]>

Hi,

I've recently been doing a few test builds for some of the more exotic platforms out there for a patch series that I'm working on and ran into some issues that seem to have been caused by the framebuffer include rework. I see that Thomas did address some of those already, but it looks like I've been running with slightly different configurations or something that caused these additional ones to come up.

Given that theese seem to have been broken for more than a year and it's not exactly clear which commit it caused, I didn't bother adding a Fixes line, but still wanted to send these out in case we want to keep these platforms building.

Thierry

Thierry Reding (2):
arch/powerpc: Add missing linux/of.h include macintosh/via-pmu-backlight: Include uapi/linux/fb.h

 arch/powerpc/platforms/powermac/backlight.c | 1 +
 drivers/macintosh/via-pmu-backlight.c       | 1 +
 2 files changed, 2 insertions(+)
Signature · 1 line
2.51.0
#1 lore raw

PATCH 1/2 arch/powerpc: Add missing linux/of.h include

From: Thierry Reding <[email protected]>

Add the linux/of.h include to make available the standard device tree functions used by this file.

---
 arch/powerpc/platforms/powermac/backlight.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/platforms/powermac/backlight.c +1 -0
index 79741370c40c..9afb64723649 100644
@@ -14,6 +14,7 @@
 #include <linux/pmu.h>
 #include <linux/atomic.h>
 #include <linux/export.h>
+#include <linux/of.h>
 #include <asm/backlight.h>
 
 #define OLD_BACKLIGHT_MAX 15
Signature · 1 line
2.51.0
#2 lore raw

PATCH 2/2 macintosh/via-pmu-backlight: Include uapi/linux/fb.h

In reply to Thierry Reding

From: Thierry Reding <[email protected]>

This makes available several of the constants used in this driver.

---
 drivers/macintosh/via-pmu-backlight.c | 1 +
 1 file changed, 1 insertion(+)
drivers/macintosh/via-pmu-backlight.c +1 -0
index 26bd9ed5e664..aef8930a505b 100644
@@ -13,6 +13,7 @@
 #include <linux/backlight.h>
 #include <linux/pmu.h>
 #include <asm/backlight.h>
+#include <uapi/linux/fb.h>
 
 #define MAX_PMU_LEVEL 0xFF
 
Signature · 1 line
2.51.0
#3 lore raw
In reply to Thierry Reding

Hi

Am 29.10.25 um 16:09 schrieb Thierry Reding:

Quoted 16 lines

From: Thierry Reding <[email protected]>

Hi,

I've recently been doing a few test builds for some of the more exotic platforms out there for a patch series that I'm working on and ran into some issues that seem to have been caused by the framebuffer include rework. I see that Thomas did address some of those already, but it looks like I've been running with slightly different configurations or something that caused these additional ones to come up.

Given that theese seem to have been broken for more than a year and it's not exactly clear which commit it caused, I didn't bother adding a Fixes line, but still wanted to send these out in case we want to keep these platforms building.

Quoted 5 lines

Thierry

Thierry Reding (2):
arch/powerpc: Add missing linux/of.h include macintosh/via-pmu-backlight: Include uapi/linux/fb.h

See https://lore.kernel.org/dri-devel/[email protected]/

Quoted 5 lines
  arch/powerpc/platforms/powermac/backlight.c | 1 +
  drivers/macintosh/via-pmu-backlight.c       | 1 +
  2 files changed, 2 insertions(+)
Signature · 7 lines
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)