All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch: sh: Include <linux/io.h> in dac.h
@ 2025-10-28 17:07 Thomas Zimmermann
  2025-10-28 17:12 ` John Paul Adrian Glaubitz
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Thomas Zimmermann @ 2025-10-28 17:07 UTC (permalink / raw)
  To: ysato, dalias, glaubitz, lee, danielt, simona.vetter
  Cc: linux-sh, dri-devel, Thomas Zimmermann, kernel test robot,
	Jingoo Han

Include <linux/io.h> to avoid depending on <linux/backlight.h> for
including it. Declares __raw_readb() and __raw_writeb().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202510282206.wI0HrqcK-lkp@intel.com/
Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Daniel Thompson (RISCstar) <danielt@kernel.org>
Cc: Simona Vetter <simona.vetter@ffwll.ch>
Cc: Lee Jones <lee@kernel.org>
Cc: Daniel Thompson <danielt@kernel.org>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: dri-devel@lists.freedesktop.org
---
This is fallout from a recent cleanup of the backlight header file. I don't
have the option of building or testing this change, though.
---
 arch/sh/include/cpu-sh3/cpu/dac.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/sh/include/cpu-sh3/cpu/dac.h b/arch/sh/include/cpu-sh3/cpu/dac.h
index fd02331608a8..323ec8570bcd 100644
--- a/arch/sh/include/cpu-sh3/cpu/dac.h
+++ b/arch/sh/include/cpu-sh3/cpu/dac.h
@@ -2,6 +2,8 @@
 #ifndef __ASM_CPU_SH3_DAC_H
 #define __ASM_CPU_SH3_DAC_H
 
+#include <linux/io.h>
+
 /*
  * Copyright (C) 2003  Andriy Skulysh
  */
-- 
2.51.1


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

* Re: [PATCH] arch: sh: Include <linux/io.h> in dac.h
  2025-10-28 17:07 [PATCH] arch: sh: Include <linux/io.h> in dac.h Thomas Zimmermann
@ 2025-10-28 17:12 ` John Paul Adrian Glaubitz
  2025-10-30 11:20 ` Daniel Thompson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: John Paul Adrian Glaubitz @ 2025-10-28 17:12 UTC (permalink / raw)
  To: Thomas Zimmermann, ysato, dalias, lee, danielt, simona.vetter
  Cc: linux-sh, dri-devel, kernel test robot, Jingoo Han, Artur Rojek

Hi Thomas,

On Tue, 2025-10-28 at 18:07 +0100, Thomas Zimmermann wrote:
> Include <linux/io.h> to avoid depending on <linux/backlight.h> for
> including it. Declares __raw_readb() and __raw_writeb().
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202510282206.wI0HrqcK-lkp@intel.com/
> Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Daniel Thompson (RISCstar) <danielt@kernel.org>
> Cc: Simona Vetter <simona.vetter@ffwll.ch>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Daniel Thompson <danielt@kernel.org>
> Cc: Jingoo Han <jingoohan1@gmail.com>
> Cc: dri-devel@lists.freedesktop.org
> ---
> This is fallout from a recent cleanup of the backlight header file. I don't
> have the option of building or testing this change, though.
> ---
>  arch/sh/include/cpu-sh3/cpu/dac.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/sh/include/cpu-sh3/cpu/dac.h b/arch/sh/include/cpu-sh3/cpu/dac.h
> index fd02331608a8..323ec8570bcd 100644
> --- a/arch/sh/include/cpu-sh3/cpu/dac.h
> +++ b/arch/sh/include/cpu-sh3/cpu/dac.h
> @@ -2,6 +2,8 @@
>  #ifndef __ASM_CPU_SH3_DAC_H
>  #define __ASM_CPU_SH3_DAC_H
>  
> +#include <linux/io.h>
> +
>  /*
>   * Copyright (C) 2003  Andriy Skulysh
>   */

I'll perform a test build tomorrow. And I think I should be able to test it on my
HP Jornada 680 which is based on a SH-3 CPU.

CC'ing Artur Rojek who's got the same model and previously worked on the SH-3 code.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: [PATCH] arch: sh: Include <linux/io.h> in dac.h
  2025-10-28 17:07 [PATCH] arch: sh: Include <linux/io.h> in dac.h Thomas Zimmermann
  2025-10-28 17:12 ` John Paul Adrian Glaubitz
