2007-01-30 00:24:22

by Mike Frysinger

[permalink] [raw]
Subject: [patch] use __u32 in asm-x86_64/msr.h

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


Attachments:
(No filename) (163.00 B)
(No filename) (827.00 B)
linux-use-__-types-in-x86-64-msr.patch (738.00 B)
Download all attachments

2007-01-30 03:56:12

by Dave Jones

[permalink] [raw]
Subject: Re: [patch] use __u32 in asm-x86_64/msr.h

On Mon, Jan 29, 2007 at 07:25:08PM -0500, Mike Frysinger wrote:
> 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

Better would be to not export those macros to userspace at all,
as they can't be used outside of ring 0 anyway.

Dave

--
http://www.codemonkey.org.uk