Re: Tiny patch to 2.1.109

Meelis Roos (mroos@tartu.cyber.ee)
Fri, 17 Jul 1998 14:14:32 +0300


HvB> +#include <linux/types.h>
HvB> #include <asm/processor.h>
HvB> #include <asm/uaccess.h>
HvB> #include <asm/system.h>
HvB> #include <asm/bitops.h>
HvB> #include <linux/config.h>
HvB> -#include <linux/types.h>
HvB> #include <linux/kernel.h>
HvB> #include <linux/sched.h>
HvB> #include <linux/string.h>

What is the official policy for include files in linux kernel source for
the following situation:

program.c includes header1.h
header1.h uses some types/functions/etc that are defined in header2.h

Should header1.h include header2.h or should program.c know all the
dependencies and include header2.h before header1.h?

-- 
Meelis Roos (mroos@tartu.cyber.ee)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html