Re: [PATCH 1/1] i915: fix up a raw 64bit divide

From: Andy Whitcroft
Date: Wed Jul 01 2009 - 12:32:45 EST


On Wed, Jul 01, 2009 at 09:12:55AM -0700, Jesse Barnes wrote:
> On Wed, 1 Jul 2009 15:20:59 +0100
> Andy Whitcroft <apw@xxxxxxxxxxxxx> wrote:
>
> > We are seeing compilation failures on i386 in some environments due
> > to an undefined reference as below:
> >
> > ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined!
> >
> > This is generated due to a raw 64 bit divide in the i915 driver. Fix
> > up this raw divide.
> >
> > Signed-off-by: Andy Whitcroft <apw@xxxxxxxxxxxxx>
>
> I think building with newer GCCs will prevent this error, but the fix
> looks fine.

Yeah I suspect gcc interactions here, as builds on older userspace were
failing in this way but not so in the very latest karmic userspace. I
suspect its still correct to avoid these currently.

> Acked-by: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>

Thanks.

-apw
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/