Skip to content

Commit 8d93662

Browse files
nwnkLinus Torvalds
authored andcommitted
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 <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a332347 commit 8d93662

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/linux/apm_bios.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
#include <linux/types.h>
2020

21+
typedef unsigned short apm_event_t;
22+
typedef unsigned short apm_eventinfo_t;
23+
2124
struct apm_bios_info {
2225
__u16 version;
2326
__u16 cseg;
@@ -32,9 +35,6 @@ struct apm_bios_info {
3235

3336
#ifdef __KERNEL__
3437

35-
typedef unsigned short apm_event_t;
36-
typedef unsigned short apm_eventinfo_t;
37-
3838
#define APM_CS (GDT_ENTRY_APMBIOS_BASE * 8)
3939
#define APM_CS_16 (APM_CS + 8)
4040
#define APM_DS (APM_CS_16 + 8)

0 commit comments

Comments
 (0)