[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.20.1702131646420.3619@nanos>
Date: Mon, 13 Feb 2017 16:49:18 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
cc: Jérémy Lefaure <jeremy.lefaure@....epita.fr>,
x86@...nel.org, Borislav Petkov <bp@...e.de>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] x86/vm86: fix unused variable warning if THP is
disabled.
On Mon, 13 Feb 2017, Kirill A. Shutemov wrote:
> GCC complaines on unused variable 'vma' in mark_screen_rdonly() if THP
> is disalbed:
>
> arch/x86/kernel/vm86_32.c: In function ‘mark_screen_rdonly’:
> arch/x86/kernel/vm86_32.c:180:26: warning: unused variable ‘vma’
> [-Wunused-variable]
> struct vm_area_struct *vma = find_vma(mm, 0xA0000);
> ^~~
> It shoudln't really. The whole block has to be eliminated as
> pmd_trans_huge() is 0 if THP is disabled.
Indeed. That's outright silly.
Powered by blists - more mailing lists