diff options
author | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-04-08 01:30:43 +0000 |
---|---|---|
committer | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-04-08 01:30:43 +0000 |
commit | 10444e06d4f4edaf8e8cd9370f450ce7c047efac (patch) | |
tree | 294d347bd34529e341a363bc093287b5b236c601 /linux/Makefile.linux | |
parent | 3f7769921bd414f489d4487a5760a8d814efd51d (diff) |
Use list_entry() to get container struct from struct list_head pointers.
Build fix for RedHat 9 kernel (5 args to remap_page_range()).
Diffstat (limited to 'linux/Makefile.linux')
-rw-r--r-- | linux/Makefile.linux | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/Makefile.linux b/linux/Makefile.linux index 065d6f62..63bec30d 100644 --- a/linux/Makefile.linux +++ b/linux/Makefile.linux @@ -144,6 +144,8 @@ AGP := $(shell gcc -E -nostdinc -I$(TREE) picker.c 2>/dev/null \ MACHINE := $(shell echo `uname -m`) # Red Hat's kernels have 4 args to do_munmap() DOMUNMAP := $(shell grep do_munmap $(TREE)/linux/mm.h | grep -c acct) +# Red Hat 9 kernel has 5 args to remap_page_range() +RPR := $(shell grep remap_page_range $(TREE)/linux/mm.h | grep -c vma) ifeq ($(AGP),0) AGP := $(shell gcc -E -nostdinc -I$(TREE) picker.c 2>/dev/null \ | grep -s 'AGP_MODULE = ' | cut -d' ' -f3) @@ -152,6 +154,9 @@ endif ifeq ($(DOMUNMAP),1) MODCFLAGS += -DDO_MUNMAP_4_ARGS endif +ifeq ($(RPR),1) +MODCFLAGS += -DREMAP_PAGE_RANGE_5_ARGS +endif ifeq ($(AGP),1) MODCFLAGS += -DCONFIG_AGP -DCONFIG_AGP_MODULE DRMTEMPLATES += drm_agpsupport.h |