* [PATCH] mtrr: fix types used in userspace exported header
@ 2009-01-08 15:01 Kyle McMartin
2009-01-08 15:04 ` Kyle McMartin
0 siblings, 1 reply; 3+ messages in thread
From: Kyle McMartin @ 2009-01-08 15:01 UTC (permalink / raw)
To: linux-kernel; +Cc: tglx, mingo, hpa
From: Kyle McMartin <kyle@redhat.com>
Commit 932d27a7913fc6b3c64c6e6082628b0a1561dec9 exported some mtrr
structures without using the exportable __uX types, causing userspace
build failures.
Signed-off-by: Kyle McMartin <kyle@redhat.com>
diff --git a/arch/x86/include/asm/mtrr.h b/arch/x86/include/asm/mtrr.h
index cb988aa..1b0d528 100644
--- a/arch/x86/include/asm/mtrr.h
+++ b/arch/x86/include/asm/mtrr.h
@@ -58,10 +58,10 @@ struct mtrr_gentry {
#endif /* !__i386__ */
struct mtrr_var_range {
- u32 base_lo;
- u32 base_hi;
- u32 mask_lo;
- u32 mask_hi;
+ __u32 base_lo;
+ __u32 base_hi;
+ __u32 mask_lo;
+ __u32 mask_hi;
};
/* In the Intel processor's MTRR interface, the MTRR type is always held in
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mtrr: fix types used in userspace exported header
2009-01-08 15:01 [PATCH] mtrr: fix types used in userspace exported header Kyle McMartin
@ 2009-01-08 15:04 ` Kyle McMartin
2009-01-08 15:14 ` Ingo Molnar
0 siblings, 1 reply; 3+ messages in thread
From: Kyle McMartin @ 2009-01-08 15:04 UTC (permalink / raw)
To: Kyle McMartin; +Cc: linux-kernel, tglx, mingo, hpa
From: Kyle McMartin <kyle@redhat.com>
Commit 932d27a7913fc6b3c64c6e6082628b0a1561dec9 exported some mtrr
structures without using the exportable __uX types, causing userspace
build failures.
Signed-off-by: Kyle McMartin <kyle@redhat.com>
---
Missed the u8 typedef below the struct.
diff --git a/arch/x86/include/asm/mtrr.h b/arch/x86/include/asm/mtrr.h
index cb988aa..14080d2 100644
--- a/arch/x86/include/asm/mtrr.h
+++ b/arch/x86/include/asm/mtrr.h
@@ -58,15 +58,15 @@ struct mtrr_gentry {
#endif /* !__i386__ */
struct mtrr_var_range {
- u32 base_lo;
- u32 base_hi;
- u32 mask_lo;
- u32 mask_hi;
+ __u32 base_lo;
+ __u32 base_hi;
+ __u32 mask_lo;
+ __u32 mask_hi;
};
/* In the Intel processor's MTRR interface, the MTRR type is always held in
an 8 bit field: */
-typedef u8 mtrr_type;
+typedef __u8 mtrr_type;
#define MTRR_NUM_FIXED_RANGES 88
#define MTRR_MAX_VAR_RANGES 256
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mtrr: fix types used in userspace exported header
2009-01-08 15:04 ` Kyle McMartin
@ 2009-01-08 15:14 ` Ingo Molnar
0 siblings, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2009-01-08 15:14 UTC (permalink / raw)
To: Kyle McMartin; +Cc: linux-kernel, tglx, mingo, hpa
* Kyle McMartin <kyle@infradead.org> wrote:
> From: Kyle McMartin <kyle@redhat.com>
>
> Commit 932d27a7913fc6b3c64c6e6082628b0a1561dec9 exported some mtrr
> structures without using the exportable __uX types, causing userspace
> build failures.
>
> Signed-off-by: Kyle McMartin <kyle@redhat.com>
>
> ---
>
> Missed the u8 typedef below the struct.
applied to tip/x86/urgent, thanks Kyle!
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-08 15:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-08 15:01 [PATCH] mtrr: fix types used in userspace exported header Kyle McMartin
2009-01-08 15:04 ` Kyle McMartin
2009-01-08 15:14 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®