compilation problem w/ arch/i386/mm/fault.c on test3-pre5

From: J. Robert von Behren (jrvb@cs.berkeley.edu)
Date: Fri Jul 07 2000 - 09:59:56 EST


Greetings -

I'm getting the following error when compiling fault.c on test3-pre5:

gcc -D__KERNEL__ -I/home/jrvb/dev/kernel/linux-2.4.0-test3-pre5/include
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -Werror
-fno-strict-aliasing -pipe -march=i586 -c -o fault.o fault.c
cc1: warnings being treated as errors
fault.c: In function `do_page_fault':
fault.c:143: warning: `sem' might be used uninitialized in this function

The line in question is just

        down(&mm->mmap_sem);

The error goes away if I remove the "inline" modifier from the
definition of down() in include/asm-i386/semaphore.h, but this clearly
isn't the right thing to do... ;-) Does anyone have other suggestions?

-Rob von Behren

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:21 EST