Skip to contentSkip to conversation

Including fb.h from userspace

DISCUSSION Robert Schwebel 3 participants 4 messages Jan 28, 2004 – Feb 2, 2004 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

I'm trying to compile the XFree86-4.3.99.10 framebuffer driver with Linux-2.6.1. It breaks because the driver includes the kernel's fb.h which includes other stuff which seems not to be userland clean.

What's the "right" way or variant to include fb.h from userland?

Robert

Signature · 12 lines
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hornemannstraße 12,  31137 Hildesheim, Germany
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
#1 lore raw

I have a fix for that. I will be submitting it soon up stream.

Quoted 8 lines · Robert Schwebel

I'm trying to compile the XFree86-4.3.99.10 framebuffer driver with Linux-2.6.1. It breaks because the driver includes the kernel's fb.h which includes other stuff which seems not to be userland clean.

What's the "right" way or variant to include fb.h from userland?

Robert

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

#2 lore raw
In reply to Robert Schwebel
Quoted 5 lines · Robert Schwebel

I'm trying to compile the XFree86-4.3.99.10 framebuffer driver with Linux-2.6.1. It breaks because the driver includes the kernel's fb.h which includes other stuff which seems not to be userland clean.

What's the "right" way or variant to include fb.h from userland?

Yea, several people has posted patches to fix the problem but they are not getting merged. Basically you must 'move' fb_pixmap to the __KERNEL area and move some includes from top (i remember to leave just <asm/types.h> in top, everything else to __KERNEL area) in file include/linux/fb.h

-solca

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

#3 lore raw
Quoted 5 lines
Quoted 5 lines

I'm trying to compile the XFree86-4.3.99.10 framebuffer driver with Linux-2.6.1. It breaks because the driver includes the kernel's fb.h which includes other stuff which seems not to be userland clean.

Quoted 7 lines
Quoted 1 line

What's the "right" way or variant to include fb.h from userland?

Yea, several people has posted patches to fix the problem but they are not getting merged. Basically you must 'move' fb_pixmap to the __KERNEL area and move some includes from top (i remember to leave just <asm/types.h> in top, everything else to __KERNEL area) in file include/linux/fb.h

Yeap. That is all that is needed.

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn