[PATCH] [GTA02] Fix compilation of neo1973_pm_gsm if no GTA02

Werner Almesberger werner at openmoko.org
Wed Nov 19 04:36:37 CET 2008


Harald Welte wrote:
> Well, it's a question of point-of-view.  Why should the compiled kernel
> module contain code for a machine type which the kernel is compile-time
> configured to not support?

Ah, but does it ? The idea is that the feature-test macros become
constants if the respective item is not configured. GCC can then
take care of the rest.

E.g., from include/asm-arm/mach-types.h

#ifdef CONFIG_MACH_NEO1973_GTA02
[...]
#else
# define machine_is_neo1973_gta02()     (0)
#endif

- Werner



More information about the openmoko-kernel mailing list