On Sat, 24 Oct 2009 16:19:48 +0200 Johannes Obermayr <johannesoberm...@gmx.de> wrote:
> Hi, > > I tried compiling nouveau/linux-2.6 and Dave Airlie's git tree on > kernel 2.6.32-rc5 and received on both the same error. > > This patch fixes the error and let the code also compatible to > kernels < 2.6.32. > > I "robbed" some code from http://lwn.net/Articles/353496/ and > added only IF-loops... > > I tried compiling on kernels 2.6.32-rc5 and 2.6.31.3 - both works > fine... > > But I do not know whether it is wished that code which will be > merged into mainline kernel (someday) contains code that is only > needed for older kernel versions. #include <linux/version.h> is seen as a red flag and will never make it into the mainline. The proper fix must be done at the time Airlied merges Linus' tree to drm-next. Well, probably it is already fixed in Linus' tree, so there is nothing to fix, really. I've been wondering when the merge happens... btw. Nouveau does not carry backwards support, so when it does happen, all Nouveau users need to upgrade too. Users wishing to mix and match versions may find your patch useful. -- Pekka Paalanen http://www.iki.fi/pq/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel