From: Randy Dunlap <rdunlap@infradead.org>
To: X86 ML <x86@kernel.org>, LKML <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Andy Lutomirski <luto@kernel.org>
Subject: [PATCH -next] x86: F00F: fix parenthesis in idt.c
Date: Tue, 2 Jun 2020 07:30:41 -0700 [thread overview]
Message-ID: <3df7fc9b-5cba-666a-be94-9c104ad117ef@infradead.org> (raw)
From: Randy Dunlap <rdunlap@infradead.org>
Fix unmatched parenthesis and build error for F00F bug:
../arch/x86/kernel/idt.c: In function 'idt_is_f00f_address':
../arch/x86/kernel/idt.c:177:43: error: expected ';' before ')' token
return (address - idt_descr.address) >> 3) == 6;
^
../arch/x86/kernel/idt.c:177:43: error: expected statement before ')' token
../arch/x86/kernel/idt.c:177:45: error: expected expression before '==' token
return (address - idt_descr.address) >> 3) == 6;
^~
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
arch/x86/kernel/idt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20200602.orig/arch/x86/kernel/idt.c
+++ linux-next-20200602/arch/x86/kernel/idt.c
@@ -174,7 +174,7 @@ void load_current_idt(void)
#ifdef CONFIG_X86_F00F_BUG
bool idt_is_f00f_address(unsigned long address)
{
- return (address - idt_descr.address) >> 3) == 6;
+ return ((address - idt_descr.address) >> 3) == 6;
}
#endif
reply other threads:[~2020-06-02 14:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3df7fc9b-5cba-666a-be94-9c104ad117ef@infradead.org \
--to=rdunlap@infradead.org \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).