@ 2025-10-30 11:20 ` Daniel Thompson
  2026-04-12  7:35 ` John Paul Adrian Glaubitz
  2026-04-13  7:31 ` John Paul Adrian Glaubitz
  3 siblings, 0 replies; 7+ messages in thread
From: Daniel Thompson @ 2025-10-30 11:20 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: ysato, dalias, glaubitz, lee, simona.vetter, linux-sh, dri-devel,
	kernel test robot, Jingoo Han

On Tue, Oct 28, 2025 at 06:07:55PM +0100, Thomas Zimmermann wrote:
> Include <linux/io.h> to avoid depending on <linux/backlight.h> for
> including it. Declares __raw_readb() and __raw_writeb().
>
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202510282206.wI0HrqcK-lkp@intel.com/
> Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Daniel Thompson (RISCstar) <danielt@kernel.org>
> Cc: Simona Vetter <simona.vetter@ffwll.ch>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Daniel Thompson <danielt@kernel.org>
> Cc: Jingoo Han <jingoohan1@gmail.com>
> Cc: dri-devel@lists.freedesktop.org

Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>


Daniel.

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

* Re: [PATCH] arch: sh: Include <linux/io.h> in dac.h
  2025-10-28 17:07 [PATCH] arch: sh: Include <linux/io.h> in dac.h Thomas Zimmermann
  2025-10-28 17:12 ` John Paul Adrian Glaubitz
  2025-10-30 11:20 ` Daniel Thompson
@ 2026-04-12  7:35 ` John Paul Adrian Glaubitz
  2026-04-13  6:59   ` Thomas Zimmermann
  2026-04-13  7:31 ` John Paul Adrian Glaubitz
  3 siblings, 1 reply; 7+ messages in thread
From: John Paul Adrian Glaubitz @ 2026-04-12  7:35 UTC (permalink / raw)
  To: Thomas Zimmermann, ysato, dalias, lee, danielt, simona.vetter
  Cc: linux-sh, dri-devel, kernel test robot, Jingoo Han

Hi Thomas,

On Tue, 2025-10-28 at 18:07 +0100, Thomas Zimmermann wrote:
> Include <linux/io.h> to avoid depending on <linux/backlight.h> for
> including it. Declares __raw_readb() and __raw_writeb().
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202510282206.wI0HrqcK-lkp@intel.com/
> Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Daniel Thompson (RISCstar) <danielt@kernel.org>
> Cc: Simona Vetter <simona.vetter@ffwll.ch>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Daniel Thompson <danielt@kernel.org>
> Cc: Jingoo Han <jingoohan1@gmail.com>
> Cc: dri-devel@lists.freedesktop.org
> ---
> This is fallout from a recent cleanup of the backlight header file. I don't
> have the option of building or testing this change, though.
> ---
>  arch/sh/include/cpu-sh3/cpu/dac.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/sh/include/cpu-sh3/cpu/dac.h b/arch/sh/include/cpu-sh3/cpu/dac.h
> index fd02331608a8..323ec8570bcd 100644
> --- a/arch/sh/include/cpu-sh3/cpu/dac.h
> +++ b/arch/sh/include/cpu-sh3/cpu/dac.h
> @@ -2,6 +2,8 @@
>  #ifndef __ASM_CPU_SH3_DAC_H
>  #define __ASM_CPU_SH3_DAC_H
>  
> +#include <linux/io.h>
> +
>  /*
>   * Copyright (C) 2003  Andriy Skulysh
>   */

