Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'fbdev-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev

Pull fbdev fixes and cleanups from Helge Deller:
"Various minor fixes, cleanups and annotations for atyfb, sa1100fb,
omapfb, uvesafb and mmp"

* tag 'fbdev-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
fbdev: core: syscopyarea: fix sloppy typing
fbdev: core: cfbcopyarea: fix sloppy typing
fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()
fbdev: uvesafb: Remove uvesafb_exec() prototype from include/video/uvesafb.h
fbdev: sa1100fb: mark sa1100fb_init() static
fbdev: omapfb: fix some error codes
fbdev: atyfb: only use ioremap_uc() on i386 and ia64
fbdev: mmp: Annotate struct mmp_path with __counted_by
fbdev: mmp: Annotate struct mmphw_ctrl with __counted_by

+12 -10
+4
drivers/video/fbdev/aty/atyfb_base.c
··· 3440 3440 } 3441 3441 3442 3442 info->fix.mmio_start = raddr; 3443 + #if defined(__i386__) || defined(__ia64__) 3443 3444 /* 3444 3445 * By using strong UC we force the MTRR to never have an 3445 3446 * effect on the MMIO region on both non-PAT and PAT systems. 3446 3447 */ 3447 3448 par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000); 3449 + #else 3450 + par->ati_regbase = ioremap(info->fix.mmio_start, 0x1000); 3451 + #endif 3448 3452 if (par->ati_regbase == NULL) 3449 3453 return -ENOMEM; 3450 3454
+1 -1
drivers/video/fbdev/core/cfbcopyarea.c
··· 382 382 { 383 383 u32 dx = area->dx, dy = area->dy, sx = area->sx, sy = area->sy; 384 384 u32 height = area->height, width = area->width; 385 - unsigned long const bits_per_line = p->fix.line_length*8u; 385 + unsigned int const bits_per_line = p->fix.line_length * 8u; 386 386 unsigned long __iomem *base = NULL; 387 387 int bits = BITS_PER_LONG, bytes = bits >> 3; 388 388 unsigned dst_idx = 0, src_idx = 0, rev_copy = 0;
+1 -1
drivers/video/fbdev/core/syscopyarea.c
··· 316 316 { 317 317 u32 dx = area->dx, dy = area->dy, sx = area->sx, sy = area->sy; 318 318 u32 height = area->height, width = area->width; 319 - unsigned long const bits_per_line = p->fix.line_length*8u; 319 + unsigned int const bits_per_line = p->fix.line_length * 8u; 320 320 unsigned long *base = NULL; 321 321 int bits = BITS_PER_LONG, bytes = bits >> 3; 322 322 unsigned dst_idx = 0, src_idx = 0, rev_copy = 0;
+1 -1
drivers/video/fbdev/mmp/hw/mmp_ctrl.h
··· 1406 1406 1407 1407 /*pathes*/ 1408 1408 int path_num; 1409 - struct mmphw_path_plat path_plats[]; 1409 + struct mmphw_path_plat path_plats[] __counted_by(path_num); 1410 1410 }; 1411 1411 1412 1412 static inline int overlay_is_vid(struct mmp_overlay *overlay)
+2 -2
drivers/video/fbdev/omap/omapfb_main.c
··· 1645 1645 } 1646 1646 fbdev->int_irq = platform_get_irq(pdev, 0); 1647 1647 if (fbdev->int_irq < 0) { 1648 - r = ENXIO; 1648 + r = -ENXIO; 1649 1649 goto cleanup; 1650 1650 } 1651 1651 1652 1652 fbdev->ext_irq = platform_get_irq(pdev, 1); 1653 1653 if (fbdev->ext_irq < 0) { 1654 - r = ENXIO; 1654 + r = -ENXIO; 1655 1655 goto cleanup; 1656 1656 } 1657 1657
+1 -1
drivers/video/fbdev/sa1100fb.c
··· 1214 1214 }, 1215 1215 }; 1216 1216 1217 - int __init sa1100fb_init(void) 1217 + static int __init sa1100fb_init(void) 1218 1218 { 1219 1219 if (fb_get_options("sa1100fb", NULL)) 1220 1220 return -ENODEV;
+1 -1
drivers/video/fbdev/uvesafb.c
··· 1928 1928 } 1929 1929 } 1930 1930 1931 - cn_del_callback(&uvesafb_cn_id); 1932 1931 driver_remove_file(&uvesafb_driver.driver, &driver_attr_v86d); 1933 1932 platform_device_unregister(uvesafb_device); 1934 1933 platform_driver_unregister(&uvesafb_driver); 1934 + cn_del_callback(&uvesafb_cn_id); 1935 1935 } 1936 1936 1937 1937 module_exit(uvesafb_exit);
+1 -1
include/video/mmp_disp.h
··· 231 231 232 232 /* layers */ 233 233 int overlay_num; 234 - struct mmp_overlay overlays[]; 234 + struct mmp_overlay overlays[] __counted_by(overlay_num); 235 235 }; 236 236 237 237 extern struct mmp_path *mmp_get_path(const char *name);
-2
include/video/uvesafb.h
··· 109 109 u32 ack; 110 110 }; 111 111 112 - static int uvesafb_exec(struct uvesafb_ktask *tsk); 113 - 114 112 #define UVESAFB_EXACT_RES 1 115 113 #define UVESAFB_EXACT_DEPTH 2 116 114