linux/arch
Thomas Zimmermann 94545f2715 arch/x86: Include <asm/fb.h> in fbdev source file
Move the implementation of fb_pgprotect() to fbdev.c and include
<asm/fb.h>. Fixes the following warning:

  ../arch/x86/video/fbdev.c:14:5: warning: no previous prototype for 'fb_is_primary_device' [-Wmissing-prototypes]
     14 | int fb_is_primary_device(struct fb_info *info)
        |     ^~~~~~~~~~~~~~~~~~~~

Just including <asm/fb.h> results in a number of built-in errors
about undefined function. Moving fb_pgprotect() to the source file
avoids the required include statements in the header. The function
is only called occasionally from fb_mmap(), [1] so having it as static
inline had no benefit.

While at it, fix the codying style in fbdev.c.

Link: https://elixir.bootlin.com/linux/v6.3-rc7/source/drivers/video/fbdev/core/fbmem.c#L1404 # 1
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230424084751.14641-1-tzimmermann@suse.de
2023-04-26 15:07:57 +02:00
..
alpha alpha: fix lazy-FPU mis(merged/applied/whatnot) 2023-03-06 20:13:49 -05:00
arc arch/arc: Implement <asm/fb.h> with generic helpers 2023-04-20 10:04:19 +02:00
arm arch/arm: Implement <asm/fb.h> with generic helpers 2023-04-20 10:04:24 +02:00
arm64 arch/arm64: Implement <asm/fb.h> with generic helpers 2023-04-20 10:04:27 +02:00
csky rch/csky patches for 6.3 2023-02-27 09:27:31 -08:00
hexagon VM_FAULT_RETRY fixes 2023-03-05 11:07:58 -08:00
ia64 arch/ia64: Implement <asm/fb.h> with generic helpers 2023-04-20 10:04:30 +02:00
loongarch arch/loongarch: Implement <asm/fb.h> with generic helpers 2023-04-20 10:04:33 +02:00
m68k arch/m68k: Implement <asm/fb.h> with generic helpers 2023-04-20 10:04:41 +02:00
microblaze VM_FAULT_RETRY fixes 2023-03-05 11:07:58 -08:00
mips arch/mips: Implement <asm/fb.h> with generic helpers 2023-04-20 10:04:44 +02:00
nios2 VM_FAULT_RETRY fixes 2023-03-05 11:07:58 -08:00
openrisc VM_FAULT_RETRY fixes 2023-03-05 11:07:58 -08:00
parisc arch/parisc: Implement <asm/fb.h> with generic helpers 2023-04-20 10:05:01 +02:00
powerpc arch/powerpc: Implement <asm/fb.h> with generic helpers 2023-04-20 10:05:05 +02:00
riscv RISC-V Fixes for 6.3-rc4 2023-03-24 09:52:26 -07:00
s390 s390: update defconfigs 2023-03-13 09:15:11 +01:00
sh arch/sh: Implement <asm/fb.h> with generic helpers 2023-04-20 10:05:08 +02:00
sparc arch/sparc: Implement <asm/fb.h> with generic helpers 2023-04-20 10:05:15 +02:00
um This pull request contains the following changes for UML: 2023-03-01 09:13:00 -08:00
x86 arch/x86: Include <asm/fb.h> in fbdev source file 2023-04-26 15:07:57 +02:00
xtensa - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
.gitignore
Kconfig arch/Kconfig: fix indentation 2023-02-09 17:03:20 -08:00