Skip to contentSkip to conversation

Kernel 2.4.1pre11 - Compile bug - Function prototype change?

DISCUSSION Shawn Starr 1 participant 2 messages Jan 28, 2001

lore
Share & tools
lore
#0 lore raw

in include/linux/mm.h:

-extern void zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size, int actions);
+extern void zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size)

The function has changed and breaks memory.c ?

memory.c:352: conflicting types for zap_page_range' /usr/src/linux/include/linux/mm.h:396: previous declaration of zap_page_range'
make[2]: *** [memory.o] Error 1
make[2]: Leaving directory `/usr/src/linux/mm' make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/mm'
make: *** [_dir_mm] Error 2

Shawn.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw

Nevermind, the low-latency patch changed this function.. ignore

Quoted 18 lines · Shawn Starr

in include/linux/mm.h:

-extern void zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size, int actions);
+extern void zap_page_range(struct mm_struct *mm, unsigned long address, unsigned long size)

The function has changed and breaks memory.c ?

memory.c:352: conflicting types for zap_page_range' /usr/src/linux/include/linux/mm.h:396: previous declaration of zap_page_range'
make[2]: *** [memory.o] Error 1
make[2]: Leaving directory `/usr/src/linux/mm' make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/mm'
make: *** [_dir_mm] Error 2

Quoted 1 line

Shawn.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/