Skip to contentSkip to conversation

Need better management for include/linux/*.h

FIX REQUEST Jaswinder Singh Rajput 4 participants 4 messages Jul 11, 2009 – Jul 27, 2009 KVM

lore
Share & tools
lore
#0 lore raw

Hello all,

As include/linux/*.h file count is going to reach 1000.

We need to do some better techniques to reduce the number of files and add some hierarchy levels like sub directories where possible.

Like atmel is not exporting to user-space we can easily do :

include/linux/atmel-mci.h     -> include/linux/atmel/mci.h
include/linux/atmel_pdc.h     -> include/linux/atmel/pdc.h
include/linux/atmel-pwm-bl.h  -> include/linux/atmel/pwm-bl.h
include/linux/atmel_pwm.h     -> include/linux/atmel/pwm.h
include/linux/atmel_serial.h  -> include/linux/atmel/serial.h
include/linux/atmel-ssc.h     -> include/linux/atmel/ssc.h
include/linux/atmel_tc.h      -> include/linux/atmel/tc.h

Also these files are not exporting :

include/linux/kvm_host.h      -> include/linux/kvm/host.h
include/linux/kvm_para.h      -> include/linux/kvm/para.h
include/linux/kvm_types.h     -> include/linux/kvm/types.h

Similarly for other files, where possible.

Thanks,
--
JSR

#1 lore raw
Quoted 17 lines · Jaswinder Singh Rajput

Hello all,

As include/linux/*.h file count is going to reach 1000.

We need to do some better techniques to reduce the number of files and add some hierarchy levels like sub directories where possible.

Like atmel is not exporting to user-space we can easily do :

include/linux/atmel-mci.h     ->  include/linux/atmel/mci.h
include/linux/atmel_pdc.h     ->  include/linux/atmel/pdc.h
include/linux/atmel-pwm-bl.h  ->  include/linux/atmel/pwm-bl.h
include/linux/atmel_pwm.h     ->  include/linux/atmel/pwm.h
include/linux/atmel_serial.h  ->  include/linux/atmel/serial.h
include/linux/atmel-ssc.h     ->  include/linux/atmel/ssc.h
include/linux/atmel_tc.h      ->  include/linux/atmel/tc.h
Quoted 7 lines

Also these files are not exporting :

include/linux/kvm_host.h      ->  include/linux/kvm/host.h
include/linux/kvm_para.h      ->  include/linux/kvm/para.h
include/linux/kvm_types.h     ->  include/linux/kvm/types.h

IMO a much better move is to place non-ABI files (and the #ifdef KERNEL parts of ABI files) outside include/linux.

Signature · 1 line
error compiling committee.c: too many arguments to function
#2 lore raw
Quoted 2 lines · Avi Kivity

IMO a much better move is to place non-ABI files (and the #ifdef KERNEL parts of ABI files) outside include/linux.

How about adding a new include/soc directory and move them all there (along with similar header files from other SoC vendors)?

Haavard

#3 lore raw
In reply to Jaswinder Singh Rajput
Quoted 6 lines · Jaswinder Singh Rajput

Hello all,

As include/linux/*.h file count is going to reach 1000.

We need to do some better techniques to reduce the number of files and add some hierarchy levels like sub directories where possible.

Why? 100 or 1000 really doesn't make much difference; in both cases you cannot easily browse and have to use tab completion. And I doubt your reorganization would go below 100.

I would just leave it as it is.

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only.