Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8d936626dd00bd47cf574add458fea8a23b79611
Commit:     8d936626dd00bd47cf574add458fea8a23b79611
Parent:     a33234735b2bcfb23cf1facb1f0d8656b8edab8f
Author:     Adam Jackson <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 17 16:20:04 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Dec 17 19:28:16 2007 -0800

    apm_event{,info}_t are userspace types
    
    These types define the size of data read from /dev/apm_bios.  They should
    not be hidden behind #ifdef __KERNEL__.
    
    This is killing my xserver compile, apm_event_t is used in the xserver
    source.
    
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 include/linux/apm_bios.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/apm_bios.h b/include/linux/apm_bios.h
index 9754baa..01a6244 100644
--- a/include/linux/apm_bios.h
+++ b/include/linux/apm_bios.h
@@ -18,6 +18,9 @@
 
 #include <linux/types.h>
 
+typedef unsigned short apm_event_t;
+typedef unsigned short apm_eventinfo_t;
+
 struct apm_bios_info {
        __u16   version;
        __u16   cseg;
@@ -32,9 +35,6 @@ struct apm_bios_info {
 
 #ifdef __KERNEL__
 
-typedef unsigned short apm_event_t;
-typedef unsigned short apm_eventinfo_t;
-
 #define APM_CS         (GDT_ENTRY_APMBIOS_BASE * 8)
 #define APM_CS_16      (APM_CS + 8)
 #define APM_DS         (APM_CS_16 + 8)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to