From: Glauber de Oliveira Costa <gcosta@redhat.com>
To: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: [PATCH] Use constant instead of raw number in x86_64 ioperm.c
Date: Thu, 4 Jan 2007 14:44:14 -0200 [thread overview]
Message-ID: <20070104164414.GB27259@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
This is a tiny cleanup to increase readability
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
--
Glauber de Oliveira Costa
Red Hat Inc.
"Free as in Freedom"
[-- Attachment #2: constant.patch --]
[-- Type: text/plain, Size: 535 bytes --]
diff -Nrup linux-2.6.19.1/arch/x86_64/kernel/ioport.c linux-2.6.19.1-devel/arch/x86_64/kernel/ioport.c
--- linux-2.6.19.1/arch/x86_64/kernel/ioport.c 2006-12-11 17:32:53.000000000 -0200
+++ linux-2.6.19.1-devel/arch/x86_64/kernel/ioport.c 2007-01-04 07:44:46.000000000 -0200
@@ -114,6 +114,6 @@ asmlinkage long sys_iopl(unsigned int le
if (!capable(CAP_SYS_RAWIO))
return -EPERM;
}
- regs->eflags = (regs->eflags &~ 0x3000UL) | (level << 12);
+ regs->eflags = (regs->eflags &~ X86_EFLAGS_IOPL) | (level << 12);
return 0;
}
reply other threads:[~2007-01-04 16:43 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=20070104164414.GB27259@redhat.com \
--to=gcosta@redhat.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.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
Powered by JetHome