Bug 6302 - input_device_id is not protected with __KERNEL__ in linux/input.h
Summary: input_device_id is not protected with __KERNEL__ in linux/input.h
Status: CLOSED CODE_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-29 10:34 UTC by Christian Casteyde
Modified: 2006-05-12 13:24 UTC (History)
0 users

See Also:
Kernel Version: 2.6.16
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Christian Casteyde 2006-03-29 10:34:05 UTC
Most recent kernel where this bug did not occur: 2.6.14, maybe 2.6.15  
Distribution: Slackware 10.2  
Hardware Environment: Athlon  
Software Environment: GCC 3.4.6 / glibc 2.3.4  
 
Problem Description: 
It seems that linux/input.h defines structure input_device_id, which in turns 
use kernel_ulong_t, outside of __KERNEL__ block (thus, it is visible from 
userspace). But this kernel_ulong_t is only visible from Kernel, since it is 
definied in linux/mod_devicetable.h, which is not included if __KERNEL__ is not 
defined. 
 
This prevents kdebase from KDE 3.5.2 to build. 
 
Steps to reproduce:  
tar xjf kdebase-3.5.2-tar.bz2  
cd kdebase-3.5.2  
./configure  
make  
  
doesn't build, due to joystick.h including buggy input.h.
Comment 1 lothalev 2006-04-18 10:15:49 UTC
Existing also in 2.6.15, causing errors with hald and kcontrol-3.5.2 in Gentoo
Comment 2 Christian Casteyde 2006-05-12 13:24:35 UTC
Fixed in 2.6.17-rc4.

Note You need to log in before you can comment on or make changes to this bug.