From: Mike Frysinger <vapier@gentoo.org>
To: ak@suse.de
Cc: linux-kernel@vger.kernel.org
Subject: [patch] use __u32 in asm-x86_64/msr.h
Date: Mon, 29 Jan 2007 19:25:08 -0500 [thread overview]
Message-ID: <200701291925.08670.vapier@gentoo.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 166 bytes --]
the checking_wrmsrl() macro in asm-x86_64/msr.h which is exported to userspace
utilizes the u32 type instead of __u32 ... trivial attached patch fixes that
-mike
[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]
[-- Attachment #2: linux-use-__-types-in-x86-64-msr.patch --]
[-- Type: text/x-diff, Size: 738 bytes --]
Use __u32 rather than u32 in checking_wrmsrl() exported to userspace.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
--- a/include/asm-x86_64/msr.h
+++ b/include/asm-x86_64/msr.h
@@ -2,6 +2,9 @@
#define X86_64_MSR_H 1
#ifndef __ASSEMBLY__
+
+#include <linux/types.h>
+
/*
* Access to machine-specific registers (available on 586 and better only)
* Note: the rd* operations modify the parameters directly (without using
@@ -43,7 +46,7 @@
: "c" (msr), "0" (a), "d" (b), "i" (-EFAULT)); \
ret__; })
-#define checking_wrmsrl(msr,val) wrmsr_safe(msr,(u32)(val),(u32)((val)>>32))
+#define checking_wrmsrl(msr,val) wrmsr_safe(msr,(__u32)(val),(__u32)((val)>>32))
#define rdmsr_safe(msr,a,b) \
({ int ret__; \
next reply other threads:[~2007-01-30 0:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-30 0:25 Mike Frysinger [this message]
2007-01-30 3:55 ` [patch] use __u32 in asm-x86_64/msr.h Dave Jones
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=200701291925.08670.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=ak@suse.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.