Skip to contentSkip to conversation

drivers/video/sis/ macros for old kernels removal

PATCH In review Jiri Slaby 2 participants 3 messages Aug 8, 2005

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 drivers/video/sis/ macros for old kernels removal

This patch removes some #ifs, which controls kernel version (2.4 or like), so the code could be removed with the macros. linux/version.h inclusions also removed.

init.h      |    5
init301.h   |    5
sis.h       |   46 ---
sis_accel.c |  243 ------------------
sis_accel.h |   13 -
sis_main.c  |  780 ------------------------------------------------------------
sis_main.h  |   55 ----
vgatypes.h  |    2
8 files changed, 2 insertions(+), 1147 deletions(-)

patch is here (45 KiB):
http://www.fi.muni.cz/~xslaby/lnx/sis_macros.txt

Signature · 3 lines
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      [email protected]      ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10
author
#1 lore raw

Jiri Slaby napsal(a):

Quoted 2 lines

This patch removes some #ifs, which controls kernel version (2.4 or like), so the code could be removed with the macros. linux/version.h inclusions also removed.

Sorry, this was bad idea. X includes some of these file, doesn't it?

#2 lore raw
Quoted 7 lines · Jiri Slaby

Jiri Slaby napsal(a):

Quoted 3 lines

This patch removes some #ifs, which controls kernel version (2.4 or like), so the code could be removed with the macros. linux/version.h inclusions also removed.

Sorry, this was bad idea. X includes some of these file, doesn't it?

X can't depend on the version of the kernel anyway; the "version" in version.h has no relation with the running kernel anyway (or with the version of the kernel that will be used to run the X binaries on)