Skip to content

Commit

Permalink
apm_event{,info}_t are userspace types
Browse files Browse the repository at this point in the history
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 <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
nwnk authored and Linus Torvalds committed Dec 18, 2007
1 parent a332347 commit 8d93662
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/apm_bios.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 8d93662

Please sign in to comment.