Commit 3a28b9c6 authored by Andrew Morton's avatar Andrew Morton Committed by Sam Ravnborg

bk-kbuild-in_gate_area_no_task-warning-fix

arch/x86_64/mm/init.c: In function `in_gate_area_no_task':
arch/x86_64/mm/init.c:656: warning: suggest parentheses around && within ||
In file included from include/asm/numa.h:5,
                 from arch/x86_64/kernel/setup.c:60:
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent b0d10330
...@@ -630,6 +630,6 @@ int in_gate_area(struct task_struct *task, unsigned long addr) ...@@ -630,6 +630,6 @@ int in_gate_area(struct task_struct *task, unsigned long addr)
*/ */
int in_gate_area_no_task(unsigned long addr) int in_gate_area_no_task(unsigned long addr)
{ {
return ((addr >= VSYSCALL_START) && (addr < VSYSCALL_END) || return (((addr >= VSYSCALL_START) && (addr < VSYSCALL_END)) ||
(addr >= VSYSCALL32_BASE) && (addr < VSYSCALL32_END)); ((addr >= VSYSCALL32_BASE) && (addr < VSYSCALL32_END)));
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment