On Wed, 11 Nov 2015 15:29:02 +0100 Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: config MY_DRIVER_1 SELECT SET_FLAG config MY_DRIVER_2 SELECT SET_FLAG [...] config FLAG_ALL_SET default y depends on MY_DRIVER_1 && !MY_DRIVER_2 && ... && MY_DRIVER_N > Right. Basically it'd be one of three options: > * all compiled drivers want the flag set: > use a static key to make the fast case "flag set" #if defined(CONFIG_SET_FLAG) && defined(CONFIG_FLAG_ALL_SET) > * no compiled driver wants the flag set: > use a static key to make the fast case "flag unset" #ifndef CONFIG_SET_FLAG > * different drivers are compiled: > don't use a static key since we don't know which one will get used #if defined(CONFIG_FLAG_SET) && !defined(CONFIG_FLAGS_ALL_SET) -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html