Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 240313 Details for
Bug 296539
Uvesafb fails on 2.6.32-gentoo
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A new patch to test whether the problem is in uvesafb.c
uvesafb-absint.patch (text/plain), 1.24 KB, created by
Michal Januszewski (RETIRED)
on 2010-07-27 11:28:27 UTC
(
hide
)
Description:
A new patch to test whether the problem is in uvesafb.c
Filename:
MIME Type:
Creator:
Michal Januszewski (RETIRED)
Created:
2010-07-27 11:28:27 UTC
Size:
1.24 KB
patch
obsolete
>diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c >index 7b8839e..b965667 100644 >--- a/drivers/video/uvesafb.c >+++ b/drivers/video/uvesafb.c >@@ -29,6 +29,11 @@ > #endif > #include "edid.h" > >+#define absint(x) ({ \ >+ int __x = (x); \ >+ (__x < 0) ? -__x : __x; \ >+ }) >+ > static struct cb_id uvesafb_cn_id = { > .idx = CN_IDX_V86D, > .val = CN_VAL_V86D_UVESAFB >@@ -320,9 +325,9 @@ static int uvesafb_vbe_find_mode(struct uvesafb_par *par, > int i, match = -1, h = 0, d = 0x7fffffff; > > for (i = 0; i < par->vbe_modes_cnt; i++) { >- h = abs(par->vbe_modes[i].x_res - xres) + >- abs(par->vbe_modes[i].y_res - yres) + >- abs(depth - par->vbe_modes[i].depth); >+ h = absint(par->vbe_modes[i].x_res - xres) + >+ absint(par->vbe_modes[i].y_res - yres) + >+ absint(depth - par->vbe_modes[i].depth); > > /* > * We have an exact match in terms of resolution >@@ -1375,7 +1380,7 @@ static int uvesafb_check_var(struct fb_var_screeninfo *var, > * which is theoretically incorrect, but which we'll try to handle > * here. > */ >- if (depth == 0 || abs(depth - var->bits_per_pixel) >= 8) >+ if (depth == 0 || absint(depth - var->bits_per_pixel) >= 8) > depth = var->bits_per_pixel; > > match = uvesafb_vbe_find_mode(par, var->xres, var->yres, depth,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 296539
:
232545
|
240249
|
240313
|
240365
|
240379
|
240409
|
263871