Re: LLVM warning in sys/uvm/uvm_map.c

2013-12-06 Thread Jonathan Gray
On Fri, Dec 06, 2013 at 11:41:47PM -0500, Brad Smith wrote: > On 06/12/13 11:39 PM, Ted Unangst wrote: > >On Fri, Dec 06, 2013 at 20:47, Brad Smith wrote: > >>On Tue, Dec 03, 2013 at 06:48:11PM -0500, Brad Smith wrote: > >>>An unused function in the UVM code. #if 0 it out for now. > >>> > >>>uvm_ma

Re: LLVM warning in sys/uvm/uvm_map.c

2013-12-06 Thread Ted Unangst
On Fri, Dec 06, 2013 at 23:41, Brad Smith wrote: > The function isn't being called anywhere in the tree. You're missing the > point. The kernel builds with -Werror. I wouldn't care about these > warnings if it didn't. -Wno-unused or whatever?

Re: LLVM warning in sys/uvm/uvm_map.c

2013-12-06 Thread Brad Smith
On 06/12/13 11:39 PM, Ted Unangst wrote: On Fri, Dec 06, 2013 at 20:47, Brad Smith wrote: On Tue, Dec 03, 2013 at 06:48:11PM -0500, Brad Smith wrote: An unused function in the UVM code. #if 0 it out for now. uvm_map.c:171:14: error: unused function 'uvm_mapentry_freecmp' [-Werror,-Wunused-fun

Re: LLVM warning in sys/uvm/uvm_map.c

2013-12-06 Thread Ted Unangst
On Fri, Dec 06, 2013 at 20:47, Brad Smith wrote: > On Tue, Dec 03, 2013 at 06:48:11PM -0500, Brad Smith wrote: >> An unused function in the UVM code. #if 0 it out for now. >> >> uvm_map.c:171:14: error: unused function 'uvm_mapentry_freecmp' > [-Werror,-Wunused-function] >> uvm_map.c:353:1: error:

Re: LLVM warning in sys/uvm/uvm_map.c

2013-12-06 Thread Brad Smith
On Tue, Dec 03, 2013 at 06:48:11PM -0500, Brad Smith wrote: > An unused function in the UVM code. #if 0 it out for now. > > uvm_map.c:171:14: error: unused function 'uvm_mapentry_freecmp' > [-Werror,-Wunused-function] > uvm_map.c:353:1: error: unused function 'uvm_mapentry_freecmp' > [-Werror,-W

LLVM warning in sys/uvm/uvm_map.c

2013-12-03 Thread Brad Smith
An unused function in the UVM code. #if 0 it out for now. uvm_map.c:171:14: error: unused function 'uvm_mapentry_freecmp' [-Werror,-Wunused-function] uvm_map.c:353:1: error: unused function 'uvm_mapentry_freecmp' [-Werror,-Wunused-function] OK? Index: uvm_map.c ===