]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/e820: Make e820_search_gap() static and remove unused variables
authorWei Yang <richard.weiyang@gmail.com>
Sun, 25 Dec 2016 14:35:51 +0000 (14:35 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 28 Dec 2016 08:20:29 +0000 (09:20 +0100)
commitb4ed1d15b453c86b4b9362128bd7a0ecd95a105c
tree03f0d77ddec7c04c869477e93d4ea50aff4ecf3f
parent2d706e790f0508dff4fb72eca9b4892b79757feb
x86/e820: Make e820_search_gap() static and remove unused variables

e820_search_gap() is just used locally now and the 'start_addr' and 'end_addr'
parameters are fixed values. Also, 'gapstart' is not checked in this function
anymore.

So make the function static and remove those unused variables.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akataria@vmware.com
Link: http://lkml.kernel.org/r/1482676551-11411-1-git-send-email-richard.weiyang@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/e820.h
arch/x86/kernel/e820.c