Skip to content

Commit

Permalink
Merge tag 'fbdev-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/k…
Browse files Browse the repository at this point in the history
…ernel/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
  • Loading branch information
Linus Torvalds committed Oct 18, 2023
2 parents 213f891 + e8e4a47 commit 06dc10e
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 10 deletions.
4 changes: 4 additions & 0 deletions drivers/video/fbdev/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -3440,11 +3440,15 @@ static int atyfb_setup_generic(struct pci_dev *pdev, struct fb_info *info,
}

info->fix.mmio_start = raddr;
#if defined(__i386__) || defined(__ia64__)
/*
* By using strong UC we force the MTRR to never have an
* effect on the MMIO region on both non-PAT and PAT systems.
*/
par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000);
#else
par->ati_regbase = ioremap(info->fix.mmio_start, 0x1000);
#endif
if (par->ati_regbase == NULL)
return -ENOMEM;

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/core/cfbcopyarea.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void cfb_copyarea(struct fb_info *p, const struct fb_copyarea *area)
{
u32 dx = area->dx, dy = area->dy, sx = area->sx, sy = area->sy;
u32 height = area->height, width = area->width;
unsigned long const bits_per_line = p->fix.line_length*8u;
unsigned int const bits_per_line = p->fix.line_length * 8u;
unsigned long __iomem *base = NULL;
int bits = BITS_PER_LONG, bytes = bits >> 3;
unsigned dst_idx = 0, src_idx = 0, rev_copy = 0;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/core/syscopyarea.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ void sys_copyarea(struct fb_info *p, const struct fb_copyarea *area)
{
u32 dx = area->dx, dy = area->dy, sx = area->sx, sy = area->sy;
u32 height = area->height, width = area->width;
unsigned long const bits_per_line = p->fix.line_length*8u;
unsigned int const bits_per_line = p->fix.line_length * 8u;
unsigned long *base = NULL;
int bits = BITS_PER_LONG, bytes = bits >> 3;
unsigned dst_idx = 0, src_idx = 0, rev_copy = 0;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/mmp/hw/mmp_ctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ struct mmphw_ctrl {

/*pathes*/
int path_num;
struct mmphw_path_plat path_plats[];
struct mmphw_path_plat path_plats[] __counted_by(path_num);
};

static inline int overlay_is_vid(struct mmp_overlay *overlay)
Expand Down
4 changes: 2 additions & 2 deletions drivers/video/fbdev/omap/omapfb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1645,13 +1645,13 @@ static int omapfb_do_probe(struct platform_device *pdev,
}
fbdev->int_irq = platform_get_irq(pdev, 0);
if (fbdev->int_irq < 0) {
r = ENXIO;
r = -ENXIO;
goto cleanup;
}

fbdev->ext_irq = platform_get_irq(pdev, 1);
if (fbdev->ext_irq < 0) {
r = ENXIO;
r = -ENXIO;
goto cleanup;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/sa1100fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ static struct platform_driver sa1100fb_driver = {
},
};

int __init sa1100fb_init(void)
static int __init sa1100fb_init(void)
{
if (fb_get_options("sa1100fb", NULL))
return -ENODEV;
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/uvesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1928,10 +1928,10 @@ static void uvesafb_exit(void)
}
}

cn_del_callback(&uvesafb_cn_id);
driver_remove_file(&uvesafb_driver.driver, &driver_attr_v86d);
platform_device_unregister(uvesafb_device);
platform_driver_unregister(&uvesafb_driver);
cn_del_callback(&uvesafb_cn_id);
}

module_exit(uvesafb_exit);
Expand Down
2 changes: 1 addition & 1 deletion include/video/mmp_disp.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ struct mmp_path {

/* layers */
int overlay_num;
struct mmp_overlay overlays[];
struct mmp_overlay overlays[] __counted_by(overlay_num);
};

extern struct mmp_path *mmp_get_path(const char *name);
Expand Down
2 changes: 0 additions & 2 deletions include/video/uvesafb.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ struct uvesafb_ktask {
u32 ack;
};

static int uvesafb_exec(struct uvesafb_ktask *tsk);

#define UVESAFB_EXACT_RES 1
#define UVESAFB_EXACT_DEPTH 2

Expand Down

0 comments on commit 06dc10e

Please sign in to comment.