Re: [PATCH v2 4/5] fbdev: Include <linux/io.h> in drivers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Thomas Zimmermann <tzimmermann@xxxxxxx>
- Subject: Re: [PATCH v2 4/5] fbdev: Include <linux/io.h> in drivers
- From: Sam Ravnborg <sam@xxxxxxxxxxxx>
- Date: Fri, 28 Apr 2023 15:07:02 +0200
- Cc: deller@xxxxxx, geert@xxxxxxxxxxxxxx, javierm@xxxxxxxxxx, daniel@xxxxxxxx, vgupta@xxxxxxxxxx, chenhuacai@xxxxxxxxxx, kernel@xxxxxxxxxx, davem@xxxxxxxxxxxxx, James.Bottomley@xxxxxxxxxxxxxxxxxxxxx, arnd@xxxxxxxx, linux-fbdev@xxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, linux-snps-arc@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, loongarch@xxxxxxxxxxxxxxx, linux-m68k@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx
- In-reply-to: <20230428092711.406-5-tzimmermann@suse.de>
- References: <20230428092711.406-1-tzimmermann@suse.de> <20230428092711.406-5-tzimmermann@suse.de>
On Fri, Apr 28, 2023 at 11:27:10AM +0200, Thomas Zimmermann wrote:
> Fbdev's main header file, <linux/fb.h>, includes <asm/io.h> to get
> declarations of I/O helper functions. From these declaratons, it later
> defines framebuffer I/O helpers, such as fb_{read,write}[bwlq]() or
> fb_memset().
>
> The framebuffer I/O helpers pre-date Linux' current I/O code and will
> be replaced by regular I/O helpers. Prepare this change by adding an
> include statement for <linux/io.h> to all source files that use the
> framebuffer I/O helpers. They will still get declarations of the I/O
> functions even after <linux/fb.h> has been cleaned up.
When fb.h uses a symbol from io.h, then it shall include that
file so it is self contained.
So it is wrong to push the io.h include to the users of
fb_{read,write,xxx}. Maybe fb.h only uses macros as is the case here,
but that is no excuse nt to include io.h.
Drop these changes.
> Driver source
> files that already include <asm/io.h> convert to <linux/io.h>.
This is a nice cleanup - we should keep that.
Sam
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]