Re: #ifdef CONFIG_ checks not working

From: David Miller
Date: Tue Oct 26 2010 - 11:26:19 EST


From: Elvis Dowson <elvis.dowson@xxxxxxx>
Date: Tue, 26 Oct 2010 18:28:22 +0400

> #ifdef CONFIG_WL1271
> printk(KERN_INFO "%s: CONFIG_WL1271 detected\n", __func__);
> #else
> printk(KERN_INFO "%s: CONFIG_WL1271 not detected\n", __func__);
> #endif

If you set WL1271=m then CONFIG_WL1271_MODULE will be set, not
CONFIG_WL1271.

The latter will only be set if you enable the option with "y".
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/