Bug 6302

Summary: input_device_id is not protected with __KERNEL__ in linux/input.h
Product: Other Reporter: Christian Casteyde (casteyde.christian)
Component: OtherAssignee: other_other
Status: CLOSED CODE_FIX    
Severity: normal    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.16 Subsystem:
Regression: --- Bisected commit-id:

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.