I'm just looking at this patch again and was wondering where <linux/backlight.h> is
actually being pulled in on SH3. I assume this is somewhere on the driver side, no?

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: [PATCH] arch: sh: Include <linux/io.h> in dac.h
  2026-04-12  7:35 ` John Paul Adrian Glaubitz
@ 2026-04-13  6:59   ` Thomas Zimmermann
  2026-04-13  7:29     ` John Paul Adrian Glaubitz
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Zimmermann @ 2026-04-13  6:59 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz, ysato, dalias, lee, danielt,
	simona.vetter
  Cc: linux-sh, dri-devel, kernel test robot, Jingoo Han

Hi

Am 12.04.26 um 09:35 schrieb John Paul Adrian Glaubitz:
> Hi Thomas,
>
> On Tue, 2025-10-28 at 18:07 +0100, Thomas Zimmermann wrote:
>> Include <linux/io.h> to avoid depending on <linux/backlight.h> for
>> including it. Declares __raw_readb() and __raw_writeb().
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Closes: https://lore.kernel.org/oe-kbuild-all/202510282206.wI0HrqcK-lkp@intel.com/
>> Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
>> Cc: Thomas Zimmermann <tzimmermann@suse.de>
>> Cc: Daniel Thompson (RISCstar) <danielt@kernel.org>
>> Cc: Simona Vetter <simona.vetter@ffwll.ch>
>> Cc: Lee Jones <lee@kernel.org>
>> Cc: Daniel Thompson <danielt@kernel.org>
>> Cc: Jingoo Han <jingoohan1@gmail.com>
>> Cc: dri-devel@lists.freedesktop.org
>> ---
>> This is fallout from a recent cleanup of the backlight header file. I don't
>> have the option of building or testing this change, though.
>> ---
>>   arch/sh/include/cpu-sh3/cpu/dac.h | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/arch/sh/include/cpu-sh3/cpu/dac.h b/arch/sh/include/cpu-sh3/cpu/dac.h
>> index fd02331608a8..323ec8570bcd 100644
>> --- a/arch/sh/include/cpu-sh3/cpu/dac.h
>> +++ b/arch/sh/include/cpu-sh3/cpu/dac.h
>> @@ -2,6 +2,8 @@
>>   #ifndef __ASM_CPU_SH3_DAC_H
>>   #define __ASM_CPU_SH3_DAC_H
>>   
>> +#include <linux/io.h>
>> +
>>   /*
>>    * Copyright (C) 2003  Andriy Skulysh
>>    */
> I'm just looking at this patch again and was wondering where <linux/backlight.h> is
> actually being pulled in on SH3. I assume this is somewhere on the driver side, no?

Oh well, it's been ages...

I've been cleaning up the plenty of places that include <linux/fb.h> and 
<linux/backlight.h> unnecessarily. Besides the Fixes tag, presumably 
commit df1445598758 ("backlight: hp680_bl: Do not include <linux/fb.h>") 
is involved as well. The hp680_bl backlight driver got <linux/io.h> via 
<linux/fb.h> via <linux/backlight.h> before including <cpu/dac.h>. With 
fb.h gone from backlight.h gone,  dac.h should best include its 
dependencies. Hence the patch here.

Best regards
Thomas



>
> Adrian
>

-- 
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)



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

* Re: [PATCH] arch: sh: Include <linux/io.h> in dac.h
  2026-04-13  6:59   ` Thomas Zimmermann
@ 2026-04-13  7:29     ` John Paul Adrian Glaubitz
  0 siblings, 0 replies; 7+ messages in thread
From: John Paul Adrian Glaubitz @ 2026-04-13  7:29 UTC (permalink / raw)
  To: Thomas Zimmermann, ysato, dalias, lee, danielt, simona.vetter
  Cc: linux-sh, dri-devel, kernel test robot, Jingoo Han

Hi Thomas,

On Mon, 2026-04-13 at 08:59 +0200, Thomas Zimmermann wrote:
> Hi
> 
> Am 12.04.26 um 09:35 schrieb John Paul Adrian Glaubitz:
> > Hi Thomas,
> > 
> > On Tue, 2025-10-28 at 18:07 +0100, Thomas Zimmermann wrote:
> > > Include <linux/io.h> to avoid depending on <linux/backlight.h> for
> > > including it. Declares __raw_readb() and __raw_writeb().
> > > 
> > > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> > > Reported-by: kernel test robot <lkp@intel.com>
> > > Closes: https://lore.kernel.org/oe-kbuild-all/202510282206.wI0HrqcK-lkp@intel.com/
> > > Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
> > > Cc: Thomas Zimmermann <tzimmermann@suse.de>
> > > Cc: Daniel Thompson (RISCstar) <danielt@kernel.org>
> > > Cc: Simona Vetter <simona.vetter@ffwll.ch>
> > > Cc: Lee Jones <lee@kernel.org>
> > > Cc: Daniel Thompson <danielt@kernel.org>
> > > Cc: Jingoo Han <jingoohan1@gmail.com>
> > > Cc: dri-devel@lists.freedesktop.org
> > > ---
> > > This is fallout from a recent cleanup of the backlight header file. I don't
> > > have the option of building or testing this change, though.
> > > ---
> > >   arch/sh/include/cpu-sh3/cpu/dac.h | 2 ++
> > >   1 file changed, 2 insertions(+)
> > > 
> > > diff --git a/arch/sh/include/cpu-sh3/cpu/dac.h b/arch/sh/include/cpu-sh3/cpu/dac.h
> > > index fd02331608a8..323ec8570bcd 100644
> > > --- a/arch/sh/include/cpu-sh3/cpu/dac.h
> > > +++ b/arch/sh/include/cpu-sh3/cpu/dac.h
> > > @@ -2,6 +2,8 @@
> > >   #ifndef __ASM_CPU_SH3_DAC_H
> > >   #define __ASM_CPU_SH3_DAC_H
> > >   
> > > +#include <linux/io.h>
> > > +
> > >   /*
> > >    * Copyright (C) 2003  Andriy Skulysh
> > >    */
> > I'm just looking at this patch again and was wondering where <linux/backlight.h> is
> > actually being pulled in on SH3. I assume this is somewhere on the driver side, no?
> 
> Oh well, it's been ages...
> 
> I've been cleaning up the plenty of places that include <linux/fb.h> and 
> <linux/backlight.h> unnecessarily. Besides the Fixes tag, presumably 
> commit df1445598758 ("backlight: hp680_bl: Do not include <linux/fb.h>") 
> is involved as well. The hp680_bl backlight driver got <linux/io.h> via 
> <linux/fb.h> via <linux/backlight.h> before including <cpu/dac.h>. With 
> fb.h gone from backlight.h gone,  dac.h should best include its 
> dependencies. Hence the patch here.

Perfect, thanks for the quick explanation! I will pick up the patch then.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: [PATCH] arch: sh: Include <linux/io.h> in dac.h
  2025-10-28 17:07 [PATCH] arch: sh: Include <linux/io.h> in dac.h Thomas Zimmermann
                   ` (2 preceding siblings ...)
  2026-04-12  7:35 ` John Paul Adrian Glaubitz
@ 2026-04-13  7:31 ` John Paul Adrian Glaubitz
  3 siblings, 0 replies; 7+ messages in thread
From: John Paul Adrian Glaubitz @ 2026-04-13  7:31 UTC (permalink / raw)
  To: Thomas Zimmermann, ysato, dalias, lee, danielt, simona.vetter
  Cc: linux-sh, dri-devel, kernel test robot, Jingoo Han

On Tue, 2025-10-28 at 18:07 +0100, Thomas Zimmermann wrote:
> Include <linux/io.h> to avoid depending on <linux/backlight.h> for
> including it. Declares __raw_readb() and __raw_writeb().
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202510282206.wI0HrqcK-lkp@intel.com/
> Fixes: 243ce64b2b37 ("backlight: Do not include <linux/fb.h> in header file")
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Daniel Thompson (RISCstar) <danielt@kernel.org>
> Cc: Simona Vetter <simona.vetter@ffwll.ch>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Daniel Thompson <danielt@kernel.org>
> Cc: Jingoo Han <jingoohan1@gmail.com>
> Cc: dri-devel@lists.freedesktop.org
> ---
> This is fallout from a recent cleanup of the backlight header file. I don't
> have the option of building or testing this change, though.
> ---
>  arch/sh/include/cpu-sh3/cpu/dac.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/sh/include/cpu-sh3/cpu/dac.h b/arch/sh/include/cpu-sh3/cpu/dac.h
> index fd02331608a8..323ec8570bcd 100644
> --- a/arch/sh/include/cpu-sh3/cpu/dac.h
> +++ b/arch/sh/include/cpu-sh3/cpu/dac.h
> @@ -2,6 +2,8 @@
>  #ifndef __ASM_CPU_SH3_DAC_H
>  #define __ASM_CPU_SH3_DAC_H
>  
> +#include <linux/io.h>
> +
>  /*
>   * Copyright (C) 2003  Andriy Skulysh
>   */

Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>

Will pick this up today for v7.1.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

end of thread, other threads:[~2026-04-13  7:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28 17:07 [PATCH] arch: sh: Include <linux/io.h> in dac.h Thomas Zimmermann
2025-10-28 17:12 ` John Paul Adrian Glaubitz
2025-10-30 11:20 ` Daniel Thompson
2026-04-12  7:35 ` John Paul Adrian Glaubitz
2026-04-13  6:59   ` Thomas Zimmermann
2026-04-13  7:29     ` John Paul Adrian Glaubitz
2026-04-13  7:31 ` John Paul Adrian Glaubitz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.