Re: [Dri-devel] 2.6 kernel change in nopage
From: Linus Torvalds
Date: Thu Jan 01 2004 - 18:00:55 EST
On Fri, 2 Jan 2004, Nigel Cunningham wrote:
>
> Of course there are also advantages to _not_ using the file-per-kernel
> version scheme.
No there isn't.
The thing is, you should keep those "file-per-OS" files as small as
possible, and only contain the things that are literally different.
Because:
> Keeping one set of files means time is not wasted
> applying the same change to multiple variations
If the files only contain the actual differences, this just isn't an
issue. Those files are per-OS _anyway_, so regardless of how you do it
(with #ifdef's inside our outside the code etc), you'd have several
versions.
And having separate files means that you don't uglify the code for another
OS or another version and hide the _real_ issues.
But yes, it assumes that you can cleanly abstract out the differences.
Linus
-
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/