common header file in sparc/kernel/ - kernel.h?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dave.

A lot of sparc code uses local extern definitions of
variabels and local function prototypes.
sparse is good at reporting this.

I tried to look for the right place to add these but
did not really find it.
For sparc64 we have "entry.h" but that does not look like
a shareable file at all.

So I'm considering creating a sparc/kernel/kernel.h
for all the local definitions for this directory.

Samples:

/* from cpu.c */
extern const char *sparc_cpu_type;
extern const char *sparc_fpu_type;

extern void cpu_probe(void);
extern void clock_stop_probe(void); /* tadpole.c */
extern void sun4c_probe_memerr_reg(void);

extern void auxio_probe(void);
extern void auxio_power_probe(void);

$ grep extern *32.c | wc -l
80

	Sam
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux