#if defined(CONFIG_IOSCHED_AS) strcpy(chosen_elevator, "anticipatory"); #elif defined(CONFIG_IOSCHED_DEADLINE) strcpy(chosen_elevator, "deadline"); #elif defined(CONFIG_IOSCHED_CFQ) strcpy(chosen_elevator, "cfq"); #elif defined(CONFIG_IOSCHED_NOOP) strcpy(chosen_elevator, "noop"); #else #error "You must build at least 1 IO scheduler into the kernel" #endif 
/* * If the given scheduler is not available, fall back to no-op. */ if (!(e = elevator_find(chosen_elevator))) strcpy(chosen_elevator, "noop"); elevator_put(e); 
static void elevator_setup_default(void){	struct elevator_type *e;	/*	 * check if default is set and exists	 */	if (chosen_elevator[0] && (e = elevator_get(chosen_elevator))) {		elevator_put(e);		return;	}#if defined(CONFIG_IOSCHED_AS)	strcpy(chosen_elevator, "anticipatory");#elif defined(CONFIG_IOSCHED_DEADLINE)	strcpy(chosen_elevator, "deadline");#elif defined(CONFIG_IOSCHED_CFQ)	strcpy(chosen_elevator, "cfq");#elif defined(CONFIG_IOSCHED_NOOP)	strcpy(chosen_elevator, "noop");#else#error "You must build at least 1 IO scheduler into the kernel"#endif}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/131dda7f8965a6b794dcde1d84f3ba5951a4d641/elevator.c/buggy/drivers/block/elevator.c