Index: abi/include/abi/ddi/irq.h
===================================================================
--- abi/include/abi/ddi/irq.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ abi/include/abi/ddi/irq.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 	 */
 	CMD_PIO_READ_8 = 1,
-	
+
 	/** Read 2 bytes from the I/O space.
 	 *
@@ -55,5 +55,5 @@
 	 */
 	CMD_PIO_READ_16,
-	
+
 	/** Read 4 bytes from the I/O space.
 	 *
@@ -61,5 +61,5 @@
 	 */
 	CMD_PIO_READ_32,
-	
+
 	/** Write 1 byte to the I/O space.
 	 *
@@ -67,5 +67,5 @@
 	 */
 	CMD_PIO_WRITE_8,
-	
+
 	/** Write 2 bytes to the I/O space.
 	 *
@@ -73,5 +73,5 @@
 	 */
 	CMD_PIO_WRITE_16,
-	
+
 	/** Write 4 bytes to the I/O space.
 	 *
@@ -79,5 +79,5 @@
 	 */
 	CMD_PIO_WRITE_32,
-	
+
 	/** Write 1 byte to the I/O space.
 	 *
@@ -85,5 +85,5 @@
 	 */
 	CMD_PIO_WRITE_A_8,
-	
+
 	/** Write 2 bytes to the I/O space.
 	 *
@@ -91,5 +91,5 @@
 	 */
 	CMD_PIO_WRITE_A_16,
-	
+
 	/** Write 4 bytes to the I/O space.
 	 *
@@ -97,5 +97,5 @@
 	 */
 	CMD_PIO_WRITE_A_32,
-	
+
 	/** Load value.
 	 *
@@ -103,5 +103,5 @@
 	 */
 	CMD_LOAD,
-	
+
 	/** Perform bitwise conjunction.
 	 *
@@ -109,5 +109,5 @@
 	 */
 	CMD_AND,
-	
+
 	/** Predicate the execution of the following commands.
 	 *
@@ -116,8 +116,8 @@
 	 */
 	CMD_PREDICATE,
-	
+
 	/** Accept the interrupt. */
 	CMD_ACCEPT,
-	
+
 	/** Decline the interrupt. */
 	CMD_DECLINE,
Index: abi/include/abi/ipc/interfaces.h
===================================================================
--- abi/include/abi/ipc/interfaces.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ abi/include/abi/ipc/interfaces.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,5 +53,5 @@
 	 */
 	IFACE_EXCHANGE_ATOMIC = 0x00,
-	
+
 	/** Exchange management via mutual exclusion
 	 *
@@ -61,5 +61,5 @@
 	 */
 	IFACE_EXCHANGE_SERIALIZE = 0x01,
-	
+
 	/** Exchange management via connection cloning
 	 *
Index: abi/include/abi/log.h
===================================================================
--- abi/include/abi/log.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ abi/include/abi/log.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,5 +52,5 @@
 	/** More detailed debugging message. */
 	LVL_DEBUG2,
-	
+
 	/** For checking range of values */
 	LVL_LIMIT
Index: abi/include/abi/mm/as.h
===================================================================
--- abi/include/abi/mm/as.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ abi/include/abi/mm/as.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,8 +53,8 @@
 	/** Starting address */
 	uintptr_t start_addr;
-	
+
 	/** Area size */
 	size_t size;
-	
+
 	/** Area flags */
 	unsigned int flags;
Index: abi/include/abi/proc/uarg.h
===================================================================
--- abi/include/abi/proc/uarg.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ abi/include/abi/proc/uarg.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,8 +43,8 @@
 	void *uspace_stack;
 	size_t uspace_stack_size;
-	
+
 	void (*uspace_thread_function)(void *);
 	void *uspace_thread_arg;
-	
+
 	struct uspace_arg *uspace_uarg;
 } uspace_arg_t;
Index: abi/include/abi/syscall.h
===================================================================
--- abi/include/abi/syscall.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ abi/include/abi/syscall.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,5 +38,5 @@
 typedef enum {
 	SYS_KIO = 0,
-	
+
 	SYS_THREAD_CREATE,
 	SYS_THREAD_EXIT,
@@ -44,5 +44,5 @@
 	SYS_THREAD_USLEEP,
 	SYS_THREAD_UDELAY,
-	
+
 	SYS_TASK_GET_ID,
 	SYS_TASK_SET_NAME,
@@ -50,17 +50,17 @@
 	SYS_TASK_EXIT,
 	SYS_PROGRAM_SPAWN_LOADER,
-	
+
 	SYS_FUTEX_SLEEP,
 	SYS_FUTEX_WAKEUP,
 	SYS_SMC_COHERENCE,
 	SYS_SMP_MEMORY_BARRIER,
-	
+
 	SYS_AS_AREA_CREATE,
 	SYS_AS_AREA_RESIZE,
 	SYS_AS_AREA_CHANGE_FLAGS,
 	SYS_AS_AREA_DESTROY,
-	
+
 	SYS_PAGE_FIND_MAPPING,
-	
+
 	SYS_IPC_CALL_ASYNC_FAST,
 	SYS_IPC_CALL_ASYNC_SLOW,
@@ -73,12 +73,12 @@
 	SYS_IPC_HANGUP,
 	SYS_IPC_CONNECT_KBOX,
-	
+
 	SYS_IPC_EVENT_SUBSCRIBE,
 	SYS_IPC_EVENT_UNSUBSCRIBE,
 	SYS_IPC_EVENT_UNMASK,
-	
+
 	SYS_PERM_GRANT,
 	SYS_PERM_REVOKE,
-	
+
 	SYS_PHYSMEM_MAP,
 	SYS_PHYSMEM_UNMAP,
@@ -87,8 +87,8 @@
 	SYS_IOSPACE_ENABLE,
 	SYS_IOSPACE_DISABLE,
-	
+
 	SYS_IPC_IRQ_SUBSCRIBE,
 	SYS_IPC_IRQ_UNSUBSCRIBE,
-	
+
 	SYS_SYSINFO_GET_KEYS_SIZE,
 	SYS_SYSINFO_GET_KEYS,
@@ -97,9 +97,9 @@
 	SYS_SYSINFO_GET_DATA_SIZE,
 	SYS_SYSINFO_GET_DATA,
-	
+
 	SYS_DEBUG_CONSOLE,
-	
+
 	SYS_KLOG,
-	
+
 	SYSCALL_END
 } syscall_t;
Index: abi/include/abi/udebug.h
===================================================================
--- abi/include/abi/udebug.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ abi/include/abi/udebug.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,5 +39,5 @@
 
 typedef enum { /* udebug_method_t */
-	
+
 	/** Start debugging the recipient.
 	 *
@@ -47,5 +47,5 @@
 	 */
 	UDEBUG_M_BEGIN = 1,
-	
+
 	/** Finish debugging the recipient.
 	 *
@@ -54,8 +54,8 @@
 	 */
 	UDEBUG_M_END,
-	
+
 	/** Set which events should be captured. */
 	UDEBUG_M_SET_EVMASK,
-	
+
 	/** Make sure the debugged task is still there.
 	 *
@@ -65,5 +65,5 @@
 	 */
 	UDEBUG_M_GUARD,
-	
+
 	/** Run a thread until a debugging event occurs.
 	 *
@@ -75,5 +75,5 @@
 	 */
 	UDEBUG_M_GO,
-	
+
 	/** Stop a thread being debugged.
 	 *
@@ -83,5 +83,5 @@
 	 */
 	UDEBUG_M_STOP,
-	
+
 	/** Read arguments of a syscall.
 	 *
@@ -91,5 +91,5 @@
 	 */
 	UDEBUG_M_ARGS_READ,
-	
+
 	/** Read thread's userspace register state (istate_t).
 	 *
@@ -102,5 +102,5 @@
 	 */
 	UDEBUG_M_REGS_READ,
-	
+
 	/** Read the list of the debugged tasks's threads.
 	 *
@@ -116,5 +116,5 @@
 	 */
 	UDEBUG_M_THREAD_READ,
-	
+
 	/** Read the name of the debugged task.
 	 *
@@ -129,5 +129,5 @@
 	 */
 	UDEBUG_M_NAME_READ,
-	
+
 	/** Read the list of the debugged task's address space areas.
 	 *
@@ -143,5 +143,5 @@
 	 */
 	UDEBUG_M_AREAS_READ,
-	
+
 	/** Read the debugged tasks's memory.
 	 *
Index: boot/arch/arm32/src/asm.S
===================================================================
--- boot/arch/arm32/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/arm32/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,5 +67,5 @@
 #ifndef PROCESSOR_ARCH_armv7_a
 	mrc	p15, 0, r4, c1, c0, 0
-	
+
 	# Disable D-cache before the kernel is started.
 	bic	r4, r4, #(1 << CP15_C1_DC)
@@ -76,8 +76,8 @@
 	bic	r4, r4, #(1 << CP15_C1_BP)
 #endif
-	
+
 	mcr	p15, 0, r4, c1, c0, 0
 #endif
-	
+
 	# Wait for the operations to complete
 #ifdef PROCESSOR_ARCH_armv7_a
@@ -88,5 +88,5 @@
 	mcr p15, 0, r4, c7, c10, 4
 #endif
-	
+
 	# Clean ICache and BPredictors, r4 ignored (SBZ)
 	mov r4, #0
Index: boot/arch/arm32/src/main.c
===================================================================
--- boot/arch/arm32/src/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/arm32/src/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -89,5 +89,5 @@
 	mmu_start();
 	version_print();
-	
+
 	printf("Boot data: %p -> %p\n", &bdata_start, &bdata_end);
 	printf("\nMemory statistics\n");
@@ -97,5 +97,5 @@
 	printf(" %p|%p: kernel entry point\n",
 	    (void *) PA2KA(BOOT_OFFSET), (void *) BOOT_OFFSET);
-	
+
 	for (size_t i = 0; i < COMPONENTS; i++) {
 		printf(" %p|%p: %s image (%u/%u bytes)\n", components[i].addr,
@@ -103,5 +103,5 @@
 		    components[i].size);
 	}
-	
+
 	void *dest[COMPONENTS];
 	size_t top = 0;
@@ -110,22 +110,22 @@
 	for (size_t i = 0; i < min(COMPONENTS, TASKMAP_MAX_RECORDS); i++) {
 		top = ALIGN_UP(top, PAGE_SIZE);
-		
+
 		if (i > 0) {
 			bootinfo.tasks[bootinfo.cnt].addr = TOP2ADDR(top);
 			bootinfo.tasks[bootinfo.cnt].size = components[i].inflated;
-			
+
 			str_cpy(bootinfo.tasks[bootinfo.cnt].name,
 			    BOOTINFO_TASK_NAME_BUFLEN, components[i].name);
-			
+
 			bootinfo.cnt++;
 		}
-		
+
 		dest[i] = TOP2ADDR(top);
 		top += components[i].inflated;
 		cnt++;
 	}
-	
+
 	printf("\nInflating components ... ");
-	
+
 	for (size_t i = cnt; i > 0; i--) {
 		void *tail = components[i - 1].addr + components[i - 1].size;
@@ -135,7 +135,7 @@
 			halt();
 		}
-		
+
 		printf("%s ", components[i - 1].name);
-		
+
 		int err = inflate(components[i - 1].addr, components[i - 1].size,
 		    dest[i - 1], components[i - 1].inflated);
@@ -147,10 +147,10 @@
 		clean_dcache_poc(dest[i - 1], components[i - 1].inflated);
 	}
-	
+
 	printf(".\n");
 
 	/* Flush PT too. We need this if we disable caches later */
 	clean_dcache_poc(boot_pt, PTL0_ENTRIES * PTL0_ENTRY_SIZE);
-	
+
 	printf("Booting the kernel...\n");
 	jump_to_kernel((void *) PA2KA(BOOT_OFFSET), &bootinfo);
Index: boot/arch/arm32/src/mm.c
===================================================================
--- boot/arch/arm32/src/mm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/arm32/src/mm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -209,5 +209,5 @@
 		/* Current settings */
 		"mrc p15, 0, r0, c1, c0, 0\n"
-		
+
 		/* Enable ICache, DCache, BPredictors and MMU,
 		 * we disable caches before jumping to kernel
@@ -221,5 +221,5 @@
 		"ldr r1, =0x00001805\n"
 #endif
-		
+
 		"orr r0, r0, r1\n"
 
@@ -228,5 +228,5 @@
 		 */
 		"mcr p15, 0, r0, c8, c7, 0\n"
-		
+
 		/* Store settings, enable the MMU */
 		"mcr p15, 0, r0, c1, c0, 0\n"
Index: boot/arch/ia64/src/main.c
===================================================================
--- boot/arch/ia64/src/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ia64/src/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,5 +67,5 @@
 	memmap_item_t *memmap = bootinfo.memmap;
 	size_t items = 0;
-	
+
 	if (!bootpar) {
 		/* Fake-up a memory map for simulators. */
@@ -83,5 +83,5 @@
 		size_t mm_size = bootpar->efi_memmap_sz;
 		size_t md_size = bootpar->efi_memdesc_sz;
-		
+
 		/*
 		 * Walk the EFI memory map using the V1 memory descriptor
@@ -109,5 +109,5 @@
 				continue;
 			}
-			
+
 			memmap[items].base = md->phys_start;
 			memmap[items].size = md->pages * EFI_PAGE_SIZE;
@@ -115,5 +115,5 @@
 		}
 	}
-	
+
 	bootinfo.memmap_items = items;
 }
@@ -134,10 +134,10 @@
 		efi_guid_t sal_guid = SAL_SYSTEM_TABLE_GUID;
 		sal_system_table_header_t *sal_st;
-		
+
 		sal_st = efi_vendor_table_find(
 		    (efi_system_table_t *) bootpar->efi_system_table, sal_guid);
 
 		sal_system_table_parse(sal_st);
-		
+
 		bootinfo.sys_freq = sal_base_clock_frequency();
 	} else {
@@ -150,5 +150,5 @@
 {
 	version_print();
-	
+
 	printf(" %p|%p: boot info structure\n", &bootinfo, &bootinfo);
 	printf(" %p|%p: kernel entry point\n",
@@ -156,5 +156,5 @@
 	printf(" %p|%p: loader entry point\n",
 	    (void *) LOADER_ADDRESS, (void *) LOADER_ADDRESS);
-	
+
 	size_t i;
 	for (i = 0; i < COMPONENTS; i++)
@@ -162,5 +162,5 @@
 		    components[i].addr, components[i].name,
 		    components[i].inflated, components[i].size);
-	
+
 	void *dest[COMPONENTS];
 	size_t top = KERNEL_ADDRESS;
@@ -169,5 +169,5 @@
 	for (i = 0; i < min(COMPONENTS, TASKMAP_MAX_RECORDS); i++) {
 		top = ALIGN_UP(top, PAGE_SIZE);
-		
+
 		if (i > 0) {
 			bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].addr =
@@ -175,18 +175,18 @@
 			bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].size =
 			    components[i].inflated;
-			
+
 			str_cpy(bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].name,
 			    BOOTINFO_TASK_NAME_BUFLEN, components[i].name);
-			
+
 			bootinfo.taskmap.cnt++;
 		}
-		
+
 		dest[i] = (void *) top;
 		top += components[i].inflated;
 		cnt++;
 	}
-	
+
 	printf("\nInflating components ... ");
-	
+
 	/*
 	 * We will use the next available address for a copy of each component to
@@ -197,5 +197,5 @@
 	for (i = cnt; i > 0; i--) {
 		printf("%s ", components[i - 1].name);
-		
+
 		/*
 		 * Copy the component to a location which is guaranteed not to
@@ -203,8 +203,8 @@
 		 */
 		memmove((void *) top, components[i - 1].addr, components[i - 1].size);
-		
+
 		int err = inflate((void *) top, components[i - 1].size,
 		    dest[i - 1], components[i - 1].inflated);
-		
+
 		if (err != EOK) {
 			printf("\n%s: Inflating error %d, halting.\n",
@@ -213,5 +213,5 @@
 		}
 	}
-	
+
 	printf(".\n");
 
@@ -219,5 +219,5 @@
 	read_sal_configuration();
 	read_pal_configuration();
-	
+
 	printf("Booting the kernel ...\n");
 	jump_to_kernel(&bootinfo);
Index: boot/arch/ia64/src/pal.c
===================================================================
--- boot/arch/ia64/src/pal.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ia64/src/pal.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,7 +35,7 @@
 {
 	uint64_t proc_ratio;
-	
+
 	pal_static_call_0_1(PAL_FREQ_RATIOS, &proc_ratio);
-	
+
 	return proc_ratio;
 }
Index: boot/arch/ia64/src/pal_asm.S
===================================================================
--- boot/arch/ia64/src/pal_asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ia64/src/pal_asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,8 +38,8 @@
 	srlz.i
 	srlz.d
-	
+
 	mov loc2 = gp
 	mov loc3 = rp
-	
+
 	addl loc4 = @gprel(pal_proc), gp
 
@@ -48,5 +48,5 @@
 	mov r30 = in2
 	mov r31 = in3 ;;
-	
+
 	ld8 loc4 = [loc4]
 	movl loc5 = 0f ;;
@@ -64,12 +64,12 @@
 	cmp.ne p8,p0 = 0, in5
 	cmp.ne p9,p0 = 0, in6 ;;
-	
+
 (p7)	st8 [in4] = r9
 (p8)	st8 [in5] = r10
 (p9)	st8 [in6] = r11
-	
+
 	mov gp = loc2
 	mov rp = loc3 ;;
-	
+
 	mov ar.pfs = loc0
 	br.ret.sptk.many rp
Index: boot/arch/ia64/src/sal.c
===================================================================
--- boot/arch/ia64/src/sal.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ia64/src/sal.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,7 +75,7 @@
 {
 	uint64_t freq;
-	
+
 	sal_call_1_1(SAL_FREQ_BASE, 0, &freq);
-	
+
 	return freq;
 }
Index: boot/arch/ia64/src/sal_asm.S
===================================================================
--- boot/arch/ia64/src/sal_asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ia64/src/sal_asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,13 +45,13 @@
 FUNCTION_BEGIN(sal_call)
 	alloc loc0 = ar.pfs, 8, 8, 8, 0
-	
+
 	adds sp = -STACK_SCRATCH_AREA, sp
 
 	mov loc1 = gp
 	mov loc2 = rp
-	
+
 	addl loc3 = @gprel(sal_proc), gp
 	addl loc4 = @gprel(sal_proc_gp), gp
-	
+
 	mov out0 = in0
 	mov out1 = in1
@@ -62,5 +62,5 @@
 	mov out6 = in6
 	mov out7 = in7 ;;
-	
+
 	ld8 loc3 = [loc3]
 	ld8 gp = [loc4]
@@ -73,21 +73,21 @@
 	ld8 loc6 = [r15]
 	ld8 loc7 = [r16]
-	
+
 	mov b6 = loc3 ;;
 	br.call.sptk.many rp = b6
-	
+
 	cmp.ne p7,p0 = 0, loc5
 	cmp.ne p8,p0 = 0, loc6
 	cmp.ne p9,p0 = 0, loc7 ;;
-	
+
 (p7)	st8 [loc5] = r9
 (p8)	st8 [loc6] = r10
 (p9)	st8 [loc7] = r11
-	
+
 	mov gp = loc1
 	mov rp = loc2
 
 	adds sp = STACK_SCRATCH_AREA, sp ;;
-	
+
 	mov ar.pfs = loc0
 	br.ret.sptk.many rp
Index: boot/arch/ia64/src/ski.c
===================================================================
--- boot/arch/ia64/src/ski.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ia64/src/ski.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -37,5 +37,5 @@
 {
 	static bool initialized = false;
-	
+
 	if (initialized)
 		return;
@@ -48,5 +48,5 @@
 		: "r15", "r8"
 	);
-	
+
 	initialized = true;
 }
Index: boot/arch/mips32/src/asm.S
===================================================================
--- boot/arch/mips32/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/mips32/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 	sw $a3, 0($a0)
 #endif
-	
+
 	/*
 	 * Setup CPU map (on msim this code
@@ -62,53 +62,53 @@
 	 */
 	la $a0, PA2KA(CPUMAP_OFFSET)
-	
+
 	sw $zero, 0($a0)
 	sw $zero, 4($a0)
 	sw $zero, 8($a0)
 	sw $zero, 12($a0)
-	
+
 	sw $zero, 16($a0)
 	sw $zero, 20($a0)
 	sw $zero, 24($a0)
 	sw $zero, 28($a0)
-	
+
 	sw $zero, 32($a0)
 	sw $zero, 36($a0)
 	sw $zero, 40($a0)
 	sw $zero, 44($a0)
-	
+
 	sw $zero, 48($a0)
 	sw $zero, 52($a0)
 	sw $zero, 56($a0)
 	sw $zero, 60($a0)
-	
+
 	sw $zero, 64($a0)
 	sw $zero, 68($a0)
 	sw $zero, 72($a0)
 	sw $zero, 76($a0)
-	
+
 	sw $zero, 80($a0)
 	sw $zero, 84($a0)
 	sw $zero, 88($a0)
 	sw $zero, 92($a0)
-	
+
 	sw $zero, 96($a0)
 	sw $zero, 100($a0)
 	sw $zero, 104($a0)
 	sw $zero, 108($a0)
-	
+
 	sw $zero, 112($a0)
 	sw $zero, 116($a0)
 	sw $zero, 120($a0)
 	sw $zero, 124($a0)
-	
+
 	lui $a1, 1
-	
+
 #ifdef MACHINE_msim
-	
+
 	/* Read dorder value */
 	la $k0, MSIM_DORDER_ADDRESS
 	lw $k1, ($k0)
-	
+
 	/*
 	 * If we are not running on BSP
@@ -117,23 +117,23 @@
 	beq $k1, $zero, bsp
 	nop
-	
+
 	/* Record CPU presence */
 	sll $a2, $k1, 2
 	addu $a2, $a2, $a0
 	sw $a1, ($a2)
-	
+
 	loop:
 		j loop
 		nop
-	
+
 #endif
-	
+
 	bsp:
 		/* Record CPU presence */
 		sw $a1, ($a0)
-		
+
 		/* Setup initial stack */
 		la $sp, PA2KA(STACK_OFFSET)
-		
+
 		j bootstrap
 		nop
Index: boot/arch/mips32/src/boot.S
===================================================================
--- boot/arch/mips32/src/boot.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/mips32/src/boot.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,81 +38,81 @@
 .global start
 start:
-	
+
 	/* Setup CPU map (on msim this code
 	   is executed in parallel on all CPUs,
 	   but it not an issue) */
 	la $a0, CPUMAP
-	
+
 	sw $zero, 0($a0)
 	sw $zero, 4($a0)
 	sw $zero, 8($a0)
 	sw $zero, 12($a0)
-	
+
 	sw $zero, 16($a0)
 	sw $zero, 20($a0)
 	sw $zero, 24($a0)
 	sw $zero, 28($a0)
-	
+
 	sw $zero, 32($a0)
 	sw $zero, 36($a0)
 	sw $zero, 40($a0)
 	sw $zero, 44($a0)
-	
+
 	sw $zero, 48($a0)
 	sw $zero, 52($a0)
 	sw $zero, 56($a0)
 	sw $zero, 60($a0)
-	
+
 	sw $zero, 64($a0)
 	sw $zero, 68($a0)
 	sw $zero, 72($a0)
 	sw $zero, 76($a0)
-	
+
 	sw $zero, 80($a0)
 	sw $zero, 84($a0)
 	sw $zero, 88($a0)
 	sw $zero, 92($a0)
-	
+
 	sw $zero, 96($a0)
 	sw $zero, 100($a0)
 	sw $zero, 104($a0)
 	sw $zero, 108($a0)
-	
+
 	sw $zero, 112($a0)
 	sw $zero, 116($a0)
 	sw $zero, 120($a0)
 	sw $zero, 124($a0)
-	
+
 	lui $a1, 1
-	
+
 #ifdef MACHINE_msim
-	
+
 	/* Read dorder value */
 	la $k0, MSIM_DORDER_ADDRESS
 	lw $k1, ($k0)
-	
+
 	/* If we are not running on BSP
 	   then end in an infinite loop  */
 	beq $k1, $zero, bsp
 	nop
-	
+
 	/* Record CPU presence */
 	sll $a2, $k1, 2
 	addu $a2, $a2, $a0
 	sw $a1, ($a2)
-	
+
 	loop:
 		j loop
 		nop
-	
+
 #endif
-	
+
 	bsp:
 		/* Record CPU presence */
 		sw $a1, ($a0)
-		
+
 		/* Setup initial stack */
 		la $sp, INITIAL_STACK
-		
+
 		j bootstrap
 		nop
Index: boot/arch/mips32/src/main.c
===================================================================
--- boot/arch/mips32/src/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/mips32/src/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 {
 	version_print();
-	
+
 	printf("\nMemory statistics\n");
 	printf(" %p|%p: CPU map\n", (void *) PA2KA(CPUMAP_OFFSET),
@@ -61,5 +61,5 @@
 	printf(" %p|%p: bootloader entry point\n",
 	    (void *) PA2KA(LOADER_OFFSET), (void *) LOADER_OFFSET);
-	
+
 	size_t i;
 	for (i = 0; i < COMPONENTS; i++)
@@ -70,5 +70,5 @@
 		    components[i].name, components[i].inflated,
 		    components[i].size);
-	
+
 	void *dest[COMPONENTS];
 	size_t top = 0;
@@ -77,22 +77,22 @@
 	for (i = 0; i < min(COMPONENTS, TASKMAP_MAX_RECORDS); i++) {
 		top = ALIGN_UP(top, PAGE_SIZE);
-		
+
 		if (i > 0) {
 			bootinfo->tasks[bootinfo->cnt].addr = TOP2ADDR(top);
 			bootinfo->tasks[bootinfo->cnt].size = components[i].inflated;
-			
+
 			str_cpy(bootinfo->tasks[bootinfo->cnt].name,
 			    BOOTINFO_TASK_NAME_BUFLEN, components[i].name);
-			
+
 			bootinfo->cnt++;
 		}
-		
+
 		dest[i] = TOP2ADDR(top);
 		top += components[i].inflated;
 		cnt++;
 	}
-	
+
 	printf("\nInflating components ... ");
-	
+
 	for (i = cnt; i > 0; i--) {
 #ifdef MACHINE_msim
@@ -104,10 +104,10 @@
 		}
 #endif
-		
+
 		printf("%s ", components[i - 1].name);
-		
+
 		int err = inflate(components[i - 1].addr, components[i - 1].size,
 		    dest[i - 1], components[i - 1].inflated);
-		
+
 		if (err != EOK) {
 			printf("\n%s: Inflating error %d, halting.\n",
@@ -116,9 +116,9 @@
 		}
 	}
-	
+
 	printf(".\n");
-	
+
 	printf("Copying CPU map ... \n");
-	
+
 	bootinfo->cpumap = 0;
 	for (i = 0; i < CPUMAP_MAX_RECORDS; i++) {
@@ -126,5 +126,5 @@
 			bootinfo->cpumap |= (1 << i);
 	}
-	
+
 	printf("Booting the kernel ... \n");
 	jump_to_kernel((void *) PA2KA(BOOT_OFFSET), bootinfo);
Index: boot/arch/ppc32/src/asm.S
===================================================================
--- boot/arch/ppc32/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ppc32/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,10 +48,10 @@
 	li \reg, 0
 	sync
-	
+
 	.rept 64
 		tlbie \reg
 		addi \reg, \reg, 0x1000
 	.endr
-	
+
 	eieio
 	tlbsync
@@ -61,44 +61,44 @@
 .macro BAT_COMPUTE base size mask lower upper
 	# less than 128 KB -> no BAT
-	
+
 	lis \upper, 0x0002
 	cmpw \size, \upper
 	blt no_bat
-	
+
 	# mask = total >> 18
-	
+
 	li \upper, 18
 	srw \mask, \size, \upper
-	
+
 	# create Block Length mask by replicating
 	# the leading logical one 14 times
-	
+
 	li \upper, 14
 	mtctr \mask
 	li \upper, 1
-	
+
 	0:
 		# mask = (mask >> 1) | mask
-		
+
 		srw \lower, \mask, \upper
 		or \mask, \mask, \lower
-		
+
 		bdnz 0b
-	
+
 	# mask = mask & 0x07ff
 	# (BAT can map up to 256 MB)
-	
+
 	andi. \mask, \mask, 0x07ff
-	
+
 	# mask = (mask << 2) | 0x0002
 	# (priviledged access only)
-	
+
 	li \upper, 2
 	slw \mask, \mask, \upper
 	ori \mask, \mask, 0x0002
-	
+
 	lis \upper, (0x8000 + \base)
 	or \upper, \upper, \mask
-	
+
 	lis \lower, \base
 	ori \lower, \lower, 0x0002
@@ -111,5 +111,5 @@
 	addi r4, r4, ofw_cif@l
 	stw r5, 0(r4)
-	
+
 	bl ofw_init
 	b bootstrap
@@ -127,17 +127,17 @@
 	# r5 = pages to translate
 	# r6 = real mode meeting point (physical address)
-	
+
 	# disable interrupts
-	
+
 	mfmsr r31
 	rlwinm r31, r31, 0, 17, 15
 	mtmsr r31
-	
+
 	# set real mode meeting point physical address
-	
+
 	mtspr srr0, r6
-	
+
 	# jump to real_mode
-	
+
 	mfmsr r31
 	lis r30, ~0@h
@@ -145,5 +145,5 @@
 	and r31, r31, r30
 	mtspr srr1, r31
-	
+
 	sync
 	isync
@@ -155,246 +155,246 @@
 .align PAGE_WIDTH
 SYMBOL(real_mode)
-	
+
 	# arguments:
 	# r3 = bootinfo (physical address)
 	# r4 = translate table (physical address)
 	# r5 = pages to translate
-	
+
 	# move the images of components to the proper
 	# location using the translate table
-	
+
 	li r31, PAGE_SIZE >> 2
 	li r30, 0
-	
+
 	page_copy:
-		
+
 		cmpwi r5, 0
 		beq copy_end
-		
+
 		mtctr r31
 		lwz r29, 0(r4)
-		
+
 		copy_loop:
-			
+
 			lwz r28, 0(r29)
 			stw r28, 0(r30)
-			
+
 			SMC_COHERENCY r30
-			
+
 			addi r29, r29, 4
 			addi r30, r30, 4
-			
+
 			bdnz copy_loop
-		
+
 		addi r4, r4, 4
 		subi r5, r5, 1
 		b page_copy
-	
+
 	copy_end:
-	
+
 	# initially fill segment registers
-	
+
 	li r31, 0
-	
+
 	li r29, 8
 	mtctr r29
 	li r30, 0                     # ASID 0 (VSIDs 0 .. 7)
-	
+
 	seg_fill_uspace:
-	
+
 		mtsrin r30, r31
 		addi r30, r30, 1
 		addis r31, r31, 0x1000    # move to next SR
-		
+
 		bdnz seg_fill_uspace
-	
+
 	li r29, 8
 	mtctr r29
 	lis r30, 0x4000               # priviledged access only
 	ori r30, r30, 8               # ASID 0 (VSIDs 8 .. 15)
-	
+
 	seg_fill_kernel:
-	
+
 		mtsrin r30, r31
 		addi r30, r30, 1
 		addis r31, r31, 0x1000    # move to next SR
-		
+
 		bdnz seg_fill_kernel
-	
+
 	# invalidate block address translation registers
-	
+
 	li r30, 0
-	
+
 	mtspr ibat0u, r30
 	mtspr ibat0l, r30
-	
+
 	mtspr ibat1u, r30
 	mtspr ibat1l, r30
-	
+
 	mtspr ibat2u, r30
 	mtspr ibat2l, r30
-	
+
 	mtspr ibat3u, r30
 	mtspr ibat3l, r30
-	
+
 	mtspr dbat0u, r30
 	mtspr dbat0l, r30
-	
+
 	mtspr dbat1u, r30
 	mtspr dbat1l, r30
-	
+
 	mtspr dbat2u, r30
 	mtspr dbat2l, r30
-	
+
 	mtspr dbat3u, r30
 	mtspr dbat3l, r30
-	
+
 	# create empty Page Hash Table
 	# on top of memory, size 64 KB
-	
+
 	lwz r31, 4(r3)                # r31 = memory size
-	
+
 	lis r30, 65536@h
 	ori r30, r30, 65536@l         # r30 = 65536
-	
+
 	subi r29, r30, 1              # r29 = 65535
-	
+
 	sub r31, r31, r30
 	andc r31, r31, r29            # pht = ALIGN_DOWN(memory_size - 65536, 65536)
-	
+
 	mtsdr1 r31
-	
+
 	li r29, 2
 	srw r30, r30, r29             # r30 = 16384
 	li r29, 0
-	
+
 	pht_clear:
-		
+
 		# write zeroes
-		
+
 		stw r29, 0(r31)
 		FLUSH_DCACHE r31
-		
+
 		addi r31, r31, 4
 		subi r30, r30, 4
-		
+
 		cmpwi r30, 0
 		beq clear_end
-		
+
 		bdnz pht_clear
-		
+
 	clear_end:
-	
+
 	# create BAT identity mapping
-	
+
 	lwz r31, 4(r3)                # r31 = memory size
-	
+
 	lis r30, 268435456@h
 	ori r30, r30, 268435456@l     # r30 = 256 MB
-	
+
 	# BAT0
-	
+
 	# r29 = min(r31, r30)
-	
+
 	cmpw r31, r30
 	blt bat0_r31
-	
+
 		mr r29, r30
 		b bat0_r30
-	
+
 	bat0_r31:
-	
+
 		mr r29, r31
-	
+
 	bat0_r30:
-	
+
 	BAT_COMPUTE 0x0000 r29 r28 r27 r26
 	mtspr ibat0u, r26
 	mtspr ibat0l, r27
-	
+
 	mtspr dbat0u, r26
 	mtspr dbat0l, r27
-	
+
 	# BAT1
-	
+
 	sub r31, r31, r29             # r31 = r31 - r29
-	
+
 	# r29 = min(r31, r30)
-	
+
 	cmpw r31, r30
 	blt bat1_r31
-	
+
 		mr r29, r30
 		b bat1_r30
-	
+
 	bat1_r31:
-	
+
 		mr r29, r31
-	
+
 	bat1_r30:
-	
+
 	BAT_COMPUTE 0x1000 r29 r28 r27 r26
 	mtspr ibat1u, r26
 	mtspr ibat1l, r27
-	
+
 	mtspr dbat1u, r26
 	mtspr dbat1l, r27
-	
+
 	# BAT2
-	
+
 	sub r31, r31, r29             # r31 = r31 - r29
-	
+
 	# r29 = min(r31, r30)
-	
+
 	cmpw r31, r30
 	blt bat2_r31
-	
+
 		mr r29, r30
 		b bat2_r30
-	
+
 	bat2_r31:
-	
+
 		mr r29, r31
-	
+
 	bat2_r30:
-	
+
 	BAT_COMPUTE 0x2000 r29 r28 r27 r26
 	mtspr ibat2u, r26
 	mtspr ibat2l, r27
-	
+
 	mtspr dbat2u, r26
 	mtspr dbat2l, r27
-	
+
 	# BAT3
-	
+
 	sub r31, r31, r29             # r31 = r31 - r29
-	
+
 	# r29 = min(r31, r30)
-	
+
 	cmpw r31, r30
 	blt bat3_r31
-	
+
 		mr r29, r30
 		b bat3_r30
-	
+
 	bat3_r31:
-	
+
 		mr r29, r31
-	
+
 	bat3_r30:
-	
+
 	BAT_COMPUTE 0x3000 r29 r28 r27 r26
 	mtspr ibat3u, r26
 	mtspr ibat3l, r27
-	
+
 	mtspr dbat3u, r26
 	mtspr dbat3l, r27
-	
+
 	no_bat:
-	
+
 	# flush TLB
-	
+
 	TLB_FLUSH r31
-	
+
 	# start the kernel
 	#
@@ -404,25 +404,25 @@
 	# sprg3 = physical memory size
 	# sp = 0 (enforces the usage of sprg0 as exception stack)
-	
+
 	lis r31, PA2KA(BOOT_OFFSET)@ha
 	addi r31, r31, PA2KA(BOOT_OFFSET)@l
 	mtspr srr0, r31
-	
+
 	lis r31, BOOT_OFFSET@ha
 	addi r31, r31, BOOT_OFFSET@l
 	mtsprg0 r31
-	
+
 	# bootinfo starts with a 64 bit integer containing
 	# the physical memory size, get the lower 4 bytes
-	
+
 	lwz r31, 4(r3)
 	mtsprg3 r31
-	
+
 	li sp, 0
-	
+
 	mfmsr r31
 	ori r31, r31, (msr_ir | msr_dr)@l
 	mtspr srr1, r31
-	
+
 	sync
 	isync
Index: boot/arch/ppc32/src/main.c
===================================================================
--- boot/arch/ppc32/src/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ppc32/src/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,9 +60,9 @@
 	version_print();
 	ofw_memmap(&bootinfo.memmap);
-	
+
 	void *bootinfo_pa = ofw_translate(&bootinfo);
 	void *real_mode_pa = ofw_translate(&real_mode);
 	void *loader_address_pa = ofw_translate((void *) LOADER_ADDRESS);
-	
+
 	printf("\nMemory statistics (total %llu MB)\n", bootinfo.memmap.total >> 20);
 	printf(" %p|%p: real mode trampoline\n", &real_mode, real_mode_pa);
@@ -72,5 +72,5 @@
 	printf(" %p|%p: loader entry point\n",
 	    (void *) LOADER_ADDRESS, loader_address_pa);
-	
+
 	size_t i;
 	for (i = 0; i < COMPONENTS; i++)
@@ -78,5 +78,5 @@
 		    ofw_translate(components[i].addr), components[i].name,
 		    components[i].inflated, components[i].size);
-	
+
 	size_t dest[COMPONENTS];
 	size_t top = 0;
@@ -85,5 +85,5 @@
 	for (i = 0; i < min(COMPONENTS, TASKMAP_MAX_RECORDS); i++) {
 		top = ALIGN_UP(top, PAGE_SIZE);
-		
+
 		if (i > 0) {
 			bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].addr =
@@ -91,16 +91,16 @@
 			bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].size =
 			    components[i].inflated;
-			
+
 			str_cpy(bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].name,
 			    BOOTINFO_TASK_NAME_BUFLEN, components[i].name);
-			
+
 			bootinfo.taskmap.cnt++;
 		}
-		
+
 		dest[i] = top;
 		top += components[i].inflated;
 		cnt++;
 	}
-	
+
 	if (top >= (size_t) loader_address_pa) {
 		printf("Inflated components overlap loader area.\n");
@@ -108,5 +108,5 @@
 		halt();
 	}
-	
+
 	void *balloc_base;
 	void *balloc_base_pa;
@@ -114,5 +114,5 @@
 	    BALLOC_MAX_SIZE, loader_address_pa);
 	printf(" %p|%p: boot allocator area\n", balloc_base, balloc_base_pa);
-	
+
 	void *inflate_base;
 	void *inflate_base_pa;
@@ -120,5 +120,5 @@
 	    loader_address_pa);
 	printf(" %p|%p: inflate area\n", inflate_base, inflate_base_pa);
-	
+
 	uintptr_t balloc_start = ALIGN_UP(top, PAGE_SIZE);
 	size_t pages = (balloc_start + ALIGN_UP(BALLOC_MAX_SIZE, PAGE_SIZE))
@@ -129,17 +129,17 @@
 	    pages * sizeof(void *), loader_address_pa);
 	printf(" %p|%p: translate table\n", transtable, transtable_pa);
-	
+
 	check_overlap("boot allocator area", balloc_base_pa, pages);
 	check_overlap("inflate area", inflate_base_pa, pages);
 	check_overlap("translate table", transtable_pa, pages);
-	
+
 	printf("\nInflating components ... ");
-	
+
 	for (i = cnt; i > 0; i--) {
 		printf("%s ", components[i - 1].name);
-		
+
 		int err = inflate(components[i - 1].addr, components[i - 1].size,
 		    inflate_base + dest[i - 1], components[i - 1].inflated);
-		
+
 		if (err != EOK) {
 			printf("\n%s: Inflating error %d, halting.\n",
@@ -148,30 +148,30 @@
 		}
 	}
-	
+
 	printf(".\n");
-	
+
 	printf("Setting up boot allocator ...\n");
 	balloc_init(&bootinfo.ballocs, balloc_base, PA2KA(balloc_start),
 	    BALLOC_MAX_SIZE);
-	
+
 	printf("Setting up screens ...\n");
 	ofw_setup_screens();
-	
+
 	printf("Canonizing OpenFirmware device tree ...\n");
 	bootinfo.ofw_root = ofw_tree_build();
-	
+
 	printf("Setting up translate table ...\n");
 	for (i = 0; i < pages; i++) {
 		uintptr_t off = i << PAGE_WIDTH;
 		void *phys;
-		
+
 		if (off < balloc_start)
 			phys = ofw_translate(inflate_base + off);
 		else
 			phys = ofw_translate(balloc_base + off - balloc_start);
-		
+
 		((void **) transtable)[i] = phys;
 	}
-	
+
 	printf("Booting the kernel...\n");
 	jump_to_kernel(bootinfo_pa, transtable_pa, pages, real_mode_pa);
Index: boot/arch/ppc32/src/ofw.c
===================================================================
--- boot/arch/ppc32/src/ofw.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/ppc32/src/ofw.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,5 +43,5 @@
 	if (ch == '\n')
 		ofw_putchar('\r');
-	
+
 	if (ascii_check(ch))
 		ofw_putchar(ch);
Index: boot/arch/riscv64/src/asm.S
===================================================================
--- boot/arch/riscv64/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/riscv64/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -85,9 +85,9 @@
 	li x30, 0
 	li x31, 0
-	
+
 	/* Set up stack, create stack frame */
 	la sp, boot_stack + BOOT_STACK_SIZE
 	addi sp, sp, -16
-	
+
 	j bootstrap
 
@@ -97,23 +97,23 @@
 	/* Enable performance counters access in supervisor mode */
 	csrsi mcounteren, MCOUNTEREN_CY_MASK | MCOUNTEREN_TM_MASK | MCOUNTEREN_IR_MASK
-	
+
 	/* Setup SV48 paging for supervisor mode */
 	la t0, ptl_0
 	srli t0, t0, 12
-	
+
 	li t1, SATP_PFN_MASK
 	and t0, t0, t1
-	
+
 	li t1, SATP_MODE_SV48
 	or t0, t0, t1
-	
+
 	csrw sptbr, t0
-	
+
 	/* Jump to supervisor mode */
 	csrr t0, mstatus
-	
+
 	li t1, ~MSTATUS_MPP_MASK
 	and t0, t0, t1
-	
+
 	/*
 	 * TODO: Enable running with Supervisor User Mode
@@ -122,10 +122,10 @@
 	li t1, MSTATUS_MPP_SUPERVISOR | MSTATUS_SUM_MASK
 	or t0, t0, t1
-	
+
 	csrw mstatus, t0
-	
+
 	li ra, PA2KA(BOOT_OFFSET)
 	csrw mepc, ra
-	
+
 	mret
 FUNCTION_END(jump_to_kernel)
Index: boot/arch/riscv64/src/main.c
===================================================================
--- boot/arch/riscv64/src/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/riscv64/src/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,13 +48,13 @@
 {
 	version_print();
-	
+
 	bootinfo.htif_frame = ((uintptr_t) &htif_page) >> PAGE_WIDTH;
 	bootinfo.pt_frame = ((uintptr_t) &pt_page) >> PAGE_WIDTH;
-	
+
 	bootinfo.ucbinfo.tohost =
 	    (volatile uint64_t *) PA2KA((uintptr_t) &tohost);
 	bootinfo.ucbinfo.fromhost =
 	    (volatile uint64_t *) PA2KA((uintptr_t) &fromhost);
-	
+
 	// FIXME TODO: read from device tree
 	bootinfo.physmem_start = PHYSMEM_START;
@@ -63,16 +63,16 @@
 	bootinfo.memmap.zones[0].start = (void *) PHYSMEM_START;
 	bootinfo.memmap.zones[0].size = PHYSMEM_SIZE;
-	
+
 	printf("\nMemory statistics (total %lu MB, starting at %p)\n\n",
 	    bootinfo.memmap.total >> 20, (void *) bootinfo.physmem_start);
 	printf(" %p: boot info structure\n", &bootinfo);
-	
+
 	uintptr_t top = BOOT_OFFSET;
-	
+
 	for (size_t i = 0; i < COMPONENTS; i++) {
 		printf(" %p: %s image (%zu/%zu bytes)\n", components[i].addr,
 		    components[i].name, components[i].inflated,
 		    components[i].size);
-		
+
 		uintptr_t tail = (uintptr_t) components[i].addr +
 		    components[i].size;
@@ -83,15 +83,15 @@
 		}
 	}
-	
+
 	printf(" %p: inflate area\n", (void *) top);
-	
+
 	void *kernel_entry = NULL;
 	void *dest[COMPONENTS];
 	size_t cnt = 0;
 	bootinfo.taskmap.cnt = 0;
-	
+
 	for (size_t i = 0; i < min(COMPONENTS, TASKMAP_MAX_RECORDS); i++) {
 		top = ALIGN_UP(top, PAGE_SIZE);
-		
+
 		if (i > 0) {
 			bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].addr =
@@ -99,19 +99,19 @@
 			bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].size =
 			    components[i].inflated;
-			
+
 			str_cpy(bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].name,
 			    BOOTINFO_TASK_NAME_BUFLEN, components[i].name);
-			
+
 			bootinfo.taskmap.cnt++;
 		} else
 			kernel_entry = (void *) PA2KA(top);
-		
+
 		dest[i] = (void *) top;
 		top += components[i].inflated;
 		cnt++;
 	}
-	
+
 	printf(" %p: kernel entry point\n", kernel_entry);
-	
+
 	if (top >= bootinfo.physmem_start + bootinfo.memmap.total) {
 		printf("Not enough physical memory available.\n");
@@ -119,13 +119,13 @@
 		halt();
 	}
-	
+
 	printf("\nInflating components ... ");
-	
+
 	for (size_t i = cnt; i > 0; i--) {
 		printf("%s ", components[i - 1].name);
-		
+
 		int err = inflate(components[i - 1].addr, components[i - 1].size,
 		    dest[i - 1], components[i - 1].inflated);
-		
+
 		if (err != EOK) {
 			printf("\n%s: Inflating error %d, halting.\n",
@@ -134,7 +134,7 @@
 		}
 	}
-	
+
 	printf(".\n");
-	
+
 	printf("Booting the kernel...\n");
 	jump_to_kernel(PA2KA(&bootinfo));
Index: boot/arch/riscv64/src/ucb.c
===================================================================
--- boot/arch/riscv64/src/ucb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/riscv64/src/ucb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,5 +39,5 @@
 	if (!val)
 		return;
-	
+
 	fromhost = 0;
 }
@@ -48,8 +48,8 @@
 	    (((uint64_t) cmd) << 48) |
 	    (payload & UINT64_C(0xffffffffffff));
-	
+
 	while (tohost)
 		poll_fromhost();
-	
+
 	tohost = val;
 }
Index: boot/arch/sparc64/src/asm.S
===================================================================
--- boot/arch/sparc64/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/sparc64/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,22 +65,22 @@
 1:
 	! Disable interrupts and disable address masking.
-	
+
 	wrpr %g0, PSTATE_PRIV_BIT, %pstate
-	
+
 	wrpr %g0, NWINDOWS - 2, %cansave   ! Set maximum saveable windows
 	wrpr %g0, 0, %canrestore           ! Get rid of windows we will never need again
 	wrpr %g0, 0, %otherwin             ! Make sure the window state is consistent
 	wrpr %g0, NWINDOWS - 1, %cleanwin  ! Prevent needless clean_window traps for kernel
-	
+
 	set initial_stack, %sp
 	add %sp, -STACK_BIAS, %sp
-	
+
 	set ofw_cif, %l0
-	
+
 	! Initialize OpenFirmware
-	
+
 	call ofw_init
 	stx %o4, [%l0]
-	
+
 	ba %xcc, bootstrap
 	nop
@@ -105,5 +105,5 @@
 	 * 3. Flush instruction pipeline.
 	 */
-	
+
 	/*
 	 * US3 processors have a write-invalidate cache, so explicitly
@@ -115,17 +115,17 @@
 	be %xcc, 1f
 	nop
-	
+
 	0:
 		call icache_flush
 		nop
-	
+
 	1:
 		membar #StoreStore
-	
+
 	/*
 	 * Flush the instruction pipeline.
 	 */
 	flush %i7
-	
+
 	! Jump to kernel
 	jmp %o3
@@ -138,16 +138,16 @@
 	set ((ICACHE_SIZE - ICACHE_LINE_SIZE) | ICACHE_SET_BIT), %g1
 	stxa %g0, [%g1] ASI_ICACHE_TAG
-	
+
 	0:
 		membar #Sync
 		subcc %g1, ICACHE_LINE_SIZE, %g1
 		bnz,pt %xcc, 0b
-	
+
 	stxa %g0, [%g1] ASI_ICACHE_TAG
 	membar #Sync
 	retl
-	
+
 	! SF Erratum #51
-	
+
 	nop
 #else
@@ -161,14 +161,14 @@
 	set ofw_cif, %l0
 	ldx [%l0], %l0
-	
+
 	rdpr %pstate, %l1
 	and %l1, ~PSTATE_AM_BIT, %l2
 	wrpr %l2, 0, %pstate
-	
+
 	jmpl %l0, %o7
 	mov %i0, %o0
-	
+
 	wrpr %l1, 0, %pstate
-	
+
 	ret
 	restore %o0, 0, %o0
Index: boot/arch/sparc64/src/main.c
===================================================================
--- boot/arch/sparc64/src/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/sparc64/src/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -86,5 +86,5 @@
 	phandle root = ofw_find_device("/");
 	char compatible[OFW_TREE_PROPERTY_MAX_VALUELEN];
-	
+
 	if (ofw_get_property(root, "compatible", compatible,
 	    OFW_TREE_PROPERTY_MAX_VALUELEN) <= 0) {
@@ -93,5 +93,5 @@
 		return;
 	}
-	
+
 	if (str_cmp(compatible, "sun4v") != 0) {
 		/*
@@ -122,15 +122,15 @@
 		: [ver] "=r" (ver)
 	);
-	
+
 	ver = (ver << 16) >> 48;
-	
+
 	if ((ver >= FIRST_US3_CPU) && (ver <= LAST_US3_CPU)) {
 		subarch = SUBARCH_US3;
-		
+
 		if (ver == US_IIIi_CODE)
 			mid_mask = (1 << 5) - 1;
 		else
 			mid_mask = (1 << 10) - 1;
-		
+
 	} else if (ver < FIRST_US3_CPU) {
 		subarch = SUBARCH_US;
@@ -193,5 +193,5 @@
 {
 	version_print();
-	
+
 	arch_detect();
 	if (arch == ARCH_SUN4U)
@@ -199,5 +199,5 @@
 	else
 		subarch = SUBARCH_UNKNOWN;
-	
+
 	bootinfo.physmem_start = ofw_get_physmem_start();
 	ofw_memmap(&bootinfo.memmap);
@@ -205,9 +205,9 @@
 	if (arch == ARCH_SUN4V)
 		sun4v_fixups();
-	
+
 	void *bootinfo_pa = ofw_translate(&bootinfo);
 	void *kernel_address_pa = ofw_translate((void *) KERNEL_ADDRESS);
 	void *loader_address_pa = ofw_translate((void *) LOADER_ADDRESS);
-	
+
 	printf("\nMemory statistics (total %" PRIu64 " MB, starting at %p)\n",
 	    bootinfo.memmap.total >> 20, (void *) bootinfo.physmem_start);
@@ -217,5 +217,5 @@
 	printf(" %p|%p: loader entry point\n",
 	    (void *) LOADER_ADDRESS, (void *) loader_address_pa);
-	
+
 	size_t i;
 	for (i = 0; i < COMPONENTS; i++)
@@ -223,5 +223,5 @@
 		    ofw_translate(components[i].addr), components[i].name,
 		    components[i].inflated, components[i].size);
-	
+
 	void *dest[COMPONENTS];
 	size_t top = KERNEL_ADDRESS;
@@ -230,5 +230,5 @@
 	for (i = 0; i < min(COMPONENTS, TASKMAP_MAX_RECORDS); i++) {
 		top = ALIGN_UP(top, PAGE_SIZE);
-		
+
 		if (i > 0) {
 			bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].addr =
@@ -236,21 +236,21 @@
 			bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].size =
 			    components[i].inflated;
-			
+
 			str_cpy(bootinfo.taskmap.tasks[bootinfo.taskmap.cnt].name,
 			    BOOTINFO_TASK_NAME_BUFLEN, components[i].name);
-			
+
 			bootinfo.taskmap.cnt++;
 		}
-		
+
 		dest[i] = (void *) top;
 		top += components[i].inflated;
 		cnt++;
 	}
-	
+
 	printf("\nInflating components ... ");
-	
+
 	for (i = cnt; i > 0; i--) {
 		printf("%s ", components[i - 1].name);
-		
+
 		/*
 		 * At this point, we claim and map the physical memory that we
@@ -263,11 +263,11 @@
 		ofw_claim_phys(bootinfo.physmem_start + dest[i - 1],
 		    ALIGN_UP(components[i - 1].inflated, PAGE_SIZE));
-		
+
 		ofw_map(bootinfo.physmem_start + dest[i - 1], dest[i - 1],
 		    ALIGN_UP(components[i - 1].inflated, PAGE_SIZE), -1);
-		
+
 		int err = inflate(components[i - 1].addr, components[i - 1].size,
 		    dest[i - 1], components[i - 1].inflated);
-		
+
 		if (err != EOK) {
 			printf("\n%s: Inflating error %d, halting.\n",
@@ -276,7 +276,7 @@
 		}
 	}
-	
+
 	printf(".\n");
-	
+
 	/*
 	 * Claim and map the physical memory for the boot allocator.
@@ -290,14 +290,14 @@
 	balloc_init(&bootinfo.ballocs, balloc_base, (uintptr_t) balloc_base,
 	    BALLOC_MAX_SIZE);
-	
+
 	printf("Setting up screens ...\n");
 	ofw_setup_screens();
-	
+
 	printf("Canonizing OpenFirmware device tree ...\n");
 	bootinfo.ofw_root = ofw_tree_build();
-	
+
 	if (arch == ARCH_SUN4U)
 		sun4u_smp();
-	
+
 	printf("Booting the kernel ...\n");
 	jump_to_kernel(bootinfo.physmem_start | BSP_PROCESSOR, &bootinfo, subarch,
Index: boot/arch/sparc64/src/ofw.c
===================================================================
--- boot/arch/sparc64/src/ofw.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/arch/sparc64/src/ofw.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,5 +47,5 @@
 	if (ch == '\n')
 		ofw_putchar('\r');
-	
+
 	if (ascii_check(ch))
 		ofw_putchar(ch);
@@ -72,16 +72,16 @@
 {
 	size_t cpus;
-	
+
 	for (cpus = 0; (child != 0) && (child != (phandle) -1);
 	    child = ofw_get_peer_node(child), cpus++) {
 		char type_name[OFW_TREE_PROPERTY_MAX_VALUELEN];
-		
+
 		if (ofw_get_property(child, "device_type", type_name,
 		    OFW_TREE_PROPERTY_MAX_VALUELEN) > 0) {
 			type_name[OFW_TREE_PROPERTY_MAX_VALUELEN - 1] = 0;
-			
+
 			if (str_cmp(type_name, "cpu") == 0) {
 				uint32_t mid;
-				
+
 				/*
 				 * "upa-portid" for US, "portid" for US-III,
@@ -92,5 +92,5 @@
 				    && (ofw_get_property(child, "cpuid", &mid, sizeof(mid)) <= 0))
 					continue;
-				
+
 				if (current_mid != mid) {
 					/*
@@ -104,5 +104,5 @@
 		}
 	}
-	
+
 	return cpus;
 }
@@ -115,5 +115,5 @@
 	/* Get the current CPU MID */
 	uint64_t current_mid;
-	
+
 	asm volatile (
 		"ldxa [%[zero]] %[asi], %[current_mid]\n"
@@ -122,24 +122,24 @@
 		  [asi] "i" (ASI_ICBUS_CONFIG)
 	);
-	
+
 	current_mid >>= ICBUS_CONFIG_MID_SHIFT;
 	current_mid &= mid_mask;
-	
+
 	/* Wake up the CPUs */
-	
+
 	phandle cpus_parent = ofw_find_device("/ssm@0,0");
 	if ((cpus_parent == 0) || (cpus_parent == (phandle) -1))
 		cpus_parent = ofw_find_device("/");
-	
+
 	phandle node = ofw_get_child_node(cpus_parent);
 	size_t cpus = wake_cpus_in_node(node, current_mid, physmem_start);
-	
+
 	while ((node != 0) && (node != (phandle) -1)) {
 		char name[OFW_TREE_PROPERTY_MAX_VALUELEN];
-		
+
 		if (ofw_get_property(node, "name", name,
 		    OFW_TREE_PROPERTY_MAX_VALUELEN) > 0) {
 			name[OFW_TREE_PROPERTY_MAX_VALUELEN - 1] = 0;
-			
+
 			if (str_cmp(name, "cmp") == 0) {
 				phandle subnode = ofw_get_child_node(node);
@@ -148,8 +148,8 @@
 			}
 		}
-		
+
 		node = ofw_get_peer_node(node);
 	}
-	
+
 	if (cpus == 0)
 		printf("Warning: Unable to get CPU properties.\n");
@@ -169,5 +169,5 @@
 		halt();
 	}
-	
+
 	return ((((uintptr_t) memreg[0]) << 32) | memreg[1]);
 }
Index: boot/genarch/include/genarch/ofw_tree.h
===================================================================
--- boot/genarch/include/genarch/ofw_tree.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/genarch/include/genarch/ofw_tree.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,12 +45,12 @@
 	struct ofw_tree_node *peer;
 	struct ofw_tree_node *child;
-	
+
 	phandle node_handle;            /**< Old OpenFirmware node handle. */
-	
+
 	char *da_name;                  /**< Disambigued name. */
-	
+
 	size_t properties;              /**< Number of properties. */
 	ofw_tree_property_t *property;
-	
+
 	void *device;                   /**< Member used solely by the kernel. */
 } ofw_tree_node_t;
Index: boot/genarch/src/division.c
===================================================================
--- boot/genarch/src/division.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/genarch/src/division.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,23 +40,23 @@
 	unsigned int result;
 	int steps = sizeof(unsigned int) * 8;
-	
+
 	*remainder = 0;
 	result = 0;
-	
+
 	if (b == 0) {
 		/* FIXME: division by zero */
 		return 0;
 	}
-	
+
 	if (a < b) {
 		*remainder = a;
 		return 0;
 	}
-	
+
 	for (; steps > 0; steps--) {
 		/* shift one bit to remainder */
 		*remainder = ((*remainder) << 1) | (( a >> 31) & 0x1);
 		result <<= 1;
-		
+
 		if (*remainder >= b) {
 			*remainder -= b;
@@ -65,5 +65,5 @@
 		a <<= 1;
 	}
-	
+
 	return result;
 }
@@ -74,23 +74,23 @@
 	unsigned long long result;
 	int steps = sizeof(unsigned long long) * 8;
-	
+
 	*remainder = 0;
 	result = 0;
-	
+
 	if (b == 0) {
 		/* FIXME: division by zero */
 		return 0;
 	}
-	
+
 	if (a < b) {
 		*remainder = a;
 		return 0;
 	}
-	
+
 	for (; steps > 0; steps--) {
 		/* shift one bit to remainder */
 		*remainder = ((*remainder) << 1) | ((a >> 63) & 0x1);
 		result <<= 1;
-		
+
 		if (*remainder >= b) {
 			*remainder -= b;
@@ -99,5 +99,5 @@
 		a <<= 1;
 	}
-	
+
 	return result;
 }
@@ -108,8 +108,8 @@
 	unsigned int rem;
 	int result = (int) divandmod32(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b))
 		return result;
-	
+
 	return -result;
 }
@@ -120,8 +120,8 @@
 	unsigned long long rem;
 	long long result = (long long) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b))
 		return result;
-	
+
 	return -result;
 }
@@ -146,9 +146,9 @@
 	unsigned int rem;
 	divandmod32(a, b, &rem);
-	
+
 	/* if divident is negative, remainder must be too */
 	if (!(SGN(a)))
 		return -((int) rem);
-	
+
 	return (int) rem;
 }
@@ -159,9 +159,9 @@
 	unsigned long long rem;
 	divandmod64(a, b, &rem);
-	
+
 	/* if divident is negative, remainder must be too */
 	if (!(SGN(a)))
 		return -((long long) rem);
-	
+
 	return (long long) rem;
 }
@@ -187,10 +187,10 @@
 	unsigned int rem;
 	int result = (int) divandmod32(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
@@ -207,10 +207,10 @@
 	unsigned long long rem;
 	long long result = (int) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
Index: boot/genarch/src/multiplication.c
===================================================================
--- boot/genarch/src/multiplication.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/genarch/src/multiplication.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,12 +50,12 @@
 	unsigned int b1 = b >> 16;
 	unsigned int b2 = b & UINT16_MAX;
-	
+
 	unsigned long long t1 = a1 * b1;
 	unsigned long long t2 = a1 * b2;
 	t2 += a2 * b1;
 	unsigned long long t3 = a2 * b2;
-	
+
 	t3 = (((t1 << 16) + t2) << 16) + t3;
-	
+
 	return t3;
 }
@@ -67,40 +67,40 @@
 {
 	char neg = 0;
-	
+
 	if (a < 0) {
 		neg = !neg;
 		a = -a;
 	}
-	
+
 	if (b < 0) {
 		neg = !neg;
 		b = -b;
 	}
-	
+
 	unsigned long long a1 = a >> 32;
 	unsigned long long b1 = b >> 32;
-	
+
 	unsigned long long a2 = a & (UINT32_MAX);
 	unsigned long long b2 = b & (UINT32_MAX);
-	
+
 	if (SOFTINT_CHECK_OF && (a1 != 0) && (b1 != 0)) {
 		/* Error (overflow) */
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	/* (if OF checked) a1 or b1 is zero => result fits in 64 bits,
 	 * no need to another overflow check
 	 */
 	unsigned long long t1 = mul(a1, b2) + mul(b1, a2);
-	
+
 	if ((SOFTINT_CHECK_OF) && (t1 > UINT32_MAX)) {
 		/* Error (overflow) */
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	t1 = t1 << 32;
 	unsigned long long t2 = mul(a2, b2);
 	t2 += t1;
-	
+
 	/* t2 & (1ull << 63) - if this bit is set in unsigned long long,
 	 * result does not fit in signed one
@@ -110,9 +110,9 @@
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	long long result = t2;
 	if (neg)
 		result = -result;
-	
+
 	return result;
 }
Index: boot/genarch/src/ofw.c
===================================================================
--- boot/genarch/src/ofw.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/genarch/src/ofw.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,9 +62,9 @@
 	if (ofw_chosen == (phandle) -1)
 		halt();
-	
+
 	if ((ofw_ret_t) ofw_get_property(ofw_chosen, "stdout", &ofw_stdout,
 	    sizeof(ofw_stdout)) <= 0)
 		ofw_stdout = 0;
-	
+
 	ofw_root = ofw_find_device("/");
 	if (ofw_root == (phandle) -1) {
@@ -72,5 +72,5 @@
 		halt();
 	}
-	
+
 	if ((ofw_ret_t) ofw_get_property(ofw_chosen, "mmu", &ofw_mmu,
 	    sizeof(ofw_mmu)) <= 0) {
@@ -83,5 +83,5 @@
 		halt();
 	}
-	
+
 	ofw_memory = ofw_find_device("/memory");
 	if (ofw_memory == (phandle) -1) {
@@ -110,22 +110,22 @@
 	args.nargs = nargs;
 	args.nret = nret;
-	
+
 	va_list list;
 	va_start(list, rets);
-	
+
 	size_t i;
 	for (i = 0; i < nargs; i++)
 		args.args[i] = va_arg(list, ofw_arg_t);
-	
+
 	va_end(list);
-	
+
 	for (i = 0; i < nret; i++)
 		args.args[i + nargs] = 0;
-	
+
 	(void) ofw(&args);
-	
+
 	for (i = 1; i < nret; i++)
 		rets[i - 1] = args.args[i + nargs];
-	
+
 	return args.args[nargs];
 }
@@ -161,5 +161,5 @@
 {
 	ofw_prop_t ret = 1;
-	
+
 	if ((ofw_ret_t) ofw_get_property(device, "#address-cells", &ret,
 	    sizeof(ret)) <= 0)
@@ -167,5 +167,5 @@
 		    sizeof(ret)) <= 0)
 			ret = OFW_ADDRESS_CELLS;
-	
+
 	return (size_t) ret;
 }
@@ -174,5 +174,5 @@
 {
 	ofw_prop_t ret = 1;
-	
+
 	if ((ofw_ret_t) ofw_get_property(device, "#size-cells", &ret,
 	    sizeof(ret)) <= 0)
@@ -180,5 +180,5 @@
 		    sizeof(ret)) <= 0)
 			ret = OFW_SIZE_CELLS;
-	
+
 	return (size_t) ret;
 }
@@ -198,5 +198,5 @@
 	if (ofw_stdout == 0)
 		return;
-	
+
 	ofw_call("write", 3, 1, NULL, ofw_stdout, &ch, 1);
 }
@@ -210,5 +210,5 @@
 		halt();
 	}
-	
+
 	if (result[0] == false) {
 		printf("Error: Unable to translate virtual address %p, halting.\n",
@@ -216,9 +216,9 @@
 		halt();
 	}
-	
+
 #ifdef __32_BITS__
 	return (void *) result[2];
 #endif
-	
+
 #ifdef __64_BITS__
 	return (void *) ((result[2] << 32) | result[3]);
@@ -235,5 +235,5 @@
 		halt();
 	}
-	
+
 	return (void *) addr;
 }
@@ -252,5 +252,5 @@
 {
 	void *addr = ofw_claim_virt_internal(NULL, len, alignment);
-	
+
 	if (addr == NULL) {
 		printf("Error: Unable to claim %zu bytes in virtual memory, halting.\n",
@@ -258,5 +258,5 @@
 		halt();
 	}
-	
+
 	return addr;
 }
@@ -276,5 +276,5 @@
 	 * purposes.
 	 */
-	
+
 #ifdef __32_BITS__
 	ofw_arg_t retaddr[1];
@@ -284,8 +284,8 @@
 		halt();
 	}
-	
+
 	return (void *) retaddr[0];
 #endif
-	
+
 #ifdef __64_BITS__
 	ofw_arg_t retaddr[2];
@@ -296,5 +296,5 @@
 		halt();
 	}
-	
+
 	return (void *) ((retaddr[0] << 32) | retaddr[1]);
 #endif
@@ -319,5 +319,5 @@
 		halt();
 	}
-	
+
 	return addr;
 }
@@ -328,18 +328,18 @@
 	ofw_arg_t phys_hi;
 	ofw_arg_t phys_lo;
-	
+
 #ifdef __32_BITS__
 	phys_hi = (ofw_arg_t) phys;
 	phys_lo = 0;
 #endif
-	
+
 #ifdef __64_BITS__
 	phys_hi = (ofw_arg_t) phys >> 32;
 	phys_lo = (ofw_arg_t) phys & 0xffffffff;
 #endif
-	
+
 	ofw_arg_t ret = ofw_call("call-method", 7, 1, NULL, "map", ofw_mmu, mode,
 	    ALIGN_UP(size, PAGE_SIZE), virt, phys_hi, phys_lo);
-	
+
 	if (ret != 0) {
 		printf("Error: Unable to map %p to %p (size %zu), halting.\n",
@@ -360,7 +360,7 @@
 	size_t sc = ofw_get_size_cells(ofw_memory) /
 	    (sizeof(uintptr_t) / sizeof(uint32_t));
-	
+
 	uintptr_t buf[((ac + sc) * MEMMAP_MAX_RECORDS)];
-	
+
 	/* The number of bytes read */
 	ofw_ret_t ret = (ofw_ret_t) ofw_get_property(ofw_memory, "reg", buf,
@@ -370,5 +370,5 @@
 		halt();
 	}
-	
+
 	size_t pos;
 	map->total = 0;
@@ -378,5 +378,5 @@
 		void *start = (void *) (buf[pos + ac - 1]);
 		uintptr_t size = buf[pos + ac + sc - 1];
-		
+
 		/*
 		 * This is a hot fix of the issue which occurs on machines
@@ -389,5 +389,5 @@
 		    map->zones[map->cnt - 1].size < start))
 			break;
-		
+
 		if (size > 0) {
 			map->zones[map->cnt].start = start;
@@ -397,5 +397,5 @@
 		}
 	}
-	
+
 	if (map->total == 0) {
 		printf("Error: No physical memory detected, halting.\n");
@@ -421,5 +421,5 @@
 		*base_pa = ofw_claim_phys_any(size, PAGE_SIZE);
 	} while (*base_pa <= min_pa);
-	
+
 	*base = ofw_claim_virt_any(size, PAGE_SIZE);
 	ofw_map(*base_pa, *base, ALIGN_UP(size, PAGE_SIZE), (ofw_arg_t) -1);
@@ -433,9 +433,9 @@
 	    OFW_TREE_PROPERTY_MAX_VALUELEN) <= 0)
 		return;
-	
+
 	device_type[OFW_TREE_PROPERTY_MAX_VALUELEN - 1] = '\0';
 	if (str_cmp(device_type, "display") != 0)
 		return;
-	
+
 	/* Check for 8 bit depth */
 	ofw_prop_t depth;
@@ -443,17 +443,17 @@
 	    sizeof(depth)) <= 0)
 		depth = 0;
-	
+
 	/* Get device path */
 	ofw_arg_t len = ofw_package_to_path(handle, path, OFW_TREE_PATH_MAX_LEN);
 	if (len == (ofw_arg_t) -1)
 		return;
-	
+
 	path[len] = '\0';
-	
+
 	/* Open the display to initialize it */
 	ihandle screen = ofw_open(path);
 	if (screen == (ihandle) -1)
 		return;
-	
+
 	if (depth == 8) {
 		/* Setup the palette so that the (inverted) 3:2:3 scheme is usable */
@@ -470,5 +470,5 @@
 	while ((current != 0) && (current != (phandle) -1)) {
 		ofw_setup_screen(current);
-		
+
 		/*
 		 * Recursively process the potential child node.
@@ -477,5 +477,5 @@
 		if ((child != 0) && (child != (phandle) -1))
 			ofw_setup_screens_internal(child);
-		
+
 		/*
 		 * Iteratively process the next peer node.
@@ -493,5 +493,5 @@
 			continue;
 		}
-		
+
 		/*
 		 * No more peers on this level.
Index: boot/genarch/src/ofw_tree.c
===================================================================
--- boot/genarch/src/ofw_tree.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/genarch/src/ofw_tree.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 	if (addr)
 		addr[size] = '\0';
-	
+
 	return addr;
 }
@@ -98,5 +98,5 @@
 		current_node->property = NULL;
 		current_node->device = NULL;
-		
+
 		/*
 		 * Get the disambigued name.
@@ -105,23 +105,23 @@
 		if (len == (size_t) -1)
 			return;
-		
+
 		path[len] = '\0';
-		
+
 		/* Find last slash */
 		size_t i;
 		for (i = len; (i > 0) && (path[i - 1] != '/'); i--);
-		
+
 		/* Do not include the slash */
 		len -= i;
-		
+
 		/* Add space for trailing '\0' */
 		char *da_name = ofw_tree_space_alloc(len + 1);
 		if (!da_name)
 			return;
-		
+
 		memcpy(da_name, &path[i], len);
 		da_name[len] = '\0';
 		current_node->da_name = (char *) balloc_rebase(da_name);
-		
+
 		/*
 		 * Recursively process the potential child node.
@@ -137,5 +137,5 @@
 			}
 		}
-		
+
 		/*
 		 * Count properties.
@@ -146,8 +146,8 @@
 			memcpy(name, name2, OFW_TREE_PROPERTY_MAX_NAMELEN);
 		}
-		
+
 		if (!current_node->properties)
 			return;
-		
+
 		/*
 		 * Copy properties.
@@ -157,17 +157,17 @@
 		if (!property)
 			return;
-		
+
 		name[0] = '\0';
 		for (i = 0; ofw_next_property(current, name, name2) == 1; i++) {
 			if (i == current_node->properties)
 				break;
-			
+
 			memcpy(name, name2, OFW_TREE_PROPERTY_MAX_NAMELEN);
 			memcpy(property[i].name, name, OFW_TREE_PROPERTY_MAX_NAMELEN);
 			property[i].name[OFW_TREE_PROPERTY_MAX_NAMELEN - 1] = '\0';
-			
+
 			size_t size = ofw_get_proplen(current, name);
 			property[i].size = size;
-			
+
 			if (size) {
 				void *buf = ofw_tree_space_alloc(size);
@@ -182,9 +182,9 @@
 				property[i].value = NULL;
 		}
-		
+
 		/* Just in case we ran out of memory. */
 		current_node->properties = i;
 		current_node->property = (ofw_tree_property_t *) balloc_rebase(property);
-		
+
 		/*
 		 * Iteratively process the next peer node.
@@ -207,5 +207,5 @@
 			}
 		}
-		
+
 		/*
 		 * No more peers on this level.
@@ -225,5 +225,5 @@
 	if (root)
 		ofw_tree_node_process(root, NULL, ofw_root);
-	
+
 	/*
 	 * The firmware client interface does not automatically include the
@@ -241,5 +241,5 @@
 		}
 	}
-	
+
 	return (ofw_tree_node_t *) balloc_rebase(root);
 }
Index: boot/generic/include/printf_core.h
===================================================================
--- boot/generic/include/printf_core.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/generic/include/printf_core.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,5 +40,5 @@
 	/* String output function, returns number of printed characters or EOF */
 	int (*str_write)(const char *, size_t, void *);
-	
+
 	/* User data - output stream specification, state, locks, etc. */
 	void *data;
Index: boot/generic/src/balloc.c
===================================================================
--- boot/generic/src/balloc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/generic/src/balloc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,15 +49,15 @@
 	if (alignment == 0)
 		return NULL;
-	
+
 	/* Enforce minimal alignment. */
 	alignment = ALIGN_UP(alignment, 4);
-	
+
 	uintptr_t addr = phys_base + ALIGN_UP(ballocs->size, alignment);
-	
+
 	if (ALIGN_UP(ballocs->size, alignment) + size >= max_size)
 		return NULL;
-	
+
 	ballocs->size = ALIGN_UP(ballocs->size, alignment) + size;
-	
+
 	return (void *) addr;
 }
Index: boot/generic/src/inflate.c
===================================================================
--- boot/generic/src/inflate.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/generic/src/inflate.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -103,12 +103,12 @@
 	size_t destlen;   /**< Output buffer size */
 	size_t destcnt;   /**< Position in the output buffer */
-	
+
 	uint8_t *src;     /**< Input buffer */
 	size_t srclen;    /**< Input buffer size */
 	size_t srccnt;    /**< Position in the input buffer */
-	
+
 	uint16_t bitbuf;  /**< Bit buffer */
 	size_t bitlen;    /**< Number of bits in the bit buffer */
-	
+
 	bool overrun;     /**< Overrun condition */
 } inflate_state_t;
@@ -240,5 +240,5 @@
 	/* Bit accumulator for at least 20 bits */
 	uint32_t val = state->bitbuf;
-	
+
 	while (state->bitlen < cnt) {
 		if (state->srccnt == state->srclen) {
@@ -246,5 +246,5 @@
 			return 0;
 		}
-		
+
 		/* Load 8 more bits */
 		val |= ((uint32_t) state->src[state->srccnt]) << state->bitlen;
@@ -252,9 +252,9 @@
 		state->bitlen += 8;
 	}
-	
+
 	/* Update bits in the buffer */
 	state->bitbuf = (uint16_t) (val >> cnt);
 	state->bitlen -= cnt;
-	
+
 	return ((uint16_t) (val & ((1 << cnt) - 1)));
 }
@@ -275,32 +275,32 @@
 	state->bitbuf = 0;
 	state->bitlen = 0;
-	
+
 	if (state->srccnt + 4 > state->srclen)
 		return ELIMIT;
-	
+
 	uint16_t len =
 	    state->src[state->srccnt] | (state->src[state->srccnt + 1] << 8);
 	uint16_t len_compl =
 	    state->src[state->srccnt + 2] | (state->src[state->srccnt + 3] << 8);
-	
+
 	/* Check block length and its complement */
 	if (((int16_t) len) != ~((int16_t) len_compl))
 		return EINVAL;
-	
+
 	state->srccnt += 4;
-	
+
 	/* Check input buffer size */
 	if (state->srccnt + len > state->srclen)
 		return ELIMIT;
-	
+
 	/* Check output buffer size */
 	if (state->destcnt + len > state->destlen)
 		return ENOMEM;
-	
+
 	/* Copy data */
 	memcpy(state->dest + state->destcnt, state->src + state->srccnt, len);
 	state->srccnt += len;
 	state->destcnt += len;
-	
+
 	return EOK;
 }
@@ -323,5 +323,5 @@
 	size_t index = 0;  /* Index of the first code of the given length
 	                      in the symbol table */
-	
+
 	size_t len;  /* Current number of bits in the code */
 	for (len = 1; len <= MAX_HUFFMAN_BIT; len++) {
@@ -329,5 +329,5 @@
 		code |= get_bits(state, 1);
 		CHECK_OVERRUN(*state);
-		
+
 		uint16_t count = huffman->count[len];
 		if (code < first + count) {
@@ -336,5 +336,5 @@
 			return EOK;
 		}
-		
+
 		/* Update for next length */
 		index += count;
@@ -343,5 +343,5 @@
 		code <<= 1;
 	}
-	
+
 	return EINVAL;
 }
@@ -364,15 +364,15 @@
 	for (len = 0; len <= MAX_HUFFMAN_BIT; len++)
 		huffman->count[len] = 0;
-	
+
 	/* We assume that the lengths are within bounds */
 	size_t symbol;
 	for (symbol = 0; symbol < n; symbol++)
 		huffman->count[length[symbol]]++;
-	
+
 	if (huffman->count[0] == n) {
 		/* The code is complete, but decoding will fail */
 		return 0;
 	}
-	
+
 	/* Check for an over-subscribed or incomplete set of lengths */
 	int16_t left = 1;
@@ -385,12 +385,12 @@
 		}
 	}
-	
+
 	/* Generate offsets into symbol table */
 	uint16_t offs[MAX_HUFFMAN_BIT + 1];
-	
+
 	offs[1] = 0;
 	for (len = 1; len < MAX_HUFFMAN_BIT; len++)
 		offs[len + 1] = offs[len] + huffman->count[len];
-	
+
 	for (symbol = 0; symbol < n; symbol++) {
 		if (length[symbol] != 0) {
@@ -399,5 +399,5 @@
 		}
 	}
-	
+
 	return left;
 }
@@ -422,5 +422,5 @@
 {
 	uint16_t symbol;
-	
+
 	do {
 		int err = huffman_decode(state, len_code, &symbol);
@@ -429,10 +429,10 @@
 			return err;
 		}
-		
+
 		if (symbol < 256) {
 			/* Write out literal */
 			if (state->destcnt == state->destlen)
 				return ENOMEM;
-			
+
 			state->dest[state->destcnt] = (uint8_t) symbol;
 			state->destcnt++;
@@ -442,20 +442,20 @@
 			if (symbol >= 29)
 				return EINVAL;
-			
+
 			size_t len = lens[symbol] + get_bits(state, lens_ext[symbol]);
 			CHECK_OVERRUN(*state);
-			
+
 			/* Get distance */
 			err = huffman_decode(state, dist_code, &symbol);
 			if (err != EOK)
 				return err;
-			
+
 			size_t dist = dists[symbol] + get_bits(state, dists_ext[symbol]);
 			if (dist > state->destcnt)
 				return ENOENT;
-			
+
 			if (state->destcnt + len > state->destlen)
 				return ENOMEM;
-			
+
 			while (len > 0) {
 				/* Copy len bytes from distance bytes back */
@@ -467,5 +467,5 @@
 		}
 	} while (symbol != 256);
-	
+
 	return EOK;
 }
@@ -510,25 +510,25 @@
 	huffman_t dyn_len_code;
 	huffman_t dyn_dist_code;
-	
+
 	dyn_len_code.count = dyn_len_count;
 	dyn_len_code.symbol = dyn_len_symbol;
-	
+
 	dyn_dist_code.count = dyn_dist_count;
 	dyn_dist_code.symbol = dyn_dist_symbol;
-	
+
 	/* Get number of bits in each table */
 	uint16_t nlen = get_bits(state, 5) + 257;
 	CHECK_OVERRUN(*state);
-	
+
 	uint16_t ndist = get_bits(state, 5) + 1;
 	CHECK_OVERRUN(*state);
-	
+
 	uint16_t ncode = get_bits(state, 4) + 4;
 	CHECK_OVERRUN(*state);
-	
+
 	if ((nlen > MAX_LITLEN) || (ndist > MAX_DIST)
 	    || (ncode > MAX_ORDER))
 		return EINVAL;
-	
+
 	/* Read code length code lengths */
 	uint16_t index;
@@ -537,14 +537,14 @@
 		CHECK_OVERRUN(*state);
 	}
-	
+
 	/* Set missing lengths to zero */
 	for (index = ncode; index < MAX_ORDER; index++)
 		length[order[index]] = 0;
-	
+
 	/* Build Huffman code */
 	int16_t rc = huffman_construct(&dyn_len_code, length, MAX_ORDER);
 	if (rc != 0)
 		return EINVAL;
-	
+
 	/* Read length/literal and distance code length tables */
 	index = 0;
@@ -554,5 +554,5 @@
 		if (err != EOK)
 			return EOK;
-		
+
 		if (symbol < 16) {
 			length[index] = symbol;
@@ -560,9 +560,9 @@
 		} else {
 			uint16_t len = 0;
-			
+
 			if (symbol == 16) {
 				if (index == 0)
 					return EINVAL;
-				
+
 				len = length[index - 1];
 				symbol = get_bits(state, 2) + 3;
@@ -575,8 +575,8 @@
 				CHECK_OVERRUN(*state);
 			}
-			
+
 			if (index + symbol > nlen + ndist)
 				return EINVAL;
-			
+
 			while (symbol > 0) {
 				length[index] = len;
@@ -586,19 +586,19 @@
 		}
 	}
-	
+
 	/* Check for end-of-block code */
 	if (length[256] == 0)
 		return EINVAL;
-	
+
 	/* Build Huffman tables for literal/length codes */
 	rc = huffman_construct(&dyn_len_code, length, nlen);
 	if ((rc < 0) || ((rc > 0) && (dyn_len_code.count[0] + 1 != nlen)))
 		return EINVAL;
-	
+
 	/* Build Huffman tables for distance codes */
 	rc = huffman_construct(&dyn_dist_code, length + nlen, ndist);
 	if ((rc < 0) || ((rc > 0) && (dyn_dist_code.count[0] + 1 != ndist)))
 		return EINVAL;
-	
+
 	return inflate_codes(state, &dyn_len_code, &dyn_dist_code);
 }
@@ -622,30 +622,30 @@
 	/* Initialize the state */
 	inflate_state_t state;
-	
+
 	state.dest = (uint8_t *) dest;
 	state.destlen = destlen;
 	state.destcnt = 0;
-	
+
 	state.src = (uint8_t *) src;
 	state.srclen = srclen;
 	state.srccnt = 0;
-	
+
 	state.bitbuf = 0;
 	state.bitlen = 0;
-	
+
 	state.overrun = false;
-	
+
 	uint16_t last;
 	int ret = 0;
-	
+
 	do {
 		/* Last block is indicated by a non-zero bit */
 		last = get_bits(&state, 1);
 		CHECK_OVERRUN(state);
-		
+
 		/* Block type */
 		uint16_t type = get_bits(&state, 2);
 		CHECK_OVERRUN(state);
-		
+
 		switch (type) {
 		case 0:
@@ -662,5 +662,5 @@
 		}
 	} while ((!last) && (ret == 0));
-	
+
 	return ret;
 }
Index: boot/generic/src/memstr.c
===================================================================
--- boot/generic/src/memstr.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/generic/src/memstr.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,8 +46,8 @@
 	uint8_t *dp = (uint8_t *) dst;
 	const uint8_t *sp = (uint8_t *) src;
-	
+
 	while (cnt-- != 0)
 		*dp++ = *sp++;
-	
+
 	return dst;
 }
@@ -67,8 +67,8 @@
 {
 	uint8_t *dp = (uint8_t *) dst;
-	
+
 	while (cnt-- != 0)
 		*dp++ = val;
-	
+
 	return dst;
 }
@@ -91,12 +91,12 @@
 	if (src == dst)
 		return dst;
-	
+
 	/* Non-overlapping? */
 	if ((dst >= src + cnt) || (src >= dst + cnt))
 		return memcpy(dst, src, cnt);
-	
+
 	uint8_t *dp;
 	const uint8_t *sp;
-	
+
 	/* Which direction? */
 	if (src > dst) {
@@ -104,5 +104,5 @@
 		dp = dst;
 		sp = src;
-		
+
 		while (cnt-- != 0)
 			*dp++ = *sp++;
@@ -111,9 +111,9 @@
 		dp = dst + (cnt - 1);
 		sp = src + (cnt - 1);
-		
+
 		while (cnt-- != 0)
 			*dp-- = *sp--;
 	}
-	
+
 	return dst;
 }
Index: boot/generic/src/printf.c
===================================================================
--- boot/generic/src/printf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/generic/src/printf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -37,11 +37,11 @@
 	int ret;
 	va_list args;
-	
+
 	va_start(args, fmt);
-	
+
 	ret = vprintf(fmt, args);
-	
+
 	va_end(args);
-	
+
 	return ret;
 }
Index: boot/generic/src/printf_core.c
===================================================================
--- boot/generic/src/printf_core.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/generic/src/printf_core.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -138,5 +138,5 @@
 	if (str == NULL)
 		return printf_putnchars(nullstr, str_size(nullstr), ps);
-	
+
 	return ps->str_write((void *) str, str_size(str), ps->data);
 }
@@ -154,5 +154,5 @@
 	if (!ascii_check(ch))
 		return ps->str_write((void *) &invalch, 1, ps->data);
-	
+
 	return ps->str_write(&ch, 1, ps->data);
 }
@@ -180,8 +180,8 @@
 		}
 	}
-	
+
 	if (printf_putchar(ch, ps) > 0)
 		counter++;
-	
+
 	while (--width > 0) {
 		/*
@@ -192,5 +192,5 @@
 			counter++;
 	}
-	
+
 	return (int) (counter);
 }
@@ -210,10 +210,10 @@
 	if (str == NULL)
 		return printf_putstr(nullstr, ps);
-	
+
 	/* Print leading spaces. */
 	size_t strw = str_length(str);
 	if ((precision == 0) || (precision > strw))
 		precision = strw;
-	
+
 	/* Left padding */
 	size_t counter = 0;
@@ -225,5 +225,5 @@
 		}
 	}
-	
+
 	/* Part of @a str fitting into the alloted space. */
 	int retval;
@@ -231,7 +231,7 @@
 	if ((retval = printf_putnchars(str, size, ps)) < 0)
 		return -counter;
-	
+
 	counter += retval;
-	
+
 	/* Right padding */
 	while (width-- > 0) {
@@ -264,14 +264,14 @@
 	else
 		digits = digits_small;
-	
+
 	char data[PRINT_NUMBER_BUFFER_SIZE];
 	char *ptr = &data[PRINT_NUMBER_BUFFER_SIZE - 1];
-	
+
 	/* Size of number with all prefixes and signs */
 	int size = 0;
-	
+
 	/* Put zero at end of string */
 	*ptr-- = 0;
-	
+
 	if (num == 0) {
 		*ptr-- = '0';
@@ -283,8 +283,8 @@
 		} while (num /= base);
 	}
-	
+
 	/* Size of plain number */
 	int number_size = size;
-	
+
 	/*
 	 * Collect the sum of all prefixes/signs/etc. to calculate padding and
@@ -305,5 +305,5 @@
 		}
 	}
-	
+
 	char sgn = 0;
 	if (flags & __PRINTF_FLAG_SIGNED) {
@@ -319,8 +319,8 @@
 		}
 	}
-	
+
 	if (flags & __PRINTF_FLAG_LEFTALIGNED)
 		flags &= ~__PRINTF_FLAG_ZEROPADDED;
-	
+
 	/*
 	 * If the number is left-aligned or precision is specified then
@@ -331,5 +331,5 @@
 			precision = width - size + number_size;
 	}
-	
+
 	/* Print leading spaces */
 	if (number_size > precision) {
@@ -337,8 +337,8 @@
 		precision = number_size;
 	}
-	
+
 	width -= precision + size - number_size;
 	size_t counter = 0;
-	
+
 	if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
 		while (width-- > 0) {
@@ -347,5 +347,5 @@
 		}
 	}
-	
+
 	/* Print sign */
 	if (sgn) {
@@ -353,5 +353,5 @@
 			counter++;
 	}
-	
+
 	/* Print prefix */
 	if (flags & __PRINTF_FLAG_PREFIX) {
@@ -386,5 +386,5 @@
 		}
 	}
-	
+
 	/* Print leading zeroes */
 	precision -= number_size;
@@ -393,17 +393,17 @@
 			counter++;
 	}
-	
+
 	/* Print the number itself */
 	int retval;
 	if ((retval = printf_putstr(++ptr, ps)) > 0)
 		counter += retval;
-	
+
 	/* Print trailing spaces */
-	
+
 	while (width-- > 0) {
 		if (printf_putchar(' ', ps) == 1)
 			counter++;
 	}
-	
+
 	return ((int) counter);
 }
@@ -497,15 +497,15 @@
 	size_t nxt = 0;  /* Index of the next character from fmt */
 	size_t j = 0;    /* Index to the first not printed nonformating character */
-	
+
 	size_t counter = 0;   /* Number of characters printed */
 	int retval;           /* Return values from nested functions */
-	
+
 	while (true) {
 		i = nxt;
 		wchar_t uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
-		
+
 		if (uc == 0)
 			break;
-		
+
 		/* Control character */
 		if (uc == '%') {
@@ -519,11 +519,11 @@
 				counter += retval;
 			}
-			
+
 			j = i;
-			
+
 			/* Parse modifiers */
 			uint32_t flags = 0;
 			bool end = false;
-			
+
 			do {
 				i = nxt;
@@ -549,5 +549,5 @@
 				};
 			} while (!end);
-			
+
 			/* Width & '*' operator */
 			int width = 0;
@@ -556,5 +556,5 @@
 					width *= 10;
 					width += uc - '0';
-					
+
 					i = nxt;
 					uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
@@ -575,5 +575,5 @@
 				}
 			}
-			
+
 			/* Precision and '*' operator */
 			int precision = 0;
@@ -585,5 +585,5 @@
 						precision *= 10;
 						precision += uc - '0';
-						
+
 						i = nxt;
 						uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
@@ -604,7 +604,7 @@
 				}
 			}
-			
+
 			qualifier_t qualifier;
-			
+
 			switch (uc) {
 			case 't':
@@ -653,7 +653,7 @@
 				qualifier = PrintfQualifierInt;
 			}
-			
+
 			unsigned int base = 10;
-			
+
 			switch (uc) {
 			/*
@@ -662,10 +662,10 @@
 			case 's':
 				retval = print_str(va_arg(ap, char *), width, precision, flags, ps);
-				
+
 				if (retval < 0) {
 					counter = -counter;
 					goto out;
 				}
-				
+
 				counter += retval;
 				j = nxt;
@@ -673,14 +673,14 @@
 			case 'c':
 				retval = print_char(va_arg(ap, unsigned int), width, flags, ps);
-				
+
 				if (retval < 0) {
 					counter = -counter;
 					goto out;
 				};
-				
+
 				counter += retval;
 				j = nxt;
 				goto next_char;
-			
+
 			/*
 			 * Integer values
@@ -714,10 +714,10 @@
 				base = 16;
 				break;
-			
+
 			/* Percentile itself */
 			case '%':
 				j = i;
 				goto next_char;
-			
+
 			/*
 			 * Bad formatting.
@@ -730,9 +730,9 @@
 				goto next_char;
 			}
-			
+
 			/* Print integers */
 			size_t size;
 			uint64_t number;
-			
+
 			switch (qualifier) {
 			case PrintfQualifierByte:
@@ -774,5 +774,5 @@
 				goto out;
 			}
-			
+
 			if ((retval = print_number(number, width, precision,
 			    base, flags, ps)) < 0) {
@@ -780,5 +780,5 @@
 				goto out;
 			}
-			
+
 			counter += retval;
 			j = nxt;
@@ -787,5 +787,5 @@
 		;
 	}
-	
+
 	if (i > j) {
 		if ((retval = printf_putnchars(&fmt[j], i - j, ps)) < 0) {
@@ -796,5 +796,5 @@
 		counter += retval;
 	}
-	
+
 out:
 	return ((int) counter);
Index: boot/generic/src/str.c
===================================================================
--- boot/generic/src/str.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/generic/src/str.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -141,13 +141,13 @@
 	if (*offset + 1 > size)
 		return 0;
-	
+
 	/* First byte read from string */
 	uint8_t b0 = (uint8_t) str[(*offset)++];
-	
+
 	/* Determine code length */
-	
+
 	unsigned int b0_bits;  /* Data bits in first byte */
 	unsigned int cbytes;   /* Number of continuation bytes */
-	
+
 	if ((b0 & 0x80) == 0) {
 		/* 0xxxxxxx (Plain ASCII) */
@@ -170,23 +170,23 @@
 		return U_SPECIAL;
 	}
-	
+
 	if (*offset + cbytes > size)
 		return U_SPECIAL;
-	
+
 	wchar_t ch = b0 & LO_MASK_8(b0_bits);
-	
+
 	/* Decode continuation bytes */
 	while (cbytes > 0) {
 		uint8_t b = (uint8_t) str[(*offset)++];
-		
+
 		/* Must be 10xxxxxx */
 		if ((b & 0xc0) != 0x80)
 			return U_SPECIAL;
-		
+
 		/* Shift data bits to ch */
 		ch = (ch << CONT_BITS) | (wchar_t) (b & LO_MASK_8(CONT_BITS));
 		cbytes--;
 	}
-	
+
 	return ch;
 }
@@ -211,17 +211,17 @@
 	if (*offset >= size)
 		return EOVERFLOW;
-	
+
 	if (!chr_check(ch))
 		return EINVAL;
-	
+
 	/* Unsigned version of ch (bit operations should only be done
 	   on unsigned types). */
 	uint32_t cc = (uint32_t) ch;
-	
+
 	/* Determine how many continuation bytes are needed */
-	
+
 	unsigned int b0_bits;  /* Data bits in first byte */
 	unsigned int cbytes;   /* Number of continuation bytes */
-	
+
 	if ((cc & ~LO_MASK_32(7)) == 0) {
 		b0_bits = 7;
@@ -240,9 +240,9 @@
 		return EINVAL;
 	}
-	
+
 	/* Check for available space in buffer */
 	if (*offset + cbytes >= size)
 		return EOVERFLOW;
-	
+
 	/* Encode continuation bytes */
 	unsigned int i;
@@ -251,11 +251,11 @@
 		cc = cc >> CONT_BITS;
 	}
-	
+
 	/* Encode first byte */
 	str[*offset] = (cc & LO_MASK_32(b0_bits)) | HI_MASK_8(8 - b0_bits - 1);
-	
+
 	/* Advance offset */
 	*offset += cbytes + 1;
-	
+
 	return EOK;
 }
@@ -274,8 +274,8 @@
 {
 	size_t size = 0;
-	
+
 	while (*str++ != 0)
 		size++;
-	
+
 	return size;
 }
@@ -298,12 +298,12 @@
 	size_t len = 0;
 	size_t offset = 0;
-	
+
 	while (len < max_len) {
 		if (str_decode(str, &offset, STR_NO_LIMIT) == 0)
 			break;
-		
+
 		len++;
 	}
-	
+
 	return offset;
 }
@@ -320,8 +320,8 @@
 	size_t len = 0;
 	size_t offset = 0;
-	
+
 	while (str_decode(str, &offset, STR_NO_LIMIT) != 0)
 		len++;
-	
+
 	return len;
 }
@@ -336,5 +336,5 @@
 	if (WCHAR_SIGNED_CHECK(ch >= 0) && (ch <= 127))
 		return true;
-	
+
 	return false;
 }
@@ -349,5 +349,5 @@
 	if (WCHAR_SIGNED_CHECK(ch >= 0) && (ch <= 1114111))
 		return true;
-	
+
 	return false;
 }
@@ -375,22 +375,22 @@
 	wchar_t c1 = 0;
 	wchar_t c2 = 0;
-	
+
 	size_t off1 = 0;
 	size_t off2 = 0;
-	
+
 	while (true) {
 		c1 = str_decode(s1, &off1, STR_NO_LIMIT);
 		c2 = str_decode(s2, &off2, STR_NO_LIMIT);
-		
+
 		if (c1 < c2)
 			return -1;
-		
+
 		if (c1 > c2)
 			return 1;
-		
+
 		if ((c1 == 0) || (c2 == 0))
 			break;
 	}
-	
+
 	return 0;
 }
@@ -412,5 +412,5 @@
 	size_t src_off = 0;
 	size_t dest_off = 0;
-	
+
 	wchar_t ch;
 	while ((ch = str_decode(src, &src_off, STR_NO_LIMIT)) != 0) {
@@ -418,5 +418,5 @@
 			break;
 	}
-	
+
 	dest[dest_off] = '\0';
 }
Index: boot/generic/src/vprintf.c
===================================================================
--- boot/generic/src/vprintf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ boot/generic/src/vprintf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,10 +40,10 @@
 	size_t offset = 0;
 	size_t chars = 0;
-	
+
 	while (offset < size) {
 		putchar(str_decode(str, &offset, size));
 		chars++;
 	}
-	
+
 	return chars;
 }
@@ -54,10 +54,10 @@
 	size_t chars = 0;
 	wchar_t uc;
-	
+
 	while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) {
 		putchar(uc);
 		chars++;
 	}
-	
+
 	return chars;
 }
@@ -69,7 +69,7 @@
 		NULL
 	};
-	
+
 	int ret = printf_core(fmt, &ps, ap);
-	
+
 	return ret;
 }
Index: contrib/arch/hadlbppp.py
===================================================================
--- contrib/arch/hadlbppp.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ contrib/arch/hadlbppp.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,5 +41,5 @@
 def usage(prname):
 	"Print usage syntax"
-	
+
 	print("%s <--bp|--ebp|--adl|--dot|--nop>+ <OUTPUT>" % prname)
 	print()
@@ -53,29 +53,29 @@
 def tabs(cnt):
 	"Return given number of tabs"
-	
+
 	return ("\t" * cnt)
 
 def cond_append(tokens, token, trim):
 	"Conditionally append token to tokens with trim"
-	
+
 	if (trim):
 		token = token.strip(" \t")
-	
+
 	if (token != ""):
 		tokens.append(token)
-	
+
 	return tokens
 
 def split_tokens(string, delimiters, trim = False, separate = False):
 	"Split string to tokens by delimiters, keep the delimiters"
-	
+
 	tokens = []
 	last = 0
 	i = 0
-	
+
 	while (i < len(string)):
 		for delim in delimiters:
 			if (len(delim) > 0):
-				
+
 				if (string[i:(i + len(delim))] == delim):
 					if (separate):
@@ -86,20 +86,20 @@
 						tokens = cond_append(tokens, string[last:i], trim)
 						last = i
-					
+
 					i += len(delim) - 1
 					break
-		
+
 		i += 1
-	
+
 	tokens = cond_append(tokens, string[last:len(string)], trim)
-	
+
 	return tokens
 
 def identifier(token):
 	"Check whether the token is an identifier"
-	
+
 	if (len(token) == 0):
 		return False
-	
+
 	for i, char in enumerate(token):
 		if (i == 0):
@@ -109,34 +109,34 @@
 			if ((not char.isalnum()) and (char != "_")):
 				return False
-	
+
 	return True
 
 def descriptor(token):
 	"Check whether the token is an interface descriptor"
-	
+
 	parts = token.split(":")
 	if (len(parts) != 2):
 		return False
-	
+
 	return (identifier(parts[0]) and identifier(parts[1]))
 
 def word(token):
 	"Check whether the token is a word"
-	
+
 	if (len(token) == 0):
 		return False
-	
+
 	for i, char in enumerate(token):
 		if ((not char.isalnum()) and (char != "_") and (char != ".")):
 			return False
-	
+
 	return True
 
 def tentative_bp(name, tokens):
 	"Preprocess tentative statements in Behavior Protocol"
-	
+
 	result = []
 	i = 0
-	
+
 	while (i < len(tokens)):
 		if (tokens[i] == "tentative"):
@@ -145,5 +145,5 @@
 				start = i
 				level = 1
-				
+
 				while ((i < len(tokens)) and (level > 0)):
 					if (tokens[i] == "{"):
@@ -151,7 +151,7 @@
 					elif (tokens[i] == "}"):
 						level -= 1
-					
+
 					i += 1
-				
+
 				if (level == 0):
 					result.append("(")
@@ -168,15 +168,15 @@
 		else:
 			result.append(tokens[i])
-		
+
 		i += 1
-	
+
 	return result
 
 def alternative_bp(name, tokens):
 	"Preprocess alternative statements in Behavior Protocol"
-	
+
 	result = []
 	i = 0
-	
+
 	while (i < len(tokens)):
 		if (tokens[i] == "alternative"):
@@ -184,5 +184,5 @@
 				i += 2
 				reps = []
-				
+
 				while ((i < len(tokens)) and (tokens[i] != ")")):
 					reps.append(tokens[i])
@@ -191,12 +191,12 @@
 					else:
 						i += 1
-				
+
 				if (len(reps) >= 2):
 					if ((i + 1 < len(tokens)) and (tokens[i + 1] == "{")):
 						i += 2
-						
+
 						start = i
 						level = 1
-						
+
 						while ((i < len(tokens)) and (level > 0)):
 							if (tokens[i] == "{"):
@@ -204,10 +204,10 @@
 							elif (tokens[i] == "}"):
 								level -= 1
-							
+
 							i += 1
-						
+
 						if (level == 0):
 							first = True
-							
+
 							for rep in reps[1:]:
 								retokens = []
@@ -218,14 +218,14 @@
 									else:
 										retokens.append(token)
-								
+
 								if (first):
 									first = False
 								else:
 									result.append("+")
-								
+
 								result.append("(")
 								result.extend(alternative_bp(name, retokens))
 								result.append(")")
-							
+
 							if (i < len(tokens)):
 								result.append(tokens[i])
@@ -240,28 +240,28 @@
 		else:
 			result.append(tokens[i])
-		
+
 		i += 1
-	
+
 	return result
 
 def split_bp(protocol):
 	"Convert Behavior Protocol to tokens"
-	
+
 	return split_tokens(protocol, ["\n", " ", "\t", "(", ")", "{", "}", "*", ";", "+", "||", "|", "!", "?"], True, True)
 
 def extend_bp(name, tokens, iface):
 	"Convert interface Behavior Protocol to generic protocol"
-	
+
 	result = []
 	i = 0
-	
+
 	while (i < len(tokens)):
 		result.append(tokens[i])
-		
+
 		if (tokens[i] == "?"):
 			if (i + 1 < len(tokens)):
 				i += 1
 				parts = tokens[i].split(".")
-				
+
 				if (len(parts) == 1):
 					result.append("%s.%s" % (iface, tokens[i]))
@@ -270,17 +270,17 @@
 			else:
 				print("%s: Unexpected end of protocol" % name)
-		
+
 		i += 1
-	
+
 	return result
 
 def merge_bp(initialization, finalization, protocols):
 	"Merge several Behavior Protocols"
-	
+
 	indep = []
-	
+
 	if (len(protocols) > 1):
 		first = True
-		
+
 		for protocol in protocols:
 			if (first):
@@ -288,5 +288,5 @@
 			else:
 				indep.append("|")
-			
+
 			indep.append("(")
 			indep.extend(protocol)
@@ -294,7 +294,7 @@
 	elif (len(protocols) == 1):
 		indep = protocols[0]
-	
+
 	inited = []
-	
+
 	if (initialization != None):
 		if (len(indep) > 0):
@@ -310,7 +310,7 @@
 	else:
 		inited = indep
-	
+
 	finited = []
-	
+
 	if (finalization != None):
 		if (len(inited) > 0):
@@ -326,20 +326,20 @@
 	else:
 		finited = inited
-	
+
 	return finited
 
 def parse_bp(name, tokens, base_indent):
 	"Parse Behavior Protocol"
-	
+
 	tokens = tentative_bp(name, tokens)
 	tokens = alternative_bp(name, tokens)
-	
+
 	indent = base_indent
 	output = ""
-	
+
 	for token in tokens:
 		if (token == "\n"):
 			continue
-		
+
 		if ((token == ";") or (token == "+") or (token == "||") or (token == "|")):
 			output += " %s" % token
@@ -350,5 +350,5 @@
 			if (indent < base_indent):
 				print("%s: Too many parentheses" % name)
-			
+
 			indent -= 1
 			output += "\n%s%s" % (tabs(indent), token)
@@ -359,5 +359,5 @@
 			if (indent < base_indent):
 				print("%s: Too many parentheses" % name)
-			
+
 			indent -= 1
 			output += "\n%s%s" % (tabs(indent), token)
@@ -368,34 +368,34 @@
 		else:
 			output += "%s" % token
-	
+
 	if (indent > base_indent):
 		print("%s: Missing parentheses" % name)
-	
+
 	output = output.strip()
 	if (output == ""):
 		return "NULL"
-	
+
 	return output
 
 def parse_ebp(component, name, tokens, base_indent):
 	"Parse Behavior Protocol and generate Extended Behavior Protocol output"
-	
+
 	return "component %s {\n\tbehavior {\n\t\t%s\n\t}\n}" % (component, parse_bp(name, tokens, base_indent + 2))
 
 def get_iface(name):
 	"Get interface by name"
-	
+
 	global iface_properties
-	
+
 	if (name in iface_properties):
 		return iface_properties[name]
-	
+
 	return None
 
 def inherited_protocols(iface):
 	"Get protocols inherited by an interface"
-	
+
 	result = []
-	
+
 	if ('extends' in iface):
 		supiface = get_iface(iface['extends'])
@@ -406,37 +406,37 @@
 		else:
 			print("%s: Extends unknown interface '%s'" % (iface['name'], iface['extends']))
-	
+
 	return result
 
 def dump_frame(directed_binds, frame, outdir, var, archf):
 	"Dump Behavior Protocol of a given frame"
-	
+
 	global opt_bp
 	global opt_ebp
-	
+
 	if (opt_ebp):
 		fname = "%s.ebp" % frame['name']
 	else:
 		fname = "%s.bp" % frame['name']
-	
+
 	if (archf != None):
 		archf.write("instantiate %s from \"%s\"\n" % (var, fname))
-	
+
 	outname = os.path.join(outdir, fname)
-	
+
 	protocols = []
 	if ('protocol' in frame):
 		protocols.append(frame['protocol'])
-	
+
 	if ('initialization' in frame):
 		initialization = frame['initialization']
 	else:
 		initialization = None
-	
+
 	if ('finalization' in frame):
 		finalization = frame['finalization']
 	else:
 		finalization = None
-	
+
 	if ('provides' in frame):
 		for provides in frame['provides']:
@@ -448,10 +448,10 @@
 				else:
 					cnt = 1
-				
+
 				if ('protocol' in iface):
 					proto = extend_bp(outname, iface['protocol'], iface['name'])
 					for _ in range(0, cnt):
 						protocols.append(proto)
-				
+
 				for protocol in inherited_protocols(iface):
 					proto = extend_bp(outname, protocol, iface['name'])
@@ -460,10 +460,10 @@
 			else:
 				print("%s: Provided interface '%s' is undefined" % (frame['name'], provides['iface']))
-	
+
 	if (opt_bp):
 		outf = open(outname, "w")
 		outf.write(parse_bp(outname, merge_bp(initialization, finalization, protocols), 0))
 		outf.close()
-	
+
 	if (opt_ebp):
 		outf = open(outname, "w")
@@ -473,49 +473,49 @@
 def get_system_arch():
 	"Get system architecture"
-	
+
 	global arch_properties
-	
+
 	for arch, properties in arch_properties.items():
 		if ('system' in properties):
 			return properties
-	
+
 	return None
 
 def get_arch(name):
 	"Get architecture by name"
-	
+
 	global arch_properties
-	
+
 	if (name in arch_properties):
 		return arch_properties[name]
-	
+
 	return None
 
 def get_frame(name):
 	"Get frame by name"
-	
+
 	global frame_properties
-	
+
 	if (name in frame_properties):
 		return frame_properties[name]
-	
+
 	return None
 
 def create_null_bp(fname, outdir, archf):
 	"Create null frame protocol"
-	
+
 	global opt_bp
 	global opt_ebp
-	
+
 	if (archf != None):
 		archf.write("frame \"%s\"\n" % fname)
-	
+
 	outname = os.path.join(outdir, fname)
-	
+
 	if (opt_bp):
 		outf = open(outname, "w")
 		outf.write("NULL")
 		outf.close()
-	
+
 	if (opt_ebp):
 		outf = open(outname, "w")
@@ -525,26 +525,26 @@
 def flatten_binds(binds, delegates, subsumes):
 	"Remove bindings which are replaced by delegation or subsumption"
-	
+
 	result = []
 	stable = True
-	
+
 	for bind in binds:
 		keep = True
-		
+
 		for delegate in delegates:
 			if (bind['to'] == delegate['to']):
 				keep = False
 				result.append({'from': bind['from'], 'to': delegate['rep']})
-		
+
 		for subsume in subsumes:
 			if (bind['from'] == subsume['from']):
 				keep = False
 				result.append({'from': subsume['rep'], 'to': bind['to']})
-		
+
 		if (keep):
 			result.append(bind)
 		else:
 			stable = False
-	
+
 	if (stable):
 		return result
@@ -554,23 +554,23 @@
 def direct_binds(binds):
 	"Convert bindings matrix to set of sources by destination"
-	
+
 	result = {}
-	
+
 	for bind in binds:
 		if (not bind['to'] in result):
 			result[bind['to']] = set()
-		
+
 		result[bind['to']].add(bind['from'])
-	
+
 	return result
 
 def merge_arch(prefix, arch, outdir):
 	"Merge subarchitecture into architecture"
-	
+
 	insts = []
 	binds = []
 	delegates = []
 	subsumes = []
-	
+
 	if ('inst' in arch):
 		for inst in arch['inst']:
@@ -588,36 +588,36 @@
 				else:
 					print("%s: '%s' is neither an architecture nor a frame" % (arch['name'], inst['type']))
-	
+
 	if ('bind' in arch):
 		for bind in arch['bind']:
 			binds.append({'from': "%s_%s.%s" % (prefix, bind['from'][0], bind['from'][1]), 'to': "%s_%s.%s" % (prefix, bind['to'][0], bind['to'][1])})
-	
+
 	if ('delegate' in arch):
 		for delegate in arch['delegate']:
 			delegates.append({'to': "%s.%s" % (prefix, delegate['from']), 'rep': "%s_%s.%s" % (prefix, delegate['to'][0], delegate['to'][1])})
-	
+
 	if ('subsume' in arch):
 		for subsume in arch['subsume']:
 			subsumes.append({'from': "%s.%s" % (prefix, subsume['to']), 'rep': "%s_%s.%s" % (prefix, subsume['from'][0], subsume['from'][1])})
-	
+
 	return (insts, binds, delegates, subsumes)
 
 def dump_archbp(outdir):
 	"Dump system architecture Behavior Protocol"
-	
+
 	global opt_bp
 	global opt_ebp
-	
+
 	arch = get_system_arch()
-	
+
 	if (arch is None):
 		print("Unable to find system architecture")
 		return
-	
+
 	insts = []
 	binds = []
 	delegates = []
 	subsumes = []
-	
+
 	if ('inst' in arch):
 		for inst in arch['inst']:
@@ -635,21 +635,21 @@
 				else:
 					print("%s: '%s' is neither an architecture nor a frame" % (arch['name'], inst['type']))
-	
+
 	if ('bind' in arch):
 		for bind in arch['bind']:
 			binds.append({'from': "%s.%s" % (bind['from'][0], bind['from'][1]), 'to': "%s.%s" % (bind['to'][0], bind['to'][1])})
-	
+
 	if ('delegate' in arch):
 		for delegate in arch['delegate']:
 			print("Unable to delegate interface in system architecture")
 			break
-	
+
 	if ('subsume' in arch):
 		for subsume in arch['subsume']:
 			print("Unable to subsume interface in system architecture")
 			break
-	
+
 	directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes))
-	
+
 	outname = os.path.join(outdir, "%s.archbp" % arch['name'])
 	if ((opt_bp) or (opt_ebp)):
@@ -657,14 +657,14 @@
 	else:
 		outf = None
-	
+
 	create_null_bp("null.bp", outdir, outf)
-	
+
 	for inst in insts:
 		dump_frame(directed_binds, inst['frame'], outdir, inst['var'], outf)
-	
+
 	for dst, src in directed_binds.items():
 		if (outf != None):
 			outf.write("bind %s to %s\n" % (", ".join(src), dst))
-	
+
 	if (outf != None):
 		outf.close()
@@ -672,10 +672,10 @@
 def preproc_adl(raw, inarg):
 	"Preprocess %% statements in ADL"
-	
+
 	return raw.replace("%%", inarg)
 
 def parse_adl(base, root, inname, nested, indent):
 	"Parse Architecture Description Language"
-	
+
 	global output
 	global context
@@ -686,19 +686,19 @@
 	global initialization
 	global finalization
-	
+
 	global iface_properties
 	global frame_properties
 	global arch_properties
-	
+
 	global arg0
-	
+
 	if (nested):
 		parts = inname.split("%")
-		
+
 		if (len(parts) > 1):
 			inarg = parts[1]
 		else:
 			inarg = "%%"
-		
+
 		if (parts[0][0:1] == "/"):
 			path = os.path.join(base, ".%s" % parts[0])
@@ -707,5 +707,5 @@
 			path = os.path.join(root, parts[0])
 			nested_root = root
-		
+
 		if (not os.path.isfile(path)):
 			print("%s: Unable to include file %s" % (inname, path))
@@ -715,14 +715,14 @@
 		path = inname
 		nested_root = root
-	
+
 	inf = open(path, "r")
-	
+
 	raw = preproc_adl(inf.read(), inarg)
 	tokens = split_tokens(raw, ["\n", " ", "\t", "(", ")", "{", "}", "[", "]", "/*", "*/", "#", ";"], True, True)
-	
+
 	for token in tokens:
-		
+
 		# Includes
-		
+
 		if (INC in context):
 			context.remove(INC)
@@ -730,45 +730,45 @@
 			context.add(POST_INC)
 			continue
-		
+
 		if (POST_INC in context):
 			if (token != "]"):
 				print("%s: Expected ]" % inname)
-			
+
 			context.remove(POST_INC)
 			continue
-		
+
 		# Comments and newlines
-		
+
 		if (BLOCK_COMMENT in context):
 			if (token == "*/"):
 				context.remove(BLOCK_COMMENT)
-			
+
 			continue
-		
+
 		if (LINE_COMMENT in context):
 			if (token == "\n"):
 				context.remove(LINE_COMMENT)
-			
+
 			continue
-		
+
 		# Any context
-		
+
 		if (token == "/*"):
 			context.add(BLOCK_COMMENT)
 			continue
-		
+
 		if (token == "#"):
 			context.add(LINE_COMMENT)
 			continue
-		
+
 		if (token == "["):
 			context.add(INC)
 			continue
-		
+
 		if (token == "\n"):
 			continue
-		
+
 		# "frame"
-		
+
 		if (FRAME in context):
 			if (NULL in context):
@@ -777,10 +777,10 @@
 				else:
 					output += "%s\n" % token
-				
+
 				context.remove(NULL)
 				context.remove(FRAME)
 				frame = None
 				continue
-			
+
 			if (BODY in context):
 				if (FINALIZATION in context):
@@ -789,20 +789,20 @@
 					elif (token == "}"):
 						indent -= 1
-					
+
 					if (((token[-1] == ":") and (indent == 0)) or (indent == -1)):
 						bp = split_bp(finalization)
 						finalization = None
-						
+
 						if (not frame in frame_properties):
 							frame_properties[frame] = {}
-						
+
 						if ('finalization' in frame_properties[frame]):
 							print("%s: Finalization protocol for frame '%s' already defined" % (inname, frame))
 						else:
 							frame_properties[frame]['finalization'] = bp
-						
+
 						output += "\n%s" % tabs(2)
 						output += parse_bp(inname, bp, 2)
-						
+
 						context.remove(FINALIZATION)
 						if (indent == -1):
@@ -817,5 +817,5 @@
 						finalization += token
 						continue
-				
+
 				if (INITIALIZATION in context):
 					if (token == "{"):
@@ -823,20 +823,20 @@
 					elif (token == "}"):
 						indent -= 1
-					
+
 					if (((token[-1] == ":") and (indent == 0)) or (indent == -1)):
 						bp = split_bp(initialization)
 						initialization = None
-						
+
 						if (not frame in frame_properties):
 							frame_properties[frame] = {}
-						
+
 						if ('initialization' in frame_properties[frame]):
 							print("%s: Initialization protocol for frame '%s' already defined" % (inname, frame))
 						else:
 							frame_properties[frame]['initialization'] = bp
-						
+
 						output += "\n%s" % tabs(2)
 						output += parse_bp(inname, bp, 2)
-						
+
 						context.remove(INITIALIZATION)
 						if (indent == -1):
@@ -851,5 +851,5 @@
 						initialization += token
 						continue
-				
+
 				if (PROTOCOL in context):
 					if (token == "{"):
@@ -857,20 +857,20 @@
 					elif (token == "}"):
 						indent -= 1
-					
+
 					if (((token[-1] == ":") and (indent == 0)) or (indent == -1)):
 						bp = split_bp(protocol)
 						protocol = None
-						
+
 						if (not frame in frame_properties):
 							frame_properties[frame] = {}
-						
+
 						if ('protocol' in frame_properties[frame]):
 							print("%s: Protocol for frame '%s' already defined" % (inname, frame))
 						else:
 							frame_properties[frame]['protocol'] = bp
-						
+
 						output += "\n%s" % tabs(2)
 						output += parse_bp(inname, bp, 2)
-						
+
 						context.remove(PROTOCOL)
 						if (indent == -1):
@@ -885,5 +885,5 @@
 						protocol += token
 						continue
-				
+
 				if (REQUIRES in context):
 					if (FIN in context):
@@ -892,8 +892,8 @@
 						else:
 							output += "%s" % token
-						
+
 						context.remove(FIN)
 						continue
-					
+
 					if (VAR in context):
 						if (not identifier(token)):
@@ -902,17 +902,17 @@
 							if (not frame in frame_properties):
 								frame_properties[frame] = {}
-							
+
 							if (not 'requires' in frame_properties[frame]):
 								frame_properties[frame]['requires'] = []
-							
+
 							frame_properties[frame]['requires'].append({'iface': arg0, 'var': token})
 							arg0 = None
-							
+
 							output += "%s" % token
-						
+
 						context.remove(VAR)
 						context.add(FIN)
 						continue
-					
+
 					if ((token == "}") or (token[-1] == ":")):
 						context.remove(REQUIRES)
@@ -923,8 +923,8 @@
 							arg0 = token
 							output += "\n%s%s " % (tabs(indent), token)
-						
+
 						context.add(VAR)
 						continue
-				
+
 				if (PROVIDES in context):
 					if (FIN in context):
@@ -933,8 +933,8 @@
 						else:
 							output += "%s" % token
-						
+
 						context.remove(FIN)
 						continue
-					
+
 					if (VAR in context):
 						if (not identifier(token)):
@@ -943,17 +943,17 @@
 							if (not frame in frame_properties):
 								frame_properties[frame] = {}
-							
+
 							if (not 'provides' in frame_properties[frame]):
 								frame_properties[frame]['provides'] = []
-							
+
 							frame_properties[frame]['provides'].append({'iface': arg0, 'var': token})
 							arg0 = None
-							
+
 							output += "%s" % token
-						
+
 						context.remove(VAR)
 						context.add(FIN)
 						continue
-					
+
 					if ((token == "}") or (token[-1] == ":")):
 						context.remove(PROVIDES)
@@ -964,8 +964,8 @@
 							arg0 = token
 							output += "\n%s%s " % (tabs(indent), token)
-						
+
 						context.add(VAR)
 						continue
-				
+
 				if (token == "}"):
 					if (indent != 2):
@@ -974,19 +974,19 @@
 						indent = 0
 						output += "\n%s" % token
-					
+
 					context.remove(BODY)
 					context.add(NULL)
 					continue
-				
+
 				if (token == "provides:"):
 					output += "\n%s%s" % (tabs(indent - 1), token)
 					context.add(PROVIDES)
 					continue
-				
+
 				if (token == "requires:"):
 					output += "\n%s%s" % (tabs(indent - 1), token)
 					context.add(REQUIRES)
 					continue
-				
+
 				if (token == "initialization:"):
 					output += "\n%s%s" % (tabs(indent - 1), token)
@@ -995,5 +995,5 @@
 					initialization = ""
 					continue
-				
+
 				if (token == "finalization:"):
 					output += "\n%s%s" % (tabs(indent - 1), token)
@@ -1002,5 +1002,5 @@
 					finalization = ""
 					continue
-				
+
 				if (token == "protocol:"):
 					output += "\n%s%s" % (tabs(indent - 1), token)
@@ -1009,8 +1009,8 @@
 					protocol = ""
 					continue
-				
+
 				print("%s: Unknown token '%s' in frame '%s'" % (inname, token, frame))
 				continue
-			
+
 			if (HEAD in context):
 				if (token == "{"):
@@ -1020,5 +1020,5 @@
 					context.add(BODY)
 					continue
-				
+
 				if (token == ";"):
 					output += "%s\n" % token
@@ -1026,9 +1026,9 @@
 					context.remove(FRAME)
 					continue
-				
+
 				print("%s: Unknown token '%s' in frame head '%s'" % (inname, token, frame))
-				
+
 				continue
-			
+
 			if (not identifier(token)):
 				print("%s: Expected frame name" % inname)
@@ -1036,15 +1036,15 @@
 				frame = token
 				output += "%s " % token
-				
+
 				if (not frame in frame_properties):
 					frame_properties[frame] = {}
-				
+
 				frame_properties[frame]['name'] = frame
-			
+
 			context.add(HEAD)
 			continue
-		
+
 		# "interface"
-		
+
 		if (IFACE in context):
 			if (NULL in context):
@@ -1053,10 +1053,10 @@
 				else:
 					output += "%s\n" % token
-				
+
 				context.remove(NULL)
 				context.remove(IFACE)
 				interface = None
 				continue
-			
+
 			if (BODY in context):
 				if (PROTOCOL in context):
@@ -1065,22 +1065,22 @@
 					elif (token == "}"):
 						indent -= 1
-					
+
 					if (indent == -1):
 						bp = split_bp(protocol)
 						protocol = None
-						
+
 						if (not interface in iface_properties):
 							iface_properties[interface] = {}
-						
+
 						if ('protocol' in iface_properties[interface]):
 							print("%s: Protocol for interface '%s' already defined" % (inname, interface))
 						else:
 							iface_properties[interface]['protocol'] = bp
-						
+
 						output += "\n%s" % tabs(2)
 						output += parse_bp(inname, bp, 2)
 						output += "\n%s" % token
 						indent = 0
-						
+
 						context.remove(PROTOCOL)
 						context.remove(BODY)
@@ -1088,7 +1088,7 @@
 					else:
 						protocol += token
-					
-					continue
-				
+
+					continue
+
 				if (PROTOTYPE in context):
 					if (FIN in context):
@@ -1097,9 +1097,9 @@
 						else:
 							output += "%s" % token
-						
+
 						context.remove(FIN)
 						context.remove(PROTOTYPE)
 						continue
-					
+
 					if (PAR_RIGHT in context):
 						if (token == ")"):
@@ -1109,7 +1109,7 @@
 						else:
 							output += " %s" % token
-						
-						continue
-					
+
+						continue
+
 					if (SIGNATURE in context):
 						output += "%s" % token
@@ -1117,9 +1117,9 @@
 							context.remove(SIGNATURE)
 							context.add(FIN)
-						
+
 						context.remove(SIGNATURE)
 						context.add(PAR_RIGHT)
 						continue
-					
+
 					if (PAR_LEFT in context):
 						if (token != "("):
@@ -1127,17 +1127,17 @@
 						else:
 							output += "%s" % token
-						
+
 						context.remove(PAR_LEFT)
 						context.add(SIGNATURE)
 						continue
-					
+
 					if (not identifier(token)):
 						print("%s: Method identifier expected in interface '%s'" % (inname, interface))
 					else:
 						output += "%s" % token
-					
+
 					context.add(PAR_LEFT)
 					continue
-				
+
 				if (token == "}"):
 					if (indent != 2):
@@ -1146,14 +1146,14 @@
 						indent = 0
 						output += "\n%s" % token
-					
+
 					context.remove(BODY)
 					context.add(NULL)
 					continue
-				
+
 				if (token == "sysarg_t"):
 					output += "\n%s%s " % (tabs(indent), token)
 					context.add(PROTOTYPE)
 					continue
-				
+
 				if (token == "protocol:"):
 					output += "\n%s%s" % (tabs(indent - 1), token)
@@ -1162,8 +1162,8 @@
 					protocol = ""
 					continue
-				
+
 				print("%s: Unknown token '%s' in interface '%s'" % (inname, token, interface))
 				continue
-			
+
 			if (HEAD in context):
 				if (PRE_BODY in context):
@@ -1175,5 +1175,5 @@
 						context.add(BODY)
 						continue
-					
+
 					if (token == ";"):
 						output += "%s\n" % token
@@ -1182,8 +1182,8 @@
 						context.remove(IFACE)
 						continue
-						
+
 					print("%s: Expected '{' or ';' in interface head '%s'" % (inname, interface))
 					continue
-				
+
 				if (EXTENDS in context):
 					if (not identifier(token)):
@@ -1193,16 +1193,16 @@
 						if (not interface in iface_properties):
 							iface_properties[interface] = {}
-						
+
 						iface_properties[interface]['extends'] = token
-					
+
 					context.remove(EXTENDS)
 					context.add(PRE_BODY)
 					continue
-				
+
 				if (token == "extends"):
 					output += "%s " % token
 					context.add(EXTENDS)
 					continue
-					
+
 				if (token == "{"):
 					output += "%s" % token
@@ -1211,5 +1211,5 @@
 					context.add(BODY)
 					continue
-				
+
 				if (token == ";"):
 					output += "%s\n" % token
@@ -1217,8 +1217,8 @@
 					context.remove(IFACE)
 					continue
-				
+
 				print("%s: Expected 'extends', '{' or ';' in interface head '%s'" % (inname, interface))
 				continue
-			
+
 			if (not identifier(token)):
 				print("%s: Expected interface name" % inname)
@@ -1226,15 +1226,15 @@
 				interface = token
 				output += "%s " % token
-				
+
 				if (not interface in iface_properties):
 					iface_properties[interface] = {}
-				
+
 				iface_properties[interface]['name'] = interface
-			
+
 			context.add(HEAD)
 			continue
-		
+
 		# "architecture"
-		
+
 		if (ARCH in context):
 			if (NULL in context):
@@ -1243,5 +1243,5 @@
 				else:
 					output += "%s\n" % token
-				
+
 				context.remove(NULL)
 				context.remove(ARCH)
@@ -1249,5 +1249,5 @@
 				architecture = None
 				continue
-			
+
 			if (BODY in context):
 				if (DELEGATE in context):
@@ -1257,9 +1257,9 @@
 						else:
 							output += "%s" % token
-						
+
 						context.remove(FIN)
 						context.remove(DELEGATE)
 						continue
-					
+
 					if (VAR in context):
 						if (not descriptor(token)):
@@ -1268,17 +1268,17 @@
 							if (not architecture in arch_properties):
 								arch_properties[architecture] = {}
-							
+
 							if (not 'delegate' in arch_properties[architecture]):
 								arch_properties[architecture]['delegate'] = []
-							
+
 							arch_properties[architecture]['delegate'].append({'from': arg0, 'to': token.split(":")})
 							arg0 = None
-							
+
 							output += "%s" % token
-						
+
 						context.add(FIN)
 						context.remove(VAR)
 						continue
-					
+
 					if (TO in context):
 						if (token != "to"):
@@ -1286,9 +1286,9 @@
 						else:
 							output += "%s " % token
-						
+
 						context.add(VAR)
 						context.remove(TO)
 						continue
-					
+
 					if (not identifier(token)):
 						print("%s: Expected interface name in architecture '%s'" % (inname, architecture))
@@ -1296,8 +1296,8 @@
 						output += "%s " % token
 						arg0 = token
-					
+
 					context.add(TO)
 					continue
-				
+
 				if (SUBSUME in context):
 					if (FIN in context):
@@ -1306,9 +1306,9 @@
 						else:
 							output += "%s" % token
-						
+
 						context.remove(FIN)
 						context.remove(SUBSUME)
 						continue
-					
+
 					if (VAR in context):
 						if (not identifier(token)):
@@ -1317,17 +1317,17 @@
 							if (not architecture in arch_properties):
 								arch_properties[architecture] = {}
-							
+
 							if (not 'subsume' in arch_properties[architecture]):
 								arch_properties[architecture]['subsume'] = []
-							
+
 							arch_properties[architecture]['subsume'].append({'from': arg0.split(":"), 'to': token})
 							arg0 = None
-							
+
 							output += "%s" % token
-						
+
 						context.add(FIN)
 						context.remove(VAR)
 						continue
-					
+
 					if (TO in context):
 						if (token != "to"):
@@ -1335,9 +1335,9 @@
 						else:
 							output += "%s " % token
-						
+
 						context.add(VAR)
 						context.remove(TO)
 						continue
-					
+
 					if (not descriptor(token)):
 						print("%s: Expected interface descriptor in architecture '%s'" % (inname, architecture))
@@ -1345,8 +1345,8 @@
 						output += "%s " % token
 						arg0 = token
-					
+
 					context.add(TO)
 					continue
-				
+
 				if (BIND in context):
 					if (FIN in context):
@@ -1355,9 +1355,9 @@
 						else:
 							output += "%s" % token
-						
+
 						context.remove(FIN)
 						context.remove(BIND)
 						continue
-					
+
 					if (VAR in context):
 						if (not descriptor(token)):
@@ -1366,17 +1366,17 @@
 							if (not architecture in arch_properties):
 								arch_properties[architecture] = {}
-							
+
 							if (not 'bind' in arch_properties[architecture]):
 								arch_properties[architecture]['bind'] = []
-							
+
 							arch_properties[architecture]['bind'].append({'from': arg0.split(":"), 'to': token.split(":")})
 							arg0 = None
-							
+
 							output += "%s" % token
-						
+
 						context.add(FIN)
 						context.remove(VAR)
 						continue
-					
+
 					if (TO in context):
 						if (token != "to"):
@@ -1384,9 +1384,9 @@
 						else:
 							output += "%s " % token
-						
+
 						context.add(VAR)
 						context.remove(TO)
 						continue
-					
+
 					if (not descriptor(token)):
 						print("%s: Expected interface descriptor in architecture '%s'" % (inname, architecture))
@@ -1394,8 +1394,8 @@
 						output += "%s " % token
 						arg0 = token
-					
+
 					context.add(TO)
 					continue
-				
+
 				if (INST in context):
 					if (FIN in context):
@@ -1404,9 +1404,9 @@
 						else:
 							output += "%s" % token
-						
+
 						context.remove(FIN)
 						context.remove(INST)
 						continue
-					
+
 					if (VAR in context):
 						if (not identifier(token)):
@@ -1415,17 +1415,17 @@
 							if (not architecture in arch_properties):
 								arch_properties[architecture] = {}
-							
+
 							if (not 'inst' in arch_properties[architecture]):
 								arch_properties[architecture]['inst'] = []
-							
+
 							arch_properties[architecture]['inst'].append({'type': arg0, 'var': token})
 							arg0 = None
-							
+
 							output += "%s" % token
-						
+
 						context.add(FIN)
 						context.remove(VAR)
 						continue
-					
+
 					if (not identifier(token)):
 						print("%s: Expected frame/architecture type in architecture '%s'" % (inname, architecture))
@@ -1433,8 +1433,8 @@
 						output += "%s " % token
 						arg0 = token
-					
+
 					context.add(VAR)
 					continue
-				
+
 				if (token == "}"):
 					if (indent != 1):
@@ -1443,32 +1443,32 @@
 						indent -= 1
 						output += "\n%s" % token
-					
+
 					context.remove(BODY)
 					context.add(NULL)
 					continue
-				
+
 				if (token == "inst"):
 					output += "\n%s%s " % (tabs(indent), token)
 					context.add(INST)
 					continue
-				
+
 				if (token == "bind"):
 					output += "\n%s%s " % (tabs(indent), token)
 					context.add(BIND)
 					continue
-				
+
 				if (token == "subsume"):
 					output += "\n%s%s " % (tabs(indent), token)
 					context.add(SUBSUME)
 					continue
-				
+
 				if (token == "delegate"):
 					output += "\n%s%s " % (tabs(indent), token)
 					context.add(DELEGATE)
 					continue
-				
+
 				print("%s: Unknown token '%s' in architecture '%s'" % (inname, token, architecture))
 				continue
-			
+
 			if (HEAD in context):
 				if (token == "{"):
@@ -1478,5 +1478,5 @@
 					context.add(BODY)
 					continue
-				
+
 				if (token == ";"):
 					output += "%s\n" % token
@@ -1485,12 +1485,12 @@
 					context.discard(SYSTEM)
 					continue
-				
+
 				if (not word(token)):
 					print("%s: Expected word in architecture head '%s'" % (inname, architecture))
 				else:
 					output += "%s " % token
-				
+
 				continue
-			
+
 			if (not identifier(token)):
 				print("%s: Expected architecture name" % inname)
@@ -1498,18 +1498,18 @@
 				architecture = token
 				output += "%s " % token
-				
+
 				if (not architecture in arch_properties):
 					arch_properties[architecture] = {}
-				
+
 				arch_properties[architecture]['name'] = architecture
-				
+
 				if (SYSTEM in context):
 					arch_properties[architecture]['system'] = True
-			
+
 			context.add(HEAD)
 			continue
-		
+
 		# "system architecture"
-		
+
 		if (SYSTEM in context):
 			if (token != "architecture"):
@@ -1517,35 +1517,35 @@
 			else:
 				output += "%s " % token
-			
+
 			context.add(ARCH)
 			continue
-		
+
 		if (token == "frame"):
 			output += "\n%s " % token
 			context.add(FRAME)
 			continue
-		
+
 		if (token == "interface"):
 			output += "\n%s " % token
 			context.add(IFACE)
 			continue
-		
+
 		if (token == "system"):
 			output += "\n%s " % token
 			context.add(SYSTEM)
 			continue
-		
+
 		if (token == "architecture"):
 			output += "\n%s " % token
 			context.add(ARCH)
 			continue
-		
+
 		print("%s: Unknown token '%s'" % (inname, token))
-	
+
 	inf.close()
 
 def open_adl(base, root, inname, outdir, outname):
 	"Open Architecture Description file"
-	
+
 	global output
 	global context
@@ -1556,9 +1556,9 @@
 	global initialization
 	global finalization
-	
+
 	global arg0
-	
+
 	global opt_adl
-	
+
 	output = ""
 	context = set()
@@ -1570,8 +1570,8 @@
 	finalization = None
 	arg0 = None
-	
+
 	parse_adl(base, root, inname, False, 0)
 	output = output.strip()
-	
+
 	if ((output != "") and (opt_adl)):
 		outf = open(outname, "w")
@@ -1581,16 +1581,16 @@
 def recursion(base, root, output, level):
 	"Recursive directory walk"
-	
+
 	for name in os.listdir(root):
 		canon = os.path.join(root, name)
-		
+
 		if (os.path.isfile(canon)):
 			fcomp = split_tokens(canon, ["."])
 			cname = canon.split("/")
-			
+
 			if (fcomp[-1] == ".adl"):
 				output_path = os.path.join(output, cname[-1])
 				open_adl(base, root, canon, output, output_path)
-		
+
 		if (os.path.isdir(canon)):
 			recursion(base, canon, output, level + 1)
@@ -1598,5 +1598,5 @@
 def merge_dot_frame(prefix, name, frame, outf, indent):
 	"Dump Dot frame"
-	
+
 	outf.write("%ssubgraph cluster_%s {\n" % (tabs(indent), prefix))
 	outf.write("%s\tlabel=\"%s\";\n" % (tabs(indent), name))
@@ -1605,11 +1605,11 @@
 	outf.write("%s\tfillcolor=yellow;\n" % tabs(indent))
 	outf.write("%s\t\n" % tabs(indent))
-	
+
 	if ('provides' in frame):
 		outf.write("%s\t%s__provides [label=\"\", shape=doublecircle, style=filled, color=green, fillcolor=yellow];\n" % (tabs(indent), prefix))
-	
+
 	if ('requires' in frame):
 		outf.write("%s\t%s__requires [label=\"\", shape=circle, style=filled, color=red, fillcolor=yellow];\n" % (tabs(indent), prefix))
-	
+
 	outf.write("%s}\n" % tabs(indent))
 	outf.write("%s\n" % tabs(indent))
@@ -1617,10 +1617,10 @@
 def merge_dot_arch(prefix, name, arch, outf, indent):
 	"Dump Dot subarchitecture"
-	
+
 	outf.write("%ssubgraph cluster_%s {\n" % (tabs(indent), prefix))
 	outf.write("%s\tlabel=\"%s\";\n" % (tabs(indent), name))
 	outf.write("%s\tcolor=red;\n" % tabs(indent))
 	outf.write("%s\t\n" % tabs(indent))
-	
+
 	if ('inst' in arch):
 		for inst in arch['inst']:
@@ -1634,5 +1634,5 @@
 				else:
 					print("%s: '%s' is neither an architecture nor a frame" % (arch['name'], inst['type']))
-	
+
 	if ('bind' in arch):
 		labels = {}
@@ -1642,28 +1642,28 @@
 			else:
 				label = bind['from'][1]
-			
+
 			if (not (bind['from'][0], bind['to'][0]) in labels):
 				labels[(bind['from'][0], bind['to'][0])] = []
-			
+
 			labels[(bind['from'][0], bind['to'][0])].append(label)
-		
+
 		for bind in arch['bind']:
 			if (not (bind['from'][0], bind['to'][0]) in labels):
 				continue
-			
+
 			attrs = []
-			
+
 			if (bind['from'][0] != bind['to'][0]):
 				attrs.append("ltail=cluster_%s_%s" % (prefix, bind['from'][0]))
 				attrs.append("lhead=cluster_%s_%s" % (prefix, bind['to'][0]))
-			
+
 			attrs.append("label=\"%s\"" % "\\n".join(labels[(bind['from'][0], bind['to'][0])]))
 			del labels[(bind['from'][0], bind['to'][0])]
-			
+
 			outf.write("%s\t%s_%s__requires -> %s_%s__provides [%s];\n" % (tabs(indent), prefix, bind['from'][0], prefix, bind['to'][0], ", ".join(attrs)))
-	
+
 	if ('delegate' in arch):
 		outf.write("%s\t%s__provides [label=\"\", shape=doublecircle, color=green];\n" % (tabs(indent), prefix))
-		
+
 		labels = {}
 		for delegate in arch['delegate']:
@@ -1672,14 +1672,14 @@
 			else:
 				label = delegate['from']
-			
+
 			if (not delegate['to'][0] in labels):
 				labels[delegate['to'][0]] = []
-			
+
 			labels[delegate['to'][0]].append(label)
-		
+
 		for delegate in arch['delegate']:
 			if (not delegate['to'][0] in labels):
 				continue
-			
+
 			attrs = []
 			attrs.append("color=gray")
@@ -1687,10 +1687,10 @@
 			attrs.append("label=\"%s\"" % "\\n".join(labels[delegate['to'][0]]))
 			del labels[delegate['to'][0]]
-			
+
 			outf.write("%s\t%s__provides -> %s_%s__provides [%s];\n" % (tabs(indent), prefix, prefix, delegate['to'][0], ", ".join(attrs)))
-	
+
 	if ('subsume' in arch):
 		outf.write("%s\t%s__requires [label=\"\", shape=circle, color=red];\n" % (tabs(indent), prefix))
-		
+
 		labels = {}
 		for subsume in arch['subsume']:
@@ -1699,14 +1699,14 @@
 			else:
 				label = subsume['to']
-			
+
 			if (not subsume['from'][0] in labels):
 				labels[subsume['from'][0]] = []
-			
+
 			labels[subsume['from'][0]].append(label)
-		
+
 		for subsume in arch['subsume']:
 			if (not subsume['from'][0] in labels):
 				continue
-			
+
 			attrs = []
 			attrs.append("color=gray")
@@ -1714,7 +1714,7 @@
 			attrs.append("label=\"%s\"" % "\\n".join(labels[subsume['from'][0]]))
 			del labels[subsume['from'][0]]
-			
+
 			outf.write("%s\t%s_%s__requires -> %s__requires [%s];\n" % (tabs(indent), prefix, subsume['from'][0], prefix, ", ".join(attrs)))
-	
+
 	outf.write("%s}\n" % tabs(indent))
 	outf.write("%s\n" % tabs(indent))
@@ -1722,17 +1722,17 @@
 def dump_dot(outdir):
 	"Dump Dot architecture"
-	
+
 	global opt_dot
-	
+
 	arch = get_system_arch()
-	
+
 	if (arch is None):
 		print("Unable to find system architecture")
 		return
-	
+
 	if (opt_dot):
 		outname = os.path.join(outdir, "%s.dot" % arch['name'])
 		outf = open(outname, "w")
-		
+
 		outf.write("digraph {\n")
 		outf.write("\tlabel=\"%s\";\n" % arch['name'])
@@ -1741,5 +1741,5 @@
 		outf.write("\tedge [fontsize=8];\n")
 		outf.write("\t\n")
-		
+
 		if ('inst' in arch):
 			for inst in arch['inst']:
@@ -1753,5 +1753,5 @@
 					else:
 						print("%s: '%s' is neither an architecture nor a frame" % (arch['name'], inst['type']))
-		
+
 		if ('bind' in arch):
 			labels = {}
@@ -1761,37 +1761,37 @@
 				else:
 					label = bind['from'][1]
-				
+
 				if (not (bind['from'][0], bind['to'][0]) in labels):
 					labels[(bind['from'][0], bind['to'][0])] = []
-				
+
 				labels[(bind['from'][0], bind['to'][0])].append(label)
-			
+
 			for bind in arch['bind']:
 				if (not (bind['from'][0], bind['to'][0]) in labels):
 					continue
-				
+
 				attrs = []
-				
+
 				if (bind['from'][0] != bind['to'][0]):
 					attrs.append("ltail=cluster_%s" % bind['from'][0])
 					attrs.append("lhead=cluster_%s" % bind['to'][0])
-				
+
 				attrs.append("label=\"%s\"" % "\\n".join(labels[(bind['from'][0], bind['to'][0])]))
 				del labels[(bind['from'][0], bind['to'][0])]
-				
+
 				outf.write("\t%s__requires -> %s__provides [%s];\n" % (bind['from'][0], bind['to'][0], ", ".join(attrs)))
-		
+
 		if ('delegate' in arch):
 			for delegate in arch['delegate']:
 				print("Unable to delegate interface in system architecture")
 				break
-		
+
 		if ('subsume' in arch):
 			for subsume in arch['subsume']:
 				print("Unable to subsume interface in system architecture")
 				break
-		
+
 		outf.write("}\n")
-		
+
 		outf.close()
 
@@ -1804,14 +1804,14 @@
 	global opt_adl
 	global opt_dot
-	
+
 	if (len(sys.argv) < 3):
 		usage(sys.argv[0])
 		return
-	
+
 	opt_bp = False
 	opt_ebp = False
 	opt_adl = False
 	opt_dot = False
-	
+
 	for arg in sys.argv[1:(len(sys.argv) - 1)]:
 		if (arg == "--bp"):
@@ -1828,18 +1828,18 @@
 			print("Error: Unknown command line option '%s'" % arg)
 			return
-	
+
 	if ((opt_bp) and (opt_ebp)):
 		print("Error: Cannot dump both original Behavior Protocols and Extended Behavior Protocols")
 		return
-	
+
 	path = os.path.abspath(sys.argv[-1])
 	if (not os.path.isdir(path)):
 		print("Error: <OUTPUT> is not a directory")
 		return
-	
+
 	iface_properties = {}
 	frame_properties = {}
 	arch_properties = {}
-	
+
 	recursion(".", ".", path, 0)
 	dump_archbp(path)
Index: contrib/qemu/build-from-scratch.sh
===================================================================
--- contrib/qemu/build-from-scratch.sh	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ contrib/qemu/build-from-scratch.sh	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -90,10 +90,10 @@
 		wget ${URL}
 	fi
-	
+
 	if [ "`md5sum ${TARBALL} | cut -f 1 -d " "`" != ${MD5} ]; then
 		echo Wrong MD5 checksum
 		exit
 	fi
-	
+
 	tar xvfj ${TARBALL}
 	cd ${SOURCEDIR}
Index: contrib/tools/gen_vga323.c
===================================================================
--- contrib/tools/gen_vga323.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ contrib/tools/gen_vga323.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,8 +36,8 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < 256; i++)
 		printf("\t.byte 0x%02x, 0x%02x, 0x%02x, 0x00\n", BLUE(i) * 9, GREEN(i) * 21, RED(i) * 9);
-	
+
 	return 0;
 }
Index: contrib/tools/random_check.sh
===================================================================
--- contrib/tools/random_check.sh	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ contrib/tools/random_check.sh	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -88,10 +88,10 @@
 	COUNTER=$(( $COUNTER + 1 ))
 	echo "Try #$COUNTER ($FAILED failed):" >&2
-	
+
 	(
 		echo "  Cleaning after previous build." >&2
 		make distclean -j$JOBS 2>&1 || exit 1
-		
-		
+
+
 		echo "  Preparing random configuration." >&2
 		# It would be nicer to allow set the constraints directly to
@@ -105,9 +105,9 @@
 				exit 2
 			fi
-			
+
 			make random-config 2>&1 || exit 1
-			
+
 			tr -d ' ' <Makefile.config >"${FILENAME_PREFIX}config.trimmed"
-			
+
 			THIS_CONFIG_OKAY=true
 			while read pattern; do
@@ -117,13 +117,13 @@
 				fi
 			done <"$PRUNE_CONFIG_FILE"
-			
+
 			rm -f "${FILENAME_PREFIX}config.trimmed"
-			
+
 			if $THIS_CONFIG_OKAY; then
 				break
 			fi
 		done
-		
-		
+
+
 		# Report basic info about the configuration and build it
 		BASIC_CONFIG=`sed -n \
@@ -134,5 +134,5 @@
 			| paste '-sd,' | sed 's#,#, #g'`
 		echo -n "  Building ($BASIC_CONFIG)... " >&2
-	
+
 		make -j$JOBS 2>&1
 		if [ $? -eq 0 ]; then
@@ -143,13 +143,13 @@
 			exit 1
 		fi
-		
+
 	) >random_run_$COUNTER.log
 	RC=$?
-	
+
 	if [ $RC -ne 0 ]; then
 		tail -n 10 random_run_$COUNTER.log | sed 's#.*#    | &#'
 		FAILED=$(( $FAILED + 1 ))
 	fi
-	
+
 	if [ -e Makefile.config ]; then
 		cp Makefile.config "$FILENAME_PREFIX$COUNTER.Makefile.config"
Index: contrib/tools/toolchain_check.sh
===================================================================
--- contrib/tools/toolchain_check.sh	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ contrib/tools/toolchain_check.sh	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,13 +38,13 @@
 	objcopy_path=`echo "$arch_path"/bin/*-objcopy`
 	gdb_path=`echo "$arch_path"/bin/*-gdb`
-	
+
 	print_version "$ld_path" "Linker not found!" || continue
-	
+
 	print_version "$objcopy_path" "objcopy not found!" || continue
-	
+
 	print_version "$gcc_path" "GCC not found!" || continue
 	check_define "$gcc_path" "__helenos__" 1 || continue
 	check_define "$gcc_path" "helenos_uarch" "$arch" || continue
-	
+
 	print_version "$gdb_path" "GDB not found!" || continue
 done
Index: kernel/arch/abs32le/include/arch/asm.h
===================================================================
--- kernel/arch/abs32le/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/abs32le/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,5 +50,5 @@
 	   low-power mode) without any possibility of exitting
 	   this function. */
-	
+
 	while (true);
 }
@@ -137,5 +137,5 @@
 	 * The return value stores the previous interrupt level.
 	 */
-	
+
 	return 0;
 }
@@ -151,5 +151,5 @@
 	 * The return value stores the previous interrupt level.
 	 */
-	
+
 	return 0;
 }
@@ -169,5 +169,5 @@
 	 * level.
 	 */
-	
+
 	return 0;
 }
@@ -179,5 +179,5 @@
 	 * disabled.
 	 */
-	
+
 	return false;
 }
@@ -192,5 +192,5 @@
 	 * address space.
 	 */
-	
+
 	return 0;
 }
Index: kernel/arch/abs32le/include/arch/atomic.h
===================================================================
--- kernel/arch/abs32le/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/abs32le/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 	/* On real hardware the increment has to be done
 	   as an atomic action. */
-	
+
 	val->count++;
 }
@@ -60,5 +60,5 @@
 	/* On real hardware the decrement has to be done
 	   as an atomic action. */
-	
+
 	val->count--;
 }
@@ -72,7 +72,7 @@
 	   value and the increment have to be done as a single
 	   atomic action. */
-	
+
 	atomic_count_t prev = val->count;
-	
+
 	val->count++;
 	return prev;
@@ -87,7 +87,7 @@
 	   value and the decrement have to be done as a single
 	   atomic action. */
-	
+
 	atomic_count_t prev = val->count;
-	
+
 	val->count--;
 	return prev;
@@ -104,5 +104,5 @@
 	   value and storing 1 have to be done as a single
 	   atomic action. */
-	
+
 	atomic_count_t prev = val->count;
 	val->count = 1;
Index: kernel/arch/abs32le/include/arch/istate.h
===================================================================
--- kernel/arch/abs32le/include/arch/istate.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/abs32le/include/arch/istate.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,5 +67,5 @@
 	/* On real hardware this checks whether the interrupted
 	   context originated from user space. */
-	
+
 	return !(istate->ip & UINT32_C(0x80000000));
 }
@@ -76,5 +76,5 @@
 {
 	/* On real hardware this sets the instruction pointer. */
-	
+
 	istate->ip = retaddr;
 }
@@ -84,5 +84,5 @@
 {
 	/* On real hardware this returns the instruction pointer. */
-	
+
 	return istate->ip;
 }
@@ -92,5 +92,5 @@
 {
 	/* On real hardware this returns the frame pointer. */
-	
+
 	return istate->fp;
 }
Index: kernel/arch/abs32le/include/arch/mm/page.h
===================================================================
--- kernel/arch/abs32le/include/arch/mm/page.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/abs32le/include/arch/mm/page.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -140,5 +140,5 @@
 	unsigned int pat : 1;
 	unsigned int global : 1;
-	
+
 	/** Valid content even if the present bit is not set. */
 	unsigned int soft_valid : 1;
@@ -151,5 +151,5 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	return (
 	    ((unsigned int) (!p->page_cache_disable) << PAGE_CACHEABLE_SHIFT) |
@@ -168,5 +168,5 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	p->page_cache_disable = !(flags & PAGE_CACHEABLE);
 	p->present = !(flags & PAGE_NOT_PRESENT);
@@ -174,5 +174,5 @@
 	p->writeable = (flags & PAGE_WRITE) != 0;
 	p->global = (flags & PAGE_GLOBAL) != 0;
-	
+
 	/*
 	 * Ensure that there is at least one bit set even if the present bit is
Index: kernel/arch/abs32le/src/abs32le.c
===================================================================
--- kernel/arch/abs32le/src/abs32le.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/abs32le/src/abs32le.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 		/* Initialize IRQ routing */
 		irq_init(0, 0);
-		
+
 		/* Merge all memory zones to 1 big zone */
 		zone_merge_all();
Index: kernel/arch/abs32le/src/userspace.c
===================================================================
--- kernel/arch/abs32le/src/userspace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/abs32le/src/userspace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,5 +43,5 @@
 	/* On real hardware this switches the CPU to user
 	   space mode and jumps to kernel_uarg->uspace_entry. */
-	
+
 	while (true);
 }
Index: kernel/arch/amd64/include/arch/asm.h
===================================================================
--- kernel/arch/amd64/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,5 +53,5 @@
 {
 	uintptr_t v;
-	
+
 	asm volatile (
 		"andq %%rsp, %[v]\n"
@@ -59,5 +59,5 @@
 		: "0" (~((uint64_t) STACK_SIZE - 1))
 	);
-	
+
 	return v;
 }
@@ -91,5 +91,5 @@
 	if (port < (ioport8_t *) IO_SPACE_BOUNDARY) {
 		uint8_t val;
-		
+
 		asm volatile (
 			"inb %w[port], %b[val]\n"
@@ -97,5 +97,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
@@ -115,5 +115,5 @@
 	if (port < (ioport16_t *) IO_SPACE_BOUNDARY) {
 		uint16_t val;
-		
+
 		asm volatile (
 			"inw %w[port], %w[val]\n"
@@ -121,5 +121,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
@@ -139,5 +139,5 @@
 	if (port < (ioport32_t *) IO_SPACE_BOUNDARY) {
 		uint32_t val;
-		
+
 		asm volatile (
 			"inl %w[port], %[val]\n"
@@ -145,5 +145,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
@@ -252,7 +252,7 @@
 {
 	ipl_t ipl = interrupts_read();
-	
+
 	asm volatile ("sti\n");
-	
+
 	return ipl;
 }
@@ -268,7 +268,7 @@
 {
 	ipl_t ipl = interrupts_read();
-	
+
 	asm volatile ("cli\n");
-	
+
 	return ipl;
 }
@@ -310,5 +310,5 @@
 {
 	uint32_t ax, dx;
-	
+
 	asm volatile (
 		"rdmsr\n"
@@ -316,5 +316,5 @@
 		: "c" (msr)
 	);
-	
+
 	return ((uint64_t) dx << 32) | ax;
 }
Index: kernel/arch/amd64/include/arch/atomic.h
===================================================================
--- kernel/arch/amd64/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -74,5 +74,5 @@
 {
 	atomic_count_t r = 1;
-	
+
 	asm volatile (
 		"lock xaddq %[r], %[count]\n"
@@ -80,5 +80,5 @@
 		  [r] "+r" (r)
 	);
-	
+
 	return r;
 }
@@ -87,5 +87,5 @@
 {
 	atomic_count_t r = -1;
-	
+
 	asm volatile (
 		"lock xaddq %[r], %[count]\n"
@@ -93,5 +93,5 @@
 		  [r] "+r" (r)
 	);
-	
+
 	return r;
 }
@@ -103,5 +103,5 @@
 {
 	atomic_count_t v = 1;
-	
+
 	asm volatile (
 		"xchgq %[v], %[count]\n"
@@ -109,5 +109,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return v;
 }
@@ -117,5 +117,5 @@
 {
 	atomic_count_t tmp;
-	
+
 	preemption_disable();
 	asm volatile (
@@ -125,5 +125,5 @@
 		"	testq %[tmp], %[tmp]\n"
 		"	jnz 0b\n"       /* lightweight looping on locked spinlock */
-		
+
 		"	incq %[tmp]\n"  /* now use the atomic operation */
 		"	xchgq %[count], %[tmp]\n"
@@ -133,5 +133,5 @@
 		  [tmp] "=&r" (tmp)
 	);
-	
+
 	/*
 	 * Prevent critical section code from bleeding out this way up.
Index: kernel/arch/amd64/include/arch/cpu.h
===================================================================
--- kernel/arch/amd64/include/arch/cpu.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/include/arch/cpu.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -89,7 +89,7 @@
 	int stepping;
 	tss_t *tss;
-	
+
 	unsigned int id; /** CPU's local, ie physical, APIC ID. */
-	
+
 	size_t iomapver_copy;  /** Copy of TASK's I/O Permission bitmap generation count. */
 } cpu_arch_t;
Index: kernel/arch/amd64/include/arch/cycle.h
===================================================================
--- kernel/arch/amd64/include/arch/cycle.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/include/arch/cycle.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
 	uint32_t lower;
 	uint32_t upper;
-	
+
 	asm volatile (
 		"rdtsc\n"
@@ -48,5 +48,5 @@
 		  "=d" (upper)
 	);
-	
+
 	return ((uint64_t) lower) | (((uint64_t) upper) << 32);
 }
Index: kernel/arch/amd64/include/arch/mm/page.h
===================================================================
--- kernel/arch/amd64/include/arch/mm/page.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/include/arch/mm/page.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -210,5 +210,5 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	return ((!p->page_cache_disable) << PAGE_CACHEABLE_SHIFT |
 	    (!p->present) << PAGE_PRESENT_SHIFT |
@@ -223,5 +223,5 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	p->addr_12_31 = (a >> 12) & UINT32_C(0xfffff);
 	p->addr_32_51 = a >> 32;
@@ -231,5 +231,5 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	p->page_cache_disable = !(flags & PAGE_CACHEABLE);
 	p->present = !(flags & PAGE_NOT_PRESENT);
@@ -238,5 +238,5 @@
 	p->no_execute = (flags & PAGE_EXEC) == 0;
 	p->global = (flags & PAGE_GLOBAL) != 0;
-	
+
 	/*
 	 * Ensure that there is at least one bit set even if the present bit is cleared.
Index: kernel/arch/amd64/src/amd64.c
===================================================================
--- kernel/arch/amd64/src/amd64.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/amd64.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -92,5 +92,5 @@
 	multiboot_info_parse(signature, (multiboot_info_t *) info);
 	multiboot2_info_parse(signature, (multiboot2_info_t *) info);
-	
+
 #ifdef CONFIG_SMP
 	/* Copy AP bootstrap routines below 1 MB. */
@@ -106,17 +106,17 @@
 	/* Enable FPU */
 	cpu_setup_fpu();
-	
+
 	/* Initialize segmentation */
 	pm_init();
-	
+
 	/* Disable I/O on nonprivileged levels, clear the nested-thread flag */
 	write_rflags(read_rflags() & ~(RFLAGS_IOPL | RFLAGS_NT));
 	/* Disable alignment check */
 	write_cr0(read_cr0() & ~CR0_AM);
-	
+
 	if (config.cpu_active == 1) {
 		interrupt_init();
 		bios_init();
-		
+
 		/* PIC */
 		i8259_init();
@@ -132,16 +132,16 @@
 		/* Initialize IRQ routing */
 		irq_init(IRQ_COUNT, IRQ_COUNT);
-		
+
 		/* hard clock */
 		i8254_init();
-		
+
 #if (defined(CONFIG_FB) || defined(CONFIG_EGA))
 		bool bfb = false;
 #endif
-		
+
 #ifdef CONFIG_FB
 		bfb = bfb_init();
 #endif
-		
+
 #ifdef CONFIG_EGA
 		if (!bfb) {
@@ -151,9 +151,9 @@
 		}
 #endif
-		
+
 		/* Merge all memory zones to 1 big zone */
 		zone_merge_all();
 	}
-	
+
 	/* Setup fast SYSCALL/SYSRET */
 	syscall_setup_cpu();
@@ -235,5 +235,5 @@
 	}
 #endif
-	
+
 	if (irqs_info != NULL)
 		sysinfo_set_item_val(irqs_info, NULL, true);
Index: kernel/arch/amd64/src/asm.S
===================================================================
--- kernel/arch/amd64/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,16 +60,16 @@
 FUNCTION_BEGIN(memcpy_to_uspace)
 	movq MEMCPY_DST, %rax
-	
+
 	movq MEMCPY_SIZE, %rcx
 	shrq $3, %rcx           /* size / 8 */
-	
+
 	rep movsq               /* copy as much as possible word by word */
-	
+
 	movq MEMCPY_SIZE, %rcx
 	andq $7, %rcx           /* size % 8 */
 	jz 0f
-	
+
 	rep movsb               /* copy the rest byte by byte */
-	
+
 	0:
 		ret                 /* return MEMCPY_SRC, success */
@@ -92,18 +92,18 @@
 	popq %rax
 	movq %rax, %rdx
-	
+
 	/* Flip the ID bit */
 	xorl $RFLAGS_ID, %edx
-	
+
 	/* Store RFLAGS */
 	pushq %rdx
 	popfq
 	pushfq
-	
+
 	/* Get the ID bit again */
 	popq %rdx
 	andl $RFLAGS_ID, %eax
 	andl $RFLAGS_ID, %edx
-	
+
 	/* 0 if not supported, 1 if supported */
 	xorl %edx, %eax
@@ -114,8 +114,8 @@
 	/* Preserve %rbx across function calls */
 	movq %rbx, %r10
-	
+
 	/* Load the command into %eax */
 	movl %edi, %eax
-	
+
 	cpuid
 	movl %eax, 0(%rsi)
@@ -123,5 +123,5 @@
 	movl %ecx, 8(%rsi)
 	movl %edx, 12(%rsi)
-	
+
 	movq %r10, %rbx
 	ret
@@ -161,5 +161,5 @@
 	 * code.
 	 */
-	
+
 	.iflt \i-32
 		.if (1 << \i) & ERROR_WORD_INTERRUPT_LIST
@@ -180,5 +180,5 @@
 		subq $(ISTATE_SOFT_SIZE + 8), %rsp
 	.endif
-	
+
 	/*
 	 * Save the general purpose registers.
@@ -230,5 +230,5 @@
 	movq $(\i), %rdi   /* pass intnum in the first argument */
 	movq %rsp, %rsi    /* pass istate address in the second argument */
-	
+
 	cld
 
@@ -250,5 +250,5 @@
 	movq ISTATE_OFFSET_R10(%rsp), %r10
 	movq ISTATE_OFFSET_R11(%rsp), %r11
-	
+
 	/* $8 = Skip error word */
 	addq $(ISTATE_SOFT_SIZE + 8), %rsp
@@ -288,5 +288,5 @@
 	/* Switch to hidden %gs */
 	swapgs
-	
+
 	movq %rsp, %gs:KSEG_OFFSET_USTACK_RSP  /* save this thread's user RSP */
 	movq %gs:KSEG_OFFSET_KSTACK_RSP, %rsp  /* set this thread's kernel RSP */
@@ -346,5 +346,5 @@
 	swapgs
 	sti
-	
+
 	/* Copy the 4th argument where it is expected  */
 	movq %r10, %rcx
@@ -364,5 +364,5 @@
 
 	cli
-	
+
 	/*
 	 * Restore registers needed for return via the SYSRET instruction and
@@ -394,5 +394,5 @@
 	callq fault_from_uspace
 	/* not reached */
-	
+
 bad_rip_msg:
 	.asciz "Invalid instruction pointer."
@@ -414,89 +414,89 @@
 FUNCTION_BEGIN(early_putchar)
 #if ((defined(CONFIG_EGA)) && (!defined(CONFIG_FB)))
-	
+
 	/* Prologue, save preserved registers */
 	pushq %rbp
 	movq %rsp, %rbp
 	pushq %rbx
-	
+
 	movq %rdi, %rsi
 	movq $(PA2KA(0xb8000)), %rdi  /* base of EGA text mode memory */
 	xorl %eax, %eax
-	
+
 	/* Read bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
 	shl $8, %ax
-	
+
 	/* Read bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
-	
+
 	/* Sanity check for the cursor on screen */
 	cmp $2000, %ax
 	jb early_putchar_cursor_ok
-	
+
 		movw $1998, %ax
-	
+
 	early_putchar_cursor_ok:
-	
+
 	movw %ax, %bx
 	shl $1, %rax
 	addq %rax, %rdi
-	
+
 	movq %rsi, %rax
-	
+
 	cmp $0x0a, %al
 	jne early_putchar_backspace
-	
+
 		/* Interpret newline */
-		
+
 		movw %bx, %ax  /* %bx -> %dx:%ax */
 		xorw %dx, %dx
-		
+
 		movw $80, %cx
 		idivw %cx, %ax  /* %dx = %bx % 80 */
-		
+
 		/* %bx <- %bx + 80 - (%bx % 80) */
 		addw %cx, %bx
 		subw %dx, %bx
-		
+
 		jmp early_putchar_skip
-	
+
 	early_putchar_backspace:
-	
+
 		cmp $0x08, %al
 		jne early_putchar_print
-		
+
 		/* Interpret backspace */
-		
+
 		cmp $0x0000, %bx
 		je early_putchar_skip
-		
+
 		dec %bx
 		jmp early_putchar_skip
-	
+
 	early_putchar_print:
-	
+
 		/* Print character */
-		
+
 		movb $0x0e, %ah  /* black background, yellow foreground */
 		stosw
 		inc %bx
-	
+
 	early_putchar_skip:
-	
+
 	/* Sanity check for the cursor on the last line */
 	cmp $2000, %bx
 	jb early_putchar_no_scroll
-	
+
 		/* Scroll the screen (24 rows) */
 		movq $(PA2KA(0xb80a0)), %rsi
@@ -504,39 +504,39 @@
 		movl $480, %ecx
 		rep movsq
-		
+
 		/* Clear the 24th row */
 		xorl %eax, %eax
 		movl $20, %ecx
 		rep stosq
-		
+
 		/* Go to row 24 */
 		movw $1920, %bx
-	
+
 	early_putchar_no_scroll:
-	
+
 	/* Write bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bh, %al
 	outb %al, %dx
-	
+
 	/* Write bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bl, %al
 	outb %al, %dx
-	
+
 	/* Epilogue, restore preserved registers */
 	popq %rbx
 	leave
-	
+
 #endif
-	
+
 	ret
 FUNCTION_END(early_putchar)
Index: kernel/arch/amd64/src/boot/multiboot.S
===================================================================
--- kernel/arch/amd64/src/boot/multiboot.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/boot/multiboot.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -78,8 +78,8 @@
 	cli
 	cld
-	
+
 	/* Initialize stack pointer */
 	movl $START_STACK, %esp
-	
+
 	/*
 	 * Initialize Global Descriptor Table and
@@ -88,5 +88,5 @@
 	lgdtl bootstrap_gdtr
 	lidtl bootstrap_idtr
-	
+
 	/* Kernel data + stack */
 	movw $GDT_SELECTOR(KDATA_DES), %cx
@@ -94,5 +94,5 @@
 	movw %cx, %ds
 	movw %cx, %ss
-	
+
 	/*
 	 * Simics seems to remove hidden part of GS on entering user mode
@@ -102,77 +102,77 @@
 	movw %cx, %fs
 	movw %cx, %gs
-	
+
 	jmpl $GDT_SELECTOR(KTEXT32_DES), $multiboot_meeting_point
 	multiboot_meeting_point:
-	
+
 	/*
 	 * Protected 32-bit. We want to reuse the code-seg descriptor,
 	 * the Default operand size must not be 1 when entering long mode.
 	 */
-	
+
 	/* Save multiboot arguments */
 	movl %eax, multiboot_eax
 	movl %ebx, multiboot_ebx
-	
+
 	pm_status $status_prot
-	
+
 	movl $(INTEL_CPUID_EXTENDED), %eax
 	cpuid
 	cmp $(INTEL_CPUID_EXTENDED), %eax
 	ja extended_cpuid_supported
-	
+
 		pm_error $err_extended_cpuid
-	
+
 	extended_cpuid_supported:
-	
+
 	movl $(AMD_CPUID_EXTENDED), %eax
 	cpuid
 	bt $(AMD_EXT_LONG_MODE), %edx
 	jc long_mode_supported
-	
+
 		pm_error $err_long_mode
-	
+
 	long_mode_supported:
-	
+
 	bt $(AMD_EXT_NOEXECUTE), %edx
 	jc noexecute_supported
-	
+
 		pm_error $err_noexecute
-	
+
 	noexecute_supported:
-	
+
 	movl $(INTEL_CPUID_STANDARD), %eax
 	cpuid
 	bt $(INTEL_FXSAVE), %edx
 	jc fx_supported
-	
+
 		pm_error $err_fx
-	
+
 	fx_supported:
-	
+
 	bt $(INTEL_SSE2), %edx
 	jc sse2_supported
-	
+
 		pm_error $err_sse2
-	
+
 	sse2_supported:
-	
+
 #include "vesa_prot.inc"
-	
+
 	pm2_status $status_prot2
-	
+
 	/*
 	 * Enable 64-bit page translation entries - CR4.PAE = 1.
 	 * Paging is not enabled until after long mode is enabled.
 	 */
-	
+
 	movl %cr4, %eax
 	orl $CR4_PAE, %eax
 	movl %eax, %cr4
-	
+
 	/* Set up paging tables */
 	leal ptl_0, %eax
 	movl %eax, %cr3
-	
+
 	/* Enable long mode */
 	movl $AMD_MSR_EFER, %ecx
@@ -180,10 +180,10 @@
 	orl $AMD_LME, %eax        /* set LME = 1 */
 	wrmsr
-	
+
 	/* Enable paging to activate long mode (set CR0.PG = 1) */
 	movl %cr0, %eax
 	orl $CR0_PG, %eax
 	movl %eax, %cr0
-	
+
 	/* At this point we are in compatibility mode */
 	jmpl $GDT_SELECTOR(KTEXT_DES), $start64
@@ -204,48 +204,48 @@
 	movl $0xb8000, %edi  /* base of EGA text mode memory */
 	xorl %eax, %eax
-	
+
 	/* Read bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
 	shl $8, %ax
-	
+
 	/* Read bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
-	
+
 	/* Sanity check for the cursor on screen */
 	cmp $2000, %ax
 	jb err_cursor_ok
-	
+
 		movw $1998, %ax
-	
+
 	err_cursor_ok:
-	
+
 	movw %ax, %bx
 	shl $1, %eax
 	addl %eax, %edi
-	
+
 	err_ploop:
 		lodsb
-		
+
 		cmp $0, %al
 		je err_ploop_end
-		
+
 		movb $0x0c, %ah  /* black background, light red foreground */
 		stosw
-		
+
 		/* Sanity check for the cursor on the last line */
 		inc %bx
 		cmp $2000, %bx
 		jb err_ploop
-		
+
 		/* Scroll the screen (24 rows) */
 		movl %esi, %edx
@@ -254,36 +254,36 @@
 		movl $960, %ecx
 		rep movsl
-		
+
 		/* Clear the 24th row */
 		xorl %eax, %eax
 		movl $40, %ecx
 		rep stosl
-		
+
 		/* Go to row 24 */
 		movl %edx, %esi
 		movl $0xb8f00, %edi
 		movw $1920, %bx
-		
+
 		jmp err_ploop
 	err_ploop_end:
-	
+
 	/* Write bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bh, %al
 	outb %al, %dx
-	
+
 	/* Write bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bl, %al
 	outb %al, %dx
-	
+
 	cli
 	hlt1:
@@ -311,51 +311,51 @@
 	pushl %edx
 	pushl %edi
-	
+
 	movl $0xb8000, %edi  /* base of EGA text mode memory */
 	xorl %eax, %eax
-	
+
 	/* Read bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
 	shl $8, %ax
-	
+
 	/* Read bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
-	
+
 	/* Sanity check for the cursor on screen */
 	cmp $2000, %ax
 	jb pm_puts_cursor_ok
-	
+
 		movw $1998, %ax
-	
+
 	pm_puts_cursor_ok:
-	
+
 	movw %ax, %bx
 	shl $1, %eax
 	addl %eax, %edi
-	
+
 	pm_puts_ploop:
 		lodsb
-		
+
 		cmp $0, %al
 		je pm_puts_ploop_end
-		
+
 		movb $0x0a, %ah  /* black background, light green foreground */
 		stosw
-		
+
 		/* Sanity check for the cursor on the last line */
 		inc %bx
 		cmp $2000, %bx
 		jb pm_puts_ploop
-		
+
 		/* Scroll the screen (24 rows) */
 		movl %esi, %edx
@@ -364,36 +364,36 @@
 		movl $960, %ecx
 		rep movsl
-		
+
 		/* Clear the 24th row */
 		xorl %eax, %eax
 		movl $40, %ecx
 		rep stosl
-		
+
 		/* Go to row 24 */
 		movl %edx, %esi
 		movl $0xb8f00, %edi
 		movw $1920, %bx
-		
+
 		jmp pm_puts_ploop
 	pm_puts_ploop_end:
-	
+
 	/* Write bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bh, %al
 	outb %al, %dx
-	
+
 	/* Write bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bl, %al
 	outb %al, %dx
-	
+
 	popl %edi
 	popl %edx
@@ -401,5 +401,5 @@
 	popl %ebx
 	popl %eax
-	
+
 	ret
 
@@ -414,21 +414,21 @@
 
 start64:
-	
+
 	/*
 	 * Long mode.
 	 */
-	
+
 	movq $(PA2KA(START_STACK)), %rsp
-	
+
 	/* Create the first stack frame */
 	pushq $0
 	movq %rsp, %rbp
-	
+
 	long_status $status_long
-	
+
 	/* Call amd64_pre_main(multiboot_eax, multiboot_ebx) */
 	movl multiboot_eax, %edi
 	movl multiboot_ebx, %esi
-	
+
 #ifdef MEMORY_MODEL_large
 	movabsq $amd64_pre_main, %rax
@@ -437,7 +437,7 @@
 	callq amd64_pre_main
 #endif
-	
+
 	long_status $status_main
-	
+
 	/* Call main_bsp() */
 #ifdef MEMORY_MODEL_large
@@ -447,5 +447,5 @@
 	callq main_bsp
 #endif
-	
+
 	/* Not reached */
 	cli
@@ -468,59 +468,59 @@
  */
 early_puts:
-	
+
 #if ((defined(CONFIG_EGA)) && (!defined(CONFIG_FB)))
-	
+
 	/* Prologue, save preserved registers */
 	pushq %rbp
 	movq %rsp, %rbp
 	pushq %rbx
-	
+
 	movq %rdi, %rsi
 	movq $(PA2KA(0xb8000)), %rdi  /* base of EGA text mode memory */
 	xorq %rax, %rax
-	
+
 	/* Read bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
 	shl $8, %ax
-	
+
 	/* Read bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
-	
+
 	/* Sanity check for the cursor on screen */
 	cmp $2000, %ax
 	jb early_puts_cursor_ok
-	
+
 		movw $1998, %ax
-	
+
 	early_puts_cursor_ok:
-	
+
 	movw %ax, %bx
 	shl $1, %rax
 	addq %rax, %rdi
-	
+
 	early_puts_ploop:
 		lodsb
-		
+
 		cmp $0, %al
 		je early_puts_ploop_end
-		
+
 		movb $0x0e, %ah  /* black background, yellow foreground */
 		stosw
-		
+
 		/* Sanity check for the cursor on the last line */
 		inc %bx
 		cmp $2000, %bx
 		jb early_puts_ploop
-		
+
 		/* Scroll the screen (24 rows) */
 		movq %rsi, %rdx
@@ -529,42 +529,42 @@
 		movl $480, %ecx
 		rep movsq
-		
+
 		/* Clear the 24th row */
 		xorl %eax, %eax
 		movl $20, %ecx
 		rep stosq
-		
+
 		/* Go to row 24 */
 		movq %rdx, %rsi
 		movq $(PA2KA(0xb8f00)), %rdi
 		movw $1920, %bx
-		
+
 		jmp early_puts_ploop
 	early_puts_ploop_end:
-	
+
 	/* Write bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bh, %al
 	outb %al, %dx
-	
+
 	/* Write bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bl, %al
 	outb %al, %dx
-	
+
 	/* Epilogue, restore preserved registers */
 	popq %rbx
 	leave
-	
+
 #endif
-	
+
 	ret
 
Index: kernel/arch/amd64/src/boot/multiboot2.S
===================================================================
--- kernel/arch/amd64/src/boot/multiboot2.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/boot/multiboot2.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,5 +47,5 @@
 	.long multiboot2_header_end - multiboot2_header_start
 	.long -(MULTIBOOT2_HEADER_MAGIC + MULTIBOOT2_HEADER_ARCH_I386 + (multiboot2_header_end - multiboot2_header_start))
-	
+
 	/* Information request tag */
 	.align 8
@@ -61,5 +61,5 @@
 #endif
 	tag_info_req_end:
-	
+
 	/* Address tag */
 	.align 8
@@ -73,5 +73,5 @@
 		.long 0
 	tag_address_end:
-	
+
 	/* Entry address tag */
 	.align 8
@@ -82,5 +82,5 @@
 		.long multiboot2_image_start
 	tag_entry_address_end:
-	
+
 	/* Flags tag */
 	.align 8
@@ -91,5 +91,5 @@
 		.long MULTIBOOT2_FLAGS_CONSOLE
 	tag_flags_end:
-	
+
 #ifdef CONFIG_FB
 	/* Framebuffer tag */
@@ -104,5 +104,5 @@
 	tag_framebuffer_end:
 #endif
-	
+
 	/* Module alignment tag */
 	.align 8
@@ -113,5 +113,5 @@
 		.long 0
 	tag_module_align_end:
-	
+
 	/* Tag terminator */
 	.align 8
@@ -126,8 +126,8 @@
 	cli
 	cld
-	
+
 	/* Initialize stack pointer */
 	movl $START_STACK, %esp
-	
+
 	/*
 	 * Initialize Global Descriptor Table and
@@ -136,5 +136,5 @@
 	lgdtl bootstrap_gdtr
 	lidtl bootstrap_idtr
-	
+
 	/* Kernel data + stack */
 	movw $GDT_SELECTOR(KDATA_DES), %cx
@@ -142,5 +142,5 @@
 	movw %cx, %ds
 	movw %cx, %ss
-	
+
 	/*
 	 * Simics seems to remove hidden part of GS on entering user mode
@@ -150,71 +150,71 @@
 	movw %cx, %fs
 	movw %cx, %gs
-	
+
 	jmpl $GDT_SELECTOR(KTEXT32_DES), $multiboot2_meeting_point
 	multiboot2_meeting_point:
-	
+
 	/*
 	 * Protected 32-bit. We want to reuse the code-seg descriptor,
 	 * the Default operand size must not be 1 when entering long mode.
 	 */
-	
+
 	/* Save multiboot arguments */
 	movl %eax, multiboot_eax
 	movl %ebx, multiboot_ebx
-	
+
 	movl $(INTEL_CPUID_EXTENDED), %eax
 	cpuid
 	cmp $(INTEL_CPUID_EXTENDED), %eax
 	ja extended_cpuid_supported
-	
-		jmp pm_error_halt
-	
+
+		jmp pm_error_halt
+
 	extended_cpuid_supported:
-	
+
 	movl $(AMD_CPUID_EXTENDED), %eax
 	cpuid
 	bt $(AMD_EXT_LONG_MODE), %edx
 	jc long_mode_supported
-	
-		jmp pm_error_halt
-	
+
+		jmp pm_error_halt
+
 	long_mode_supported:
-	
+
 	bt $(AMD_EXT_NOEXECUTE), %edx
 	jc noexecute_supported
-	
-		jmp pm_error_halt
-	
+
+		jmp pm_error_halt
+
 	noexecute_supported:
-	
+
 	movl $(INTEL_CPUID_STANDARD), %eax
 	cpuid
 	bt $(INTEL_FXSAVE), %edx
 	jc fx_supported
-	
-		jmp pm_error_halt
-	
+
+		jmp pm_error_halt
+
 	fx_supported:
-	
+
 	bt $(INTEL_SSE2), %edx
 	jc sse2_supported
-	
-		jmp pm_error_halt
-	
+
+		jmp pm_error_halt
+
 	sse2_supported:
-	
+
 	/*
 	 * Enable 64-bit page translation entries - CR4.PAE = 1.
 	 * Paging is not enabled until after long mode is enabled.
 	 */
-	
+
 	movl %cr4, %eax
 	orl $CR4_PAE, %eax
 	movl %eax, %cr4
-	
+
 	/* Set up paging tables */
 	leal ptl_0, %eax
 	movl %eax, %cr3
-	
+
 	/* Enable long mode */
 	movl $AMD_MSR_EFER, %ecx
@@ -222,10 +222,10 @@
 	orl $AMD_LME, %eax        /* set LME = 1 */
 	wrmsr
-	
+
 	/* Enable paging to activate long mode (set CR0.PG = 1) */
 	movl %cr0, %eax
 	orl $CR0_PG, %eax
 	movl %eax, %cr0
-	
+
 	/* At this point we are in compatibility mode */
 	jmpl $GDT_SELECTOR(KTEXT_DES), $start64
@@ -240,19 +240,19 @@
 
 start64:
-	
+
 	/*
 	 * Long mode.
 	 */
-	
+
 	movq $(PA2KA(START_STACK)), %rsp
-	
+
 	/* Create the first stack frame */
 	pushq $0
 	movq %rsp, %rbp
-	
+
 	/* Call amd64_pre_main(multiboot_eax, multiboot_ebx) */
 	movl multiboot_eax, %edi
 	movl multiboot_ebx, %esi
-	
+
 #ifdef MEMORY_MODEL_large
 	movabsq $amd64_pre_main, %rax
@@ -261,5 +261,5 @@
 	callq amd64_pre_main
 #endif
-	
+
 	/* Call main_bsp() */
 #ifdef MEMORY_MODEL_large
@@ -269,5 +269,5 @@
 	callq main_bsp
 #endif
-	
+
 	/* Not reached */
 	cli
Index: kernel/arch/amd64/src/context.S
===================================================================
--- kernel/arch/amd64/src/context.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/context.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,8 +40,8 @@
 FUNCTION_BEGIN(context_save_arch)
 	movq (%rsp), %rdx     # the caller's return %rip
-	
+
 	movq %rdx, CONTEXT_OFFSET_PC(%rdi)
 	movq %rsp, CONTEXT_OFFSET_SP(%rdi)
-	
+
 	movq %rbx, CONTEXT_OFFSET_RBX(%rdi)
 	movq %rbp, CONTEXT_OFFSET_RBP(%rdi)
@@ -50,5 +50,5 @@
 	movq %r14, CONTEXT_OFFSET_R14(%rdi)
 	movq %r15, CONTEXT_OFFSET_R15(%rdi)
-	
+
 #ifdef MEMORY_MODEL_large
 	movabsq $vreg_ptr, %rsi
@@ -59,5 +59,5 @@
 	movq %fs:VREG_TP(%rsi), %rsi
 	movq %rsi, CONTEXT_OFFSET_TP(%rdi)
-	
+
 	xorl %eax, %eax       # context_save returns 1
 	incl %eax
@@ -78,10 +78,10 @@
 	movq CONTEXT_OFFSET_RBP(%rdi), %rbp
 	movq CONTEXT_OFFSET_RBX(%rdi), %rbx
-	
+
 	movq CONTEXT_OFFSET_SP(%rdi), %rsp
-	
+
 	movq CONTEXT_OFFSET_PC(%rdi), %rdx
 	movq %rdx, (%rsp)
-	
+
 	movq CONTEXT_OFFSET_TP(%rdi), %rcx
 #ifdef MEMORY_MODEL_large
@@ -92,5 +92,5 @@
 #endif
 	movq %rcx, %fs:VREG_TP(%rsi)
-	
+
 	xorl %eax, %eax       # context_restore returns 0
 	ret
Index: kernel/arch/amd64/src/cpu/cpu.c
===================================================================
--- kernel/arch/amd64/src/cpu/cpu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/cpu/cpu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -106,9 +106,9 @@
 {
 	cpu_info_t info;
-	
+
 	CPU->arch.vendor = VendorUnknown;
 	if (has_cpuid()) {
 		cpuid(INTEL_CPUID_LEVEL, &info);
-		
+
 		/*
 		 * Check for AMD processor.
@@ -119,5 +119,5 @@
 			CPU->arch.vendor = VendorAMD;
 		}
-		
+
 		/*
 		 * Check for Intel processor.
@@ -128,5 +128,5 @@
 			CPU->arch.vendor = VendorIntel;
 		}
-		
+
 		cpuid(INTEL_CPUID_STANDARD, &info);
 		CPU->arch.family = (info.cpuid_eax >> 8) & 0xf;
Index: kernel/arch/amd64/src/ddi/ddi.c
===================================================================
--- kernel/arch/amd64/src/ddi/ddi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/ddi/ddi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,16 +59,16 @@
 	/* First, copy the I/O Permission Bitmap. */
 	irq_spinlock_lock(&TASK->lock, false);
-	
+
 	size_t ver = TASK->arch.iomapver;
 	size_t elements = TASK->arch.iomap.elements;
-	
+
 	if (elements > 0) {
 		assert(TASK->arch.iomap.bits);
-		
+
 		bitmap_t iomap;
 		bitmap_initialize(&iomap, TSS_IOMAP_SIZE * 8,
 		    CPU->arch.tss->iomap);
 		bitmap_copy(&iomap, &TASK->arch.iomap, elements);
-		
+
 		/*
 		 * Set the trailing bits in the last byte of the map to disable
@@ -77,5 +77,5 @@
 		bitmap_set_range(&iomap, elements,
 		    ALIGN_UP(elements, 8) - elements);
-		
+
 		/*
 		 * It is safe to set the trailing eight bits because of the
@@ -84,7 +84,7 @@
 		bitmap_set_range(&iomap, ALIGN_UP(elements, 8), 8);
 	}
-	
+
 	irq_spinlock_unlock(&TASK->lock, false);
-	
+
 	/*
 	 * Second, adjust TSS segment limit.
@@ -93,10 +93,10 @@
 	ptr_16_64_t cpugdtr;
 	gdtr_store(&cpugdtr);
-	
+
 	descriptor_t *gdt_p = (descriptor_t *) cpugdtr.base;
 	size_t size = bitmap_size(elements);
 	gdt_tss_setlimit(&gdt_p[TSS_DES], TSS_BASIC_SIZE + size);
 	gdtr_load(&cpugdtr);
-	
+
 	/*
 	 * Before we load new TSS limit, the current TSS descriptor
@@ -106,5 +106,5 @@
 	tss_desc->type = AR_TSS;
 	tr_load(GDT_SELECTOR(TSS_DES));
-	
+
 	/*
 	 * Update the generation count so that faults caused by
Index: kernel/arch/amd64/src/debug/stacktrace.c
===================================================================
--- kernel/arch/amd64/src/debug/stacktrace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/debug/stacktrace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,5 +50,5 @@
 	uint64_t *stack = (void *) ctx->fp;
 	*prev = stack[FRAME_OFFSET_FP_PREV];
-	
+
 	return true;
 }
@@ -58,5 +58,5 @@
 	uint64_t *stack = (void *) ctx->fp;
 	*ra = stack[FRAME_OFFSET_RA];
-	
+
 	return true;
 }
Index: kernel/arch/amd64/src/delay.S
===================================================================
--- kernel/arch/amd64/src/delay.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/delay.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,5 +39,5 @@
 		dec %rdi
 		jnz 0b
-	
+
 	ret
 FUNCTION_END(asm_delay_loop)
@@ -47,5 +47,5 @@
 		dec %rdi
 		jz 0b
-	
+
 	ret
 FUNCTION_END(asm_fake_loop)
Index: kernel/arch/amd64/src/interrupt.c
===================================================================
--- kernel/arch/amd64/src/interrupt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/interrupt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,12 +70,12 @@
 	    "rfl=%0#18" PRIx64 "\terr=%0#18" PRIx64 "\n",
 	    istate->cs, istate->rip, istate->rflags, istate->error_word);
-	
+
 	if (istate_from_uspace(istate))
 		log_printf("ss =%0#18" PRIx64 "\n", istate->ss);
-	
+
 	log_printf("rax=%0#18" PRIx64 "\trbx=%0#18" PRIx64 "\t"
 	    "rcx=%0#18" PRIx64 "\trdx=%0#18" PRIx64 "\n",
 	    istate->rax, istate->rbx, istate->rcx, istate->rdx);
-	
+
 	log_printf("rsi=%0#18" PRIx64 "\trdi=%0#18" PRIx64 "\t"
 	    "rbp=%0#18" PRIx64 "\trsp=%0#18" PRIx64 "\n",
@@ -83,9 +83,9 @@
 	    istate_from_uspace(istate) ? istate->rsp :
 	    (uintptr_t) &istate->rsp);
-	
+
 	log_printf("r8 =%0#18" PRIx64 "\tr9 =%0#18" PRIx64 "\t"
 	    "r10=%0#18" PRIx64 "\tr11=%0#18" PRIx64 "\n",
 	    istate->r8, istate->r9, istate->r10, istate->r11);
-	
+
 	log_printf("r12=%0#18" PRIx64 "\tr13=%0#18" PRIx64 "\t"
 	    "r14=%0#18" PRIx64 "\tr15=%0#18" PRIx64 "\n",
@@ -123,5 +123,5 @@
 		size_t ver = TASK->arch.iomapver;
 		irq_spinlock_unlock(&TASK->lock, false);
-		
+
 		if (CPU->arch.iomapver_copy != ver) {
 			/*
@@ -176,10 +176,10 @@
 {
 	assert(n >= IVT_IRQBASE);
-	
+
 	unsigned int inum = n - IVT_IRQBASE;
 	bool ack = false;
 	assert(inum < IRQ_COUNT);
 	assert((inum != IRQ_PIC_SPUR) && (inum != IRQ_PIC1));
-	
+
 	irq_t *irq = irq_dispatch_and_lock(inum);
 	if (irq) {
@@ -187,5 +187,5 @@
 		 * The IRQ handler was found.
 		 */
-		
+
 		if (irq->preack) {
 			/* Send EOI before processing the interrupt */
@@ -204,5 +204,5 @@
 #endif
 	}
-	
+
 	if (!ack)
 		trap_virtual_eoi();
@@ -212,8 +212,8 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < IVT_ITEMS; i++)
 		exc_register(i, "null", false, (iroutine_t) null_interrupt);
-	
+
 	for (i = 0; i < IRQ_COUNT; i++) {
 		if ((i != IRQ_PIC_SPUR) && (i != IRQ_PIC1))
@@ -221,10 +221,10 @@
 			    (iroutine_t) irq_interrupt);
 	}
-	
+
 	exc_register(VECTOR_DE, "de_fault", true, (iroutine_t) de_fault);
 	exc_register(VECTOR_NM, "nm_fault", true, (iroutine_t) nm_fault);
 	exc_register(VECTOR_SS, "ss_fault", true, (iroutine_t) ss_fault);
 	exc_register(VECTOR_GP, "gp_fault", true, (iroutine_t) gp_fault);
-	
+
 #ifdef CONFIG_SMP
 	exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", true,
Index: kernel/arch/amd64/src/mm/page.c
===================================================================
--- kernel/arch/amd64/src/mm/page.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/mm/page.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,9 +57,9 @@
 	unsigned int identity_flags =
 	    PAGE_GLOBAL | PAGE_CACHEABLE | PAGE_EXEC | PAGE_WRITE | PAGE_READ;
-		
+
 	page_mapping_operations = &pt_mapping_operations;
-		
+
 	page_table_lock(AS_KERNEL, true);
-		
+
 	/*
 	 * PA2KA(identity) mapping for all low-memory frames.
@@ -68,7 +68,7 @@
 	    cur += FRAME_SIZE)
 		page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, identity_flags);
-		
+
 	page_table_unlock(AS_KERNEL, true);
-		
+
 	exc_register(VECTOR_PF, "page_fault", true, (iroutine_t) page_fault);
 	write_cr3((uintptr_t) AS_KERNEL->genarch.page_table);
@@ -78,10 +78,10 @@
 {
 	uintptr_t badvaddr = read_cr2();
-	
+
 	if (istate->error_word & PFERR_CODE_RSVD)
 		panic("Reserved bit set in page table entry.");
-	
+
 	pf_access_t access;
-	
+
 	if (istate->error_word & PFERR_CODE_RW)
 		access = PF_ACCESS_WRITE;
@@ -90,5 +90,5 @@
 	else
 		access = PF_ACCESS_READ;
-	
+
 	(void) as_page_fault(badvaddr, access, istate);
 }
Index: kernel/arch/amd64/src/pm.c
===================================================================
--- kernel/arch/amd64/src/pm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/pm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -130,5 +130,5 @@
 {
 	tss_descriptor_t *td = (tss_descriptor_t *) d;
-	
+
 	td->base_0_15 = base & 0xffffU;
 	td->base_16_23 = ((base) >> 16) & 0xffU;
@@ -140,5 +140,5 @@
 {
 	tss_descriptor_t *td = (tss_descriptor_t *) d;
-	
+
 	td->limit_0_15 = limit & 0xffffU;
 	td->limit_16_19 = (limit >> 16) & 0x0fU;
@@ -167,15 +167,15 @@
 	idescriptor_t *d;
 	unsigned int i;
-	
+
 	for (i = 0; i < IDT_ITEMS; i++) {
 		d = &idt[i];
-		
+
 		d->unused = 0;
 		d->selector = GDT_SELECTOR(KTEXT_DES);
-		
+
 		d->present = 1;
 		d->type = AR_INTERRUPT;  /* masking interrupt */
 	}
-	
+
 	d = &idt[0];
 	idt_setoffset(d++, (uintptr_t) &int_0);
@@ -252,10 +252,10 @@
 	descriptor_t *gdt_p = (descriptor_t *) gdtr.base;
 	tss_descriptor_t *tss_desc;
-	
+
 	/*
 	 * Each CPU has its private GDT and TSS.
 	 * All CPUs share one IDT.
 	 */
-	
+
 	if (config.cpu_active == 1) {
 		idt_init();
@@ -270,20 +270,20 @@
 		 * ahead of page_init */
 		write_cr3((uintptr_t) AS_KERNEL->genarch.page_table);
-		
+
 		tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC);
 		if (!tss_p)
 			panic("Cannot allocate TSS.");
 	}
-	
+
 	tss_initialize(tss_p);
-	
+
 	tss_desc = (tss_descriptor_t *) (&gdt_p[TSS_DES]);
 	tss_desc->present = 1;
 	tss_desc->type = AR_TSS;
 	tss_desc->dpl = PL_KERNEL;
-	
+
 	gdt_tss_setbase(&gdt_p[TSS_DES], (uintptr_t) tss_p);
 	gdt_tss_setlimit(&gdt_p[TSS_DES], TSS_BASIC_SIZE - 1);
-	
+
 	gdtr_load(&gdtr);
 	idtr_load(&idtr);
Index: kernel/arch/amd64/src/smp/ap.S
===================================================================
--- kernel/arch/amd64/src/smp/ap.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/smp/ap.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,7 +55,7 @@
 	xorw %ax, %ax
 	movw %ax, %ds
-	
+
 	lgdtl ap_gdtr       # initialize Global Descriptor Table register
-	
+
 	movl %cr0, %eax
 	orl $CR0_PE, %eax
@@ -71,15 +71,15 @@
 	movw $GDT_SELECTOR(UDATA_DES), %ax
 	movw %ax, %gs
-	
+
 	# Enable 64-bit page transaltion entries (CR4.PAE = 1).
 	# Paging is not enabled until after long mode is enabled
-	
+
 	movl %cr4, %eax
 	orl $CR4_PAE, %eax
 	movl %eax, %cr4
-	
+
 	leal ptl_0, %eax
 	movl %eax, %cr3
-	
+
 	# Enable long mode
 	movl $AMD_MSR_EFER, %ecx  # EFER MSR number
@@ -87,10 +87,10 @@
 	orl $AMD_LME, %eax        # Set LME=1
 	wrmsr                     # Write EFER
-	
+
 	# Enable paging to activate long mode (set CR0.PG = 1)
 	movl %cr0, %eax
 	orl $CR0_PG, %eax
 	movl %eax, %cr0
-	
+
 	# At this point we are in compatibility mode
 	jmpl $GDT_SELECTOR(KTEXT_DES), $start64 - BOOT_OFFSET + AP_BOOT_OFFSET
@@ -100,8 +100,8 @@
 	movabsq $ctx, %rsp
 	movq CONTEXT_OFFSET_SP(%rsp), %rsp
-	
+
 	pushq $0
 	movq %rsp, %rbp
-	
+
 	movabsq $main_ap, %rax
 	callq *%rax   # never returns
Index: kernel/arch/amd64/src/syscall.c
===================================================================
--- kernel/arch/amd64/src/syscall.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/syscall.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 
 	/* Setup syscall entry address */
-	
+
 	/* This is _mess_ - the 64-bit CS is argument + 16,
 	 * the SS is argument + 8. The order is:
Index: kernel/arch/amd64/src/userspace.c
===================================================================
--- kernel/arch/amd64/src/userspace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/amd64/src/userspace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,8 +49,8 @@
 {
 	uint64_t rflags = read_rflags();
-	
+
 	rflags &= ~RFLAGS_NT;
 	rflags |= RFLAGS_IF;
-	
+
 	asm volatile (
 		"pushq %[udata_des]\n"
@@ -60,5 +60,5 @@
 		"pushq %[entry]\n"
 		"movq %[uarg], %%rax\n"
-			
+
 		/* %rdi is defined to hold pcb_ptr - set it to 0 */
 		"xorq %%rdi, %%rdi\n"
@@ -73,5 +73,5 @@
 		: "rax"
 	);
-	
+
 	/* Unreachable */
 	while (1);
Index: kernel/arch/arm32/include/arch/asm.h
===================================================================
--- kernel/arch/arm32/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -105,5 +105,5 @@
 {
 	uintptr_t v;
-	
+
 	asm volatile (
 		"and %[v], sp, %[size]\n"
@@ -111,5 +111,5 @@
 		: [size] "r" (~(STACK_SIZE - 1))
 	);
-	
+
 	return v;
 }
Index: kernel/arch/arm32/include/arch/atomic.h
===================================================================
--- kernel/arch/arm32/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 	atomic_count_t ret = val->count;
 	interrupts_restore(ipl);
-	
+
 	return ret;
 }
Index: kernel/arch/arm32/include/arch/mm/page_armv4.h
===================================================================
--- kernel/arch/arm32/include/arch/mm/page_armv4.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/include/arch/mm/page_armv4.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -137,5 +137,5 @@
 	pte_level0_t *p = &pt[i].l0;
 	int np = (p->descriptor_type == PTE_DESCRIPTOR_NOT_PRESENT);
-	
+
 	return (np << PAGE_PRESENT_SHIFT) | (1 << PAGE_USER_SHIFT) |
 	    (1 << PAGE_READ_SHIFT) | (1 << PAGE_WRITE_SHIFT) |
@@ -152,8 +152,8 @@
 {
 	pte_level1_t *p = &pt[i].l1;
-	
+
 	int dt = p->descriptor_type;
 	int ap = p->access_permission_0;
-	
+
 	return ((dt == PTE_DESCRIPTOR_NOT_PRESENT) << PAGE_PRESENT_SHIFT) |
 	    ((ap == PTE_AP_USER_RO_KERNEL_RW) << PAGE_READ_SHIFT) |
@@ -177,5 +177,5 @@
 {
 	pte_level0_t *p = &pt[i].l0;
-	
+
 	if (flags & PAGE_NOT_PRESENT) {
 		p->descriptor_type = PTE_DESCRIPTOR_NOT_PRESENT;
@@ -206,17 +206,17 @@
 {
 	pte_level1_t *p = &pt[i].l1;
-	
+
 	if (flags & PAGE_NOT_PRESENT)
 		p->descriptor_type = PTE_DESCRIPTOR_NOT_PRESENT;
 	else
 		p->descriptor_type = PTE_DESCRIPTOR_SMALL_PAGE;
-	
+
 	p->cacheable = p->bufferable = (flags & PAGE_CACHEABLE) != 0;
-	
+
 	/* default access permission */
 	p->access_permission_0 = p->access_permission_1 =
 	    p->access_permission_2 = p->access_permission_3 =
 	    PTE_AP_USER_NO_KERNEL_RW;
-	
+
 	if (flags & PAGE_USER)  {
 		if (flags & PAGE_READ) {
Index: kernel/arch/arm32/include/arch/mm/page_armv6.h
===================================================================
--- kernel/arch/arm32/include/arch/mm/page_armv6.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/include/arch/mm/page_armv6.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -170,5 +170,5 @@
 	const pte_level0_t *p = &pt[i].l0;
 	const unsigned np = (p->descriptor_type == PTE_DESCRIPTOR_NOT_PRESENT);
-	
+
 	return (np << PAGE_PRESENT_SHIFT) | (1 << PAGE_USER_SHIFT) |
 	    (1 << PAGE_READ_SHIFT) | (1 << PAGE_WRITE_SHIFT) |
@@ -185,9 +185,9 @@
 {
 	const pte_level1_t *p = &pt[i].l1;
-	
+
 	const unsigned dt = p->descriptor_type;
 	const unsigned ap0 = p->access_permission_0;
 	const unsigned ap1 = p->access_permission_1;
-	
+
 	return ((dt == PTE_DESCRIPTOR_NOT_PRESENT) << PAGE_PRESENT_SHIFT) |
 	    ((dt != PTE_DESCRIPTOR_SMALL_PAGE_NX) << PAGE_EXEC_SHIFT) |
@@ -211,5 +211,5 @@
 {
 	pte_level0_t *p = &pt[i].l0;
-	
+
 	if (flags & PAGE_NOT_PRESENT) {
 		p->descriptor_type = PTE_DESCRIPTOR_NOT_PRESENT;
@@ -245,5 +245,5 @@
 {
 	pte_level1_t *p = &pt[i].l1;
-	
+
 	if (flags & PAGE_NOT_PRESENT) {
 		p->descriptor_type = PTE_DESCRIPTOR_NOT_PRESENT;
@@ -278,14 +278,14 @@
 		p->bufferable = 1;
 	}
-	
+
 	/* Shareable is ignored for devices (non-cacheable),
 	 * turn it off for normal memory. */
 	p->shareable = 0;
-	
+
 	p->non_global = !(flags & PAGE_GLOBAL);
-	
+
 	/* default access permission: kernel only*/
 	p->access_permission_0 = PTE_AP0_USER_NO_KERNEL_FULL;
-	
+
 	if (flags & PAGE_USER) {
 		p->access_permission_0 = PTE_AP0_USER_FULL_KERNEL_FULL;
Index: kernel/arch/arm32/src/arm32.c
===================================================================
--- kernel/arch/arm32/src/arm32.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/arm32.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,5 +69,5 @@
 {
 	init.cnt = min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);
-	
+
 	size_t i;
 	for (i = 0; i < init.cnt; i++) {
@@ -93,5 +93,5 @@
 {
 	machine_init();
-	
+
 	/* Initialize exception dispatch table */
 	exception_init();
@@ -100,5 +100,5 @@
 	/* Initialize Restartable Atomic Sequences support. */
 	ras_init();
-	
+
 	machine_output_init();
 }
@@ -132,5 +132,5 @@
 {
 	uint8_t *stck;
-	
+
 	stck = &THREAD->kstack[STACK_SIZE];
 	supervisor_sp = (uintptr_t) stck;
Index: kernel/arch/arm32/src/asm.S
===================================================================
--- kernel/arch/arm32/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,10 +39,10 @@
 	mov r5, r0 /* save dst */
 	beq 4f
-	
+
 	1:
 		cmp r2, #0
 		movne ip, #0
 		beq 3f
-	
+
 	2:
 		ldrb r3, [ip, r1]
@@ -51,9 +51,9 @@
 		cmp ip, r2
 		bne 2b
-	
+
 	3:
 		mov r0, r5
 		ldmia sp!, {r4, r5, pc}
-	
+
 	4:
 		add r3, r0, #3
@@ -66,5 +66,5 @@
 		mov lr, #0
 		mov ip, lr
-	
+
 	5:
 		ldr r3, [ip, r1]
@@ -74,5 +74,5 @@
 		add ip, ip, #4
 		bne 5b
-	
+
 	6:
 		ands r4, r2, #3
@@ -82,5 +82,5 @@
 		add ip, r3, r1
 		mov r2, #0
-	
+
 	7:
 		ldrb r3, [r2, ip]
Index: kernel/arch/arm32/src/atomic.c
===================================================================
--- kernel/arch/arm32/src/atomic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/atomic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,13 +54,13 @@
 	 */
 	irq_spinlock_lock(&cas_lock, true);
-	
+
 	void * cur_val = *ptr;
-	
+
 	if (cur_val == expected) {
 		*ptr = new_val;
 	}
-	
+
 	irq_spinlock_unlock(&cas_lock, true);
-	
+
 	return cur_val;
 }
Index: kernel/arch/arm32/src/context.S
===================================================================
--- kernel/arch/arm32/src/context.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/context.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 	ldmia r0!, {sp, lr}
 	ldmia r0!, {r4-r11}
-	
+
 	mov r0, #0
 	mov pc, lr
Index: kernel/arch/arm32/src/exc_handler.S
===================================================================
--- kernel/arch/arm32/src/exc_handler.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/exc_handler.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -97,5 +97,5 @@
 	# Stop stack traces here
 	mov fp, #0
-	
+
 	b 2f
 
Index: kernel/arch/arm32/src/exception.c
===================================================================
--- kernel/arch/arm32/src/exception.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/exception.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,9 +71,9 @@
 	volatile uint32_t handler_address_ptr = EXC_VECTORS_SIZE -
 	    PREFETCH_OFFSET;
-	
+
 	/* make it LDR instruction and store at exception vector */
 	*vector = handler_address_ptr | LDR_OPCODE;
 	smc_coherence(vector);
-	
+
 	/* store handler's address */
 	*(vector + EXC_VECTORS) = handler_addr;
@@ -99,20 +99,20 @@
 	install_handler((unsigned) reset_exception_entry,
 	    (unsigned *) EXC_RESET_VEC);
-	
+
 	install_handler((unsigned) undef_instr_exception_entry,
 	    (unsigned *) EXC_UNDEF_INSTR_VEC);
-	
+
 	install_handler((unsigned) swi_exception_entry,
 	    (unsigned *) EXC_SWI_VEC);
-	
+
 	install_handler((unsigned) prefetch_abort_exception_entry,
 	    (unsigned *) EXC_PREFETCH_ABORT_VEC);
-	
+
 	install_handler((unsigned) data_abort_exception_entry,
 	    (unsigned *) EXC_DATA_ABORT_VEC);
-	
+
 	install_handler((unsigned) irq_exception_entry,
 	    (unsigned *) EXC_IRQ_VEC);
-	
+
 	install_handler((unsigned) fiq_exception_entry,
 	    (unsigned *) EXC_FIQ_VEC);
@@ -140,8 +140,8 @@
 {
 	uint32_t control_reg = SCTLR_read();
-	
+
 	/* switch on the high vectors bit */
 	control_reg |= SCTLR_HIGH_VECTORS_EN_FLAG;
-	
+
 	SCTLR_write(control_reg);
 }
@@ -190,5 +190,5 @@
 #endif
 	install_exception_handlers();
-	
+
 	exc_register(EXC_UNDEF_INSTR, "undefined instruction", true,
 	    (iroutine_t) undef_insn_exception);
Index: kernel/arch/arm32/src/interrupt.c
===================================================================
--- kernel/arch/arm32/src/interrupt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/interrupt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 
 	current_status_reg_control_write(STATUS_REG_IRQ_DISABLED_BIT | ipl);
-	
+
 	return ipl;
 }
@@ -62,5 +62,5 @@
 
 	current_status_reg_control_write(ipl & ~STATUS_REG_IRQ_DISABLED_BIT);
-	
+
 	return ipl;
 }
Index: kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
===================================================================
--- kernel/arch/arm32/src/mach/integratorcp/integratorcp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/mach/integratorcp/integratorcp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -103,5 +103,5 @@
 	*(uint32_t *) ((char *)(icp.hw_map.vga) + 0x1C) = 0x182B;
 	*(uint32_t *) ((char *)(icp.hw_map.cmcr) + 0xC) = 0x33805000;
-	
+
 }
 
@@ -259,5 +259,5 @@
 	uint32_t sources = icp_irqc_get_sources();
 	unsigned int i;
-	
+
 	for (i = 0; i < ICP_IRQC_MAX_IRQ; i++) {
 		if (sources & (1 << i)) {
@@ -295,5 +295,5 @@
 		vga_init = true;
 	}
-	
+
 	fb_properties_t prop = {
 		.addr = ICP_FB,
@@ -304,5 +304,5 @@
 		.visual = VISUAL_RGB_8_8_8_0,
 	};
-	
+
 	outdev_t *fbdev = fb_init(&prop);
 	if (fbdev)
@@ -322,5 +322,5 @@
 	pl050->data = (ioport8_t *) icp.hw_map.kbd_data;
 	pl050->ctrl = (ioport8_t *) icp.hw_map.kbd_ctrl;
-		
+
 	pl050_instance_t *pl050_instance = pl050_init(pl050, ICP_KBD_IRQ);
 	if (pl050_instance) {
Index: kernel/arch/arm32/src/mm/frame.c
===================================================================
--- kernel/arch/arm32/src/mm/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/mm/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 	base = ALIGN_UP(base, FRAME_SIZE);
 	size = ALIGN_DOWN(size, FRAME_SIZE);
-	
+
 	if (!frame_adjust_zone_bounds(low, &base, &size))
 		return;
@@ -64,5 +64,5 @@
 			    ZONE_AVAILABLE | ZONE_HIGHMEM);
 	}
-	
+
 }
 
Index: kernel/arch/arm32/src/mm/page.c
===================================================================
--- kernel/arch/arm32/src/mm/page.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/mm/page.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 
 	page_table_lock(AS_KERNEL, true);
-	
+
 	/* Kernel identity mapping */
 	//FIXME: We need to consider the possibility that
@@ -66,5 +66,5 @@
 	    cur += FRAME_SIZE)
 		page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
-	
+
 #ifdef HIGH_EXCEPTION_VECTORS
 	/* Create mapping for exception table at high offset */
@@ -76,7 +76,7 @@
 
 	page_table_unlock(AS_KERNEL, true);
-	
+
 	as_switch(NULL, AS_KERNEL);
-	
+
 	boot_page_table_free();
 }
Index: kernel/arch/arm32/src/ras.c
===================================================================
--- kernel/arch/arm32/src/ras.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/ras.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,8 +55,8 @@
 	if (!frame)
 		frame = frame_alloc(1, FRAME_LOWMEM, 0);
-	
+
 	ras_page = (uintptr_t *) km_map(frame,
 	    PAGE_SIZE, PAGE_READ | PAGE_WRITE | PAGE_USER | PAGE_CACHEABLE);
-	
+
 	memsetb(ras_page, PAGE_SIZE, 0);
 	ras_page[RAS_START] = 0;
Index: kernel/arch/arm32/src/start.S
===================================================================
--- kernel/arch/arm32/src/start.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/arm32/src/start.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,9 +60,9 @@
 	orr r3, r4, #0x13
 	msr cpsr_c, r3
-	
+
 	ldr sp, =temp_stack
-	
+
 	bl arm32_pre_main
-	
+
 	#
 	# Create the first stack frame.
Index: kernel/arch/ia32/include/arch/asm.h
===================================================================
--- kernel/arch/ia32/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -174,5 +174,5 @@
 	if (((void *)port) < IO_SPACE_BOUNDARY) {
 		uint8_t val;
-		
+
 		asm volatile (
 			"inb %w[port], %b[val]\n"
@@ -180,5 +180,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
@@ -198,5 +198,5 @@
 	if (((void *)port) < IO_SPACE_BOUNDARY) {
 		uint16_t val;
-		
+
 		asm volatile (
 			"inw %w[port], %w[val]\n"
@@ -204,5 +204,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
@@ -222,5 +222,5 @@
 	if (((void *)port) < IO_SPACE_BOUNDARY) {
 		uint32_t val;
-		
+
 		asm volatile (
 			"inl %w[port], %[val]\n"
@@ -228,5 +228,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
@@ -243,5 +243,5 @@
 		: [v] "=r" (eflags)
 	);
-	
+
 	return eflags;
 }
@@ -276,7 +276,7 @@
 {
 	ipl_t ipl = interrupts_read();
-	
+
 	asm volatile ("sti\n");
-	
+
 	return ipl;
 }
@@ -292,7 +292,7 @@
 {
 	ipl_t ipl = interrupts_read();
-	
+
 	asm volatile ("cli\n");
-	
+
 	return ipl;
 }
@@ -336,5 +336,5 @@
 {
 	uint32_t ax, dx;
-	
+
 	asm volatile (
 		"rdmsr"
@@ -343,5 +343,5 @@
 		: "c" (msr)
 	);
-	
+
 	return ((uint64_t) dx << 32) | ax;
 }
@@ -360,5 +360,5 @@
 {
 	uintptr_t v;
-	
+
 	asm volatile (
 		"andl %%esp, %[v]\n"
@@ -366,5 +366,5 @@
 		: "0" (~(STACK_SIZE - 1))
 	);
-	
+
 	return v;
 }
Index: kernel/arch/ia32/include/arch/atomic.h
===================================================================
--- kernel/arch/ia32/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 {
 	atomic_count_t r = 1;
-	
+
 	asm volatile (
 		"lock xaddl %[r], %[count]\n"
@@ -81,5 +81,5 @@
 		  [r] "+r" (r)
 	);
-	
+
 	return r;
 }
@@ -88,5 +88,5 @@
 {
 	atomic_count_t r = -1;
-	
+
 	asm volatile (
 		"lock xaddl %[r], %[count]\n"
@@ -94,5 +94,5 @@
 		  [r] "+r" (r)
 	);
-	
+
 	return r;
 }
@@ -104,5 +104,5 @@
 {
 	atomic_count_t v = 1;
-	
+
 	asm volatile (
 		"xchgl %[v], %[count]\n"
@@ -110,5 +110,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return v;
 }
@@ -119,5 +119,5 @@
 {
 	atomic_count_t tmp;
-	
+
 	preemption_disable();
 	asm volatile (
@@ -129,5 +129,5 @@
 		"testl %[tmp], %[tmp]\n"
 		"jnz 0b\n"       /* lightweight looping on locked spinlock */
-		
+
 		"incl %[tmp]\n"  /* now use the atomic operation */
 		"xchgl %[count], %[tmp]\n"
@@ -137,5 +137,5 @@
 		  [tmp] "=&r" (tmp)
 	);
-	
+
 	/*
 	 * Prevent critical section code from bleeding out this way up.
Index: kernel/arch/ia32/include/arch/cpu.h
===================================================================
--- kernel/arch/ia32/include/arch/cpu.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/include/arch/cpu.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -80,5 +80,5 @@
 
 	tss_t *tss;
-	
+
 	size_t iomapver_copy;  /** Copy of TASK's I/O Permission bitmap generation count. */
 } cpu_arch_t;
Index: kernel/arch/ia32/include/arch/cpuid.h
===================================================================
--- kernel/arch/ia32/include/arch/cpuid.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/include/arch/cpuid.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -83,17 +83,17 @@
 	uint32_t val;
 	uint32_t ret;
-	
+
 	asm volatile (
 		"pushf\n"                      /* read flags */
 		"popl %[ret]\n"
 		"movl %[ret], %[val]\n"
-		
+
 		"xorl %[eflags_id], %[val]\n"  /* swap the ID bit */
-		
+
 		"pushl %[val]\n"               /* propagate the change into flags */
 		"popf\n"
 		"pushf\n"
 		"popl %[val]\n"
-		
+
 		"andl %[eflags_id], %[ret]\n"  /* interrested only in ID bit */
 		"andl %[eflags_id], %[val]\n"
@@ -102,5 +102,5 @@
 		: [eflags_id] "i" (EFLAGS_ID)
 	);
-	
+
 	return ret;
 }
Index: kernel/arch/ia32/include/arch/cycle.h
===================================================================
--- kernel/arch/ia32/include/arch/cycle.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/include/arch/cycle.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,10 +44,10 @@
 #else
 	uint64_t v;
-	
+
 	asm volatile(
 		"rdtsc\n"
 		: "=A" (v)
 	);
-	
+
 	return v;
 #endif
Index: kernel/arch/ia32/include/arch/mm/page.h
===================================================================
--- kernel/arch/ia32/include/arch/mm/page.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/include/arch/mm/page.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -183,5 +183,5 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	return ((!p->page_cache_disable) << PAGE_CACHEABLE_SHIFT |
 	    (!p->present) << PAGE_PRESENT_SHIFT |
@@ -196,5 +196,5 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	p->page_cache_disable = !(flags & PAGE_CACHEABLE);
 	p->present = !(flags & PAGE_NOT_PRESENT);
@@ -202,5 +202,5 @@
 	p->writeable = (flags & PAGE_WRITE) != 0;
 	p->global = (flags & PAGE_GLOBAL) != 0;
-	
+
 	/*
 	 * Ensure that there is at least one bit set even if the present bit is
Index: kernel/arch/ia32/include/arch/smp/apic.h
===================================================================
--- kernel/arch/ia32/include/arch/smp/apic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/include/arch/smp/apic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -334,5 +334,5 @@
 		} __attribute__ ((packed));
 	};
-	
+
 } __attribute__ ((packed)) io_redirection_reg_t;
 
Index: kernel/arch/ia32/include/arch/smp/smp.h
===================================================================
--- kernel/arch/ia32/include/arch/smp/smp.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/include/arch/smp/smp.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,11 +43,11 @@
 	/** Check whether a processor is enabled. */
 	bool (*cpu_enabled)(size_t);
-	
+
 	/** Check whether a processor is BSP. */
 	bool (*cpu_bootstrap)(size_t);
-	
+
 	/** Return APIC ID of a processor. */
 	uint8_t (*cpu_apic_id)(size_t);
-	
+
 	/** Return mapping between IRQ and APIC pin. */
 	int (*irq_to_pin)(unsigned int);
Index: kernel/arch/ia32/src/asm.S
===================================================================
--- kernel/arch/ia32/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,26 +63,26 @@
 	movl %edi, %edx  /* save %edi */
 	movl %esi, %eax  /* save %esi */
-	
+
 	movl MEMCPY_SIZE(%esp), %ecx
 	shrl $2, %ecx  /* size / 4 */
-	
+
 	movl MEMCPY_DST(%esp), %edi
 	movl MEMCPY_SRC(%esp), %esi
-	
+
 	/* Copy whole words */
 	rep movsl
-	
+
 	movl MEMCPY_SIZE(%esp), %ecx
 	andl $3, %ecx  /* size % 4 */
 	jz 0f
-	
+
 	/* Copy the rest byte by byte */
 	rep movsb
-	
+
 	0:
-	
+
 		movl %edx, %edi
 		movl %eax, %esi
-		
+
 		/* MEMCPY_DST(%esp), success */
 		movl MEMCPY_DST(%esp), %eax
@@ -99,5 +99,5 @@
 	movl %edx, %edi
 	movl %eax, %esi
-	
+
 	/* Return 0, failure */
 	xorl %eax, %eax
@@ -112,10 +112,10 @@
 	movl %cr0, %edx
 	orl $CR0_PG, %edx  /* paging on */
-	
+
 	/* Clear Cache Disable and not Write Though */
 	andl $~(CR0_CD | CR0_NW), %edx
 	movl %edx, %cr0
 	jmp 0f
-	
+
 	0:
 		ret
@@ -174,5 +174,5 @@
 	movl %edi, ISTATE_OFFSET_EDI(%esp)	/* observability; not needed */
 	movl %ebp, ISTATE_OFFSET_EBP(%esp)	/* observability; not needed */
-	
+
 	/*
 	 * Fake up the stack trace linkage.
@@ -190,5 +190,5 @@
 	movl $(GDT_SELECTOR(VREG_DES)), %eax
 	movl %eax, %gs
-	
+
 	/*
 	 * Sanitize EFLAGS.
@@ -207,5 +207,5 @@
 
 	call syscall_handler
-	
+
 	/*
 	 * Prepare return address and userspace stack for SYSEXIT.
@@ -252,5 +252,5 @@
 	movl %es, %ecx
 	movl %ds, %edx
-		
+
 	movl %ecx, ISTATE_OFFSET_ES(%esp)
 	movl %edx, ISTATE_OFFSET_DS(%esp)
@@ -264,15 +264,15 @@
 	movl $(GDT_SELECTOR(VREG_DES)), %eax
 	movl %eax, %gs
-		
+
 	movl $0, ISTATE_OFFSET_EBP_FRAME(%esp)
 	movl ISTATE_OFFSET_EIP(%esp), %eax
 	movl %eax, ISTATE_OFFSET_EIP_FRAME(%esp)
 	leal ISTATE_OFFSET_EBP_FRAME(%esp), %ebp
-		
+
 	cld
-		
+
 	/* Call syscall_handler(edx, ecx, ebx, esi, edi, ebp, eax) */
 	call syscall_handler
-			
+
 	/*
 	 * Restore the segment registers.
@@ -286,8 +286,8 @@
 	movl ISTATE_OFFSET_ES(%esp), %ecx
 	movl ISTATE_OFFSET_DS(%esp), %edx
-			
+
 	movl %ecx, %es
 	movl %edx, %ds
-			
+
 	/*
 	 * Restore the preserved registers the handler cloberred itself
@@ -295,8 +295,8 @@
 	 */
 	movl ISTATE_OFFSET_EBP(%esp), %ebp
-			
+
 	addl $(ISTATE_SOFT_SIZE + 4), %esp
 	iret
-		
+
 /**
  * Mask for interrupts 0 - 31 (bits 0 - 31) where 0 means that int
@@ -333,5 +333,5 @@
 		subl $(ISTATE_SOFT_SIZE + 4), %esp
 	.endif
-	
+
 	/*
 	 * Save the general purpose registers.
@@ -344,5 +344,5 @@
 	movl %esi, ISTATE_OFFSET_ESI(%esp)
 	movl %ebp, ISTATE_OFFSET_EBP(%esp)
-	
+
 	/*
 	 * Save the segment registers.
@@ -356,8 +356,8 @@
 	movl %es, %ecx
 	movl %ds, %edx
-	
+
 	movl %ecx, ISTATE_OFFSET_ES(%esp)
 	movl %edx, ISTATE_OFFSET_DS(%esp)
-	
+
 	/*
 	 * Switch to kernel selectors.
@@ -368,5 +368,5 @@
 	movl $(GDT_SELECTOR(VREG_DES)), %eax
 	movl %eax, %gs
-	
+
 	/*
 	 * Imitate a regular stack frame linkage.
@@ -387,15 +387,15 @@
 	movl %eax, ISTATE_OFFSET_EIP_FRAME(%esp)
 	leal ISTATE_OFFSET_EBP_FRAME(%esp), %ebp
-		
+
 	cld
-		
+
 	pushl %esp   /* pass istate address */
 	pushl $(\i)  /* pass intnum */
-		
+
 	/* Call exc_dispatch(intnum, istate) */
 	call exc_dispatch
-		
+
 	addl $8, %esp  /* clear arguments from the stack */
-		
+
 	/*
 	 * Restore the selector registers.
@@ -409,8 +409,8 @@
 	movl ISTATE_OFFSET_ES(%esp), %ecx
 	movl ISTATE_OFFSET_DS(%esp), %edx
-		
+
 	movl %ecx, %es
 	movl %edx, %ds
-		
+
 	/*
 	 * Restore the scratch registers and the preserved
@@ -422,5 +422,5 @@
 	movl ISTATE_OFFSET_EDX(%esp), %edx
 	movl ISTATE_OFFSET_EBP(%esp), %ebp
-		
+
 	addl $(ISTATE_SOFT_SIZE + 4), %esp
 	iret
@@ -452,7 +452,7 @@
  */
 FUNCTION_BEGIN(early_putchar)
-	
+
 #if ((defined(CONFIG_EGA)) && (!defined(CONFIG_FB)))
-	
+
 	/* Prologue, save preserved registers */
 	pushl %ebp
@@ -461,83 +461,83 @@
 	pushl %esi
 	pushl %edi
-	
+
 	movl $(PA2KA(0xb8000)), %edi  /* base of EGA text mode memory */
 	xorl %eax, %eax
-	
+
 	/* Read bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
 	shl $8, %ax
-	
+
 	/* Read bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
-	
+
 	/* Sanity check for the cursor on screen */
 	cmp $2000, %ax
 	jb early_putchar_cursor_ok
-	
+
 		movw $1998, %ax
-	
+
 	early_putchar_cursor_ok:
-	
+
 	movw %ax, %bx
 	shl $1, %eax
 	addl %eax, %edi
-	
+
 	movl 0x08(%ebp), %eax
-	
+
 	cmp $0x0a, %al
 	jne early_putchar_backspace
-	
+
 		/* Interpret newline */
-		
+
 		movw %bx, %ax  /* %bx -> %dx:%ax */
 		xorw %dx, %dx
-		
+
 		movw $80, %cx
 		idivw %cx, %ax  /* %dx = %bx % 80 */
-		
+
 		/* %bx <- %bx + 80 - (%bx % 80) */
 		addw %cx, %bx
 		subw %dx, %bx
-		
+
 		jmp early_putchar_skip
-	
+
 	early_putchar_backspace:
-	
+
 		cmp $0x08, %al
 		jne early_putchar_print
-		
+
 		/* Interpret backspace */
-		
+
 		cmp $0x0000, %bx
 		je early_putchar_skip
-		
+
 		dec %bx
 		jmp early_putchar_skip
-	
+
 	early_putchar_print:
-	
+
 		/* Print character */
-		
+
 		movb $0x0e, %ah  /* black background, yellow foreground */
 		stosw
 		inc %bx
-	
+
 	early_putchar_skip:
-	
+
 	/* Sanity check for the cursor on the last line */
 	cmp $2000, %bx
 	jb early_putchar_no_scroll
-	
+
 		/* Scroll the screen (24 rows) */
 		movl $(PA2KA(0xb80a0)), %esi
@@ -545,33 +545,33 @@
 		movl $960, %ecx
 		rep movsl
-		
+
 		/* Clear the 24th row */
 		xorl %eax, %eax
 		movl $40, %ecx
 		rep stosl
-		
+
 		/* Go to row 24 */
 		movw $1920, %bx
-	
+
 	early_putchar_no_scroll:
-	
+
 	/* Write bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bh, %al
 	outb %al, %dx
-	
+
 	/* Write bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bl, %al
 	outb %al, %dx
-	
+
 	/* Epilogue, restore preserved registers */
 	popl %edi
@@ -579,7 +579,7 @@
 	popl %ebx
 	leave
-	
+
 #endif
-	
+
 	ret
 FUNCTION_END(early_putchar)
Index: kernel/arch/ia32/src/atomic.S
===================================================================
--- kernel/arch/ia32/src/atomic.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/atomic.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,5 +39,5 @@
 	pushl %eax
 	pushl %ebx
-	
+
 	movl 12(%esp),%ebx
 
@@ -56,4 +56,4 @@
 	ret
 FUNCTION_END(spinlock_arch)
-	
+
 #endif
Index: kernel/arch/ia32/src/boot/multiboot.S
===================================================================
--- kernel/arch/ia32/src/boot/multiboot.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/boot/multiboot.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,8 +77,8 @@
 	cli
 	cld
-	
+
 	/* Initialize stack pointer */
 	movl $START_STACK, %esp
-	
+
 	/*
 	 * Initialize Global Descriptor Table and
@@ -87,5 +87,5 @@
 	lgdtl bootstrap_gdtr
 	lidtl bootstrap_idtr
-	
+
 	/* Kernel data + stack */
 	movw $GDT_SELECTOR(KDATA_DES), %cx
@@ -95,61 +95,61 @@
 	movw %cx, %ds
 	movw %cx, %ss
-	
+
 	jmpl $GDT_SELECTOR(KTEXT_DES), $multiboot_meeting_point
 	multiboot_meeting_point:
-	
+
 	/* Save multiboot arguments */
 	movl %eax, multiboot_eax
 	movl %ebx, multiboot_ebx
-	
+
 	pm_status $status_prot
-	
+
 #include "vesa_prot.inc"
-	
+
 #ifndef PROCESSOR_i486
-	
+
 	pm_status $status_prot2
-	
+
 	movl $(INTEL_CPUID_LEVEL), %eax
 	cpuid
 	cmp $0x0, %eax  /* any function > 0? */
 	jbe pse_unsupported
-	
+
 	movl $(INTEL_CPUID_STANDARD), %eax
 	cpuid
 	bt $(INTEL_PSE), %edx
 	jnc pse_unsupported
-		
+
 		/* Map kernel and turn paging on */
 		pm_status $status_pse
 		call map_kernel_pse
 		jmp stack_init
-	
+
 #endif /* PROCESSOR_i486 */
-	
+
 	pse_unsupported:
-		
+
 		/* Map kernel and turn paging on */
 		pm_status $status_non_pse
 		call map_kernel_non_pse
-	
+
 	stack_init:
-	
+
 	/* Create the first stack frame */
 	pushl $0
 	movl %esp, %ebp
-	
+
 	pm2_status $status_prot3
-	
+
 	/* Call ia32_pre_main(multiboot_eax, multiboot_ebx) */
 	pushl multiboot_ebx
 	pushl multiboot_eax
 	call ia32_pre_main
-	
+
 	pm2_status $status_main
-	
+
 	/* Call main_bsp() */
 	call main_bsp
-	
+
 	/* Not reached */
 	cli
@@ -170,10 +170,10 @@
 	andl $~CR4_PAE, %ecx	/* PAE off */
 	movl %ecx, %cr4
-	
+
 	movl $(page_directory + 0), %esi
 	movl $(page_directory + 2048), %edi
 	xorl %ecx, %ecx
 	xorl %ebx, %ebx
-	
+
 	floop_pse:
 		movl $(PDE_4M | PDE_RW | PDE_P), %eax
@@ -184,11 +184,11 @@
 		movl %eax, (%edi, %ecx, 4)
 		addl $(4 * 1024 * 1024), %ebx
-		
+
 		incl %ecx
 		cmpl $512, %ecx
 		jl floop_pse
-	
+
 	movl %esi, %cr3
-	
+
 	movl %cr0, %ebx
 	orl $CR0_PG, %ebx	/* paging on */
@@ -208,37 +208,37 @@
 	andl $~CR4_PAE, %ecx  /* PAE off */
 	movl %ecx, %cr4
-	
+
 	call calc_kernel_end
 	call find_mem_for_pt
-	
+
 	mov kernel_end, %esi
 	mov free_area, %ecx
-	
+
 	cmpl %esi, %ecx
 	jbe use_kernel_end
-		
+
 		mov %ecx, %esi
-		
+
 		/* Align address down to 4k */
 		andl $(~(PAGE_SIZE - 1)), %esi
-		
+
 	use_kernel_end:
-		
+
 		/* Align address to 4k */
 		addl $(PAGE_SIZE - 1), %esi
 		andl $(~(PAGE_SIZE - 1)), %esi
-		
+
 		/* Allocate space for page tables */
 		movl %esi, pt_loc
 		movl $KA2PA(ballocs), %edi
-		
+
 		movl %esi, (%edi)
 		addl $4, %edi
 		movl $(2 * 1024 * 1024), (%edi)
-		
+
 		/* Fill page tables */
 		xorl %ecx, %ecx
 		xorl %ebx, %ebx
-		
+
 		floop_pt:
 			movl $(PTE_RW | PTE_P), %eax
@@ -246,10 +246,10 @@
 			movl %eax, (%esi, %ecx, 4)
 			addl $PAGE_SIZE, %ebx
-			
+
 			incl %ecx
 			cmpl $(512 * 1024), %ecx
-			
+
 			jl floop_pt
-		
+
 		/* Fill page directory */
 		movl $(page_directory + 0), %esi
@@ -257,27 +257,27 @@
 		xorl %ecx, %ecx
 		movl pt_loc, %ebx
-		
+
 		floop:
 			movl $(PDE_RW | PDE_P), %eax
 			orl %ebx, %eax
-			
+
 			/* Mapping 0x00000000 + %ecx * 4M => 0x00000000 + %ecx * 4M */
 			movl %eax, (%esi, %ecx, 4)
-			
+
 			/* Mapping 0x80000000 + %ecx * 4M => 0x00000000 + %ecx * 4M */
 			movl %eax, (%edi, %ecx, 4)
 			addl $PAGE_SIZE, %ebx
-			
+
 			incl %ecx
 			cmpl $512, %ecx
-			
+
 			jl floop
-		
+
 		movl %esi, %cr3
-		
+
 		movl %cr0, %ebx
 		orl $CR0_PG, %ebx  /* paging on */
 		movl %ebx, %cr0
-		
+
 		ret
 FUNCTION_END(map_kernel_non_pse)
@@ -288,14 +288,14 @@
 	movl (%edi), %esi
 	leal KA2PA(0)(%esi), %esi
-	
+
 	movl $KA2PA(hardcoded_ktext_size), %edi
 	addl (%edi), %esi
 	leal KA2PA(0)(%esi), %esi
-	
+
 	movl $KA2PA(hardcoded_kdata_size), %edi
 	addl (%edi), %esi
 	leal KA2PA(0)(%esi), %esi
 	movl %esi, kernel_end
-	
+
 	ret
 
@@ -305,34 +305,34 @@
 	cmpl $MULTIBOOT_LOADER_MAGIC, multiboot_eax
 	je check_multiboot_map
-		
+
 		ret
-	
+
 	check_multiboot_map:
-		
+
 		/* Copy address of the multiboot info to ebx */
 		movl multiboot_ebx, %ebx
-		
+
 		/* Check if memory map flag is present */
 		movl (%ebx), %edx
 		andl $MULTIBOOT_INFO_FLAGS_MMAP, %edx
 		jnz use_multiboot_map
-			
+
 			ret
-		
+
 	use_multiboot_map:
-		
+
 		/* Copy address of the memory map to edx */
 		movl MULTIBOOT_INFO_OFFSET_MMAP_ADDR(%ebx), %edx
 		movl %edx, %ecx
-		
+
 		addl MULTIBOOT_INFO_OFFSET_MMAP_LENGTH(%ebx), %ecx
-		
+
 		/* Find a free region at least 2M in size */
 		check_memmap_loop:
-			
+
 			/* Is this a free region? */
 			cmpl $MEMMAP_MEMORY_AVAILABLE, MULTIBOOT_MEMMAP_OFFSET_MM_INFO + E820MEMMAP_OFFSET_TYPE(%edx)
 			jnz next_region
-			
+
 			/* Check size */
 			cmpl $0, MULTIBOOT_MEMMAP_OFFSET_MM_INFO + E820MEMMAP_OFFSET_SIZE + 4(%edx)
@@ -340,23 +340,23 @@
 			cmpl $(2 * 1024 * 1024 + PAGE_SIZE), MULTIBOOT_MEMMAP_OFFSET_MM_INFO + E820MEMMAP_OFFSET_SIZE(%edx)
 			jbe next_region
-			
+
 			cmpl $0, MULTIBOOT_MEMMAP_OFFSET_MM_INFO + E820MEMMAP_OFFSET_BASE_ADDRESS + 4(%edx)
 			jz found_region
-		
+
 		next_region:
-			
+
 			cmp %ecx, %edx
 			jbe next_region_do
-			
+
 				ret
-		
+
 		next_region_do:
-			
+
 			addl MULTIBOOT_MEMMAP_OFFSET_SIZE(%edx), %edx
 			addl $MULTIBOOT_MEMMAP_SIZE_SIZE, %edx
 			jmp check_memmap_loop
-			
+
 		found_region:
-			
+
 			/* Use end of the found region */
 			mov MULTIBOOT_MEMMAP_OFFSET_MM_INFO + E820MEMMAP_OFFSET_BASE_ADDRESS(%edx), %ecx
@@ -364,5 +364,5 @@
 			sub $(2 * 1024 * 1024), %ecx
 			mov %ecx, free_area
-			
+
 			ret
 
@@ -381,48 +381,48 @@
 	movl $0xb8000, %edi  /* base of EGA text mode memory */
 	xorl %eax, %eax
-	
+
 	/* Read bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
 	shl $8, %ax
-	
+
 	/* Read bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
-	
+
 	/* Sanity check for the cursor on screen */
 	cmp $2000, %ax
 	jb err_cursor_ok
-	
+
 		movw $1998, %ax
-	
+
 	err_cursor_ok:
-	
+
 	movw %ax, %bx
 	shl $1, %eax
 	addl %eax, %edi
-	
+
 	err_ploop:
 		lodsb
-		
+
 		cmp $0, %al
 		je err_ploop_end
-		
+
 		movb $0x0c, %ah  /* black background, light red foreground */
 		stosw
-		
+
 		/* Sanity check for the cursor on the last line */
 		inc %bx
 		cmp $2000, %bx
 		jb err_ploop
-		
+
 		/* Scroll the screen (24 rows) */
 		movl %esi, %edx
@@ -431,36 +431,36 @@
 		movl $960, %ecx
 		rep movsl
-		
+
 		/* Clear the 24th row */
 		xorl %eax, %eax
 		movl $40, %ecx
 		rep stosl
-		
+
 		/* Go to row 24 */
 		movl %edx, %esi
 		movl $0xb8f00, %edi
 		movw $1920, %bx
-		
+
 		jmp err_ploop
 	err_ploop_end:
-	
+
 	/* Write bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bh, %al
 	outb %al, %dx
-	
+
 	/* Write bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bl, %al
 	outb %al, %dx
-	
+
 	cli
 	hlt1:
@@ -486,51 +486,51 @@
 	pushl %edx
 	pushl %edi
-	
+
 	movl $0xb8000, %edi  /* base of EGA text mode memory */
 	xorl %eax, %eax
-	
+
 	/* Read bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
 	shl $8, %ax
-	
+
 	/* Read bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
-	
+
 	/* Sanity check for the cursor on screen */
 	cmp $2000, %ax
 	jb pm_puts_cursor_ok
-	
+
 		movw $1998, %ax
-	
+
 	pm_puts_cursor_ok:
-	
+
 	movw %ax, %bx
 	shl $1, %eax
 	addl %eax, %edi
-	
+
 	pm_puts_ploop:
 		lodsb
-		
+
 		cmp $0, %al
 		je pm_puts_ploop_end
-		
+
 		movb $0x0a, %ah  /* black background, light green foreground */
 		stosw
-		
+
 		/* Sanity check for the cursor on the last line */
 		inc %bx
 		cmp $2000, %bx
 		jb pm_puts_ploop
-		
+
 		/* Scroll the screen (24 rows) */
 		movl %esi, %edx
@@ -539,36 +539,36 @@
 		movl $960, %ecx
 		rep movsl
-		
+
 		/* Clear the 24th row */
 		xorl %eax, %eax
 		movl $40, %ecx
 		rep stosl
-		
+
 		/* Go to row 24 */
 		movl %edx, %esi
 		movl $0xb8f00, %edi
 		movw $1920, %bx
-		
+
 		jmp pm_puts_ploop
 	pm_puts_ploop_end:
-	
+
 	/* Write bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bh, %al
 	outb %al, %dx
-	
+
 	/* Write bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bl, %al
 	outb %al, %dx
-	
+
 	popl %edi
 	popl %edx
@@ -576,5 +576,5 @@
 	popl %ebx
 	popl %eax
-	
+
 	ret
 
@@ -591,7 +591,7 @@
  */
 early_puts:
-	
+
 #if ((defined(CONFIG_EGA)) && (!defined(CONFIG_FB)))
-	
+
 	/* Prologue, save preserved registers */
 	pushl %ebp
@@ -600,52 +600,52 @@
 	pushl %esi
 	pushl %edi
-	
+
 	movl 0x08(%ebp), %esi
 	movl $(PA2KA(0xb8000)), %edi  /* base of EGA text mode memory */
 	xorl %eax, %eax
-	
+
 	/* Read bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
 	shl $8, %ax
-	
+
 	/* Read bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	inb %dx, %al
-	
+
 	/* Sanity check for the cursor on screen */
 	cmp $2000, %ax
 	jb early_puts_cursor_ok
-	
+
 		movw $1998, %ax
-	
+
 	early_puts_cursor_ok:
-	
+
 	movw %ax, %bx
 	shl $1, %eax
 	addl %eax, %edi
-	
+
 	early_puts_ploop:
 		lodsb
-		
+
 		cmp $0, %al
 		je early_puts_ploop_end
-		
+
 		movb $0x0e, %ah  /* black background, yellow foreground */
 		stosw
-		
+
 		/* Sanity check for the cursor on the last line */
 		inc %bx
 		cmp $2000, %bx
 		jb early_puts_ploop
-		
+
 		/* Scroll the screen (24 rows) */
 		movl %esi, %edx
@@ -654,36 +654,36 @@
 		movl $960, %ecx
 		rep movsl
-		
+
 		/* Clear the 24th row */
 		xorl %eax, %eax
 		movl $40, %ecx
 		rep stosl
-		
+
 		/* Go to row 24 */
 		movl %edx, %esi
 		movl $(PA2KA(0xb8f00)), %edi
 		movw $1920, %bx
-		
+
 		jmp early_puts_ploop
 	early_puts_ploop_end:
-	
+
 	/* Write bits 8 - 15 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xe, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bh, %al
 	outb %al, %dx
-	
+
 	/* Write bits 0 - 7 of the cursor address */
 	movw $0x3d4, %dx
 	movb $0xf, %al
 	outb %al, %dx
-	
+
 	movw $0x3d5, %dx
 	movb %bl, %al
 	outb %al, %dx
-	
+
 	/* Epilogue, restore preserved registers */
 	popl %edi
@@ -691,7 +691,7 @@
 	popl %ebx
 	leave
-	
+
 #endif
-	
+
 	ret
 
Index: kernel/arch/ia32/src/boot/multiboot2.S
===================================================================
--- kernel/arch/ia32/src/boot/multiboot2.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/boot/multiboot2.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,5 +45,5 @@
 	.long multiboot2_header_end - multiboot2_header_start
 	.long -(MULTIBOOT2_HEADER_MAGIC + MULTIBOOT2_HEADER_ARCH_I386 + (multiboot2_header_end - multiboot2_header_start))
-	
+
 	/* Information request tag */
 	.align 8
@@ -59,5 +59,5 @@
 #endif
 	tag_info_req_end:
-	
+
 	/* Address tag */
 	.align 8
@@ -71,5 +71,5 @@
 		.long 0
 	tag_address_end:
-	
+
 	/* Entry address tag */
 	.align 8
@@ -80,5 +80,5 @@
 		.long multiboot2_image_start
 	tag_entry_address_end:
-	
+
 	/* Flags tag */
 	.align 8
@@ -89,5 +89,5 @@
 		.long MULTIBOOT2_FLAGS_CONSOLE
 	tag_flags_end:
-	
+
 #ifdef CONFIG_FB
 	/* Framebuffer tag */
@@ -102,5 +102,5 @@
 	tag_framebuffer_end:
 #endif
-	
+
 	/* Module alignment tag */
 	.align 8
@@ -111,5 +111,5 @@
 		.long 0
 	tag_module_align_end:
-	
+
 	/* Tag terminator */
 	.align 8
@@ -124,8 +124,8 @@
 	cli
 	cld
-	
+
 	/* Initialize stack pointer */
 	movl $START_STACK, %esp
-	
+
 	/*
 	 * Initialize Global Descriptor Table and
@@ -134,5 +134,5 @@
 	lgdtl bootstrap_gdtr
 	lidtl bootstrap_idtr
-	
+
 	/* Kernel data + stack */
 	movw $GDT_SELECTOR(KDATA_DES), %cx
@@ -142,49 +142,49 @@
 	movw %cx, %ds
 	movw %cx, %ss
-	
+
 	jmpl $GDT_SELECTOR(KTEXT_DES), $multiboot2_meeting_point
 	multiboot2_meeting_point:
-	
+
 	/* Save multiboot arguments */
 	movl %eax, multiboot_eax
 	movl %ebx, multiboot_ebx
-	
+
 #ifndef PROCESSOR_i486
-	
+
 	movl $(INTEL_CPUID_LEVEL), %eax
 	cpuid
 	cmp $0x0, %eax  /* any function > 0? */
 	jbe pse_unsupported
-	
+
 	movl $(INTEL_CPUID_STANDARD), %eax
 	cpuid
 	bt $(INTEL_PSE), %edx
 	jnc pse_unsupported
-		
+
 		/* Map kernel and turn paging on */
 		call map_kernel_pse
 		jmp stack_init
-	
+
 #endif /* PROCESSOR_i486 */
-	
+
 	pse_unsupported:
-		
+
 		/* Map kernel and turn paging on */
 		call map_kernel_non_pse
-	
+
 	stack_init:
-	
+
 	/* Create the first stack frame */
 	pushl $0
 	movl %esp, %ebp
-	
+
 	/* Call ia32_pre_main(multiboot_eax, multiboot_ebx) */
 	pushl multiboot_ebx
 	pushl multiboot_eax
 	call ia32_pre_main
-	
+
 	/* Call main_bsp() */
 	call main_bsp
-	
+
 	/* Not reached */
 	cli
Index: kernel/arch/ia32/src/cpu/cpu.c
===================================================================
--- kernel/arch/ia32/src/cpu/cpu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/cpu/cpu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -84,19 +84,19 @@
 	cpu_info_t info;
 	uint32_t help = 0;
-	
+
 	CPU->arch.tss = tss_p;
 	CPU->arch.tss->iomap_base = &CPU->arch.tss->iomap[0] - ((uint8_t *) CPU->arch.tss);
-	
+
 	CPU->fpu_owner = NULL;
-	
+
 	cpuid(INTEL_CPUID_STANDARD, &info);
-	
+
 	CPU->arch.fi.word = info.cpuid_edx;
-	
+
 	if (CPU->arch.fi.bits.fxsr)
 		fpu_fxsr();
 	else
 		fpu_fsr();
-	
+
 	if (CPU->arch.fi.bits.sse) {
 		asm volatile (
@@ -108,5 +108,5 @@
 		);
 	}
-	
+
 #ifndef PROCESSOR_i486
 	if (CPU->arch.fi.bits.sep) {
@@ -132,5 +132,5 @@
 		    && (info.cpuid_edx == AMD_CPUID_EDX))
 			CPU->arch.vendor = VendorAMD;
-		
+
 		/*
 		 * Check for Intel processor.
@@ -140,5 +140,5 @@
 		    && (info.cpuid_edx == INTEL_CPUID_EDX))
 			CPU->arch.vendor = VendorIntel;
-		
+
 		cpuid(INTEL_CPUID_STANDARD, &info);
 		CPU->arch.family = (info.cpuid_eax >> 8) & 0x0fU;
Index: kernel/arch/ia32/src/ddi/ddi.c
===================================================================
--- kernel/arch/ia32/src/ddi/ddi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/ddi/ddi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,16 +59,16 @@
 	/* First, copy the I/O Permission Bitmap. */
 	irq_spinlock_lock(&TASK->lock, false);
-	
+
 	size_t ver = TASK->arch.iomapver;
 	size_t elements = TASK->arch.iomap.elements;
-	
+
 	if (elements > 0) {
 		assert(TASK->arch.iomap.bits);
-		
+
 		bitmap_t iomap;
 		bitmap_initialize(&iomap, TSS_IOMAP_SIZE * 8,
 		    CPU->arch.tss->iomap);
 		bitmap_copy(&iomap, &TASK->arch.iomap, elements);
-		
+
 		/*
 		 * Set the trailing bits in the last byte of the map to disable
@@ -77,5 +77,5 @@
 		bitmap_set_range(&iomap, elements,
 		    ALIGN_UP(elements, 8) - elements);
-		
+
 		/*
 		 * It is safe to set the trailing eight bits because of the
@@ -84,7 +84,7 @@
 		bitmap_set_range(&iomap, ALIGN_UP(elements, 8), 8);
 	}
-	
+
 	irq_spinlock_unlock(&TASK->lock, false);
-	
+
 	/*
 	 * Second, adjust TSS segment limit.
@@ -93,10 +93,10 @@
 	ptr_16_32_t cpugdtr;
 	gdtr_store(&cpugdtr);
-	
+
 	descriptor_t *gdt_p = (descriptor_t *) cpugdtr.base;
 	size_t size = bitmap_size(elements);
 	gdt_setlimit(&gdt_p[TSS_DES], TSS_BASIC_SIZE + size);
 	gdtr_load(&cpugdtr);
-	
+
 	/*
 	 * Before we load new TSS limit, the current TSS descriptor
@@ -105,5 +105,5 @@
 	gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL;
 	tr_load(GDT_SELECTOR(TSS_DES));
-	
+
 	/*
 	 * Update the generation count so that faults caused by
Index: kernel/arch/ia32/src/drivers/i8254.c
===================================================================
--- kernel/arch/ia32/src/drivers/i8254.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/drivers/i8254.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -89,5 +89,5 @@
 	i8254_irq.handler = i8254_irq_handler;
 	irq_register(&i8254_irq);
-	
+
 	i8254_normal_operation();
 }
@@ -111,9 +111,9 @@
 	pio_write_8(CLK_PORT1, 0xff);
 	pio_write_8(CLK_PORT1, 0xff);
-	
+
 	uint8_t not_ok;
 	uint32_t t1;
 	uint32_t t2;
-	
+
 	do {
 		/* will read both status and count */
@@ -123,11 +123,11 @@
 		t1 |= pio_read_8(CLK_PORT1) << 8;
 	} while (not_ok);
-	
+
 	asm_delay_loop(LOOPS);
-	
+
 	pio_write_8(CLK_PORT4, 0xd2);
 	t2 = pio_read_8(CLK_PORT1);
 	t2 |= pio_read_8(CLK_PORT1) << 8;
-	
+
 	/*
 	 * We want to determine the overhead of the calibrating mechanism.
@@ -136,21 +136,21 @@
 	uint32_t o1 = pio_read_8(CLK_PORT1);
 	o1 |= pio_read_8(CLK_PORT1) << 8;
-	
+
 	asm_fake_loop(LOOPS);
-	
+
 	pio_write_8(CLK_PORT4, 0xd2);
 	uint32_t o2 = pio_read_8(CLK_PORT1);
 	o2 |= pio_read_8(CLK_PORT1) << 8;
-	
+
 	CPU->delay_loop_const =
 	    ((MAGIC_NUMBER * LOOPS) / 1000) / ((t1 - t2) - (o1 - o2)) +
 	    (((MAGIC_NUMBER * LOOPS) / 1000) % ((t1 - t2) - (o1 - o2)) ? 1 : 0);
-	
+
 	uint64_t clk1 = get_cycle();
 	delay(1 << SHIFT);
 	uint64_t clk2 = get_cycle();
-	
+
 	CPU->frequency_mhz = (clk2 - clk1) >> SHIFT;
-	
+
 	return;
 }
Index: kernel/arch/ia32/src/fpu_context.c
===================================================================
--- kernel/arch/ia32/src/fpu_context.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/fpu_context.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 	X87_DENORMAL_EXC_FLAG = (1 << 1),
 	X87_INVALID_OP_EXC_FLAG = (1 << 0),
-	
+
 	X87_ALL_MASK = X87_PRECISION_MASK | X87_UNDERFLOW_MASK | X87_OVERFLOW_MASK | X87_ZERO_DIV_MASK | X87_DENORMAL_OP_MASK | X87_INVALID_OP_MASK,
 };
@@ -129,5 +129,5 @@
 	uint32_t help0 = 0;
 	uint32_t help1 = 0;
-	
+
 	asm volatile (
 		"fninit\n"
Index: kernel/arch/ia32/src/ia32.c
===================================================================
--- kernel/arch/ia32/src/ia32.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/ia32.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -92,5 +92,5 @@
 	multiboot_info_parse(signature, (multiboot_info_t *) info);
 	multiboot2_info_parse(signature, (multiboot2_info_t *) info);
-	
+
 #ifdef CONFIG_SMP
 	/* Copy AP bootstrap routines below 1 MB. */
@@ -107,5 +107,5 @@
 		interrupt_init();
 		bios_init();
-		
+
 		/* PIC */
 		i8259_init();
@@ -120,16 +120,16 @@
 		/* Initialize IRQ routing */
 		irq_init(IRQ_COUNT, IRQ_COUNT);
-		
+
 		/* hard clock */
 		i8254_init();
-		
+
 #if (defined(CONFIG_FB) || defined(CONFIG_EGA))
 		bool bfb = false;
 #endif
-		
+
 #ifdef CONFIG_FB
 		bfb = bfb_init();
 #endif
-		
+
 #ifdef CONFIG_EGA
 		if (!bfb) {
@@ -139,5 +139,5 @@
 		}
 #endif
-		
+
 		/* Merge all memory zones to 1 big zone */
 		zone_merge_all();
@@ -220,5 +220,5 @@
 	}
 #endif
-	
+
 	if (irqs_info != NULL)
 		sysinfo_set_item_val(irqs_info, NULL, true);
Index: kernel/arch/ia32/src/interrupt.c
===================================================================
--- kernel/arch/ia32/src/interrupt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/interrupt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,16 +72,16 @@
 	    "efl=%0#10" PRIx32 "\terr=%0#10" PRIx32 "\n",
 	    istate->cs, istate->eip, istate->eflags, istate->error_word);
-	
+
 	printf("ds =%0#10" PRIx32 "\tes =%0#10" PRIx32 "\t"
 	    "fs =%0#10" PRIx32 "\tgs =%0#10" PRIx32 "\n",
 	    istate->ds, istate->es, istate->fs, istate->gs);
-	
+
 	if (istate_from_uspace(istate))
 		printf("ss =%0#10" PRIx32 "\n", istate->ss);
-	
+
 	printf("eax=%0#10" PRIx32 "\tebx=%0#10" PRIx32 "\t"
 	    "ecx=%0#10" PRIx32 "\tedx=%0#10" PRIx32 "\n",
 	    istate->eax, istate->ebx, istate->ecx, istate->edx);
-	
+
 	printf("esi=%0#10" PRIx32 "\tedi=%0#10" PRIx32 "\t"
 	    "ebp=%0#10" PRIx32 "\tesp=%0#10" PRIxn "\n",
@@ -119,5 +119,5 @@
 		size_t ver = TASK->arch.iomapver;
 		irq_spinlock_unlock(&TASK->lock, false);
-		
+
 		if (CPU->arch.iomapver_copy != ver) {
 			/*
@@ -149,5 +149,5 @@
 		: [mxcsr] "=m" (mxcsr)
 	);
-	
+
 	fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR=%#0" PRIx32 ".",
 	    mxcsr);
@@ -185,10 +185,10 @@
 {
 	assert(n >= IVT_IRQBASE);
-	
+
 	unsigned int inum = n - IVT_IRQBASE;
 	bool ack = false;
 	assert(inum < IRQ_COUNT);
 	assert((inum != IRQ_PIC_SPUR) && (inum != IRQ_PIC1));
-	
+
 	irq_t *irq = irq_dispatch_and_lock(inum);
 	if (irq) {
@@ -196,5 +196,5 @@
 		 * The IRQ handler was found.
 		 */
-		
+
 		if (irq->preack) {
 			/* Send EOI before processing the interrupt */
@@ -212,5 +212,5 @@
 #endif
 	}
-	
+
 	if (!ack)
 		trap_virtual_eoi();
@@ -220,8 +220,8 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < IVT_ITEMS; i++)
 		exc_register(i, "null", false, (iroutine_t) null_interrupt);
-	
+
 	for (i = 0; i < IRQ_COUNT; i++) {
 		if ((i != IRQ_PIC_SPUR) && (i != IRQ_PIC1))
@@ -229,5 +229,5 @@
 			    (iroutine_t) irq_interrupt);
 	}
-	
+
 	exc_register(VECTOR_DE, "de_fault", true, (iroutine_t) de_fault);
 	exc_register(VECTOR_NM, "nm_fault", true, (iroutine_t) nm_fault);
@@ -235,5 +235,5 @@
 	exc_register(VECTOR_GP, "gp_fault", true, (iroutine_t) gp_fault);
 	exc_register(VECTOR_XM, "simd_fp", true, (iroutine_t) simd_fp_exception);
-	
+
 #ifdef CONFIG_SMP
 	exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", true,
Index: kernel/arch/ia32/src/mm/frame.c
===================================================================
--- kernel/arch/ia32/src/mm/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/mm/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,9 +54,9 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < e820counter; i++) {
 		uint64_t base64 = e820table[i].base_address;
 		uint64_t size64 = e820table[i].size;
-		
+
 #ifdef KARCH_ia32
 		/*
@@ -65,15 +65,15 @@
 		if (base64 >= PHYSMEM_LIMIT32)
 			continue;
-		
+
 		if (base64 + size64 > PHYSMEM_LIMIT32)
 			size64 = PHYSMEM_LIMIT32 - base64;
 #endif
-		
+
 		uintptr_t base = (uintptr_t) base64;
 		size_t size = (size_t) size64;
-		
+
 		if (!frame_adjust_zone_bounds(low, &base, &size))
 			continue;
-		
+
 		if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) {
 			/* To be safe, make the available zone possibly smaller */
@@ -81,9 +81,9 @@
 			uint64_t new_size = ALIGN_DOWN(size - (new_base - base),
 			    FRAME_SIZE);
-			
+
 			size_t count = SIZE2FRAMES(new_size);
 			pfn_t pfn = ADDR2PFN(new_base);
 			pfn_t conf;
-			
+
 			if (low) {
 				if ((minconf < pfn) || (minconf >= pfn + count))
@@ -105,5 +105,5 @@
 			uint64_t new_size = ALIGN_UP(size + (base - new_base),
 			    FRAME_SIZE);
-			
+
 			zone_create(ADDR2PFN(new_base), SIZE2FRAMES(new_size), 0,
 			    ZONE_FIRMWARE);
@@ -113,5 +113,5 @@
 			uint64_t new_size = ALIGN_UP(size + (base - new_base),
 			    FRAME_SIZE);
-			
+
 			zone_create(ADDR2PFN(new_base), SIZE2FRAMES(new_size), 0,
 			    ZONE_RESERVED);
@@ -133,13 +133,13 @@
 	unsigned int i;
 	printf("[base            ] [size            ] [name   ]\n");
-	
+
 	for (i = 0; i < e820counter; i++) {
 		const char *name;
-		
+
 		if (e820table[i].type <= MEMMAP_MEMORY_UNUSABLE)
 			name = e820names[e820table[i].type];
 		else
 			name = "invalid";
-		
+
 		printf("%#018" PRIx64 " %#018" PRIx64" %s\n", e820table[i].base_address,
 		    e820table[i].size, name);
@@ -150,8 +150,8 @@
 {
 	pfn_t minconf;
-	
+
 	if (config.cpu_active == 1) {
 		minconf = 1;
-		
+
 #ifdef CONFIG_SMP
 		minconf = max(minconf,
@@ -159,10 +159,10 @@
 		    hardcoded_unmapped_kdata_size));
 #endif
-		
+
 		init_e820_memory(minconf, true);
-		
+
 		/* Reserve frame 0 (BIOS data) */
 		frame_mark_unavailable(0, 1);
-		
+
 #ifdef CONFIG_SMP
 		/* Reserve AP real mode bootstrap memory */
Index: kernel/arch/ia32/src/mm/page.c
===================================================================
--- kernel/arch/ia32/src/mm/page.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/mm/page.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 	uintptr_t cur;
 	int flags;
-	
+
 	if (config.cpu_active > 1) {
 		/* Fast path for non-boot CPUs */
@@ -63,5 +63,5 @@
 
 	page_mapping_operations = &pt_mapping_operations;
-	
+
 	/*
 	 * PA2KA(identity) mapping for all low-memory frames.
@@ -74,8 +74,8 @@
 	}
 	page_table_unlock(AS_KERNEL, true);
-		
+
 	exc_register(VECTOR_PF, "page_fault", true, (iroutine_t) page_fault);
 	write_cr3((uintptr_t) AS_KERNEL->genarch.page_table);
-	
+
 	paging_on();
 }
@@ -85,15 +85,15 @@
 	uintptr_t badvaddr;
 	pf_access_t access;
-	
+
 	badvaddr = read_cr2();
-		
+
 	if (istate->error_word & PFERR_CODE_RSVD)
 		panic("Reserved bit set in page directory.");
-	
+
 	if (istate->error_word & PFERR_CODE_RW)
 		access = PF_ACCESS_WRITE;
 	else
 		access = PF_ACCESS_READ;
-	
+
 	(void) as_page_fault(badvaddr, access, istate);
 }
Index: kernel/arch/ia32/src/pm.c
===================================================================
--- kernel/arch/ia32/src/pm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/pm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -269,5 +269,5 @@
 	gdtr_load(&gdtr);
 	idtr_load(&idtr);
-	
+
 	/*
 	 * Each CPU has its private GDT and TSS.
@@ -289,9 +289,9 @@
 
 	tss_initialize(tss_p);
-	
+
 	gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL;
 	gdt_p[TSS_DES].special = 1;
 	gdt_p[TSS_DES].granularity = 0;
-	
+
 	gdt_setbase(&gdt_p[TSS_DES], (uintptr_t) tss_p);
 	gdt_setlimit(&gdt_p[TSS_DES], TSS_BASIC_SIZE - 1);
@@ -302,5 +302,5 @@
 	 */
 	tr_load(GDT_SELECTOR(TSS_DES));
-	
+
 	/* Disable I/O on nonprivileged levels and clear NT flag. */
 	write_eflags(read_eflags() & ~(EFLAGS_IOPL | EFLAGS_NT));
Index: kernel/arch/ia32/src/proc/scheduler.c
===================================================================
--- kernel/arch/ia32/src/proc/scheduler.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/proc/scheduler.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 {
 	uintptr_t kstk = (uintptr_t) &THREAD->kstack[STACK_SIZE];
-	
+
 #ifndef PROCESSOR_i486
 	if (CPU->arch.fi.bits.sep) {
@@ -66,5 +66,5 @@
 	}
 #endif
-	
+
 	/* Set kernel stack for CPL3 -> CPL0 switch via interrupt */
 	CPU->arch.tss->esp0 = kstk;
Index: kernel/arch/ia32/src/smp/ap.S
===================================================================
--- kernel/arch/ia32/src/smp/ap.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/smp/ap.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 	/* initialize Global Descriptor Table register */
 	lgdtl ap_gdtr
-	
+
 	/* switch to protected mode */
 	movl %cr0, %eax
@@ -68,5 +68,5 @@
 	movl %eax, %cr0
 	jmpl $KTEXT, $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET
-	
+
 jump_to_kernel:
 .code32
@@ -84,7 +84,7 @@
 	 */
 	call map_kernel_pse
-	
+
 	addl $PA2KA(0), %esp            /* PA2KA(ctx.sp) */
-	
+
 	/* create the first stack frame */
 	pushl $0
Index: kernel/arch/ia32/src/smp/apic.c
===================================================================
--- kernel/arch/ia32/src/smp/apic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/smp/apic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -164,5 +164,5 @@
 {
 	l_apic_id_t idreg;
-	
+
 	idreg.value = l_apic[L_APIC_ID];
 	return idreg.apic_id;
@@ -174,10 +174,10 @@
 	exc_register(VECTOR_APIC_SPUR, "apic_spurious", false,
 	    (iroutine_t) apic_spurious);
-	
+
 	enable_irqs_function = io_apic_enable_irqs;
 	disable_irqs_function = io_apic_disable_irqs;
 	eoi_function = l_apic_eoi;
 	irqs_info = "apic";
-	
+
 	/*
 	 * Configure interrupt routing.
@@ -186,5 +186,5 @@
 	 */
 	io_apic_disable_irqs(0xffffU);
-	
+
 	irq_initialize(&l_apic_timer_irq);
 	l_apic_timer_irq.preack = true;
@@ -193,18 +193,18 @@
 	l_apic_timer_irq.handler = l_apic_timer_irq_handler;
 	irq_register(&l_apic_timer_irq);
-	
+
 	uint8_t i;
 	for (i = 0; i < IRQ_COUNT; i++) {
 		int pin;
-		
+
 		if ((pin = smp_irq_to_pin(i)) != -1)
 			io_apic_change_ioredtbl((uint8_t) pin, DEST_ALL, (uint8_t) (IVT_IRQBASE + i), LOPRI);
 	}
-	
+
 	/*
 	 * Ensure that io_apic has unique ID.
 	 */
 	io_apic_id_t idreg;
-	
+
 	idreg.value = io_apic_read(IOAPICID);
 	if ((1 << idreg.apic_id) & apic_id_mask) {  /* See if IO APIC ID is used already */
@@ -217,5 +217,5 @@
 		}
 	}
-	
+
 	/*
 	 * Configure the BSP's lapic.
@@ -223,5 +223,5 @@
 	l_apic_init();
 	l_apic_debug();
-	
+
 	bsp_l_apic = l_apic_id();
 }
@@ -237,7 +237,7 @@
 {
 	esr_t esr;
-	
+
 	esr.value = l_apic[ESR];
-	
+
 	if (esr.err_bitmap) {
 		log_begin(LF_ARCH, LVL_ERROR);
@@ -259,5 +259,5 @@
 		log_end();
 	}
-	
+
 	return !esr.err_bitmap;
 }
@@ -267,5 +267,5 @@
 {
 	icr_t icr;
-	
+
 	do {
 		icr.lo = l_apic[ICRlo];
@@ -286,8 +286,8 @@
 	/* Wait for a destination cpu to accept our previous ipi. */
 	l_apic_wait_for_delivery();
-	
+
 	icr.lo = l_apic[ICRlo];
 	icr.hi = l_apic[ICRhi];
-	
+
 	icr.delmod = DELMOD_FIXED;
 	icr.destmod = DESTMOD_PHYS;
@@ -301,5 +301,5 @@
 	l_apic[ICRhi] = icr.hi;
 	l_apic[ICRlo] = icr.lo;
-	
+
 	return apic_poll_errors();
 }
@@ -318,5 +318,5 @@
 	/* Wait for a destination cpu to accept our previous ipi. */
 	l_apic_wait_for_delivery();
-	
+
 	icr.lo = l_apic[ICRlo];
 	icr.delmod = DELMOD_FIXED;
@@ -326,7 +326,7 @@
 	icr.trigger_mode = TRIGMOD_LEVEL;
 	icr.vector = vector;
-	
+
 	l_apic[ICRlo] = icr.lo;
-	
+
 	return apic_poll_errors();
 }
@@ -345,8 +345,8 @@
 	 */
 	icr_t icr;
-	
+
 	icr.lo = l_apic[ICRlo];
 	icr.hi = l_apic[ICRhi];
-	
+
 	icr.delmod = DELMOD_INIT;
 	icr.destmod = DESTMOD_PHYS;
@@ -356,8 +356,8 @@
 	icr.vector = 0;
 	icr.dest = apicid;
-	
+
 	l_apic[ICRhi] = icr.hi;
 	l_apic[ICRlo] = icr.lo;
-	
+
 	/*
 	 * According to MP Specification, 20us should be enough to
@@ -365,8 +365,8 @@
 	 */
 	delay(20);
-	
+
 	if (!apic_poll_errors())
 		return 0;
-	
+
 	l_apic_wait_for_delivery();
 
@@ -379,10 +379,10 @@
 	icr.vector = 0;
 	l_apic[ICRlo] = icr.lo;
-	
+
 	/*
 	 * Wait 10ms as MP Specification specifies.
 	 */
 	delay(10000);
-	
+
 	if (!is_82489DX_apic(l_apic[LAVR])) {
 		/*
@@ -402,5 +402,5 @@
 		}
 	}
-	
+
 	return apic_poll_errors();
 }
@@ -411,32 +411,32 @@
 	/* Initialize LVT Error register. */
 	lvt_error_t error;
-	
+
 	error.value = l_apic[LVT_Err];
 	error.masked = true;
 	l_apic[LVT_Err] = error.value;
-	
+
 	/* Initialize LVT LINT0 register. */
 	lvt_lint_t lint;
-	
+
 	lint.value = l_apic[LVT_LINT0];
 	lint.masked = true;
 	l_apic[LVT_LINT0] = lint.value;
-	
+
 	/* Initialize LVT LINT1 register. */
 	lint.value = l_apic[LVT_LINT1];
 	lint.masked = true;
 	l_apic[LVT_LINT1] = lint.value;
-	
+
 	/* Task Priority Register initialization. */
 	tpr_t tpr;
-	
+
 	tpr.value = l_apic[TPR];
 	tpr.pri_sc = 0;
 	tpr.pri = 0;
 	l_apic[TPR] = tpr.value;
-	
+
 	/* Spurious-Interrupt Vector Register initialization. */
 	svr_t svr;
-	
+
 	svr.value = l_apic[SVR];
 	svr.vector = VECTOR_APIC_SPUR;
@@ -444,11 +444,11 @@
 	svr.focus_checking = true;
 	l_apic[SVR] = svr.value;
-	
+
 	if (CPU->arch.family >= 6)
 		enable_l_apic_in_msr();
-	
+
 	/* Interrupt Command Register initialization. */
 	icr_t icr;
-	
+
 	icr.lo = l_apic[ICRlo];
 	icr.delmod = DELMOD_INIT;
@@ -458,15 +458,15 @@
 	icr.trigger_mode = TRIGMOD_LEVEL;
 	l_apic[ICRlo] = icr.lo;
-	
+
 	/* Timer Divide Configuration Register initialization. */
 	tdcr_t tdcr;
-	
+
 	tdcr.value = l_apic[TDCR];
 	tdcr.div_value = DIVIDE_1;
 	l_apic[TDCR] = tdcr.value;
-	
+
 	/* Program local timer. */
 	lvt_tm_t tm;
-	
+
 	tm.value = l_apic[LVT_Tm];
 	tm.vector = VECTOR_CLK;
@@ -474,5 +474,5 @@
 	tm.masked = false;
 	l_apic[LVT_Tm] = tm.value;
-	
+
 	/*
 	 * Measure and configure the timer to generate timer
@@ -481,24 +481,24 @@
 	uint32_t t1 = l_apic[CCRT];
 	l_apic[ICRT] = 0xffffffff;
-	
+
 	while (l_apic[CCRT] == t1);
-	
+
 	t1 = l_apic[CCRT];
 	delay(1000000 / HZ);
 	uint32_t t2 = l_apic[CCRT];
-	
+
 	l_apic[ICRT] = t1 - t2;
-	
+
 	/* Program Logical Destination Register. */
 	assert(CPU->id < 8);
 	ldr_t ldr;
-	
+
 	ldr.value = l_apic[LDR];
 	ldr.id = (uint8_t) (1 << CPU->id);
 	l_apic[LDR] = ldr.value;
-	
+
 	/* Program Destination Format Register for Flat mode. */
 	dfr_t dfr;
-	
+
 	dfr.value = l_apic[DFR];
 	dfr.model = MODEL_FLAT;
@@ -519,5 +519,5 @@
 	log_printf("LVT on cpu%u, LAPIC ID: %" PRIu8 "\n",
 	    CPU->id, l_apic_id());
-	
+
 	lvt_tm_t tm;
 	tm.value = l_apic[LVT_Tm];
@@ -525,5 +525,5 @@
 	    tm.vector, delivs_str[tm.delivs], mask_str[tm.masked],
 	    tm_mode_str[tm.mode]);
-	
+
 	lvt_lint_t lint;
 	lint.value = l_apic[LVT_LINT0];
@@ -532,5 +532,5 @@
 	    intpol_str[lint.intpol], lint.irr, trigmod_str[lint.trigger_mode],
 	    mask_str[lint.masked]);
-	
+
 	lint.value = l_apic[LVT_LINT1];
 	log_printf("LVT LINT1: vector=%" PRIu8 ", %s, %s, %s, irr=%u, %s, %s\n",
@@ -538,5 +538,5 @@
 	    intpol_str[lint.intpol], lint.irr, trigmod_str[lint.trigger_mode],
 	    mask_str[lint.masked]);
-	
+
 	lvt_error_t error;
 	error.value = l_apic[LVT_Err];
@@ -557,5 +557,5 @@
 {
 	io_regsel_t regsel;
-	
+
 	regsel.value = io_apic[IOREGSEL];
 	regsel.reg_addr = address;
@@ -573,5 +573,5 @@
 {
 	io_regsel_t regsel;
-	
+
 	regsel.value = io_apic[IOREGSEL];
 	regsel.reg_addr = address;
@@ -592,14 +592,14 @@
 {
 	unsigned int dlvr;
-	
+
 	if (flags & LOPRI)
 		dlvr = DELMOD_LOWPRI;
 	else
 		dlvr = DELMOD_FIXED;
-	
+
 	io_redirection_reg_t reg;
 	reg.lo = io_apic_read((uint8_t) (IOREDTBL + pin * 2));
 	reg.hi = io_apic_read((uint8_t) (IOREDTBL + pin * 2 + 1));
-	
+
 	reg.dest = dest;
 	reg.destmod = DESTMOD_LOGIC;
@@ -608,5 +608,5 @@
 	reg.delmod = dlvr;
 	reg.intvec = vec;
-	
+
 	io_apic_write((uint8_t) (IOREDTBL + pin * 2), reg.lo);
 	io_apic_write((uint8_t) (IOREDTBL + pin * 2 + 1), reg.hi);
@@ -630,10 +630,10 @@
 			if (pin != -1) {
 				io_redirection_reg_t reg;
-				
+
 				reg.lo = io_apic_read((uint8_t) (IOREDTBL + pin * 2));
 				reg.masked = true;
 				io_apic_write((uint8_t) (IOREDTBL + pin * 2), reg.lo);
 			}
-			
+
 		}
 	}
@@ -657,10 +657,10 @@
 			if (pin != -1) {
 				io_redirection_reg_t reg;
-				
+
 				reg.lo = io_apic_read((uint8_t) (IOREDTBL + pin * 2));
 				reg.masked = false;
 				io_apic_write((uint8_t) (IOREDTBL + pin * 2), reg.lo);
 			}
-			
+
 		}
 	}
Index: kernel/arch/ia32/src/smp/mps.c
===================================================================
--- kernel/arch/ia32/src/smp/mps.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/smp/mps.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 {
 	assert(i < processor_entry_cnt);
-	
+
 	return processor_entries[i].l_apic_id;
 }
@@ -82,5 +82,5 @@
 {
 	assert(i < processor_entry_cnt);
-	
+
 	/*
 	 * FIXME: The current local APIC driver limits usable
@@ -90,5 +90,5 @@
 	if (i > 7)
 		return false;
-	
+
 	return ((processor_entries[i].cpu_flags & 0x01) == 0x01);
 }
@@ -97,5 +97,5 @@
 {
 	assert(i < processor_entry_cnt);
-	
+
 	return ((processor_entries[i].cpu_flags & 0x02) == 0x02);
 }
@@ -104,5 +104,5 @@
 {
 	size_t i;
-	
+
 	for (i = 0; i < io_intr_entry_cnt; i++) {
 		if (io_intr_entries[i].src_bus_irq == irq &&
@@ -110,5 +110,5 @@
 			return io_intr_entries[i].dst_io_apic_pin;
 	}
-	
+
 	return -1;
 }
@@ -131,8 +131,8 @@
 	unsigned int i;
 	uint8_t sum;
-	
+
 	for (i = 0, sum = 0; i < 16; i++)
 		sum = (uint8_t) (sum + base[i]);
-	
+
 	return (sum == 0);
 }
@@ -147,16 +147,16 @@
 	uint8_t sum;
 	uint16_t i;
-	
+
 	/* Compute the checksum for the base table */
 	for (i = 0, sum = 0; i < ct->base_table_length; i++)
 		sum = (uint8_t) (sum + base[i]);
-	
+
 	if (sum)
 		return false;
-	
+
 	/* Compute the checksum for the extended table */
 	for (i = 0, sum = 0; i < ct->ext_table_length; i++)
 		sum = (uint8_t) (sum + ext[i]);
-	
+
 	return (sum == ct->ext_table_checksum);
 }
@@ -169,5 +169,5 @@
 	if ((pr->cpu_flags & (1 << 0)) == 0)
 		return;
-	
+
 	apic_id_mask |= (1 << pr->l_apic_id);
 }
@@ -177,8 +177,8 @@
 #ifdef MPSCT_VERBOSE
 	char buf[7];
-	
+
 	memcpy((void *) buf, (void *) bus->bus_type, 6);
 	buf[6] = 0;
-	
+
 	log(LF_ARCH, LVL_DEBUG, "MPS: bus=%" PRIu8 " (%s)", bus->bus_id, buf);
 #endif
@@ -190,5 +190,5 @@
 	if ((ioa->io_apic_flags & 1) == 0)
 		return;
-	
+
 	if (io_apic_cnt++ > 0) {
 		/*
@@ -197,5 +197,5 @@
 		return;
 	}
-	
+
 	io_apic = (uint32_t *) (uintptr_t) ioa->io_apic;
 }
@@ -207,5 +207,5 @@
 	log_begin(LF_ARCH, LVL_DEBUG);
 	log_printf("MPS: ");
-	
+
 	switch (iointr->intr_type) {
 	case 0:
@@ -222,7 +222,7 @@
 		break;
 	}
-	
+
 	log_printf(", ");
-	
+
 	switch (iointr->poel & 3) {
 	case 0:
@@ -239,7 +239,7 @@
 		break;
 	}
-	
+
 	log_printf(", ");
-	
+
 	switch ((iointr->poel >> 2) & 3) {
 	case 0:
@@ -256,5 +256,5 @@
 		break;
 	}
-	
+
 	log_printf(", bus=%" PRIu8 " irq=%" PRIu8 " io_apic=%" PRIu8" pin=%"
 	    PRIu8, iointr->src_bus_id, iointr->src_bus_irq,
@@ -270,5 +270,5 @@
 	log_begin(LF_ARCH, LVL_DEBUG);
 	log_printf("MPS: ");
-	
+
 	switch (lintr->intr_type) {
 	case 0:
@@ -285,7 +285,7 @@
 		break;
 	}
-	
+
 	log_printf(", ");
-	
+
 	switch (lintr->poel & 3) {
 	case 0:
@@ -302,7 +302,7 @@
 		break;
 	}
-	
+
 	log_printf(", ");
-	
+
 	switch ((lintr->poel >> 2) & 3) {
 	case 0:
@@ -319,5 +319,5 @@
 		break;
 	}
-	
+
 	log_printf(", bus=%" PRIu8 " irq=%" PRIu8 " l_apic=%" PRIu8" pin=%"
 	    PRIu8, lintr->src_bus_id, lintr->src_bus_irq,
@@ -331,5 +331,5 @@
 	uint8_t *ext = (uint8_t *) ct + ct->base_table_length;
 	uint8_t *cur;
-	
+
 	for (cur = ext; cur < ext + ct->ext_table_length;
 	    cur += cur[CT_EXT_ENTRY_LEN]) {
@@ -349,20 +349,20 @@
 		return;
 	}
-	
+
 	if (!mps_ct_check()) {
 		log(LF_ARCH, LVL_WARN, "MPS: Wrong ct checksum");
 		return;
 	}
-	
+
 	if (ct->oem_table) {
 		log(LF_ARCH, LVL_WARN, "MPS: ct->oem_table not supported");
 		return;
 	}
-	
+
 	l_apic = (uint32_t *) (uintptr_t) ct->l_apic;
-	
+
 	uint8_t *cur = &ct->base_table[0];
 	uint16_t i;
-	
+
 	for (i = 0; i < ct->entry_count; i++) {
 		switch (*cur) {
@@ -411,5 +411,5 @@
 		}
 	}
-	
+
 	/*
 	 * Process extended entries.
@@ -432,5 +432,5 @@
 	unsigned int j;
 	unsigned int length[2] = { 1024, 64 * 1024 };
-	
+
 	/*
 	 * Find MP Floating Pointer Structure
@@ -439,5 +439,5 @@
 	 *  2.  search 64K starting at 0xf0000
 	 */
-	
+
 	addr[0] = (uint8_t *) PA2KA(ebda ? ebda : 639 * 1024);
 	for (i = 0; i < 2; i++) {
@@ -450,10 +450,10 @@
 		}
 	}
-	
+
 	return;
-	
+
 fs_found:
 	log(LF_ARCH, LVL_NOTE, "%p: MPS Floating Pointer Structure", fs);
-	
+
 	if ((fs->config_type == 0) && (fs->configuration_table)) {
 		if (fs->mpfib2 >> 7) {
@@ -461,10 +461,10 @@
 			return;
 		}
-		
+
 		ct = (struct mps_ct *) PA2KA((uintptr_t) fs->configuration_table);
 		configure_via_ct();
 	} else
 		configure_via_default(fs->config_type);
-	
+
 	if (processor_entry_cnt > 0)
 		config.cpu_count = processor_entry_cnt;
Index: kernel/arch/ia32/src/smp/smp.c
===================================================================
--- kernel/arch/ia32/src/smp/smp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/smp/smp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,10 +68,10 @@
 		ops = &madt_config_operations;
 	}
-	
+
 	if (config.cpu_count == 1) {
 		mps_init();
 		ops = &mps_config_operations;
 	}
-	
+
 	if (config.cpu_count > 1) {
 		l_apic = (uint32_t *) km_map((uintptr_t) l_apic, PAGE_SIZE,
@@ -86,5 +86,5 @@
 	assert(ops != NULL);
 	assert(cpus != NULL);
-	
+
 	for (unsigned int i = 0; i < config.cpu_count; ++i) {
 		cpus[i].arch.id = ops->cpu_apic_id(i);
@@ -102,5 +102,5 @@
 {
 	unsigned int i;
-	
+
 	assert(ops != NULL);
 
@@ -110,10 +110,10 @@
 	 */
 	cpu_arch_id_init();
-	
+
 	/*
 	 * We need to access data in frame 0.
 	 * We boldly make use of kernel address space mapping.
 	 */
-	
+
 	/*
 	 * Set the warm-reset vector to the real-mode address of 4K-aligned ap_boot()
@@ -122,5 +122,5 @@
 	    (uint16_t) (((uintptr_t) ap_boot) >> 4);  /* segment */
 	*((uint16_t *) (PA2KA(0x467 + 2))) = 0;       /* offset */
-	
+
 	/*
 	 * Save 0xa to address 0xf of the CMOS RAM.
@@ -129,8 +129,8 @@
 	pio_write_8((ioport8_t *) 0x70, 0xf);
 	pio_write_8((ioport8_t *) 0x71, 0xa);
-	
+
 	pic_disable_irqs(0xffff);
 	apic_init();
-	
+
 	for (i = 0; i < config.cpu_count; i++) {
 		/*
@@ -139,5 +139,5 @@
 		if (!ops->cpu_enabled(i))
 			continue;
-		
+
 		/*
 		 * The bootstrap processor is already up.
@@ -145,5 +145,5 @@
 		if (ops->cpu_bootstrap(i))
 			continue;
-		
+
 		if (ops->cpu_apic_id(i) == bsp_l_apic) {
 			log(LF_ARCH, LVL_ERROR, "kmp: bad processor entry #%u, "
@@ -151,9 +151,9 @@
 			continue;
 		}
-		
+
 		/*
 		 * Prepare new GDT for CPU in question.
 		 */
-		
+
 		/* XXX Flag FRAME_LOW_4_GiB was removed temporarily,
 		 * it needs to be replaced by a generic fuctionality of
@@ -165,5 +165,5 @@
 		if (!gdt_new)
 			panic("Cannot allocate memory for GDT.");
-		
+
 		memcpy(gdt_new, gdt, GDT_ITEMS * sizeof(descriptor_t));
 		memsetb(&gdt_new[TSS_DES], sizeof(descriptor_t), 0);
@@ -171,5 +171,5 @@
 		protected_ap_gdtr.base = KA2PA((uintptr_t) gdt_new);
 		gdtr.base = (uintptr_t) gdt_new;
-		
+
 		if (l_apic_send_init_ipi(ops->cpu_apic_id(i))) {
 			/*
Index: kernel/arch/ia32/src/userspace.c
===================================================================
--- kernel/arch/ia32/src/userspace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia32/src/userspace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,9 +50,9 @@
 {
 	uint32_t eflags = read_eflags();
-	
+
 	asm volatile (
 		/* Set up GS register (virtual register segment) */
 		"movl %[vreg_des], %%gs\n"
-		
+
 		"pushl %[udata_des]\n"
 		"pushl %[stack_top]\n"
@@ -61,8 +61,8 @@
 		"pushl %[entry]\n"
 		"movl %[uarg], %%eax\n"
-		
+
 		/* %edi is defined to hold pcb_ptr - set it to 0 */
 		"xorl %%edi, %%edi\n"
-		
+
 		"iret\n"
 		:
@@ -77,5 +77,5 @@
 		  [vreg_des] "r" (GDT_SELECTOR(VREG_DES))
 		: "eax");
-	
+
 	/* Unreachable */
 	while (1);
Index: kernel/arch/ia64/include/arch/asm.h
===================================================================
--- kernel/arch/ia64/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 	return legacyio_virt_base + (((prt >> 2) << 12) | (prt & 0xfff));
 }
-	
+
 NO_TRACE static inline void pio_write_8(ioport8_t *port, uint8_t v)
 {
@@ -58,5 +58,5 @@
 	else
 		*port = v;
-	
+
 	asm volatile (
 		"mf\n"
@@ -72,5 +72,5 @@
 	else
 		*port = v;
-	
+
 	asm volatile (
 		"mf\n"
@@ -86,5 +86,5 @@
 	else
 		*port = v;
-	
+
 	asm volatile (
 		"mf\n"
@@ -112,5 +112,5 @@
 		::: "memory"
 	);
-	
+
 	return v;
 }
@@ -134,5 +134,5 @@
 		::: "memory"
 	);
-	
+
 	return v;
 }
@@ -141,10 +141,10 @@
 {
 	uint32_t v;
-	
-	asm volatile (
-		"mf\n"
-		::: "memory"
-	);
-	
+
+	asm volatile (
+		"mf\n"
+		::: "memory"
+	);
+
 	if (port < (ioport32_t *) IO_SPACE_BOUNDARY)
 		v = *((ioport32_t *) p2a(port));
@@ -169,10 +169,10 @@
 {
 	uint64_t value;
-	
+
 	asm volatile (
 		"mov %[value] = r12"
 		: [value] "=r" (value)
 	);
-	
+
 	return (value & (~(STACK_SIZE / 2 - 1)));
 }
@@ -186,10 +186,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = psr\n"
 		: [value] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -203,10 +203,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = cr.iva\n"
 		: [value] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -234,10 +234,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = cr.ivr\n"
 		: [value] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -246,10 +246,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = cr64\n"
 		: [value] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -276,10 +276,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = ar.itc\n"
 		: [value] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -306,10 +306,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = cr.itm\n"
 		: [value] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -323,10 +323,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = cr.itv\n"
 		: [value] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -366,10 +366,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = cr.tpr\n"
 		: [value] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -399,5 +399,5 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = psr\n"
@@ -406,5 +406,5 @@
 		: [mask] "i" (PSR_I_MASK)
 	);
-	
+
 	return (ipl_t) v;
 }
@@ -421,5 +421,5 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[value] = psr\n"
@@ -430,5 +430,5 @@
 		: [mask] "i" (PSR_I_MASK)
 	);
-	
+
 	return (ipl_t) v;
 }
Index: kernel/arch/ia64/include/arch/atomic.h
===================================================================
--- kernel/arch/ia64/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,5 +41,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"movl %[v] = 0x1;;\n"
@@ -48,5 +48,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return v;
 }
@@ -62,5 +62,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], 1\n"
@@ -73,5 +73,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], -1\n"
@@ -84,5 +84,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], 1\n"
@@ -90,5 +90,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return (v + 1);
 }
@@ -97,5 +97,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], -1\n"
@@ -103,5 +103,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return (v - 1);
 }
@@ -110,5 +110,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], 1\n"
@@ -116,5 +116,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return v;
 }
@@ -123,5 +123,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], -1\n"
@@ -129,5 +129,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return v;
 }
Index: kernel/arch/ia64/include/arch/bootinfo.h
===================================================================
--- kernel/arch/ia64/include/arch/bootinfo.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/include/arch/bootinfo.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,5 +44,5 @@
 	char name[BOOTINFO_TASK_NAME_BUFLEN];
 } binit_task_t;
-	
+
 typedef struct {
 	size_t cnt;
@@ -58,8 +58,8 @@
 typedef struct {
 	binit_t taskmap;
-	
+
 	memmap_item_t memmap[MEMMAP_ITEMS];
 	unsigned int memmap_items;
-	
+
 	sysarg_t *sapic;
 	unsigned long sys_freq;
Index: kernel/arch/ia64/include/arch/cpu.h
===================================================================
--- kernel/arch/ia64/include/arch/cpu.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/include/arch/cpu.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"mov %[v] = cpuid[%[r]]\n"
@@ -72,5 +72,5 @@
 		: [r] "r" (n)
 	);
-	
+
 	return v;
 }
Index: kernel/arch/ia64/include/arch/istate.h
===================================================================
--- kernel/arch/ia64/include/arch/istate.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/include/arch/istate.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 {
 	/* FIXME */
-	
+
 	return 0;
 }
Index: kernel/arch/ia64/include/arch/mm/page.h
===================================================================
--- kernel/arch/ia64/include/arch/mm/page.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/include/arch/mm/page.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -117,5 +117,5 @@
 	unsigned int ed : 1;
 	unsigned int ig1 : 11;
-	
+
 	/* Word 1 */
 	unsigned int : 2;
@@ -123,8 +123,8 @@
 	unsigned int key : 24;
 	unsigned int : 32;
-	
+
 	/* Word 2 */
 	union vhpt_tag tag;
-	
+
 	/* Word 3 */
 	uint64_t ig3 : 64;
@@ -136,13 +136,13 @@
 	unsigned long long ig0 : 52;
 	unsigned int ig1 : 11;
-	
+
 	/* Word 1 */
 	unsigned int : 2;
 	unsigned int ps : 6;
 	unsigned long long ig2 : 56;
-	
+
 	/* Word 2 */
 	union vhpt_tag tag;
-	
+
 	/* Word 3 */
 	uint64_t ig3 : 64;
@@ -194,5 +194,5 @@
 {
 	uint64_t ret;
-	
+
 	asm volatile (
 		"thash %[ret] = %[va]\n"
@@ -200,5 +200,5 @@
 		: [va] "r" (va)
 	);
-	
+
 	return ret;
 }
@@ -216,5 +216,5 @@
 {
 	uint64_t ret;
-	
+
 	asm volatile (
 		"ttag %[ret] = %[va]\n"
@@ -222,5 +222,5 @@
 		: [va] "r" (va)
 	);
-	
+
 	return ret;
 }
@@ -235,7 +235,7 @@
 {
 	uint64_t ret;
-	
+
 	assert(i < REGION_REGISTERS);
-	
+
 	asm volatile (
 		"mov %[ret] = rr[%[index]]\n"
@@ -243,5 +243,5 @@
 		: [index] "r" (i << VRN_SHIFT)
 	);
-	
+
 	return ret;
 }
@@ -255,5 +255,5 @@
 {
 	assert(i < REGION_REGISTERS);
-	
+
 	asm volatile (
 		"mov rr[%[index]] = %[value]\n"
@@ -270,10 +270,10 @@
 {
 	uint64_t ret;
-	
+
 	asm volatile (
 		"mov %[ret] = cr.pta\n"
 		: [ret] "=r" (ret)
 	);
-	
+
 	return ret;
 }
Index: kernel/arch/ia64/include/arch/mm/tlb.h
===================================================================
--- kernel/arch/ia64/include/arch/mm/tlb.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/include/arch/mm/tlb.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 		unsigned int ed : 1;
 		unsigned int ig1 : 11;
-		
+
 		/* Word 1 */
 		unsigned int : 2;
Index: kernel/arch/ia64/include/arch/mm/vhpt.h
===================================================================
--- kernel/arch/ia64/include/arch/mm/vhpt.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/include/arch/mm/vhpt.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -32,5 +32,5 @@
 /** @file
 */
-												
+
 #ifndef KERN_ia64_VHPT_H_
 #define KERN_ia64_VHPT_H_
@@ -44,8 +44,8 @@
 {
 	vhpt_entry_t ventry;
-	
+
 	ventry.word[0] = tentry.word[0];
 	ventry.word[1] = tentry.word[1];
-	
+
 	return ventry;
 }
Index: kernel/arch/ia64/src/asm.S
===================================================================
--- kernel/arch/ia64/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 FUNCTION_BEGIN(memcpy_to_uspace)
 	alloc loc0 = ar.pfs, 3, 1, 0, 0
-	
+
 	adds r14 = 7, in1
 	mov r2 = ar.lc
@@ -53,7 +53,7 @@
 	cmp.ne p6, p7 = r14, in1
 	(p7) br.cond.dpnt 3f ;;
-	
+
 	0:
-	
+
 		cmp.ne p6, p7 = 0, in2
 		(p7) br.cond.dpnt 2f ;;
@@ -62,7 +62,7 @@
 		(p6) mov r17 = r0 ;;
 		(p6) mov ar.lc = r14
-	
+
 	1:
-	
+
 		add r14 = r16, in1
 		add r15 = r16, in0
@@ -72,13 +72,13 @@
 		st1 [r15] = r14
 		br.cloop.sptk.few 1b ;;
-	
+
 	2:
-	
+
 		mov ar.lc = r2
 		mov ar.pfs = loc0
 		br.ret.sptk.many rp
-	
+
 	3:
-	
+
 		adds r14 = 7, in0 ;;
 		and r14 = -8, r14 ;;
@@ -92,7 +92,7 @@
 		(p6) mov r17 = r0 ;;
 		(p6) mov ar.lc = r14
-	
+
 	4:
-	
+
 		shladd r14 = r16, 3, r0
 		adds r16 = 1, r17 ;;
@@ -103,7 +103,7 @@
 		st8 [r14] = r15
 		br.cloop.sptk.few 4b
-	
+
 	5:
-	
+
 		and r15 = 7, in2
 		shladd r14 = r18, 3, r0
@@ -116,7 +116,7 @@
 		(p6) br.cond.dpnt 2b ;;
 		mov ar.lc = r15
-	
+
 	6:
-	
+
 		add r14 = r16, r17
 		add r15 = r16, in0
@@ -155,37 +155,37 @@
 FUNCTION_BEGIN(switch_to_userspace)
 	alloc loc0 = ar.pfs, 6, 3, 0, 0
-	
+
 	/* Disable interruption collection and interrupts */
 	rsm (PSR_IC_MASK | PSR_I_MASK)
 	srlz.d ;;
 	srlz.i ;;
-	
+
 	mov cr.ipsr = in4
 	mov cr.iip = in0
 	mov r12 = in1
-	
+
 	xor r1 = r1, r1
-	
+
 	/* r2 is defined to hold pcb_ptr - set it to 0 */
 	xor r2 = r2, r2
-	
+
 	mov loc1 = cr.ifs
 	movl loc2 = PFM_MASK ;;
 	and loc1 = loc2, loc1 ;;
 	mov cr.ifs = loc1 ;;  /* prevent decrementing BSP by rfi */
-	
+
 	invala
-	
+
 	mov loc1 = ar.rsc ;;
 	and loc1 = ~3, loc1 ;;
 	mov ar.rsc = loc1 ;;  /* put RSE into enforced lazy mode */
-	
+
 	flushrs ;;
-	
+
 	mov ar.bspstore = in2 ;;
 	mov ar.rsc = in5 ;;
-	
+
 	mov r8 = in3
-	
+
 	rfi ;;
 FUNCTION_END(switch_to_userspace)
Index: kernel/arch/ia64/src/context.S
===================================================================
--- kernel/arch/ia64/src/context.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/context.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,5 +45,5 @@
 	flushrs
 	mov loc4 = ar.bsp
-	
+
 	/*
 	 * Put RSE to enforced lazy mode.
@@ -117,5 +117,5 @@
 
 	mov loc2 = ar.unat
-	
+
 	/*
 	 * Save application registers
@@ -177,5 +177,5 @@
 
 	mov ar.unat = loc1
-	
+
 	add r8 = r0, r0, 1 	/* context_save returns 1 */
 	br.ret.sptk.many b0
@@ -239,5 +239,5 @@
 	ld8 loc5 = [loc14]	/* load ar.rnat */
 	ld8 loc6 = [loc15]	/* load ar.lc */
-	
+
 	.auto
 
@@ -274,5 +274,5 @@
 	mov ar.unat = loc2 ;;
 	mov ar.lc = loc6
-	
+
 	/*
 	 * Restore general registers including NaT bits
@@ -332,7 +332,7 @@
 	ldf.fill f30 = [loc48]
 	ldf.fill f31 = [loc49]
-	
+
 	mov ar.unat = loc1
-	
+
 	mov r8 = r0			/* context_restore returns 0 */
 	br.ret.sptk.many b0
Index: kernel/arch/ia64/src/cpu/cpu.c
===================================================================
--- kernel/arch/ia64/src/cpu/cpu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/cpu/cpu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,9 +54,9 @@
 	const char *family_str;
 	char vendor[2 * sizeof(uint64_t) + 1];
-	
+
 	memcpy(vendor, &CPU->arch.cpuid0, 8);
 	memcpy(vendor + 8, &CPU->arch.cpuid1, 8);
 	vendor[sizeof(vendor) - 1] = 0;
-	
+
 	switch (m->arch.cpuid3.family) {
 	case FAMILY_ITANIUM:
@@ -70,5 +70,5 @@
 		break;
 	}
-	
+
 	printf("cpu%d: %s (%s), archrev=%d, model=%d, revision=%d\n", CPU->id,
 	    family_str, vendor, CPU->arch.cpuid3.archrev,
Index: kernel/arch/ia64/src/ddi/ddi.c
===================================================================
--- kernel/arch/ia64/src/ddi/ddi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/ddi/ddi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,17 +59,17 @@
 		if (task->arch.iomap == NULL)
 			return ENOMEM;
-		
+
 		void *store = malloc(bitmap_size(IO_MEMMAP_PAGES), 0);
 		if (store == NULL)
 			return ENOMEM;
-		
+
 		bitmap_initialize(task->arch.iomap, IO_MEMMAP_PAGES, store);
 		bitmap_clear_range(task->arch.iomap, 0, IO_MEMMAP_PAGES);
 	}
-	
+
 	uintptr_t iopage = ioaddr / PORTS_PER_PAGE;
 	size = ALIGN_UP(size + ioaddr - 4 * iopage, PORTS_PER_PAGE);
 	bitmap_set_range(task->arch.iomap, iopage, size / 4);
-	
+
 	return EOK;
 }
@@ -93,5 +93,5 @@
 	size = ALIGN_UP(size + ioaddr - 4 * iopage, PORTS_PER_PAGE);
 	bitmap_clear_range(task->arch.iomap, iopage, size / 4);
-	
+
 	return EOK;
 }
Index: kernel/arch/ia64/src/drivers/it.c
===================================================================
--- kernel/arch/ia64/src/drivers/it.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/drivers/it.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,5 +68,5 @@
 		it_irq.handler = it_interrupt;
 		irq_register(&it_irq);
-		
+
 		uint64_t base_freq;
 		base_freq  = ((bootinfo->freq_scale) & FREQ_NUMERATOR_MASK) >>
@@ -75,22 +75,22 @@
 		base_freq /= ((bootinfo->freq_scale) & FREQ_DENOMINATOR_MASK) >>
 		    FREQ_DENOMINATOR_SHIFT;
-		
+
 		it_delta = base_freq / HZ;
 	}
-	
+
 	/* Initialize Interval Timer external interrupt vector */
 	cr_itv_t itv;
-	
+
 	itv.value = itv_read();
 	itv.vector = INTERRUPT_TIMER;
 	itv.m = 0;
 	itv_write(itv.value);
-	
+
 	/* Set Interval Timer Counter to zero */
 	itc_write(0);
-	
+
 	/* Generate first Interval Timer interrupt in IT_DELTA ticks */
 	itm_write(IT_DELTA);
-	
+
 	/* Propagate changes */
 	srlz_d();
@@ -113,11 +113,11 @@
 {
 	eoi_write(EOI);
-	
+
 	int64_t itm = itm_read();
-	
+
 	while (true) {
 		int64_t itc = itc_read();
 		itc += IT_SERVICE_CLOCKS;
-		
+
 		itm += IT_DELTA;
 		if (itm - itc < 0)
@@ -126,8 +126,8 @@
 			break;
 	}
-	
+
 	itm_write(itm);
 	srlz_d();  /* Propagate changes */
-	
+
 	/*
 	 * We are holding a lock which prevents preemption.
Index: kernel/arch/ia64/src/drivers/ski.c
===================================================================
--- kernel/arch/ia64/src/drivers/ski.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/drivers/ski.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,8 +49,8 @@
 	/** Interval between polling in microseconds */
 	POLL_INTERVAL = 10000,  /* 0.01 s */
-	
+
 	/** Max. number of characters to pull out at a time */
 	POLL_LIMIT = 30,
-	
+
 	SKI_INIT_CONSOLE = 20,
 	SKI_GETCHAR      = 21,
@@ -82,15 +82,15 @@
 {
 	uint64_t ch;
-	
+
 	asm volatile (
 		"mov r15 = %1\n"
 		"break 0x80000;;\n"  /* modifies r8 */
 		"mov %0 = r8;;\n"
-		
+
 		: "=r" (ch)
 		: "i" (SKI_GETCHAR)
 		: "r15", "r8"
 	);
-	
+
 	return (wchar_t) ch;
 }
@@ -103,11 +103,11 @@
 {
 	int count = POLL_LIMIT;
-	
+
 	while (count > 0) {
 		wchar_t ch = ski_getchar();
-		
+
 		if (ch == '\0')
 			break;
-		
+
 		indev_push_character(instance->srlnin, ch);
 		--count;
@@ -119,5 +119,5 @@
 {
 	ski_instance_t *instance = (ski_instance_t *) arg;
-	
+
 	while (true) {
 		// TODO FIXME:
@@ -126,5 +126,5 @@
 		if (console_override)
 			poll_keyboard(instance);
-		
+
 		thread_usleep(POLL_INTERVAL);
 	}
@@ -141,5 +141,5 @@
 	if (instance)
 		return;
-	
+
 	asm volatile (
 		"mov r15 = %0\n"
@@ -149,11 +149,11 @@
 		: "r15", "r8"
 	);
-	
+
 	instance = malloc(sizeof(ski_instance_t), FRAME_ATOMIC);
-	
+
 	if (instance) {
 		instance->thread = thread_create(kskipoll, instance, TASK,
 		    THREAD_FLAG_UNCOUNTED, "kskipoll");
-		
+
 		if (!instance->thread) {
 			free(instance);
@@ -161,5 +161,5 @@
 			return;
 		}
-		
+
 		instance->srlnin = NULL;
 	}
@@ -196,5 +196,5 @@
 			if (ch == '\n')
 				ski_do_putchar('\r');
-			
+
 			ski_do_putchar(ch);
 		} else
@@ -208,12 +208,12 @@
 	if (!instance)
 		return NULL;
-	
+
 	outdev_t *skidev = malloc(sizeof(outdev_t), FRAME_ATOMIC);
 	if (!skidev)
 		return NULL;
-	
+
 	outdev_initialize("skidev", skidev, &skidev_ops);
 	skidev->data = instance;
-	
+
 	if (!fb_exported) {
 		/*
@@ -224,8 +224,8 @@
 		sysinfo_set_item_val("fb", NULL, true);
 		sysinfo_set_item_val("fb.kind", NULL, 6);
-		
+
 		fb_exported = true;
 	}
-	
+
 	return skidev;
 }
@@ -241,8 +241,8 @@
 	assert(instance);
 	assert(srlnin);
-	
+
 	instance->srlnin = srlnin;
 	thread_ready(instance->thread);
-	
+
 	sysinfo_set_item_val("kbd", NULL, true);
 	sysinfo_set_item_val("kbd.type", NULL, KBD_SKI);
Index: kernel/arch/ia64/src/fpu_context.c
===================================================================
--- kernel/arch/ia64/src/fpu_context.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/fpu_context.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -103,5 +103,5 @@
 		[f61] "=m" (fctx->fr[29])
 	);
-	
+
 	asm volatile (
 		"stf.spill %[f62] = f62\n"
@@ -314,5 +314,5 @@
 		[f61] "m" (fctx->fr[29])
 	);
-	
+
 	asm volatile (
 		"ldf.fill f62 = %[f62]\n"
Index: kernel/arch/ia64/src/ia64.c
===================================================================
--- kernel/arch/ia64/src/ia64.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/ia64.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -108,7 +108,7 @@
 	    PAGE_WRITE | PAGE_NOT_CACHEABLE);
 	int i;
-	
+
 	int myid, myeid;
-	
+
 	myid = ia64_get_cpu_id();
 	myeid = ia64_get_cpu_eid();
@@ -167,10 +167,10 @@
 		}
 	}
-	
+
 	outdev_t *skidev = skiout_init();
 	if (skidev)
 		stdout_wire(skidev);
 #endif
-	
+
 #ifdef CONFIG_EGA
 	outdev_t *egadev = ega_init(EGA_BASE, EGA_VIDEORAM);
@@ -178,5 +178,5 @@
 		stdout_wire(egadev);
 #endif
-	
+
 #ifdef CONFIG_NS16550
 	ns16550_instance_t *ns16550_instance
@@ -191,5 +191,5 @@
 		}
 	}
-	
+
 	sysinfo_set_item_val("kbd", NULL, true);
 	sysinfo_set_item_val("kbd.inr", NULL, NS16550_IRQ);
@@ -198,5 +198,5 @@
 	    (uintptr_t) NS16550_BASE);
 #endif
-	
+
 #ifdef CONFIG_I8042
 	i8042_instance_t *i8042_instance = i8042_init((i8042_t *) I8042_BASE,
@@ -211,5 +211,5 @@
 	}
 #endif
-	
+
 	sysinfo_set_item_val("ia64_iospace", NULL, true);
 	sysinfo_set_item_val("ia64_iospace.address", NULL, true);
@@ -251,5 +251,5 @@
 	    kernel_uarg->uspace_stack_size / 2,
 	    (uintptr_t) kernel_uarg->uspace_uarg, psr.value, rsc.value);
-	
+
 	while (1);
 }
@@ -274,5 +274,5 @@
 	fptr->fnc = (sysarg_t) addr;
 	fptr->gp = ((sysarg_t *) caller)[1];
-	
+
 	return (void *) fptr;
 }
Index: kernel/arch/ia64/src/interrupt.c
===================================================================
--- kernel/arch/ia64/src/interrupt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/interrupt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -124,5 +124,5 @@
 {
 	assert(n <= VECTOR_MAX);
-	
+
 	if (n >= VECTORS_16_BUNDLE_START)
 		return vector_names_16_bundle[n - VECTORS_16_BUNDLE_START];
@@ -141,5 +141,5 @@
 	printf("cr.isr=%#0" PRIx64 "\tcr.ipsr=%#0" PRIx64 "\n",
 	    istate->cr_isr.value, istate->cr_ipsr.value);
-	
+
 	printf("cr.iip=%#0" PRIxPTR ", #%u\t(%s)\n",
 	    istate->cr_iip, istate->cr_isr.ei,
@@ -154,5 +154,5 @@
 {
 	const char *desc;
-	
+
 	switch (istate->cr_isr.ge_code) {
 	case GE_ILLEGALOP:
@@ -178,5 +178,5 @@
 		break;
 	}
-	
+
 	fault_if_from_uspace(istate, "General Exception (%s).", desc);
 	panic_badtrap(istate, n, "General Exception (%s).", desc);
@@ -209,5 +209,5 @@
 		istate->cr_ipsr.ri++;
 	}
-	
+
 	interrupts_enable();
 	ret = syscall_handler(istate->in0, istate->in1, istate->in2,
@@ -236,10 +236,10 @@
 {
 	cr_ivr_t ivr;
-	
+
 	ivr.value = ivr_read();
 	srlz_d();
-	
+
 	irq_t *irq;
-	
+
 	switch (ivr.vector) {
 	case INTERRUPT_SPURIOUS:
@@ -248,5 +248,5 @@
 #endif
 		break;
-	
+
 #ifdef CONFIG_SMP
 	case VECTOR_TLB_SHOOTDOWN_IPI:
@@ -255,5 +255,5 @@
 		break;
 #endif
-	
+
 	case INTERRUPT_TIMER:
 		irq = irq_dispatch_and_lock(ivr.vector);
Index: kernel/arch/ia64/src/ivt.S
===================================================================
--- kernel/arch/ia64/src/ivt.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/ivt.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,8 +57,8 @@
 	mov r19 = cr.ipsr
 	mov r20 = cr.isr ;;
-	
+
     /* 2. Move IIP to IIPA. */
 	mov cr.iipa = r18
-	
+
     /* 3. Sign extend IIM[20:0], shift left by 4 and add to IIP. */
 	shl r17 = r17, 43 ;;	/* shift bit 20 to bit 63 */
@@ -66,9 +66,9 @@
 	add r18 = r18, r17 ;;
 	mov cr.iip = r18
-	
+
     /* 4. Set IPSR.ri to 0. */
 	dep r19 = 0, r19, PSR_RI_SHIFT, PSR_RI_LEN ;;
 	mov cr.ipsr = r19
-	
+
     /* 5. Check whether IPSR.tb or IPSR.ss is set. */
 
@@ -76,5 +76,5 @@
 	 * Implement this when Taken Branch and Single Step traps can occur.
 	 */
-    
+
     /* 6. Restore predicates and return from interruption. */
 	mov pr = r16 ;;
@@ -104,9 +104,9 @@
 SYMBOL(heavyweight_handler)
     /* 1. copy interrupt registers into bank 0 */
-    
+
 	/*
 	 * Note that r24-r31 from bank 0 can be used only as long as PSR.ic = 0.
 	 */
-	
+
 	/* Set up FPU as in interrupted context. */
 	mov r24 = psr
@@ -126,8 +126,8 @@
 	mov r27 = cr.isr
 	mov r28 = cr.ifa
-	
+
     /* 2. preserve predicate register into bank 0 */
 	mov r29 = pr ;;
-	
+
     /* 3. switch to kernel memory stack */
     	mov r30 = cr.ipsr
@@ -149,5 +149,5 @@
 	 */
 (p3)	cmp.eq p3, p4 = VRN_KERNEL, r31 ;;
-	
+
 	/*
 	 * Now, p4 is true iff the stack needs to be switched to kernel stack.
@@ -155,5 +155,5 @@
 	mov r30 = r12
 (p4)	mov r12 = R_KSTACK ;;
-	
+
 	add r12 = -STACK_FRAME_SIZE, r12 ;;
 	add r31 = STACK_SCRATCH_AREA_SIZE + ISTATE_OFFSET_IN6, r12
@@ -166,5 +166,5 @@
 	 */
 	cmp.eq p6, p5 = EXC_BREAK_INSTRUCTION, R_VECTOR ;;
-	
+
 	/*
 	 * From now on, if this is break_instruction handler, p6 is true and p5
@@ -181,7 +181,7 @@
 (p6)	st8 [r31] = r32, -STACK_ITEM_SIZE ;;	/* save in0 */
 (p5)	add r31 = -(7 * STACK_ITEM_SIZE), r31 ;;
-    
+
 	st8 [r31] = r30, -STACK_ITEM_SIZE ;;	/* save old stack pointer */
-	
+
 	st8 [r31] = r29, -STACK_ITEM_SIZE ;;	/* save predicate registers */
 
@@ -197,16 +197,16 @@
 	cover
 	mov r26 = cr.ifs
-	
+
 	st8 [r31] = r24, -STACK_ITEM_SIZE ;;	/* save ar.rsc */
 	st8 [r31] = r25, -STACK_ITEM_SIZE ;;	/* save ar.pfs */
 	st8 [r31] = r26, -STACK_ITEM_SIZE	/* save ar.ifs */
-	
+
 	and r24 = ~(RSC_PL_MASK), r24 ;;
 	and r30 = ~(RSC_MODE_MASK), r24 ;;
 	mov ar.rsc = r30 ;;		/* update RSE state */
-	
+
 	mov r27 = ar.rnat
 	mov r28 = ar.bspstore ;;
-	
+
 	/*
 	 * Inspect BSPSTORE to figure out whether it is necessary to switch to
@@ -215,5 +215,5 @@
 (p1)	shr.u r30 = r28, VRN_SHIFT ;;
 (p1)	cmp.eq p1, p2 = VRN_KERNEL, r30 ;;
-	
+
 	/*
 	 * If BSPSTORE needs to be switched, p1 is false and p2 is true.
@@ -222,14 +222,14 @@
 (p2)	mov r30 = R_KSTACK_BSP ;;
 (p2)	mov ar.bspstore = r30 ;;
-	
+
 	mov r29 = ar.bsp
-	
+
 	st8 [r31] = r27, -STACK_ITEM_SIZE ;;	/* save ar.rnat */
 	st8 [r31] = r30, -STACK_ITEM_SIZE ;;	/* save new value written to ar.bspstore */
 	st8 [r31] = r28, -STACK_ITEM_SIZE ;;	/* save ar.bspstore */
 	st8 [r31] = r29, -STACK_ITEM_SIZE 	/* save ar.bsp */
-	
+
 	mov ar.rsc = r24		/* restore RSE's setting + kernel privileges */
-	
+
     /* steps 6 - 15 are done by heavyweight_handler_inner() */
 	mov R_RET = b0 			/* save b0 belonging to interrupted context */
@@ -292,5 +292,5 @@
 	ld8 r29 = [r31], +STACK_ITEM_SIZE ;;	/* load predicate registers */
 	mov pr = r29
-	
+
     /* 19. return from interruption */
     	ld8 r12 = [r31]				/* load stack pointer */
@@ -303,10 +303,10 @@
 	 */
 	alloc loc0 = ar.pfs, 0, 48, 2, 0 ;;
-	
+
 	/* bank 0 is going to be shadowed, copy essential data from there */
 	mov loc1 = R_RET	/* b0 belonging to interrupted context */
 	mov loc2 = R_HANDLER
 	mov out0 = R_VECTOR
-	
+
 	add out1 = STACK_SCRATCH_AREA_SIZE, r12
 
@@ -315,5 +315,5 @@
 	bsw.1 ;;
 	srlz.d
-	
+
     /* 7. preserve branch and application registers */
     	mov loc3 = ar.unat
@@ -323,5 +323,5 @@
 	mov loc7 = ar.csd
 	mov loc8 = ar.ssd
-	
+
 	mov loc9 = b0
 	mov loc10 = b1
@@ -332,5 +332,5 @@
 	mov loc15 = b6
 	mov loc16 = b7
-	
+
     /* 8. preserve general and floating-point registers */
 	mov loc17 = r1
@@ -374,5 +374,5 @@
 	add r30 = ISTATE_OFFSET_F6 + STACK_SCRATCH_AREA_SIZE, r12
 	add r31 = ISTATE_OFFSET_F7 + STACK_SCRATCH_AREA_SIZE, r12 ;;
-	
+
 	stf.spill [r26] = f2, 8 * FLOAT_ITEM_SIZE
 	stf.spill [r27] = f3, 8 * FLOAT_ITEM_SIZE
@@ -410,5 +410,5 @@
 
 	mov loc47 = ar.fpsr	/* preserve floating point status register */
-    
+
     /* 9. skipped (will not enable interrupts) */
 	/*
@@ -420,5 +420,5 @@
     /* 10. call handler */
     	movl r1 = __gp
-    
+
     	mov b1 = loc2
 	br.call.sptk.many b0 = b1
@@ -426,5 +426,5 @@
     /* 11. return from handler */
 0:
-	
+
     /* 12. skipped (will not disable interrupts) */
 	/*
@@ -477,5 +477,5 @@
 	ldf.fill f30 = [r30]
 	ldf.fill f31 = [r31] ;;
-	
+
 	mov r1 = loc17
 	mov r2 = loc18
@@ -511,5 +511,5 @@
 
 	mov ar.fpsr = loc47	/* restore floating point status register */
-	
+
     /* 14. restore branch and application registers */
     	mov ar.unat = loc3
@@ -519,5 +519,5 @@
 	mov ar.csd = loc7
 	mov ar.ssd = loc8
-	
+
 	mov b0 = loc9
 	mov b1 = loc10
@@ -528,5 +528,5 @@
 	mov b6 = loc15
 	mov b7 = loc16
-	
+
     /* 15. disable PSR.ic and switch to bank 0 */
 	rsm PSR_IC_MASK
@@ -578,5 +578,5 @@
 	HEAVYWEIGHT_HANDLER 0x5e
 	HEAVYWEIGHT_HANDLER 0x5f
-	
+
 	HEAVYWEIGHT_HANDLER 0x60
 	HEAVYWEIGHT_HANDLER 0x61
Index: kernel/arch/ia64/src/mm/as.c
===================================================================
--- kernel/arch/ia64/src/mm/as.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/mm/as.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,7 +58,7 @@
 	region_register_t rr;
 	int i;
-	
+
 	assert(as->asid != ASID_INVALID);
-	
+
 	/*
 	 * Load respective ASID (7 consecutive RIDs) to
@@ -68,5 +68,5 @@
 		if (i == VRN_KERNEL)
 			continue;
-		
+
 		rr.word = rr_read(i);
 		rr.map.ve = false;		/* disable VHPT walker */
Index: kernel/arch/ia64/src/mm/frame.c
===================================================================
--- kernel/arch/ia64/src/mm/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/mm/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -92,7 +92,7 @@
 	if (config.cpu_active > 1)
 		return;
-	
+
 	frame_common_arch_init(true);
-	
+
 	/*
 	 * Blacklist ROM regions.
@@ -112,5 +112,5 @@
 	if (config.cpu_active > 1)
 		return;
-	
+
 	frame_common_arch_init(false);
 }
Index: kernel/arch/ia64/src/mm/page.c
===================================================================
--- kernel/arch/ia64/src/mm/page.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/mm/page.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -124,5 +124,5 @@
 	vrn = page >> VRN_SHIFT;
 	rid = ASID2RID(asid, vrn);
-	
+
 	rr_save.word = rr_read(vrn);
 	if (rr_save.map.rid == rid) {
@@ -133,5 +133,5 @@
 		return v;
 	}
-	
+
 	/*
 	 * The RID must be written to some region register.
@@ -171,5 +171,5 @@
 	vrn = page >> VRN_SHIFT;
 	rid = ASID2RID(asid, vrn);
-	
+
 	rr_save.word = rr_read(vrn);
 	if (rr_save.map.rid == rid) {
@@ -179,5 +179,5 @@
 		return ttag(page) == v->present.tag.tag_word;
 	}
-	
+
 	/*
 	 * The RID must be written to some region register.
@@ -218,5 +218,5 @@
 	vrn = page >> VRN_SHIFT;
 	rid = ASID2RID(asid, vrn);
-	
+
 	/*
 	 * Compute ttag.
@@ -231,5 +231,5 @@
 	srlz_i();
 	srlz_d();
-	
+
 	/*
 	 * Clear the entry.
@@ -239,5 +239,5 @@
 	v->word[2] = 0;
 	v->word[3] = 0;
-	
+
 	v->present.p = true;
 	v->present.ma = (flags & PAGE_CACHEABLE) ?
Index: kernel/arch/ia64/src/mm/tlb.c
===================================================================
--- kernel/arch/ia64/src/mm/tlb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/mm/tlb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,7 +61,7 @@
 	uintptr_t adr;
 	uint32_t count1, count2, stride1, stride2;
-	
+
 	unsigned int i, j;
-	
+
 	adr = PAL_PTCE_INFO_BASE();
 	count1 = PAL_PTCE_INFO_COUNT1();
@@ -69,7 +69,7 @@
 	stride1 = PAL_PTCE_INFO_STRIDE1();
 	stride2 = PAL_PTCE_INFO_STRIDE2();
-	
+
 	ipl = interrupts_disable();
-	
+
 	for (i = 0; i < count1; i++) {
 		for (j = 0; j < count2; j++) {
@@ -82,10 +82,10 @@
 		adr += stride1;
 	}
-	
+
 	interrupts_restore(ipl);
-	
+
 	srlz_d();
 	srlz_i();
-	
+
 #ifdef CONFIG_VHPT
 	vhpt_invalidate_all();
@@ -110,8 +110,8 @@
 	int b = 0;
 	int c = cnt;
-	
+
 	uintptr_t va;
 	va = page;
-	
+
 	rr.word = rr_read(VA2VRN(page));
 	if ((restore_rr = (rr.map.rid != ASID2RID(asid, VA2VRN(page))))) {
@@ -121,5 +121,5 @@
 		 */
 		region_register_t rr0;
-		
+
 		rr0 = rr;
 		rr0.map.rid = ASID2RID(asid, VA2VRN(page));
@@ -128,10 +128,10 @@
 		srlz_i();
 	}
-	
+
 	while (c >>= 1)
 		b++;
 	b >>= 1;
 	uint64_t ps;
-	
+
 	switch (b) {
 	case 0: /* cnt 1 - 3 */
@@ -172,5 +172,5 @@
 		break;
 	}
-	
+
 	for (; va < (page + cnt * PAGE_SIZE); va += (1UL << ps))
 		asm volatile (
@@ -179,8 +179,8 @@
 			   [ps] "r" (ps << 2)
 		);
-	
+
 	srlz_d();
 	srlz_i();
-	
+
 	if (restore_rr) {
 		rr_write(VA2VRN(page), rr.word);
@@ -229,5 +229,5 @@
 	region_register_t rr;
 	bool restore_rr = false;
-	
+
 	rr.word = rr_read(VA2VRN(va));
 	if ((restore_rr = (rr.map.rid != ASID2RID(asid, VA2VRN(va))))) {
@@ -237,5 +237,5 @@
 		 */
 		region_register_t rr0;
-		
+
 		rr0 = rr;
 		rr0.map.rid = ASID2RID(asid, VA2VRN(va));
@@ -244,5 +244,5 @@
 		srlz_i();
 	}
-	
+
 	asm volatile (
 		"mov r8 = psr ;;\n"
@@ -264,5 +264,5 @@
 		: "p6", "p7", "r8"
 	);
-	
+
 	if (restore_rr) {
 		rr_write(VA2VRN(va), rr.word);
@@ -316,5 +316,5 @@
 	region_register_t rr;
 	bool restore_rr = false;
-	
+
 	rr.word = rr_read(VA2VRN(va));
 	if ((restore_rr = (rr.map.rid != ASID2RID(asid, VA2VRN(va))))) {
@@ -324,5 +324,5 @@
 		 */
 		region_register_t rr0;
-		
+
 		rr0 = rr;
 		rr0.map.rid = ASID2RID(asid, VA2VRN(va));
@@ -331,5 +331,5 @@
 		srlz_i();
 	}
-	
+
 	asm volatile (
 		"mov r8 = psr ;;\n"
@@ -352,5 +352,5 @@
 		: "p6", "p7", "r8"
 	);
-	
+
 	if (restore_rr) {
 		rr_write(VA2VRN(va), rr.word);
@@ -373,8 +373,8 @@
 {
 	tlb_entry_t entry;
-	
+
 	entry.word[0] = 0;
 	entry.word[1] = 0;
-	
+
 	entry.p = true;           /* present */
 	entry.ma = MA_WRITEBACK;
@@ -385,5 +385,5 @@
 	entry.ppn = frame >> PPN_SHIFT;
 	entry.ps = PAGE_WIDTH;
-	
+
 	if (dtr)
 		dtr_mapping_insert(page, ASID_KERNEL, entry, tr);
@@ -418,8 +418,8 @@
 {
 	tlb_entry_t entry;
-	
+
 	entry.word[0] = 0;
 	entry.word[1] = 0;
-	
+
 	entry.p = t->p;
 	entry.ma = t->c ? MA_WRITEBACK : MA_UNCACHEABLE;
@@ -430,7 +430,7 @@
 	entry.ppn = t->frame >> PPN_SHIFT;
 	entry.ps = PAGE_WIDTH;
-	
+
 	dtc_mapping_insert(t->page, t->as->asid, entry);
-	
+
 #ifdef CONFIG_VHPT
 	vhpt_mapping_insert(t->page, t->as->asid, entry);
@@ -446,10 +446,10 @@
 {
 	tlb_entry_t entry;
-	
+
 	entry.word[0] = 0;
 	entry.word[1] = 0;
-	
+
 	assert(t->x);
-	
+
 	entry.p = t->p;
 	entry.ma = t->c ? MA_WRITEBACK : MA_UNCACHEABLE;
@@ -459,7 +459,7 @@
 	entry.ppn = t->frame >> PPN_SHIFT;
 	entry.ps = PAGE_WIDTH;
-	
+
 	itc_mapping_insert(t->page, t->as->asid, entry);
-	
+
 #ifdef CONFIG_VHPT
 	vhpt_mapping_insert(t->page, t->as->asid, entry);
@@ -486,7 +486,7 @@
 	uintptr_t va;
 	pte_t t;
-	
+
 	va = istate->cr_ifa; /* faulting address */
-	
+
 	assert(!is_kernel_fault(va));
 
@@ -532,18 +532,18 @@
 			uint64_t io_page = (va & ((1 << LEGACYIO_PAGE_WIDTH) - 1)) >>
 			    LEGACYIO_SINGLE_PAGE_WIDTH;
-			
+
 			if (is_io_page_accessible(io_page)) {
 				uint64_t page, frame;
-				
+
 				page = LEGACYIO_USER_BASE +
 				    (1 << LEGACYIO_SINGLE_PAGE_WIDTH) * io_page;
 				frame = LEGACYIO_PHYS_BASE +
 				    (1 << LEGACYIO_SINGLE_PAGE_WIDTH) * io_page;
-				
+
 				tlb_entry_t entry;
-				
+
 				entry.word[0] = 0;
 				entry.word[1] = 0;
-				
+
 				entry.p = true;             /* present */
 				entry.ma = MA_UNCACHEABLE;
@@ -554,5 +554,5 @@
 				entry.ppn = frame >> PPN_SHIFT;
 				entry.ps = LEGACYIO_SINGLE_PAGE_WIDTH;
-				
+
 				dtc_mapping_insert(page, TASK->as->asid, entry);
 				return 1;
@@ -563,5 +563,5 @@
 		}
 	}
-	
+
 	return 0;
 }
@@ -586,8 +586,8 @@
 		return;
 	}
-	
+
 	uintptr_t va = istate->cr_ifa;  /* faulting address */
 	as_t *as = AS;
-	
+
 	if (is_kernel_fault(va)) {
 		if (va < end_of_identity) {
@@ -601,6 +601,6 @@
 		}
 	}
-	
-	
+
+
 	pte_t t;
 	bool found = page_mapping_find(as, va, true, &t);
@@ -616,5 +616,5 @@
 		if (try_memmap_io_insertion(va, istate))
 			return;
-		
+
 		/*
 		 * Forward the page fault to the address space page fault
@@ -649,7 +649,7 @@
 	pte_t t;
 	as_t *as = AS;
-	
+
 	va = istate->cr_ifa;  /* faulting address */
-	
+
 	if (is_kernel_fault(va))
 		as = AS_KERNEL;
@@ -683,9 +683,9 @@
 	uintptr_t va;
 	pte_t t;
-	
+
 	va = istate->cr_ifa;  /* faulting address */
 
 	assert(!is_kernel_fault(va));
-	
+
 	bool found = page_mapping_find(AS, va, true, &t);
 
@@ -717,7 +717,7 @@
 	pte_t t;
 	as_t *as = AS;
-	
+
 	va = istate->cr_ifa;  /* faulting address */
-	
+
 	if (is_kernel_fault(va))
 		as = AS_KERNEL;
@@ -755,9 +755,9 @@
 	uintptr_t va;
 	pte_t t;
-	
+
 	va = istate->cr_ifa;  /* faulting address */
 
 	assert(!is_kernel_fault(va));
-	
+
 	/*
 	 * Assume a write to a read-only page.
@@ -782,7 +782,7 @@
 	uintptr_t va;
 	pte_t t;
-	
+
 	va = istate->cr_ifa;  /* faulting address */
-	
+
 	assert(!is_kernel_fault(va));
 
@@ -790,5 +790,5 @@
 
 	assert(found);
-	
+
 	if (t.p) {
 		/*
Index: kernel/arch/ia64/src/mm/vhpt.c
===================================================================
--- kernel/arch/ia64/src/mm/vhpt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/mm/vhpt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	if (!vhpt_frame)
 		panic("Kernel configured with VHPT but no memory for table.");
-	
+
 	vhpt_base = (vhpt_entry_t *) PA2KA(vhpt_frame);
 	vhpt_invalidate_all();
@@ -59,10 +59,10 @@
 	rid_t rid;
 	uint64_t tag;
-	
+
 	vhpt_entry_t *ventry;
-	
+
 	vrn = va >> VRN_SHIFT;
 	rid = ASID2RID(asid, vrn);
-	
+
 	rr_save.word = rr_read(vrn);
 	rr.word = rr_save.word;
@@ -70,5 +70,5 @@
 	rr_write(vrn, rr.word);
 	srlz_i();
-	
+
 	ventry = (vhpt_entry_t *) thash(va);
 	tag = ttag(va);
@@ -76,5 +76,5 @@
 	srlz_i();
 	srlz_d();
-	
+
 	ventry->word[0] = entry.word[0];
 	ventry->word[1] = entry.word[1];
Index: kernel/arch/ia64/src/proc/scheduler.c
===================================================================
--- kernel/arch/ia64/src/proc/scheduler.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/proc/scheduler.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 {
 	uintptr_t base;
-	
+
 	base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH);
 
@@ -63,8 +63,8 @@
 		 * Use DTR[TR_KSTACK1] and DTR[TR_KSTACK2] to map it.
 		 */
-		 
+
 		/* purge DTR[TR_STACK1] and DTR[TR_STACK2] */
 		dtr_purge((uintptr_t) THREAD->kstack, PAGE_WIDTH+1);
-		
+
 		/* insert DTR[TR_STACK1] and DTR[TR_STACK2] */
 		dtlb_kernel_mapping_insert((uintptr_t) THREAD->kstack,
@@ -74,5 +74,5 @@
 		    DTR_KSTACK2);
 	}
-	
+
 	/*
 	 * Record address of kernel backing store to bank 0 r22.
Index: kernel/arch/ia64/src/start.S
===================================================================
--- kernel/arch/ia64/src/start.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ia64/src/start.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,46 +54,46 @@
 SYMBOL(kernel_image_start)
 	.auto
-	
+
 	mov psr.l = r0
 	srlz.i
 	srlz.d
-	
+
 	# Fill TR.i and TR.d using Region Register #VRN_KERNEL
-	
+
 	movl r8 = (VRN_KERNEL << VRN_SHIFT)
 	mov r9 = rr[r8]
-	
+
 	movl r10 = (RR_MASK)
 	and r9 = r10, r9
 	movl r10 = (((RID_KERNEL7) << RID_SHIFT) | (KERNEL_PAGE_WIDTH << PS_SHIFT))
 	or r9 = r10, r9
-	
+
 	mov rr[r8] = r9
-	
+
 	movl r8 = (VRN_KERNEL << VRN_SHIFT)
 	mov cr.ifa = r8
-	
+
 	mov r11 = cr.itir
 	movl r10 = (KERNEL_PAGE_WIDTH << PS_SHIFT)
 	or r10 = r10, r11
 	mov cr.itir = r10
-	
+
 	movl r10 = (KERNEL_TRANSLATION_I)
 	itr.i itr[r0] = r10
 	movl r10 = (KERNEL_TRANSLATION_D)
 	itr.d dtr[r0] = r10
-	
+
 	# Initialize DCR
-	
+
 	movl r10 = (DCR_DP_MASK | DCR_DK_MASK | DCR_DX_MASK | DCR_DR_MASK | DCR_DA_MASK | DCR_DD_MASK | DCR_LC_MASK)
 	mov r9 = cr.dcr
 	or r10 = r10, r9
 	mov cr.dcr = r10
-	
+
 	# Initialize PSR
-	
+
 	movl r10 = (PSR_DT_MASK | PSR_RT_MASK | PSR_IT_MASK | PSR_IC_MASK)  /* Enable paging */
 	mov r9 = psr
-	
+
 	or r10 = r10, r9
 	mov cr.ipsr = r10
@@ -103,7 +103,7 @@
 	srlz.d
 	srlz.i
-	
+
 	.explicit
-	
+
 	/*
 	 * Return From Interrupt is the only way to
@@ -113,5 +113,5 @@
 
 paging_start:
-	
+
 	/*
 	 * Now we are paging.
@@ -126,8 +126,8 @@
 	srlz.d ;;
 
-	
+
 	# Switch to register bank 1
 	bsw.1
-	
+
 	# Initialize register stack
 	mov ar.rsc = r0
@@ -135,5 +135,5 @@
 	mov ar.bspstore = r8
 	loadrs
-	
+
 	#
 	# Initialize memory stack to some sane value and allocate a scratch area
@@ -142,8 +142,8 @@
 	movl sp = stack0 ;;
 	add sp = -16, sp
-	
+
 	# Initialize gp (Global Pointer) register
 	movl gp = __gp
-	
+
 	#
 	# Initialize bootinfo on BSP.
@@ -153,9 +153,9 @@
 	addl r21 = @gprel(bootinfo), gp ;;
 	st8 [r21] = r20
-	
+
 	ssm (1 << 19) ;; /* Disable f32 - f127 */
 	srlz.i
 	srlz.d ;;
-	
+
 	br.call.sptk.many b0 = ia64_pre_main
 0:
Index: kernel/arch/mips32/include/arch/asm.h
===================================================================
--- kernel/arch/mips32/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 {
 	uintptr_t base;
-	
+
 	asm volatile (
 		"and %[base], $29, %[mask]\n"
@@ -61,5 +61,5 @@
 		: [mask] "r" (~(STACK_SIZE - 1))
 	);
-	
+
 	return base;
 }
Index: kernel/arch/mips32/include/arch/atomic.h
===================================================================
--- kernel/arch/mips32/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,5 +60,5 @@
 	atomic_count_t tmp;
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"1:\n"
@@ -75,5 +75,5 @@
 		  "i" (0)
 	);
-	
+
 	return v;
 }
@@ -83,5 +83,5 @@
 	atomic_count_t tmp;
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"1:\n"
@@ -98,5 +98,5 @@
 		: "i" (1)
 	);
-	
+
 	return v;
 }
Index: kernel/arch/mips32/include/arch/mm/page.h
===================================================================
--- kernel/arch/mips32/include/arch/mm/page.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/include/arch/mm/page.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -165,5 +165,5 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	return ((p->cacheable << PAGE_CACHEABLE_SHIFT) |
 	    ((!p->p) << PAGE_PRESENT_SHIFT) |
@@ -178,10 +178,10 @@
 {
 	pte_t *p = &pt[i];
-	
+
 	p->cacheable = (flags & PAGE_CACHEABLE) != 0;
 	p->p = !(flags & PAGE_NOT_PRESENT);
 	p->g = (flags & PAGE_GLOBAL) != 0;
 	p->w = (flags & PAGE_WRITE) != 0;
-	
+
 	/*
 	 * Ensure that valid entries have at least one bit set.
Index: kernel/arch/mips32/src/asm.S
===================================================================
--- kernel/arch/mips32/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 FUNCTION_BEGIN(memcpy_to_uspace)
 	move $t2, $a0  /* save dst */
-	
+
 	addiu $v0, $a1, 3
 	li $v1, -4  /* 0xfffffffffffffffc */
@@ -68,9 +68,9 @@
 	beq $a1, $v0, 3f
 	move $t0, $a0
-	
+
 	0:
 		beq $a2, $zero, 2f
 		move $a3, $zero
-	
+
 	1:
 		addu $v0, $a1, $a3
@@ -80,9 +80,9 @@
 		bne $a3, $a2, 1b
 		sb $a0, 0($v1)
-	
+
 	2:
 		jr $ra
 		move $v0, $t2
-	
+
 	3:
 		addiu $v0, $a0, 3
@@ -90,11 +90,11 @@
 		bne $a0, $v0, 0b
 		srl $t1, $a2, 2
-		
+
 		beq $t1, $zero, 5f
 		move $a3, $zero
-		
+
 		move $a3, $zero
 		move $a0, $zero
-	
+
 	4:
 		addu $v0, $a1, $a0
@@ -105,15 +105,15 @@
 		bne $a3, $t1, 4b
 		addiu $a0, $a0, 4
-	
+
 	5:
 		andi $a2, $a2, 0x3
 		beq $a2, $zero, 2b
 		nop
-		
+
 		sll $v0, $a3, 2
 		addu $t1, $v0, $t0
 		move $a3, $zero
 		addu $t0, $v0, $a1
-	
+
 	6:
 		addu $v0, $t0, $a3
@@ -123,5 +123,5 @@
 		bne $a3, $a2, 6b
 		sb $a0, 0($v1)
-		
+
 		jr $ra
 		move $v0, $t2
@@ -188,5 +188,5 @@
 	fpu_gp_save 30, $a0
 	fpu_gp_save 31, $a0
-	
+
 	fpu_ct_save 1, $a0
 	fpu_ct_save 2, $a0
@@ -259,5 +259,5 @@
 	fpu_gp_restore 30, $a0
 	fpu_gp_restore 31, $a0
-	
+
 	fpu_ct_restore 1, $a0
 	fpu_ct_restore 2, $a0
Index: kernel/arch/mips32/src/context.S
===================================================================
--- kernel/arch/mips32/src/context.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/context.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,8 +47,8 @@
 	sw $s8, CONTEXT_OFFSET_S8($a0)
 	sw $gp, CONTEXT_OFFSET_GP($a0)
-	
+
 	sw $ra, CONTEXT_OFFSET_PC($a0)
 	sw $sp, CONTEXT_OFFSET_SP($a0)
-	
+
 	# context_save returns 1
 	j $31
@@ -67,8 +67,8 @@
 	lw $s8, CONTEXT_OFFSET_S8($a0)
 	lw $gp, CONTEXT_OFFSET_GP($a0)
-	
+
 	lw $ra, CONTEXT_OFFSET_PC($a0)
 	lw $sp, CONTEXT_OFFSET_SP($a0)
-	
+
 	# context_restore returns 0
 	j $31
Index: kernel/arch/mips32/src/debug/stacktrace.c
===================================================================
--- kernel/arch/mips32/src/debug/stacktrace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/debug/stacktrace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -157,5 +157,5 @@
 			 * We have a candidate for frame pointer.
 			 */
-			
+
 			/* Seek to the end of this function. */
 			for (cur = inst + 1; !IS_JR_RA(*cur); cur++)
@@ -170,5 +170,5 @@
 			continue;
 		}
-		
+
 		if (IS_JR_RA(*inst)) {
 			if (!ctx->istate)
@@ -189,5 +189,5 @@
 	} while ((!IS_ADDIU_SP_SP_IMM(*inst) && !IS_ADDI_SP_SP_IMM(*inst)) ||
 	    (IMM_GET(*inst) >= 0));
-	
+
 	/*
 	 * We are at the instruction which allocates the space for the current
@@ -210,5 +210,5 @@
 			if (base == SP || (has_fp && base == fp)) {
 				uint32_t *addr = (void *) (ctx->fp + offset);
-				
+
 				if (offset % 4 != 0)
 					return false;
Index: kernel/arch/mips32/src/debugger.c
===================================================================
--- kernel/arch/mips32/src/debugger.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/debugger.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -138,10 +138,10 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; jmpinstr[i].andmask; i++) {
 		if ((instr & jmpinstr[i].andmask) == jmpinstr[i].value)
 			return true;
 	}
-	
+
 	return false;
 }
@@ -158,7 +158,7 @@
 		return 1;
 	}
-	
+
 	irq_spinlock_lock(&bkpoint_lock, true);
-	
+
 	/* Check, that the breakpoints do not conflict */
 	unsigned int i;
@@ -176,9 +176,9 @@
 			return 0;
 		}
-		
-	}
-	
+
+	}
+
 	bpinfo_t *cur = NULL;
-	
+
 	for (i = 0; i < BKPOINTS_MAX; i++) {
 		if (!breakpoints[i].address) {
@@ -187,5 +187,5 @@
 		}
 	}
-	
+
 	if (!cur) {
 		printf("Too many breakpoints.\n");
@@ -193,7 +193,7 @@
 		return 0;
 	}
-	
+
 	printf("Adding breakpoint on address %p\n", (void *) argv->intval);
-	
+
 	cur->address = (uintptr_t) argv->intval;
 	cur->instruction = ((sysarg_t *) cur->address)[0];
@@ -205,16 +205,16 @@
 		cur->bkfunc = (void (*)(void *, istate_t *)) argv[1].intval;
 	}
-	
+
 	if (is_jump(cur->instruction))
 		cur->flags |= BKPOINT_ONESHOT;
-	
+
 	cur->counter = 0;
-	
+
 	/* Set breakpoint */
 	*((sysarg_t *) cur->address) = 0x0d;
 	smc_coherence(cur->address);
-	
+
 	irq_spinlock_unlock(&bkpoint_lock, true);
-	
+
 	return 1;
 }
@@ -229,7 +229,7 @@
 		return 0;
 	}
-	
+
 	irq_spinlock_lock(&bkpoint_lock, true);
-	
+
 	bpinfo_t *cur = &breakpoints[argv->intval];
 	if (!cur->address) {
@@ -238,5 +238,5 @@
 		return 0;
 	}
-	
+
 	if ((cur->flags & BKPOINT_INPROG) && (cur->flags & BKPOINT_ONESHOT)) {
 		printf("Cannot remove one-shot breakpoint in-progress\n");
@@ -244,12 +244,12 @@
 		return 0;
 	}
-	
+
 	((uint32_t *) cur->address)[0] = cur->instruction;
 	smc_coherence(((uint32_t *) cur->address)[0]);
 	((uint32_t *) cur->address)[1] = cur->nextinstruction;
 	smc_coherence(((uint32_t *) cur->address)[1]);
-	
+
 	cur->address = (uintptr_t) NULL;
-	
+
 	irq_spinlock_unlock(&bkpoint_lock, true);
 	return 1;
@@ -262,12 +262,12 @@
 {
 	unsigned int i;
-	
+
 	printf("[nr] [count] [address ] [inprog] [oneshot] [funccall] [in symbol\n");
-	
+
 	for (i = 0; i < BKPOINTS_MAX; i++) {
 		if (breakpoints[i].address) {
 			const char *symbol = symtab_fmt_name_lookup(
 			    breakpoints[i].address);
-			
+
 			printf("%-4u %7zu %p %-8s %-9s %-10s %s\n", i,
 			    breakpoints[i].counter, (void *) breakpoints[i].address,
@@ -278,5 +278,5 @@
 		}
 	}
-	
+
 	return 1;
 }
@@ -290,8 +290,8 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < BKPOINTS_MAX; i++)
 		breakpoints[i].address = (uintptr_t) NULL;
-	
+
 #ifdef CONFIG_KCONSOLE
 	cmd_initialize(&bkpts_info);
@@ -299,15 +299,15 @@
 		log(LF_OTHER, LVL_WARN, "Cannot register command %s",
 		    bkpts_info.name);
-	
+
 	cmd_initialize(&delbkpt_info);
 	if (!cmd_register(&delbkpt_info))
 		log(LF_OTHER, LVL_WARN, "Cannot register command %s",
 		    delbkpt_info.name);
-	
+
 	cmd_initialize(&addbkpt_info);
 	if (!cmd_register(&addbkpt_info))
 		log(LF_OTHER, LVL_WARN, "Cannot register command %s",
 		    addbkpt_info.name);
-	
+
 	cmd_initialize(&addbkpte_info);
 	if (!cmd_register(&addbkpte_info))
@@ -331,11 +331,11 @@
 	if (cp0_cause_read() & 0x80000000)
 		panic("Breakpoint in branch delay slot not supported.");
-	
+
 	irq_spinlock_lock(&bkpoint_lock, false);
-	
+
 	bpinfo_t *cur = NULL;
 	uintptr_t fireaddr = istate->epc;
 	unsigned int i;
-	
+
 	for (i = 0; i < BKPOINTS_MAX; i++) {
 		/* Normal breakpoint */
@@ -345,5 +345,5 @@
 			break;
 		}
-		
+
 		/* Reinst only breakpoint */
 		if ((breakpoints[i].flags & BKPOINT_REINST) &&
@@ -353,5 +353,5 @@
 		}
 	}
-	
+
 	if (cur) {
 		if (cur->flags & BKPOINT_REINST) {
@@ -359,17 +359,17 @@
 			((uint32_t *) cur->address)[0] = 0x0d;
 			smc_coherence(((uint32_t *)cur->address)[0]);
-			
+
 			/* Return back the second */
 			((uint32_t *) cur->address)[1] = cur->nextinstruction;
 			smc_coherence(((uint32_t *) cur->address)[1]);
-			
+
 			cur->flags &= ~BKPOINT_REINST;
 			irq_spinlock_unlock(&bkpoint_lock, false);
 			return;
 		}
-		
+
 		if (cur->flags & BKPOINT_INPROG)
 			printf("Warning: breakpoint recursion\n");
-		
+
 		if (!(cur->flags & BKPOINT_FUNCCALL)) {
 			printf("***Breakpoint %u: %p in %s.\n", i,
@@ -377,5 +377,5 @@
 			    symtab_fmt_name_lookup(fireaddr));
 		}
-		
+
 		/* Return first instruction back */
 		((uint32_t *)cur->address)[0] = cur->instruction;
@@ -392,12 +392,12 @@
 		    (void *) fireaddr,
 		    symtab_fmt_name_lookup(fireaddr));
-		
+
 		/* Move on to next instruction */
 		istate->epc += 4;
 	}
-	
+
 	if (cur)
 		cur->counter++;
-	
+
 	if (cur && (cur->flags & BKPOINT_FUNCCALL)) {
 		/* Allow zero bkfunc, just for counting */
@@ -414,12 +414,12 @@
 		atomic_set(&haltstate, 1);
 		irq_spinlock_unlock(&bkpoint_lock, false);
-		
+
 		kconsole("debug", "Debug console ready.\n", false);
-		
+
 		irq_spinlock_lock(&bkpoint_lock, false);
 		atomic_set(&haltstate, 0);
 #endif
 	}
-	
+
 	if ((cur) && (cur->address == fireaddr)
 	    && ((cur->flags & BKPOINT_INPROG))) {
@@ -427,9 +427,9 @@
 		if ((cur->flags & BKPOINT_ONESHOT))
 			cur->address = (uintptr_t) NULL;
-		
+
 		/* Remove in-progress flag */
 		cur->flags &= ~BKPOINT_INPROG;
 	}
-	
+
 	irq_spinlock_unlock(&bkpoint_lock, false);
 }
Index: kernel/arch/mips32/src/exception.c
===================================================================
--- kernel/arch/mips32/src/exception.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/exception.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,33 +77,33 @@
 	    "lo =%#010" PRIx32 "\thi =%#010" PRIx32 "\n",
 	    istate->epc, istate->status, istate->lo, istate->hi);
-	
+
 	log_printf("a0 =%#010" PRIx32 "\ta1 =%#010" PRIx32 "\t"
 	    "a2 =%#010" PRIx32 "\ta3 =%#010" PRIx32 "\n",
 	    istate->a0, istate->a1, istate->a2, istate->a3);
-	
+
 	log_printf("t0 =%#010" PRIx32 "\tt1 =%#010" PRIx32 "\t"
 	    "t2 =%#010" PRIx32 "\tt3 =%#010" PRIx32 "\n",
 	    istate->t0, istate->t1, istate->t2, istate->t3);
-	
+
 	log_printf("t4 =%#010" PRIx32 "\tt5 =%#010" PRIx32 "\t"
 	    "t6 =%#010" PRIx32 "\tt7 =%#010" PRIx32 "\n",
 	    istate->t4, istate->t5, istate->t6, istate->t7);
-	
+
 	log_printf("t8 =%#010" PRIx32 "\tt9 =%#010" PRIx32 "\t"
 	    "v0 =%#010" PRIx32 "\tv1 =%#010" PRIx32 "\n",
 	    istate->t8, istate->t9, istate->v0, istate->v1);
-	
+
 	log_printf("s0 =%#010" PRIx32 "\ts1 =%#010" PRIx32 "\t"
 	    "s2 =%#010" PRIx32 "\ts3 =%#010" PRIx32 "\n",
 	    istate->s0, istate->s1, istate->s2, istate->s3);
-	
+
 	log_printf("s4 =%#010" PRIx32 "\ts5 =%#010" PRIx32 "\t"
 	    "s6 =%#010" PRIx32 "\ts7 =%#010" PRIx32 "\n",
 	    istate->s4, istate->s5, istate->s6, istate->s7);
-	
+
 	log_printf("s8 =%#010" PRIx32 "\tat =%#010" PRIx32 "\t"
 	    "kt0=%#010" PRIx32 "\tkt1=%#010" PRIx32 "\n",
 	    istate->s8, istate->at, istate->kt0, istate->kt1);
-	
+
 	log_printf("sp =%#010" PRIx32 "\tra =%#010" PRIx32 "\t"
 	    "gp =%#010" PRIx32 "\n",
@@ -171,5 +171,5 @@
 	ip = (cp0_cause_read() & cp0_cause_ip_mask) >> cp0_cause_ip_shift;
 	im = (cp0_status_read() & cp0_status_im_mask) >> cp0_status_im_shift;
-	
+
 	unsigned int i;
 	for (i = 0; i < 8; i++) {
@@ -212,10 +212,10 @@
 {
 	unsigned int i;
-	
+
 	/* Clear exception table */
 	for (i = 0; i < IVT_ITEMS; i++)
 		exc_register(i, "undef", false,
 		    (iroutine_t) unhandled_exception);
-	
+
 	exc_register(EXC_Bp, "bkpoint", true,
 	    (iroutine_t) breakpoint_exception);
@@ -230,10 +230,10 @@
 	exc_register(EXC_Int, "interrupt", true,
 	    (iroutine_t) interrupt_exception);
-	
+
 #ifdef CONFIG_FPU_LAZY
 	exc_register(EXC_CpU, "cpunus", true,
 	    (iroutine_t) cpuns_exception);
 #endif
-	
+
 	exc_register(EXC_Sys, "syscall", true,
 	    (iroutine_t) syscall_exception);
Index: kernel/arch/mips32/src/interrupt.c
===================================================================
--- kernel/arch/mips32/src/interrupt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/interrupt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -132,7 +132,7 @@
 		/* Count overflow detected */
 		count_hi++;
-	
+
 	lastcount = cp0_count_read();
-	
+
 	unsigned long drift = cp0_count_read() - nextcount;
 	while (drift > cp0_compare_value) {
@@ -140,8 +140,8 @@
 		CPU->missed_clock_ticks++;
 	}
-	
+
 	nextcount = cp0_count_read() + cp0_compare_value - drift;
 	cp0_compare_write(nextcount);
-	
+
 	/*
 	 * We are holding a lock which prevents preemption.
@@ -151,5 +151,5 @@
 	clock();
 	irq_spinlock_lock(&irq->lock, false);
-	
+
 	if (virtual_timer_fnc != NULL)
 		virtual_timer_fnc();
@@ -172,5 +172,5 @@
 {
 	irq_init(IRQ_COUNT, IRQ_COUNT);
-	
+
 	irq_initialize(&timer_irq);
 	timer_irq.inr = TIMER_IRQ;
@@ -178,8 +178,8 @@
 	timer_irq.handler = timer_irq_handler;
 	irq_register(&timer_irq);
-	
+
 	timer_start();
 	cp0_unmask_int(TIMER_IRQ);
-	
+
 #ifdef MACHINE_msim
 	irq_initialize(&dorder_irq);
@@ -188,5 +188,5 @@
 	dorder_irq.handler = dorder_irq_handler;
 	irq_register(&dorder_irq);
-	
+
 	cp0_unmask_int(DORDER_IRQ);
 #endif
Index: kernel/arch/mips32/src/mips32.c
===================================================================
--- kernel/arch/mips32/src/mips32.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/mips32.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -86,5 +86,5 @@
 {
 	init.cnt = min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);
-	
+
 	size_t i;
 	for (i = 0; i < init.cnt; i++) {
@@ -94,5 +94,5 @@
 		    bootinfo->tasks[i].name);
 	}
-	
+
 	for (i = 0; i < CPUMAP_MAX_RECORDS; i++) {
 		if ((bootinfo->cpumap & (1 << i)) != 0)
@@ -112,5 +112,5 @@
 	/* It is not assumed by default */
 	interrupts_disable();
-	
+
 	/* Initialize dispatch table */
 	exception_init();
@@ -123,5 +123,5 @@
 	memcpy(CACHE_EXC, (char *) cache_error_entry, EXCEPTION_JUMP_SIZE);
 	smc_coherence_block(CACHE_EXC, EXCEPTION_JUMP_SIZE);
-	
+
 	/*
 	 * Switch to BEV normal level so that exception vectors point to the
@@ -130,10 +130,10 @@
 	cp0_status_write(cp0_status_read() &
 	    ~(cp0_status_bev_bootstrap_bit | cp0_status_erl_error_bit));
-	
+
 	/*
 	 * Mask all interrupts
 	 */
 	cp0_mask_all_int();
-	
+
 	debugger_init();
 }
@@ -171,5 +171,5 @@
 	    (uintptr_t) kernel_uarg->uspace_uarg,
 	    (uintptr_t) kernel_uarg->uspace_entry);
-	
+
 	while (1);
 }
Index: kernel/arch/mips32/src/mm/frame.c
===================================================================
--- kernel/arch/mips32/src/mm/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/mm/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -82,5 +82,5 @@
 	if (frame == (KA2PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH))
 		return false;
-	
+
 	/* MSIM device (dkeyboard) */
 	if (frame == (KA2PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH))
@@ -92,5 +92,5 @@
 		return false;
 #endif
-	
+
 	return true;
 }
@@ -108,15 +108,15 @@
 	if ((frame << ZERO_PAGE_WIDTH) < KA2PA(config.base))
 		return false;
-	
+
 	/* Kernel */
 	if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,
 	    KA2PA(config.base), config.kernel_size))
 		return false;
-	
+
 	/* Kernel stack */
 	if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,
 	    KA2PA(config.stack_base), config.stack_size))
 		return false;
-	
+
 	/* Init tasks */
 	bool safe = true;
@@ -128,5 +128,5 @@
 			break;
 		}
-	
+
 	return safe;
 }
@@ -161,5 +161,5 @@
 			    ZONE_AVAILABLE | ZONE_HIGHMEM);
 	}
-	
+
 	if (phys_regions_count < MAX_REGIONS) {
 		phys_regions[phys_regions_count].start = first;
@@ -182,5 +182,5 @@
 {
 	ipl_t ipl = interrupts_disable();
-	
+
 	/* Clear and initialize TLB */
 	cp0_pagemask_write(ZERO_PAGE_MASK);
@@ -194,9 +194,9 @@
 		tlbwi();
 	}
-		
+
 	pfn_t start_frame = 0;
 	pfn_t frame;
 	bool avail = true;
-	
+
 	/* Walk through all 1 MB frames */
 	for (frame = 0; frame < ZERO_FRAMES; frame++) {
@@ -211,5 +211,5 @@
 				tlb_prepare_entry_lo(&lo1, false, false, false, false, 0);
 				tlb_prepare_entry_hi(&hi, ZERO_PAGE_ASID, ZERO_PAGE_ADDR);
-				
+
 				cp0_pagemask_write(ZERO_PAGE_MASK);
 				cp0_entry_lo0_write(lo0.value);
@@ -218,5 +218,5 @@
 				cp0_index_write(ZERO_PAGE_TLBI);
 				tlbwi();
-				
+
 				ZERO_PAGE_VALUE = 0;
 				if (ZERO_PAGE_VALUE != 0)
@@ -229,5 +229,5 @@
 			}
 		}
-		
+
 		if (!avail) {
 			frame_add_region(start_frame, frame, true);
@@ -236,7 +236,7 @@
 		}
 	}
-	
+
 	frame_add_region(start_frame, frame, true);
-	
+
 	/* Blacklist interrupt vector frame */
 	frame_mark_unavailable(0, 1);
@@ -267,5 +267,5 @@
 	frame_mark_unavailable(0, 1024 * 1024 / FRAME_SIZE);
 #endif
-	
+
 	/* Cleanup */
 	cp0_pagemask_write(ZERO_PAGE_MASK);
@@ -275,5 +275,5 @@
 	cp0_index_write(ZERO_PAGE_TLBI);
 	tlbwi();
-	
+
 	interrupts_restore(ipl);
 }
@@ -286,5 +286,5 @@
 {
 	printf("[base    ] [size    ]\n");
-	
+
 	size_t i;
 	for (i = 0; i < phys_regions_count; i++) {
Index: kernel/arch/mips32/src/mm/tlb.c
===================================================================
--- kernel/arch/mips32/src/mm/tlb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/mm/tlb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -76,10 +76,10 @@
 
 	/* Clear and initialize TLB. */
-	
+
 	for (i = 0; i < TLB_ENTRY_COUNT; i++) {
 		cp0_index_write(i);
 		tlbwi();
 	}
-	
+
 	/*
 	 * The kernel is going to make use of some wired
@@ -98,5 +98,5 @@
 	uintptr_t badvaddr;
 	pte_t pte;
-	
+
 	badvaddr = cp0_badvaddr_read();
 
@@ -291,16 +291,16 @@
 	lo1_save.value = cp0_entry_lo1_read();
 	mask_save.value = cp0_pagemask_read();
-	
+
 	printf("[nr] [asid] [vpn2    ] [mask] [gvdc] [pfn     ]\n");
-	
+
 	for (i = 0; i < TLB_ENTRY_COUNT; i++) {
 		cp0_index_write(i);
 		tlbr();
-		
+
 		mask.value = cp0_pagemask_read();
 		hi.value = cp0_entry_hi_read();
 		lo0.value = cp0_entry_lo0_read();
 		lo1.value = cp0_entry_lo1_read();
-		
+
 		printf("%-4u %-6u %0#10x %-#6x  %1u%1u%1u%1u  %0#10x\n",
 		    i, hi.asid, HI_VPN22ADDR(hi.vpn2), mask.mask,
@@ -309,5 +309,5 @@
 		    lo1.g, lo1.v, lo1.d, lo1.c, LO_PFN2ADDR(lo1.pfn));
 	}
-	
+
 	cp0_entry_hi_write(hi_save.value);
 	cp0_entry_lo0_write(lo0_save.value);
@@ -339,8 +339,8 @@
 		cp0_entry_lo0_write(lo0.value);
 		cp0_entry_lo1_write(lo1.value);
-				
+
 		tlbwi();
 	}
-	
+
 	cp0_entry_hi_write(hi_save.value);
 }
@@ -360,11 +360,11 @@
 
 	hi_save.value = cp0_entry_hi_read();
-	
+
 	for (i = 0; i < TLB_ENTRY_COUNT; i++) {
 		cp0_index_write(i);
 		tlbr();
-		
+
 		hi.value = cp0_entry_hi_read();
-		
+
 		if (hi.asid == asid) {
 			lo0.value = cp0_entry_lo0_read();
@@ -380,5 +380,5 @@
 		}
 	}
-	
+
 	cp0_entry_hi_write(hi_save.value);
 }
@@ -399,5 +399,5 @@
 
 	assert(interrupts_disabled());
-	
+
 	if (asid == ASID_INVALID)
 		return;
@@ -431,5 +431,5 @@
 		}
 	}
-	
+
 	cp0_entry_hi_write(hi_save.value);
 }
Index: kernel/arch/mips32/src/start.S
===================================================================
--- kernel/arch/mips32/src/start.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/mips32/src/start.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -89,25 +89,25 @@
 	sw $s7, ISTATE_OFFSET_S7(\r)
 	sw $s8, ISTATE_OFFSET_S8(\r)
-	
+
 	mflo $at
 	sw $at, ISTATE_OFFSET_LO(\r)
 	mfhi $at
 	sw $at, ISTATE_OFFSET_HI(\r)
-	
+
 	sw $gp, ISTATE_OFFSET_GP(\r)
 	sw $ra, ISTATE_OFFSET_RA(\r)
 	sw $k0, ISTATE_OFFSET_KT0(\r)
 	sw $k1, ISTATE_OFFSET_KT1(\r)
-	
+
 	mfc0 $t0, $status
 	mfc0 $t1, $epc
-	
+
 	/* save only KSU, EXL, ERL, IE */
 	and $t2, $t0, REG_SAVE_MASK
-	
+
 	/* clear KSU, EXL, ERL, IE */
 	li $t3, ~(REG_SAVE_MASK)
 	and $t0, $t0, $t3
-	
+
 	sw $t2, ISTATE_OFFSET_STATUS(\r)
 	sw $t1, ISTATE_OFFSET_EPC(\r)
@@ -122,13 +122,13 @@
 	mfc0 $t0, $status
 	lw $t1, ISTATE_OFFSET_STATUS(\r)
-	
+
 	/* mask UM, EXL, ERL, IE */
 	li $t2, ~REG_SAVE_MASK
 	and $t0, $t0, $t2
-	
+
 	/* copy UM, EXL, ERL, IE from saved status */
 	or $t0, $t0, $t1
 	mtc0 $t0, $status
-	
+
 	lw $v0, ISTATE_OFFSET_V0(\r)
 	lw $v1, ISTATE_OFFSET_V1(\r)
@@ -147,17 +147,17 @@
 	lw $t8, ISTATE_OFFSET_T8(\r)
 	lw $t9, ISTATE_OFFSET_T9(\r)
-	
+
 	lw $gp, ISTATE_OFFSET_GP(\r)
 	lw $ra, ISTATE_OFFSET_RA(\r)
 	lw $k1, ISTATE_OFFSET_KT1(\r)
-	
+
 	lw $at, ISTATE_OFFSET_LO(\r)
 	mtlo $at
 	lw $at, ISTATE_OFFSET_HI(\r)
 	mthi $at
-	
+
 	lw $at, ISTATE_OFFSET_EPC(\r)
 	mtc0 $at, $epc
-	
+
 	lw $at, ISTATE_OFFSET_AT(\r)
 	lw $sp, ISTATE_OFFSET_SP(\r)
@@ -172,14 +172,14 @@
 	mfc0 $k0, $status
 	andi $k0, 0x10
-	
+
 	beq $k0, $0, 1f
 	move $k0, $sp
-	
+
 	/* move $k0 pointer to kernel stack */
 	la $k0, supervisor_sp
-	
+
 	/* move $k0 (supervisor_sp) */
 	lw $k0, ($k0)
-	
+
 	1:
 .endm
@@ -190,12 +190,12 @@
 	lui $sp, %hi(end_stack)
 	ori $sp, $sp, %lo(end_stack)
-	
+
 	/* not sure about this, but might be needed for PIC code */
 	lui $gp, 0x8000
-	
+
 	/* $a1 contains physical address of bootinfo_t */
 	jal mips32_pre_main
 	addiu $sp, -ABI_STACK_FRAME
-	
+
 	j main_bsp
 	nop
@@ -219,20 +219,20 @@
 exception_handler:
 	KERNEL_STACK_TO_K0
-	
+
 	sub $k0, ISTATE_SIZE
 	sw $sp, ISTATE_OFFSET_SP($k0)
 	move $sp, $k0
-	
+
 	mfc0 $k0, $cause
-	
+
 	sra $k0, $k0, 0x2    /* cp0_exc_cause() part 1 */
 	andi $k0, $k0, 0x1f  /* cp0_exc_cause() part 2 */
 	sub $k0, 8           /* 8 = SYSCALL */
-	
+
 	beqz $k0, syscall_shortcut
 	add $k0, 8           /* revert $k0 back to correct exc number */
-	
+
 	REGISTERS_STORE_AND_EXC_RESET $sp
-	
+
 	move $a1, $sp
 	move $a0, $k0
@@ -240,5 +240,5 @@
 	addiu $sp, -ABI_STACK_FRAME
 	addiu $sp, ABI_STACK_FRAME
-	
+
 	REGISTERS_LOAD $sp
 	/* the $sp is automatically restored to former value */
@@ -265,13 +265,13 @@
 	sw $t3, ISTATE_OFFSET_EPC($sp)  /* save EPC */
 	sw $k1, ISTATE_OFFSET_KT1($sp)  /* save $k1 not saved on context switch */
-	
+
 	and $t4, $t2, REG_SAVE_MASK  /* save only KSU, EXL, ERL, IE */
 	li $t5, ~(0x1f)
 	and $t2, $t2, $t5  /* clear KSU, EXL, ERL */
 	ori $t2, $t2, 0x1  /* set IE */
-	
+
 	sw $t4, ISTATE_OFFSET_STATUS($sp)
 	mtc0 $t2, $status
-	
+
 	/*
 	 * Call the higher level system call handler.
@@ -280,12 +280,12 @@
 	sw $t0, ISTATE_OFFSET_T0($sp)  /* save the 5th argument on the stack */
 	sw $t1, ISTATE_OFFSET_T1($sp)  /* save the 6th argument on the stack */
-	
+
 	jal syscall_handler
 	sw $v0, ISTATE_OFFSET_V0($sp)  /* save the syscall number on the stack */
-	
+
 	/* restore status */
 	mfc0 $t2, $status
 	lw $t3, ISTATE_OFFSET_STATUS($sp)
-	
+
 	/*
 	 * Change back to EXL = 1 (from last exception), otherwise
@@ -297,5 +297,5 @@
 	or $t2, $t2, $t3  /* copy saved UM, EXL, ERL, IE */
 	mtc0 $t2, $status
-	
+
 	/* restore epc + 4 */
 	lw $t2, ISTATE_OFFSET_EPC($sp)
@@ -303,5 +303,5 @@
 	addi $t2, $t2, 4
 	mtc0 $t2, $epc
-	
+
 	lw $sp, ISTATE_OFFSET_SP($sp)  /* restore $sp */
 	eret
@@ -314,10 +314,10 @@
 	sw $sp, ISTATE_OFFSET_SP($k0)
 	move $sp, $k0
-	
+
 	move $a0, $sp
 	jal tlb_refill
 	addiu $sp, -ABI_STACK_FRAME
 	addiu $sp, ABI_STACK_FRAME
-	
+
 	REGISTERS_LOAD $sp
 	eret
@@ -330,10 +330,10 @@
 	sw $sp, ISTATE_OFFSET_SP($k0)
 	move $sp, $k0
-	
+
 	move $a0, $sp
 	jal cache_error
 	addiu $sp, -ABI_STACK_FRAME
 	addiu $sp, ABI_STACK_FRAME
-	
+
 	REGISTERS_LOAD $sp
 	eret
Index: kernel/arch/ppc32/include/arch/asm.h
===================================================================
--- kernel/arch/ppc32/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,10 +45,10 @@
 {
 	uint32_t msr;
-	
+
 	asm volatile (
 		"mfmsr %[msr]\n"
 		: [msr] "=r" (msr)
 	);
-	
+
 	return msr;
 }
@@ -77,5 +77,5 @@
 {
 	uint32_t vsid;
-	
+
 	asm volatile (
 		"mfsrin %[vsid], %[vaddr]\n"
@@ -83,5 +83,5 @@
 		: [vaddr] "r" (vaddr)
 	);
-	
+
 	return vsid;
 }
@@ -90,10 +90,10 @@
 {
 	uint32_t sdr1;
-	
+
 	asm volatile (
 		"mfsdr1 %[sdr1]\n"
 		: [sdr1] "=r" (sdr1)
 	);
-	
+
 	return sdr1;
 }
@@ -173,5 +173,5 @@
 {
 	uintptr_t base;
-	
+
 	asm volatile (
 		"and %[base], %%sp, %[mask]\n"
@@ -179,5 +179,5 @@
 		: [mask] "r" (~(STACK_SIZE - 1))
 	);
-	
+
 	return base;
 }
Index: kernel/arch/ppc32/include/arch/atomic.h
===================================================================
--- kernel/arch/ppc32/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,5 +41,5 @@
 {
 	atomic_count_t tmp;
-	
+
 	asm volatile (
 		"1:\n"
@@ -59,5 +59,5 @@
 {
 	atomic_count_t tmp;
-	
+
 	asm volatile (
 		"1:\n"
Index: kernel/arch/ppc32/include/arch/barrier.h
===================================================================
--- kernel/arch/ppc32/include/arch/barrier.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/include/arch/barrier.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,5 +77,5 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < len; i += COHERENCE_INVAL_MIN)
 		asm volatile (
@@ -83,7 +83,7 @@
 			:: [addr] "r" (addr + i)
 		);
-	
+
 	memory_barrier();
-	
+
 	for (i = 0; i < len; i += COHERENCE_INVAL_MIN)
 		asm volatile (
@@ -91,5 +91,5 @@
 			:: [addr] "r" (addr + i)
 		);
-	
+
 	instruction_barrier();
 }
Index: kernel/arch/ppc32/include/arch/cycle.h
===================================================================
--- kernel/arch/ppc32/include/arch/cycle.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/include/arch/cycle.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,5 +43,5 @@
 	uint32_t upper;
 	uint32_t tmp;
-	
+
 	do {
 		asm volatile (
@@ -54,5 +54,5 @@
 		);
 	} while (upper != tmp);
-	
+
 	return ((uint64_t) upper << 32) + (uint64_t) lower;
 }
Index: kernel/arch/ppc32/include/arch/mm/frame.h
===================================================================
--- kernel/arch/ppc32/include/arch/mm/frame.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/include/arch/mm/frame.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,10 +49,10 @@
 {
 	uint32_t physmem;
-	
+
 	asm volatile (
 		"mfsprg3 %[physmem]\n"
 		: [physmem] "=r" (physmem)
 	);
-	
+
 	return physmem;
 }
Index: kernel/arch/ppc32/include/arch/mm/page.h
===================================================================
--- kernel/arch/ppc32/include/arch/mm/page.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/include/arch/mm/page.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -165,5 +165,5 @@
 {
 	pte_t *entry = &pt[i];
-	
+
 	return (((!entry->page_cache_disable) << PAGE_CACHEABLE_SHIFT) |
 	    ((!entry->present) << PAGE_PRESENT_SHIFT) |
@@ -178,5 +178,5 @@
 {
 	pte_t *entry = &pt[i];
-	
+
 	entry->page_cache_disable = !(flags & PAGE_CACHEABLE);
 	entry->present = !(flags & PAGE_NOT_PRESENT);
Index: kernel/arch/ppc32/src/asm.S
===================================================================
--- kernel/arch/ppc32/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,32 +40,32 @@
 	 * r5 = entry
 	 */
-	
+
 	/* Disable interrupts */
-	
+
 	mfmsr r31
 	rlwinm r31, r31, 0, 17, 15
 	mtmsr r31
 	isync
-	
+
 	/* Set entry point */
-	
+
 	mtsrr0 r5
-	
+
 	/* Set privileged state, enable interrupts */
-	
+
 	ori r31, r31, MSR_PR
 	ori r31, r31, MSR_EE
 	mtsrr1 r31
-	
+
 	/* Set stack */
-	
+
 	mr sp, r4
-	
+
 	/* %r6 is defined to hold pcb_ptr - set it to 0 */
-	
+
 	xor r6, r6, r6
-	
+
 	/* Jump to userspace */
-	
+
 	rfi
 FUNCTION_END(userspace_asm)
@@ -73,10 +73,10 @@
 SYMBOL(iret)
 	/* Disable interrupts */
-	
+
 	mfmsr r31
 	rlwinm r31, r31, 0, 17, 15
 	mtmsr r31
 	isync
-	
+
 	lwz r0, ISTATE_OFFSET_R0(sp)
 	lwz r2, ISTATE_OFFSET_R2(sp)
@@ -109,36 +109,36 @@
 	lwz r30, ISTATE_OFFSET_R30(sp)
 	lwz r31, ISTATE_OFFSET_R31(sp)
-	
+
 	lwz r12, ISTATE_OFFSET_CR(sp)
 	mtcr r12
-	
+
 	lwz r12, ISTATE_OFFSET_PC(sp)
 	mtsrr0 r12
-	
+
 	lwz r12, ISTATE_OFFSET_SRR1(sp)
 	mtsrr1 r12
-	
+
 	lwz r12, ISTATE_OFFSET_LR(sp)
 	mtlr r12
-	
+
 	lwz r12, ISTATE_OFFSET_CTR(sp)
 	mtctr r12
-	
+
 	lwz r12, ISTATE_OFFSET_XER(sp)
 	mtxer r12
-	
+
 	lwz r12, ISTATE_OFFSET_R12(sp)
 	lwz sp, ISTATE_OFFSET_SP(sp)
-	
+
 	rfi
 
 SYMBOL(iret_syscall)
 	/* Disable interrupts */
-	
+
 	mfmsr r31
 	rlwinm r31, r31, 0, 17, 15
 	mtmsr r31
 	isync
-	
+
 	lwz r0, ISTATE_OFFSET_R0(sp)
 	lwz r2, ISTATE_OFFSET_R2(sp)
@@ -170,26 +170,26 @@
 	lwz r30, ISTATE_OFFSET_R30(sp)
 	lwz r31, ISTATE_OFFSET_R31(sp)
-	
+
 	lwz r12, ISTATE_OFFSET_CR(sp)
 	mtcr r12
-	
+
 	lwz r12, ISTATE_OFFSET_PC(sp)
 	mtsrr0 r12
-	
+
 	lwz r12, ISTATE_OFFSET_SRR1(sp)
 	mtsrr1 r12
-	
+
 	lwz r12, ISTATE_OFFSET_LR(sp)
 	mtlr r12
-	
+
 	lwz r12, ISTATE_OFFSET_CTR(sp)
 	mtctr r12
-	
+
 	lwz r12, ISTATE_OFFSET_XER(sp)
 	mtxer r12
-	
+
 	lwz r12, ISTATE_OFFSET_R12(sp)
 	lwz sp, ISTATE_OFFSET_SP(sp)
-	
+
 	rfi
 
@@ -200,11 +200,11 @@
 	addi r4, r4, -4
 	beq 2f
-	
+
 	andi. r0, r6, 3
 	mtctr r7
 	bne 5f
-	
+
 	1:
-	
+
 		lwz r7, 4(r4)
 		lwzu r8, 8(r4)
@@ -212,18 +212,18 @@
 		stwu r8, 8(r6)
 		bdnz 1b
-		
+
 		andi. r5, r5, 7
-	
+
 	2:
-	
+
 		cmplwi 0, r5, 4
 		blt 3f
-		
+
 		lwzu r0, 4(r4)
 		addi r5, r5, -4
 		stwu r0, 4(r6)
-	
+
 	3:
-	
+
 		cmpwi 0, r5, 0
 		beqlr
@@ -231,19 +231,19 @@
 		addi r4, r4, 3
 		addi r6, r6, 3
-	
+
 	4:
-	
+
 		lbzu r0, 1(r4)
 		stbu r0, 1(r6)
 		bdnz 4b
 		blr
-	
+
 	5:
-	
+
 		subfic r0, r0, 4
 		mtctr r0
-	
+
 	6:
-	
+
 		lbz r7, 4(r4)
 		addi r4, r4, 1
Index: kernel/arch/ppc32/src/boot/boot.S
===================================================================
--- kernel/arch/ppc32/src/boot/boot.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/boot/boot.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,16 +35,16 @@
 SYMBOL(kernel_image_start)
 	# load temporal kernel stack
-	
+
 	lis sp, kernel_stack@ha
 	addi sp, sp, kernel_stack@l
-	
+
 	# set kernel stack for interrupt handling
-	
+
 	mr r31, sp
 	subis r31, r31, 0x8000
 	mtsprg0 r31
-	
+
 	# r3 contains physical address of bootinfo_t
-	
+
 	addis r3, r3, 0x8000
 	bl ppc32_pre_main
Index: kernel/arch/ppc32/src/context.S
===================================================================
--- kernel/arch/ppc32/src/context.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/context.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,11 +55,11 @@
 	stw r30, CONTEXT_OFFSET_R30(r3)
 	stw r31, CONTEXT_OFFSET_R31(r3)
-	
+
 	mflr r4
 	stw r4, CONTEXT_OFFSET_PC(r3)
-	
+
 	mfcr r4
 	stw r4, CONTEXT_OFFSET_CR(r3)
-	
+
 	# context_save returns 1
 	li r3, 1
@@ -89,11 +89,11 @@
 	lwz r30, CONTEXT_OFFSET_R30(r3)
 	lwz r31, CONTEXT_OFFSET_R31(r3)
-	
+
 	lwz r4, CONTEXT_OFFSET_CR(r3)
 	mtcr r4
-	
+
 	lwz r4, CONTEXT_OFFSET_PC(r3)
 	mtlr r4
-	
+
 	# context_restore returns 0
 	li r3, 0
Index: kernel/arch/ppc32/src/cpu/cpu.c
===================================================================
--- kernel/arch/ppc32/src/cpu/cpu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/cpu/cpu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 {
 	const char *name;
-	
+
 	switch (cpu->arch.version) {
 	case 8:
@@ -71,5 +71,5 @@
 		name = "unknown";
 	}
-	
+
 	printf("cpu%u: version=%" PRIu16" (%s), revision=%" PRIu16 "\n", cpu->id,
 	    cpu->arch.version, name, cpu->arch.revision);
Index: kernel/arch/ppc32/src/drivers/pic.c
===================================================================
--- kernel/arch/ppc32/src/drivers/pic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/drivers/pic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 			pic[PIC_MASK_HIGH] = pic[PIC_MASK_HIGH] | (1 << (intnum - 32));
 	}
-	
+
 }
 
@@ -85,14 +85,14 @@
 	if (pic) {
 		uint32_t pending;
-		
+
 		pending = pic[PIC_PENDING_LOW];
 		if (pending != 0)
 			return fnzb32(pending);
-		
+
 		pending = pic[PIC_PENDING_HIGH];
 		if (pending != 0)
 			return fnzb32(pending) + 32;
 	}
-	
+
 	return 255;
 }
Index: kernel/arch/ppc32/src/exception.S
===================================================================
--- kernel/arch/ppc32/src/exception.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/exception.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,29 +38,29 @@
 
 .macro CONTEXT_STORE
-	
+
 	# save r12 in SPRG1, backup CR in r12
 	# save SP in SPRG2
-	
+
 	mtsprg1 r12
 	mfcr r12
 	mtsprg2 sp
-	
+
 	# check whether the previous mode was user or kernel
-	
+
 	mfsrr1 sp # use sp as a temporary register to hold SRR1
 	andi. sp, sp, MSR_PR
 	bne 1f
 		# previous mode was kernel
-		
+
 		mfsprg2 sp
 		subis sp, sp, 0x8000
 	b 2f
-	
+
 	1:
 		# previous mode was user
-		
+
 		mfsprg0 sp
 	2:
-	
+
 	subi sp, sp, ALIGN_UP(ISTATE_SIZE, STACK_ALIGNMENT)
 	stw r0, ISTATE_OFFSET_R0(sp)
@@ -94,28 +94,28 @@
 	stw r30, ISTATE_OFFSET_R30(sp)
 	stw r31, ISTATE_OFFSET_R31(sp)
-	
+
 	stw r12, ISTATE_OFFSET_CR(sp)
-	
+
 	mfsrr0 r12
 	stw r12, ISTATE_OFFSET_PC(sp)
-	
+
 	mfsrr1 r12
 	stw r12, ISTATE_OFFSET_SRR1(sp)
-	
+
 	mflr r12
 	stw r12, ISTATE_OFFSET_LR(sp)
-	
+
 	mfctr r12
 	stw r12, ISTATE_OFFSET_CTR(sp)
-	
+
 	mfxer r12
 	stw r12, ISTATE_OFFSET_XER(sp)
-	
+
 	mfdar r12
 	stw r12, ISTATE_OFFSET_DAR(sp)
-	
+
 	mfsprg1 r12
 	stw r12, ISTATE_OFFSET_R12(sp)
-	
+
 	mfsprg2 r12
 	stw r12, ISTATE_OFFSET_SP(sp)
@@ -129,5 +129,5 @@
 SYMBOL(exc_system_reset)
 	CONTEXT_STORE
-	
+
 	li r3, 0
 	b jump_to_kernel
@@ -136,5 +136,5 @@
 SYMBOL(exc_machine_check)
 	CONTEXT_STORE
-	
+
 	li r3, 1
 	b jump_to_kernel
@@ -143,5 +143,5 @@
 SYMBOL(exc_data_storage)
 	CONTEXT_STORE
-	
+
 	li r3, 2
 	b jump_to_kernel
@@ -150,5 +150,5 @@
 SYMBOL(exc_instruction_storage)
 	CONTEXT_STORE
-	
+
 	li r3, 3
 	b jump_to_kernel
@@ -157,5 +157,5 @@
 SYMBOL(exc_external)
 	CONTEXT_STORE
-	
+
 	li r3, 4
 	b jump_to_kernel
@@ -164,5 +164,5 @@
 SYMBOL(exc_alignment)
 	CONTEXT_STORE
-	
+
 	li r3, 5
 	b jump_to_kernel
@@ -171,5 +171,5 @@
 SYMBOL(exc_program)
 	CONTEXT_STORE
-	
+
 	li r3, 6
 	b jump_to_kernel
@@ -178,5 +178,5 @@
 SYMBOL(exc_fp_unavailable)
 	CONTEXT_STORE
-	
+
 	li r3, 7
 	b jump_to_kernel
@@ -185,5 +185,5 @@
 SYMBOL(exc_decrementer)
 	CONTEXT_STORE
-	
+
 	li r3, 8
 	b jump_to_kernel
@@ -192,5 +192,5 @@
 SYMBOL(exc_reserved0)
 	CONTEXT_STORE
-	
+
 	li r3, 9
 	b jump_to_kernel
@@ -199,5 +199,5 @@
 SYMBOL(exc_reserved1)
 	CONTEXT_STORE
-	
+
 	li r3, 10
 	b jump_to_kernel
@@ -206,5 +206,5 @@
 SYMBOL(exc_syscall)
 	CONTEXT_STORE
-	
+
 	b jump_to_kernel_syscall
 
@@ -212,5 +212,5 @@
 SYMBOL(exc_trace)
 	CONTEXT_STORE
-	
+
 	li r3, 12
 	b jump_to_kernel
@@ -219,5 +219,5 @@
 SYMBOL(exc_itlb_miss)
 	CONTEXT_STORE
-	
+
 	li r3, 13
 	b jump_to_kernel
@@ -226,5 +226,5 @@
 SYMBOL(exc_dtlb_miss_load)
 	CONTEXT_STORE
-	
+
 	li r3, 14
 	b jump_to_kernel
@@ -233,5 +233,5 @@
 SYMBOL(exc_dtlb_miss_store)
 	CONTEXT_STORE
-	
+
 	li r3, 15
 	b jump_to_kernel
@@ -244,5 +244,5 @@
 		# Previous mode was kernel.
 		# We can construct a proper frame linkage.
-		
+
 		mfsrr0 r12
 		stw r12, ISTATE_OFFSET_LR_FRAME(sp)
@@ -265,8 +265,8 @@
 	ori r12, r12, (MSR_IR | MSR_DR)
 	mtsrr1 r12
-	
+
 	addis sp, sp, 0x8000
 	mr r4, sp
-	
+
 	rfi
 
@@ -275,5 +275,5 @@
 	addi r12, r12, syscall_handler@l
 	mtsrr0 r12
-	
+
 	lis r12, iret_syscall@ha
 	addi r12, r12, iret_syscall@l
@@ -286,5 +286,5 @@
 	ori r12, r12, (MSR_IR | MSR_DR | MSR_EE)
 	mtsrr1 r12
-	
+
 	addis sp, sp, 0x8000
 	rfi
Index: kernel/arch/ppc32/src/fpu_context.S
===================================================================
--- kernel/arch/ppc32/src/fpu_context.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/fpu_context.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -106,8 +106,8 @@
 FUNCTION_BEGIN(fpu_context_save)
 	FPU_CONTEXT_STORE r3
-	
+
 	mffs fr0
 	stfd fr0, FPU_CONTEXT_OFFSET_FPSCR(r3)
-	
+
 	blr
 FUNCTION_END(fpu_context_save)
@@ -116,7 +116,7 @@
 	lfd fr0, FPU_CONTEXT_OFFSET_FPSCR(r3)
 	mtfsf 0xff, fr0
-	
+
 	FPU_CONTEXT_LOAD r3
-	
+
 	blr
 FUNCTION_END(fpu_context_restore)
@@ -125,12 +125,12 @@
 	mfmsr r0
 	ori r0, r0, MSR_FP
-	
+
 	# Disable FPU exceptions
 	li r3, MSR_FE0 | MSR_FE1
 	andc r0, r0, r3
-	
+
 	mtmsr r0
 	isync
-	
+
 	blr
 FUNCTION_END(fpu_init)
Index: kernel/arch/ppc32/src/interrupt.c
===================================================================
--- kernel/arch/ppc32/src/interrupt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/interrupt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,41 +66,41 @@
 	log_printf("r0 =%0#10" PRIx32 "\tr1 =%0#10" PRIx32 "\t"
 	    "r2 =%0#10" PRIx32 "\n", istate->r0, istate->sp, istate->r2);
-	
+
 	log_printf("r3 =%0#10" PRIx32 "\tr4 =%0#10" PRIx32 "\t"
 	    "r5 =%0#10" PRIx32 "\n", istate->r3, istate->r4, istate->r5);
-	
+
 	log_printf("r6 =%0#10" PRIx32 "\tr7 =%0#10" PRIx32 "\t"
 	    "r8 =%0#10" PRIx32 "\n", istate->r6, istate->r7, istate->r8);
-	
+
 	log_printf("r9 =%0#10" PRIx32 "\tr10=%0#10" PRIx32 "\t"
 	    "r11=%0#10" PRIx32 "\n", istate->r9, istate->r10, istate->r11);
-	
+
 	log_printf("r12=%0#10" PRIx32 "\tr13=%0#10" PRIx32 "\t"
 	    "r14=%0#10" PRIx32 "\n", istate->r12, istate->r13, istate->r14);
-	
+
 	log_printf("r15=%0#10" PRIx32 "\tr16=%0#10" PRIx32 "\t"
 	    "r17=%0#10" PRIx32 "\n", istate->r15, istate->r16, istate->r17);
-	
+
 	log_printf("r18=%0#10" PRIx32 "\tr19=%0#10" PRIx32 "\t"
 	    "r20=%0#10" PRIx32 "\n", istate->r18, istate->r19, istate->r20);
-	
+
 	log_printf("r21=%0#10" PRIx32 "\tr22=%0#10" PRIx32 "\t"
 	    "r23=%0#10" PRIx32 "\n", istate->r21, istate->r22, istate->r23);
-	
+
 	log_printf("r24=%0#10" PRIx32 "\tr25=%0#10" PRIx32 "\t"
 	    "r26=%0#10" PRIx32 "\n", istate->r24, istate->r25, istate->r26);
-	
+
 	log_printf("r27=%0#10" PRIx32 "\tr28=%0#10" PRIx32 "\t"
 	    "r29=%0#10" PRIx32 "\n", istate->r27, istate->r28, istate->r29);
-	
+
 	log_printf("r30=%0#10" PRIx32 "\tr31=%0#10" PRIx32 "\n",
 	    istate->r30, istate->r31);
-	
+
 	log_printf("cr =%0#10" PRIx32 "\tpc =%0#10" PRIx32 "\t"
 	    "lr =%0#10" PRIx32 "\n", istate->cr, istate->pc, istate->lr);
-	
+
 	log_printf("ctr=%0#10" PRIx32 "\txer=%0#10" PRIx32 "\t"
 	    "dar=%0#10" PRIx32 "\n", istate->ctr, istate->xer, istate->dar);
-	
+
 	log_printf("srr1=%0#10" PRIx32 "\n", istate->srr1);
 }
@@ -119,5 +119,5 @@
 			 * The IRQ handler was found.
 			 */
-			
+
 			if (irq->preack) {
 				/* Acknowledge the interrupt before processing */
@@ -125,12 +125,12 @@
 					irq->cir(irq->cir_arg, irq->inr);
 			}
-			
+
 			irq->handler(irq);
-			
+
 			if (!irq->preack) {
 				if (irq->cir)
 					irq->cir(irq->cir_arg, irq->inr);
 			}
-			
+
 			irq_spinlock_unlock(&irq->lock, false);
 		} else {
Index: kernel/arch/ppc32/src/mm/as.c
===================================================================
--- kernel/arch/ppc32/src/mm/as.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/mm/as.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,9 +56,9 @@
 {
 	uint32_t sr;
-	
+
 	/* Lower 2 GB, user and supervisor access */
 	for (sr = 0; sr < 8; sr++)
 		sr_set(0x6000, as->asid, sr);
-	
+
 	/* Upper 2 GB, only supervisor access */
 	for (sr = 8; sr < 16; sr++)
Index: kernel/arch/ppc32/src/mm/frame.c
===================================================================
--- kernel/arch/ppc32/src/mm/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/mm/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,5 +45,5 @@
 {
 	printf("[base    ] [size    ]\n");
-	
+
 	size_t i;
 	for (i = 0; i < memmap.cnt; i++) {
@@ -57,5 +57,5 @@
 	pfn_t minconf = 2;
 	size_t i;
-	
+
 	for (i = 0; i < memmap.cnt; i++) {
 		/* To be safe, make the available zone possibly smaller */
@@ -64,5 +64,5 @@
 		size_t size = ALIGN_DOWN(memmap.zones[i].size -
 		    (base - ((uintptr_t) memmap.zones[i].start)), FRAME_SIZE);
-		
+
 		if (!frame_adjust_zone_bounds(low, &base, &size))
 			return;
@@ -86,5 +86,5 @@
 		}
 	}
-	
+
 }
 
@@ -92,12 +92,12 @@
 {
 	frame_common_arch_init(true);
-	
+
 	/* First is exception vector, second is 'implementation specific',
 	   third and fourth is reserved, other contain real mode code */
 	frame_mark_unavailable(0, 8);
-	
+
 	/* Mark the Page Hash Table frames as unavailable */
 	uint32_t sdr1 = sdr1_get();
-	
+
 	// FIXME: compute size of PHT exactly
 	frame_mark_unavailable(ADDR2PFN(sdr1 & 0xffff000), 16);
Index: kernel/arch/ppc32/src/mm/pht.c
===================================================================
--- kernel/arch/ppc32/src/mm/pht.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/mm/pht.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -93,11 +93,11 @@
 	uint32_t page = (vaddr >> 12) & 0xffff;
 	uint32_t api = (vaddr >> 22) & 0x3f;
-	
+
 	uint32_t vsid = sr_get(vaddr);
 	uint32_t sdr1 = sdr1_get();
-	
+
 	// FIXME: compute size of PHT exactly
 	phte_t *phte = (phte_t *) PA2KA(sdr1 & 0xffff0000);
-	
+
 	/* Primary hash (xor) */
 	uint32_t h = 0;
@@ -106,5 +106,5 @@
 	uint32_t i;
 	bool found = false;
-	
+
 	/* Find colliding PTE in PTEG */
 	for (i = 0; i < 8; i++) {
@@ -117,5 +117,5 @@
 		}
 	}
-	
+
 	if (!found) {
 		/* Find unused PTE in PTEG */
@@ -127,9 +127,9 @@
 		}
 	}
-	
+
 	if (!found) {
 		/* Secondary hash (not) */
 		uint32_t base2 = (~hash & 0x3ff) << 3;
-		
+
 		/* Find colliding PTE in PTEG */
 		for (i = 0; i < 8; i++) {
@@ -144,5 +144,5 @@
 			}
 		}
-		
+
 		if (!found) {
 			/* Find unused PTE in PTEG */
@@ -156,9 +156,9 @@
 			}
 		}
-		
+
 		if (!found)
 			i = RANDI(seed) % 8;
 	}
-	
+
 	phte[base + i].v = 1;
 	phte[base + i].vsid = vsid;
@@ -181,14 +181,14 @@
 {
 	uintptr_t badvaddr;
-	
+
 	if (n == VECTOR_DATA_STORAGE)
 		badvaddr = istate->dar;
 	else
 		badvaddr = istate->pc;
-	
+
 	pte_t pte;
 	bool found = find_mapping_and_check(AS, badvaddr,
 	    PF_ACCESS_READ /* FIXME */, istate, &pte);
-	
+
 	if (found) {
 		/* Record access to PTE */
@@ -201,8 +201,8 @@
 {
 	uint32_t sdr1 = sdr1_get();
-	
+
 	// FIXME: compute size of PHT exactly
 	phte_t *phte = (phte_t *) PA2KA(sdr1 & 0xffff0000);
-	
+
 	// FIXME: this invalidates all PHT entries,
 	// which is an overkill, invalidate only
Index: kernel/arch/ppc32/src/mm/tlb.c
===================================================================
--- kernel/arch/ppc32/src/mm/tlb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/mm/tlb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
 	ptehi_t ptehi;
 	ptelo_t ptelo;
-	
+
 	asm volatile (
 		"mfspr %[tlbmiss], 980\n"
@@ -51,15 +51,15 @@
 		  [ptelo] "=r" (ptelo)
 	);
-	
+
 	uint32_t badvaddr = tlbmiss & 0xfffffffc;
 	uint32_t physmem = physmem_top();
-	
+
 	if ((badvaddr < PA2KA(0)) || (badvaddr >= PA2KA(physmem)))
 		return; // FIXME
-	
+
 	ptelo.rpn = KA2PA(badvaddr) >> 12;
 	ptelo.wimg = 0;
 	ptelo.pp = 2; // FIXME
-	
+
 	uint32_t index = 0;
 	asm volatile (
@@ -84,5 +84,5 @@
 		"sync\n"
 	);
-	
+
 	for (unsigned int i = 0; i < 0x00040000; i += 0x00001000) {
 		asm volatile (
@@ -91,5 +91,5 @@
 		);
 	}
-	
+
 	asm volatile (
 		"eieio\n"
@@ -143,8 +143,8 @@
 {
 	uint32_t sr;
-	
+
 	for (sr = 0; sr < 16; sr++) {
 		uint32_t vsid = sr_get(sr << 28);
-		
+
 		printf("sr[%02" PRIu32 "]: vsid=%#0" PRIx32 " (asid=%" PRIu32 ")"
 		    "%s%s\n", sr, vsid & UINT32_C(0x00ffffff),
@@ -153,15 +153,15 @@
 		    ((vsid >> 29) & 1) ? " user" : "");
 	}
-	
+
 	uint32_t upper;
 	uint32_t lower;
 	uint32_t mask;
 	uint32_t length;
-	
+
 	PRINT_BAT("ibat[0]", 528, 529);
 	PRINT_BAT("ibat[1]", 530, 531);
 	PRINT_BAT("ibat[2]", 532, 533);
 	PRINT_BAT("ibat[3]", 534, 535);
-	
+
 	PRINT_BAT("dbat[0]", 536, 537);
 	PRINT_BAT("dbat[1]", 538, 539);
Index: kernel/arch/ppc32/src/ppc32.c
===================================================================
--- kernel/arch/ppc32/src/ppc32.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/ppc32.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -91,5 +91,5 @@
 		    bootinfo->taskmap.tasks[i].name);
 	}
-	
+
 	/* Copy physical memory map. */
 	memmap.total = bootinfo->memmap.total;
@@ -99,9 +99,9 @@
 		memmap.zones[i].size = bootinfo->memmap.zones[i].size;
 	}
-	
+
 	/* Copy boot allocations info. */
 	ballocs.base = bootinfo->ballocs.base;
 	ballocs.size = bootinfo->ballocs.size;
-	
+
 	/* Copy OFW tree. */
 	ofw_tree_init(bootinfo->ofw_root);
@@ -112,5 +112,5 @@
 	/* Initialize dispatch table */
 	interrupt_init();
-	
+
 	ofw_tree_node_t *cpus_node;
 	ofw_tree_node_t *cpu_node;
@@ -144,17 +144,17 @@
 	uint32_t fb_scanline = 0;
 	unsigned int visual = VISUAL_UNKNOWN;
-	
+
 	ofw_tree_property_t *prop = ofw_tree_getprop(node, "address");
 	if ((prop) && (prop->value))
 		fb_addr = *((uintptr_t *) prop->value);
-	
+
 	prop = ofw_tree_getprop(node, "width");
 	if ((prop) && (prop->value))
 		fb_width = *((uint32_t *) prop->value);
-	
+
 	prop = ofw_tree_getprop(node, "height");
 	if ((prop) && (prop->value))
 		fb_height = *((uint32_t *) prop->value);
-	
+
 	prop = ofw_tree_getprop(node, "depth");
 	if ((prop) && (prop->value)) {
@@ -180,9 +180,9 @@
 		}
 	}
-	
+
 	prop = ofw_tree_getprop(node, "linebytes");
 	if ((prop) && (prop->value))
 		fb_scanline = *((uint32_t *) prop->value);
-	
+
 	if ((fb_addr) && (fb_width > 0) && (fb_height > 0)
 	    && (fb_scanline > 0) && (visual != VISUAL_UNKNOWN)) {
@@ -195,10 +195,10 @@
 			.visual = visual,
 		};
-		
+
 		outdev_t *fbdev = fb_init(&fb_prop);
 		if (fbdev)
 			stdout_wire(fbdev);
 	}
-	
+
 	return true;
 }
@@ -213,8 +213,8 @@
 		/* Map OFW information into sysinfo */
 		ofw_sysinfo_map();
-		
+
 		/* Initialize IRQ routing */
 		irq_init(IRQ_COUNT, IRQ_COUNT);
-		
+
 		/* Merge all zones to 1 big zone */
 		zone_merge_all();
@@ -225,14 +225,14 @@
 {
 	ofw_pci_reg_t *assigned_address = NULL;
-	
+
 	ofw_tree_property_t *prop = ofw_tree_getprop(node, "assigned-addresses");
 	if ((prop) && (prop->value))
 		assigned_address = ((ofw_pci_reg_t *) prop->value);
-	
+
 	if (assigned_address) {
 		/* Initialize PIC */
 		pic_init(assigned_address[0].addr, PAGE_SIZE, &pic_cir,
 		    &pic_cir_arg);
-		
+
 #ifdef CONFIG_MAC_KBD
 		uintptr_t pa = assigned_address[0].addr + 0x16000;
@@ -240,8 +240,8 @@
 		size_t offset = pa - aligned_addr;
 		size_t size = 2 * PAGE_SIZE;
-		
+
 		cuda_t *cuda = (cuda_t *) (km_map(aligned_addr, offset + size,
 		    PAGE_WRITE | PAGE_NOT_CACHEABLE) + offset);
-		
+
 		/* Initialize I/O controller */
 		cuda_instance_t *cuda_instance =
@@ -256,5 +256,5 @@
 			}
 		}
-		
+
 		/*
 		 * This is the necessary evil until the userspace driver is entirely
@@ -266,5 +266,5 @@
 #endif
 	}
-	
+
 	/* Consider only a single device for now */
 	return false;
@@ -299,5 +299,5 @@
 	    kernel_uarg->uspace_stack_size - SP_DELTA,
 	    (uintptr_t) kernel_uarg->uspace_entry);
-	
+
 	/* Unreachable */
 	while (true);
Index: kernel/arch/ppc32/src/proc/scheduler.c
===================================================================
--- kernel/arch/ppc32/src/proc/scheduler.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/ppc32/src/proc/scheduler.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,5 +52,5 @@
 {
 	tlb_invalidate_all();
-	
+
 	asm volatile (
 		"mtsprg0 %[ksp]\n"
Index: kernel/arch/riscv64/include/arch/asm.h
===================================================================
--- kernel/arch/riscv64/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,10 +45,10 @@
 {
 	ipl_t ipl;
-	
+
 	asm volatile (
 		"csrrsi %[ipl], sstatus, " STRING(SSTATUS_SIE_MASK) "\n"
 		: [ipl] "=r" (ipl)
 	);
-	
+
 	return ipl;
 }
@@ -57,10 +57,10 @@
 {
 	ipl_t ipl;
-	
+
 	asm volatile (
 		"csrrci %[ipl], sstatus, " STRING(SSTATUS_SIE_MASK) "\n"
 		: [ipl] "=r" (ipl)
 	);
-	
+
 	return ipl;
 }
@@ -77,10 +77,10 @@
 {
 	ipl_t ipl;
-	
+
 	asm volatile (
 		"csrr %[ipl], sstatus\n"
 		: [ipl] "=r" (ipl)
 	);
-	
+
 	return ipl;
 }
@@ -94,5 +94,5 @@
 {
 	uintptr_t base;
-	
+
 	asm volatile (
 		"and %[base], sp, %[mask]\n"
@@ -100,5 +100,5 @@
 		: [mask] "r" (~(STACK_SIZE - 1))
 	);
-	
+
 	return base;
 }
Index: kernel/arch/riscv64/include/arch/atomic.h
===================================================================
--- kernel/arch/riscv64/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 {
 	atomic_count_t orig;
-	
+
 	asm volatile (
 		"amoadd.d %[orig], %[inc], %[addr]\n"
@@ -65,5 +65,5 @@
 		: [inc] "r" (1)
 	);
-	
+
 	return orig;
 }
@@ -72,5 +72,5 @@
 {
 	atomic_count_t orig;
-	
+
 	asm volatile (
 		"amoadd.d %[orig], %[inc], %[addr]\n"
@@ -78,5 +78,5 @@
 		: [inc] "r" (-1)
 	);
-	
+
 	return orig;
 }
@@ -85,5 +85,5 @@
 {
 	atomic_count_t orig;
-	
+
 	asm volatile (
 		"amoadd.d %[orig], %[inc], %[addr]\n"
@@ -91,5 +91,5 @@
 		: [inc] "r" (1)
 	);
-	
+
 	return orig - 1;
 }
@@ -98,5 +98,5 @@
 {
 	atomic_count_t orig;
-	
+
 	asm volatile (
 		"amoadd.d %[orig], %[inc], %[addr]\n"
@@ -104,5 +104,5 @@
 		: [inc] "r" (-1)
 	);
-	
+
 	return orig + 1;
 }
Index: kernel/arch/riscv64/include/arch/cycle.h
===================================================================
--- kernel/arch/riscv64/include/arch/cycle.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/include/arch/cycle.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,10 +41,10 @@
 {
 	uint64_t cycle;
-	
+
 	asm volatile (
 		"rdcycle %[cycle]\n"
 		: [cycle] "=r" (cycle)
 	);
-	
+
 	return cycle;
 }
Index: kernel/arch/riscv64/include/arch/mm/page.h
===================================================================
--- kernel/arch/riscv64/include/arch/mm/page.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/include/arch/mm/page.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -182,5 +182,5 @@
 {
 	pte_t *entry = &pt[i];
-	
+
 	return (((!entry->valid) << PAGE_PRESENT_SHIFT) |
 	    (entry->user << PAGE_USER_SHIFT) |
@@ -194,5 +194,5 @@
 {
 	pte_t *entry = &pt[i];
-	
+
 	entry->valid = !(flags & PAGE_NOT_PRESENT);
 	entry->readable = (flags & PAGE_READ) != 0;
Index: kernel/arch/riscv64/src/boot/boot.S
===================================================================
--- kernel/arch/riscv64/src/boot/boot.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/src/boot/boot.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,14 +36,14 @@
 	/* Setup temporary stack */
 	la sp, temp_stack
-	
+
 	/* Create the first stack frame */
 	addi sp, sp, -16
-	
+
 	/* Call riscv64_pre_main() */
 	jal riscv64_pre_main
-	
+
 	/* Call main_bsp() */
 	jal main_bsp
-	
+
 	/* Not reached */
 	csrci sstatus, SSTATUS_SIE_MASK
Index: kernel/arch/riscv64/src/context.S
===================================================================
--- kernel/arch/riscv64/src/context.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/src/context.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,8 +47,8 @@
 	sd s10, CONTEXT_OFFSET_S10(a0)
 	sd s11, CONTEXT_OFFSET_S11(a0)
-	
+
 	sd ra, CONTEXT_OFFSET_PC(a0)
 	sd sp, CONTEXT_OFFSET_SP(a0)
-	
+
 	# context_save returns 1
 	li a0, 1
@@ -71,8 +71,8 @@
 	ld s10, CONTEXT_OFFSET_S10(a0)
 	ld s11, CONTEXT_OFFSET_S11(a0)
-	
+
 	ld ra, CONTEXT_OFFSET_PC(a0)
 	ld sp, CONTEXT_OFFSET_SP(a0)
-	
+
 	# context_restore returns 0
 	li a0, 0
Index: kernel/arch/riscv64/src/drivers/ucb.c
===================================================================
--- kernel/arch/riscv64/src/drivers/ucb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/src/drivers/ucb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,5 +53,5 @@
 	if (!val)
 		return;
-	
+
 	*fromhost = 0;
 }
@@ -68,5 +68,5 @@
 	if (!htifdev)
 		return NULL;
-	
+
 	outdev_initialize("htifdev", htifdev, &htifdev_ops);
 	return htifdev;
@@ -78,8 +78,8 @@
 	    (((uint64_t) cmd) << 48) |
 	    (payload & UINT64_C(0xffffffffffff));
-	
+
 	while (*tohost)
 		poll_fromhost();
-	
+
 	*tohost = val;
 }
Index: kernel/arch/riscv64/src/mm/frame.c
===================================================================
--- kernel/arch/riscv64/src/mm/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/src/mm/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 	pfn_t minconf =
 	    max3(ADDR2PFN(physmem_start), htif_frame + 1, pt_frame + 1);
-	
+
 	for (size_t i = 0; i < memmap.cnt; i++) {
 		/* To be safe, make the available zone possibly smaller */
@@ -63,12 +63,12 @@
 		size_t size = ALIGN_DOWN(memmap.zones[i].size -
 		    (base - ((uintptr_t) memmap.zones[i].start)), FRAME_SIZE);
-		
+
 		if (!frame_adjust_zone_bounds(low, &base, &size))
 			return;
-		
+
 		pfn_t pfn = ADDR2PFN(base);
 		size_t count = SIZE2FRAMES(size);
 		pfn_t conf;
-		
+
 		if (low) {
 			if ((minconf < pfn) || (minconf >= pfn + count))
@@ -76,5 +76,5 @@
 			else
 				conf = minconf;
-			
+
 			zone_create(pfn, count, conf,
 			    ZONE_AVAILABLE | ZONE_LOWMEM);
@@ -91,5 +91,5 @@
 {
 	frame_common_arch_init(true);
-	
+
 	frame_mark_unavailable(htif_frame, 1);
 	frame_mark_unavailable(pt_frame, 1);
Index: kernel/arch/riscv64/src/mm/page.c
===================================================================
--- kernel/arch/riscv64/src/mm/page.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/src/mm/page.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,7 +53,7 @@
 	if (config.cpu_active == 1) {
 		page_mapping_operations = &pt_mapping_operations;
-		
+
 		page_table_lock(AS_KERNEL, true);
-		
+
 		/*
 		 * PA2KA(identity) mapping for all low-memory frames.
@@ -64,11 +64,11 @@
 			page_mapping_insert(AS_KERNEL, PA2KA(cur), cur,
 			    PAGE_GLOBAL | PAGE_CACHEABLE | PAGE_EXEC | PAGE_WRITE | PAGE_READ);
-		
+
 		page_table_unlock(AS_KERNEL, true);
-		
+
 		// FIXME: register page fault extension handler
-		
+
 		write_satp((uintptr_t) AS_KERNEL->genarch.page_table);
-		
+
 		/* The boot page table is no longer needed. */
 		// FIXME: frame_mark_available(pt_frame, 1);
@@ -84,5 +84,5 @@
 	uint64_t satp = ((ptl0 >> FRAME_WIDTH) & SATP_PFN_MASK) |
 	    SATP_MODE_SV48;
-	
+
 	asm volatile (
 		"csrw sptbr, %[satp]\n"
Index: kernel/arch/riscv64/src/riscv64.c
===================================================================
--- kernel/arch/riscv64/src/riscv64.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/riscv64/src/riscv64.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,11 +69,11 @@
 	htif_frame = bootinfo->htif_frame;
 	pt_frame = bootinfo->pt_frame;
-	
+
 	htif_init(bootinfo->ucbinfo.tohost, bootinfo->ucbinfo.fromhost);
-	
+
 	/* Copy tasks map. */
 	init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS,
 	    CONFIG_INIT_TASKS);
-	
+
 	for (size_t i = 0; i < init.cnt; i++) {
 		init.tasks[i].paddr = KA2PA(bootinfo->taskmap.tasks[i].addr);
@@ -82,5 +82,5 @@
 		    bootinfo->taskmap.tasks[i].name);
 	}
-	
+
 	/* Copy physical memory map. */
 	memmap.total = bootinfo->memmap.total;
Index: kernel/arch/sparc64/include/arch/asm.h
===================================================================
--- kernel/arch/sparc64/include/arch/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -91,10 +91,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rdpr %%pstate, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -122,10 +122,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rd %%tick_cmpr, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -153,10 +153,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rd %%asr25, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -184,10 +184,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rdpr %%tick, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -215,10 +215,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rd %%fprs, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -246,10 +246,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rd %%softint, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -312,9 +312,9 @@
 	pstate_reg_t pstate;
 	uint64_t value = pstate_read();
-	
+
 	pstate.value = value;
 	pstate.ie = true;
 	pstate_write(pstate.value);
-	
+
 	return (ipl_t) value;
 }
@@ -331,9 +331,9 @@
 	pstate_reg_t pstate;
 	uint64_t value = pstate_read();
-	
+
 	pstate.value = value;
 	pstate.ie = false;
 	pstate_write(pstate.value);
-	
+
 	return (ipl_t) value;
 }
@@ -348,5 +348,5 @@
 NO_TRACE static inline void interrupts_restore(ipl_t ipl) {
 	pstate_reg_t pstate;
-	
+
 	pstate.value = pstate_read();
 	pstate.ie = ((pstate_reg_t)(uint64_t) ipl).ie;
@@ -373,5 +373,5 @@
 {
 	pstate_reg_t pstate;
-	
+
 	pstate.value = pstate_read();
 	return !pstate.ie;
@@ -388,5 +388,5 @@
 {
 	uintptr_t unbiased_sp;
-	
+
 	asm volatile (
 		"add %%sp, %[stack_bias], %[unbiased_sp]\n"
@@ -394,5 +394,5 @@
 		: [stack_bias] "i" (STACK_BIAS)
 	);
-	
+
 	return ALIGN_DOWN(unbiased_sp, STACK_SIZE);
 }
@@ -406,10 +406,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rdpr %%ver, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -423,10 +423,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rdpr %%tpc, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -440,10 +440,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rdpr %%tl, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -457,10 +457,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rdpr %%tba, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
@@ -492,5 +492,5 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"ldxa [%[va]] %[asi], %[v]\n"
@@ -499,5 +499,5 @@
 		  [asi] "i" ((unsigned int) asi)
 	);
-	
+
 	return v;
 }
Index: kernel/arch/sparc64/include/arch/atomic.h
===================================================================
--- kernel/arch/sparc64/include/arch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,11 +56,11 @@
 	atomic_count_t a;
 	atomic_count_t b;
-	
+
 	do {
 		volatile uintptr_t ptr = (uintptr_t) &val->count;
-		
+
 		a = *((atomic_count_t *) ptr);
 		b = a + i;
-		
+
 		asm volatile (
 			"casx %0, %2, %1\n"
@@ -70,5 +70,5 @@
 		);
 	} while (a != b);
-	
+
 	return a;
 }
@@ -108,5 +108,5 @@
 	atomic_count_t v = 1;
 	volatile uintptr_t ptr = (uintptr_t) &val->count;
-	
+
 	asm volatile (
 		"casx %0, %2, %1\n"
@@ -115,5 +115,5 @@
 	    : "r" (0)
 	);
-	
+
 	return v;
 }
@@ -123,9 +123,9 @@
 	atomic_count_t tmp1 = 1;
 	atomic_count_t tmp2 = 0;
-	
+
 	volatile uintptr_t ptr = (uintptr_t) &val->count;
-	
+
 	preemption_disable();
-	
+
 	asm volatile (
 		"0:\n"
@@ -144,5 +144,5 @@
 		: "r" (0)
 	);
-	
+
 	/*
 	 * Prevent critical section code from bleeding out this way up.
Index: kernel/arch/sparc64/include/arch/barrier.h
===================================================================
--- kernel/arch/sparc64/include/arch/barrier.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/barrier.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -83,5 +83,5 @@
 {
 	unsigned long pc;
-	
+
 	/*
 	 * The FLUSH instruction takes address parameter.
@@ -94,5 +94,5 @@
 	 *
 	 */
-	
+
 	asm volatile (
 		"rd %%pc, %[pc]\n"
Index: kernel/arch/sparc64/include/arch/cpu_family.h
===================================================================
--- kernel/arch/sparc64/include/arch/cpu_family.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/cpu_family.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -76,5 +76,5 @@
 	return (impl == IMPL_ULTRASPARCIV) || (impl == IMPL_ULTRASPARCIV_PLUS);
 }
-	
+
 #endif
 
Index: kernel/arch/sparc64/include/arch/mm/sun4u/mmu.h
===================================================================
--- kernel/arch/sparc64/include/arch/mm/sun4u/mmu.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/mm/sun4u/mmu.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -111,5 +111,5 @@
 		unsigned dc : 1;	/**< D-Cache enable. */
 		unsigned ic : 1;	/**< I-Cache enable. */
-		
+
 	} __attribute__ ((packed));
 } lsu_cr_reg_t;
Index: kernel/arch/sparc64/include/arch/mm/sun4u/tlb.h
===================================================================
--- kernel/arch/sparc64/include/arch/mm/sun4u/tlb.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/mm/sun4u/tlb.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 #define TLB_DBIG_0	2
 #define TLB_DBIG_1	3
-	
+
 /* I-MMU: one small (16-entry) TLB and one big TLB */
 #define TLB_ISMALL	0
@@ -327,5 +327,5 @@
 {
 	itlb_data_access_addr_t reg;
-	
+
 	reg.value = 0;
 	reg.tlb_entry = entry;
@@ -341,5 +341,5 @@
 {
 	itlb_data_access_addr_t reg;
-	
+
 	reg.value = 0;
 	reg.tlb_entry = entry;
@@ -358,5 +358,5 @@
 {
 	dtlb_data_access_addr_t reg;
-	
+
 	reg.value = 0;
 	reg.tlb_entry = entry;
@@ -372,5 +372,5 @@
 {
 	dtlb_data_access_addr_t reg;
-	
+
 	reg.value = 0;
 	reg.tlb_entry = entry;
@@ -423,5 +423,5 @@
 {
 	itlb_data_access_addr_t reg;
-	
+
 	reg.value = 0;
 	reg.tlb_number = tlb;
@@ -439,5 +439,5 @@
 {
 	itlb_data_access_addr_t reg;
-	
+
 	reg.value = 0;
 	reg.tlb_number = tlb;
@@ -458,5 +458,5 @@
 {
 	dtlb_data_access_addr_t reg;
-	
+
 	reg.value = 0;
 	reg.tlb_number = tlb;
@@ -475,5 +475,5 @@
 {
 	dtlb_data_access_addr_t reg;
-	
+
 	reg.value = 0;
 	reg.tlb_number = tlb;
@@ -638,12 +638,12 @@
 	tlb_demap_addr_t da;
 	page_address_t pg;
-	
+
 	da.value = 0;
 	pg.address = page;
-	
+
 	da.type = type;
 	da.context = context_encoding;
 	da.vpn = pg.vpn;
-	
+
 	/* da.value is the address within the ASI */
 	asi_u64_write(ASI_IMMU_DEMAP, da.value, 0);
@@ -664,12 +664,12 @@
 	tlb_demap_addr_t da;
 	page_address_t pg;
-	
+
 	da.value = 0;
 	pg.address = page;
-	
+
 	da.type = type;
 	da.context = context_encoding;
 	da.vpn = pg.vpn;
-	
+
 	/* da.value is the address within the ASI */
 	asi_u64_write(ASI_DMMU_DEMAP, da.value, 0);
Index: kernel/arch/sparc64/include/arch/mm/sun4v/mmu.h
===================================================================
--- kernel/arch/sparc64/include/arch/mm/sun4v/mmu.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/mm/sun4v/mmu.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,5 +41,5 @@
 #define VA_PRIMARY_CONTEXT_REG		0x8	/**< primary context register VA. */
 #define ASI_PRIMARY_CONTEXT_REG		0x21	/**< primary context register ASI. */
- 
+
 #define VA_SECONDARY_CONTEXT_REG	0x10	/**< secondary context register VA. */
 #define ASI_SECONDARY_CONTEXT_REG	0x21	/**< secondary context register ASI. */
Index: kernel/arch/sparc64/include/arch/sun4u/asm.h
===================================================================
--- kernel/arch/sparc64/include/arch/sun4u/asm.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/sun4u/asm.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,10 +46,10 @@
 {
 	uint64_t v;
-	
+
 	asm volatile (
 		"rdpr %%ver, %[v]\n"
 		: [v] "=r" (v)
 	);
-	
+
 	return v;
 }
Index: kernel/arch/sparc64/include/arch/sun4u/cpu.h
===================================================================
--- kernel/arch/sparc64/include/arch/sun4u/cpu.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/sun4u/cpu.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -78,5 +78,5 @@
 	uint64_t icbus_config = asi_u64_read(ASI_ICBUS_CONFIG, 0);
 	icbus_config = icbus_config >> ICBUS_CONFIG_MID_SHIFT;
-	
+
 #if defined (US)
 	return icbus_config & 0x1f;
Index: kernel/arch/sparc64/include/arch/sun4v/hypercall.h
===================================================================
--- kernel/arch/sparc64/include/arch/sun4v/hypercall.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/include/arch/sun4v/hypercall.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -105,5 +105,5 @@
 	set function_number, %o5; \
 	ta FAST_TRAP;
-	
+
 /**
  * Performs a fast hypervisor API call from the assembly language code.
@@ -197,5 +197,5 @@
 	register uint64_t a4 asm("o3") = p4;
 	register uint64_t a5 asm("o4") = p5;
-	
+
 	asm volatile (
 		"ta %8\n"
@@ -239,5 +239,5 @@
 		: "memory"
 	);
-	
+
 	return a1;
 }
Index: kernel/arch/sparc64/src/asm.S
===================================================================
--- kernel/arch/sparc64/src/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,12 +47,12 @@
 	add %o0, 7, %g1
 	mov 0, %g3
-	
+
 	0:
-	
+
 		brz,pn %o2, 2f
 		mov 0, %g2
-	
+
 	1:
-	
+
 		lduba [%g3 + %o1] ASI_AIUS, %g1
 		add %g2, 1, %g2
@@ -61,12 +61,12 @@
 		bne,pt %xcc, 1b
 		mov %g2, %g3
-	
+
 	2:
-	
+
 		jmp %o7 + 8  /* exit point */
 		mov %o3, %o0
-	
+
 	3:
-	
+
 		and %g1, -8, %g1
 		cmp %o0, %g1
@@ -76,7 +76,7 @@
 		brz,pn %g4, 5f
 		mov 0, %g5
-	
+
 	4:
-	
+
 		sllx %g3, 3, %g2
 		add %g5, 1, %g3
@@ -86,7 +86,7 @@
 		bne,pt %xcc, 4b
 		stx %g1, [%o0 + %g2]
-	
+
 	5:
-	
+
 		and %o2, 7, %o2
 		brz,pn %o2, 2b
@@ -96,7 +96,7 @@
 		add %g1, %o1, %g4
 		mov 0, %g3
-	
+
 	6:
-	
+
 		lduba [%g2 + %g4] ASI_AIUS, %g1
 		stb %g1, [%g2 + %o0]
@@ -105,5 +105,5 @@
 		bne,pt %xcc, 6b
 		mov %g2, %g3
-		
+
 		jmp %o7 + 8  /* exit point */
 		mov %o3, %o0
@@ -121,12 +121,12 @@
 	add %o0, 7, %g1
 	mov 0, %g3
-	
+
 	0:
-	
+
 		brz,pn %o2, 2f
 		mov 0, %g2
-	
+
 	1:
-	
+
 		ldub [%g3 + %o1], %g1
 		add %g2, 1, %g2
@@ -135,12 +135,12 @@
 		bne,pt %xcc, 1b
 		mov %g2, %g3
-	
+
 	2:
-	
+
 		jmp %o7 + 8  /* exit point */
 		mov %o3, %o0
-	
+
 	3:
-	
+
 		and %g1, -8, %g1
 		cmp %o0, %g1
@@ -150,7 +150,7 @@
 		brz,pn %g4, 5f
 		mov 0, %g5
-	
+
 	4:
-	
+
 		sllx %g3, 3, %g2
 		add %g5, 1, %g3
@@ -160,7 +160,7 @@
 		bne,pt %xcc, 4b
 		stxa %g1, [%o0 + %g2] ASI_AIUS
-	
+
 	5:
-	
+
 		and %o2, 7, %o2
 		brz,pn %o2, 2b
@@ -170,7 +170,7 @@
 		add %g1, %o1, %g4
 		mov 0, %g3
-	
+
 	6:
-	
+
 		ldub [%g2 + %g4], %g1
 		stba %g1, [%g2 + %o0] ASI_AIUS
@@ -179,5 +179,5 @@
 		bne,pt %xcc, 6b
 		mov %g2, %g3
-		
+
 		jmp	%o7 + 8  /* exit point */
 		mov	%o3, %o0
Index: kernel/arch/sparc64/src/console.c
===================================================================
--- kernel/arch/sparc64/src/console.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/console.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,5 +69,5 @@
 	if (!screen)
 		panic("Cannot find %s.", (char *) prop_scr->value);
-	
+
 	scr_init(screen);
 #endif
@@ -82,5 +82,5 @@
 	if (!keyboard)
 		panic("Cannot find %s.", (char *) prop_kbd->value);
-	
+
 	kbd_init(keyboard);
 #endif
@@ -95,12 +95,12 @@
 	ofw_tree_node_t *aliases;
 	ofw_tree_property_t *prop;
-	
+
 	aliases = ofw_tree_lookup("/aliases");
 	if (!aliases)
 		panic("Cannot find '/aliases'.");
-	
+
 	/* "def-cn" = "default console" */
 	prop = ofw_tree_getprop(aliases, "def-cn");
-	
+
 	if ((!prop) || (!prop->value))
 		standard_console_init(aliases);
Index: kernel/arch/sparc64/src/cpu/sun4u/cpu.c
===================================================================
--- kernel/arch/sparc64/src/cpu/sun4u/cpu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/cpu/sun4u/cpu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 	if ((!prop) || (!prop->value))
 		prop = ofw_tree_getprop(node, "cpuid");
-	
+
 	if (prop && prop->value) {
 		mid = *((uint32_t *) prop->value);
@@ -69,5 +69,5 @@
 		}
 	}
-	
+
 	return -1;
 }
@@ -80,7 +80,7 @@
 	ofw_tree_node_t *node;
 	uint32_t clock_frequency = 0;
-	
+
 	CPU->arch.mid = read_mid();
-	
+
 	/*
 	 * Detect processor frequency.
@@ -109,5 +109,5 @@
 		}
 	}
-		
+
 	CPU->arch.clock_frequency = clock_frequency;
 	tick_init();
@@ -146,5 +146,5 @@
 		break;
 	}
-	
+
 	switch (CPU->arch.ver.impl) {
 	case IMPL_ULTRASPARCI:
Index: kernel/arch/sparc64/src/cpu/sun4v/cpu.c
===================================================================
--- kernel/arch/sparc64/src/cpu/sun4v/cpu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/cpu/sun4v/cpu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,5 +71,5 @@
 		}
 	}
-		
+
 	tick_init();
 
Index: kernel/arch/sparc64/src/debug/stacktrace.c
===================================================================
--- kernel/arch/sparc64/src/debug/stacktrace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/debug/stacktrace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,5 +57,5 @@
 {
 	uintptr_t kstack;
-	
+
 #if defined(SUN4U)
 	kstack = read_from_ag_g6();
Index: kernel/arch/sparc64/src/drivers/kbd.c
===================================================================
--- kernel/arch/sparc64/src/drivers/kbd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/drivers/kbd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,8 +62,8 @@
 {
 	const char *name = ofw_tree_node_name(node);
-	
+
 	if (str_cmp(name, "su") != 0)
 		return false;
-	
+
 	/*
 	 * Read 'interrupts' property.
@@ -75,7 +75,7 @@
 		return false;
 	}
-	
+
 	uint32_t interrupts = *((uint32_t *) prop->value);
-	
+
 	/*
 	 * Read 'reg' property.
@@ -87,7 +87,7 @@
 		return false;
 	}
-	
+
 	size_t size = ((ofw_ebus_reg_t *) prop->value)->size;
-	
+
 	uintptr_t pa = 0; // Prevent -Werror=maybe-uninitialized
 	if (!ofw_ebus_apply_ranges(node->parent,
@@ -97,5 +97,5 @@
 		return false;
 	}
-	
+
 	inr_t inr;
 	cir_t cir;
@@ -108,5 +108,5 @@
 		return false;
 	}
-	
+
 	/*
 	 * We need to pass aligned address to hw_map().
@@ -117,8 +117,8 @@
 	uintptr_t aligned_addr = ALIGN_DOWN(pa, PAGE_SIZE);
 	size_t offset = pa - aligned_addr;
-	
+
 	ioport8_t *ns16550 = (ioport8_t *) (km_map(aligned_addr, offset + size,
 	    PAGE_WRITE | PAGE_NOT_CACHEABLE) + offset);
-	
+
 	ns16550_instance_t *ns16550_instance = ns16550_init(ns16550, 0, inr, cir,
 	    cir_arg, NULL);
@@ -131,5 +131,5 @@
 		}
 	}
-	
+
 	/*
 	 * This is the necessary evil until the userspace drivers are
@@ -140,5 +140,5 @@
 	sysinfo_set_item_val("kbd.address.physical", NULL, pa);
 	sysinfo_set_item_val("kbd.type.ns16550", NULL, true);
-	
+
 	return true;
 }
Index: kernel/arch/sparc64/src/drivers/niagara.c
===================================================================
--- kernel/arch/sparc64/src/drivers/niagara.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/drivers/niagara.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -126,5 +126,5 @@
 	 * shared buffer to the console.
 	 */
-	
+
 	while (output_buffer.read_ptr != output_buffer.write_ptr) {
 		do_putchar(output_buffer.data[output_buffer.read_ptr]);
@@ -132,9 +132,9 @@
 		    ((output_buffer.read_ptr) + 1) % OUTPUT_BUFFER_SIZE;
 	}
-	
+
 	/*
 	 * Read character from keyboard.
 	 */
-	
+
 	uint64_t c;
 	if (__hypercall_fast_ret1(0, 0, 0, 0, 0, CONS_GETCHAR, &c) == HV_EOK) {
@@ -174,9 +174,9 @@
 	if (instance)
 		return;
-	
+
 	instance = malloc(sizeof(niagara_instance_t), FRAME_ATOMIC);
 	instance->thread = thread_create(kniagarapoll, NULL, TASK,
 	    THREAD_FLAG_UNCOUNTED, "kniagarapoll");
-	
+
 	if (!instance->thread) {
 		free(instance);
@@ -184,12 +184,12 @@
 		return;
 	}
-	
+
 	instance->srlnin = NULL;
-	
+
 	output_buffer.read_ptr = 0;
 	output_buffer.write_ptr = 0;
 	input_buffer.write_ptr = 0;
 	input_buffer.read_ptr = 0;
-	
+
 	/*
 	 * Set sysinfos and pareas so that the userspace counterpart of the
@@ -197,8 +197,8 @@
 	 * buffers.
 	 */
-	
+
 	sysinfo_set_item_val("fb", NULL, true);
 	sysinfo_set_item_val("fb.kind", NULL, 5);
-	
+
 	sysinfo_set_item_val("niagara.outbuf.address", NULL,
 	    KA2PA(&output_buffer));
@@ -207,5 +207,5 @@
 	sysinfo_set_item_val("niagara.outbuf.datasize", NULL,
 	    OUTPUT_BUFFER_SIZE);
-	
+
 	sysinfo_set_item_val("niagara.inbuf.address", NULL,
 	    KA2PA(&input_buffer));
@@ -214,5 +214,5 @@
 	sysinfo_set_item_val("niagara.inbuf.datasize", NULL,
 	   INPUT_BUFFER_SIZE);
-	
+
 	outbuf_parea.pbase = (uintptr_t) (KA2PA(&output_buffer));
 	outbuf_parea.frames = 1;
@@ -220,5 +220,5 @@
 	outbuf_parea.mapped = false;
 	ddi_parea_register(&outbuf_parea);
-	
+
 	inbuf_parea.pbase = (uintptr_t) (KA2PA(&input_buffer));
 	inbuf_parea.frames = 1;
@@ -226,5 +226,5 @@
 	inbuf_parea.mapped = false;
 	ddi_parea_register(&inbuf_parea);
-	
+
 	outdev_t *niagara_dev = malloc(sizeof(outdev_t), FRAME_ATOMIC);
 	outdev_initialize("niagara_dev", niagara_dev, &niagara_ops);
@@ -238,5 +238,5 @@
 {
 	niagara_init();
-	
+
 	if (instance) {
 		srln_instance_t *srln_instance = srln_init();
@@ -244,10 +244,10 @@
 			indev_t *sink = stdin_wire();
 			indev_t *srln = srln_wire(srln_instance, sink);
-			
+
 			instance->srlnin = srln;
 			thread_ready(instance->thread);
 		}
 	}
-	
+
 	return instance;
 }
Index: kernel/arch/sparc64/src/drivers/pci.c
===================================================================
--- kernel/arch/sparc64/src/drivers/pci.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/drivers/pci.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -183,5 +183,5 @@
 	if (!prop || !prop->value)
 		return NULL;
-	
+
 	if (str_cmp(prop->value, "SUNW,sabre") == 0) {
 		/*
Index: kernel/arch/sparc64/src/drivers/scr.c
===================================================================
--- kernel/arch/sparc64/src/drivers/scr.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/drivers/scr.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,7 +67,7 @@
 	ofw_sbus_reg_t *sbus_reg;
 	const char *name;
-	
+
 	name = ofw_tree_node_name(node);
-	
+
 	if (str_cmp(name, "SUNW,m64B") == 0)
 		scr_type = SCR_ATYFB;
@@ -80,10 +80,10 @@
 	else if (str_cmp(name, "QEMU,VGA") == 0)
 		scr_type = SCR_QEMU_VGA;
-	
+
 	if (scr_type == SCR_UNKNOWN) {
 		log(LF_ARCH, LVL_ERROR, "Unknown screen device.");
 		return;
 	}
-	
+
 	uintptr_t fb_addr;
 	unsigned int fb_offset = 0;
@@ -121,7 +121,7 @@
 			return;
 		}
-	
+
 		pci_reg = &((ofw_pci_reg_t *) prop->value)[1];
-		
+
 		if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) {
 			log(LF_ARCH, LVL_ERROR,
@@ -129,5 +129,5 @@
 			return;
 		}
-	
+
 		if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg,
 		    &fb_addr)) {
@@ -136,5 +136,5 @@
 			return;
 		}
-		
+
 		switch (fb_depth) {
 		case 8:
@@ -159,5 +159,5 @@
 			return;
 		}
-		
+
 		break;
 	case SCR_XVR:
@@ -167,7 +167,7 @@
 			return;
 		}
-	
+
 		pci_reg = &((ofw_pci_reg_t *) prop->value)[1];
-		
+
 		if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) {
 			log(LF_ARCH, LVL_ERROR,
@@ -175,5 +175,5 @@
 			return;
 		}
-	
+
 		if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg,
 		    &fb_addr)) {
@@ -207,5 +207,5 @@
 			return;
 		}
-		
+
 		break;
 	case SCR_FFB:
@@ -231,5 +231,5 @@
 			return;
 		}
-		
+
 		sbus_reg = &((ofw_sbus_reg_t *) prop->value)[0];
 		if (!ofw_sbus_apply_ranges(node->parent, sbus_reg, &fb_addr)) {
@@ -238,5 +238,5 @@
 			return;
 		}
-	
+
 		break;
 
@@ -297,5 +297,5 @@
 		.visual = visual,
 	};
-	
+
 	outdev_t *fbdev = fb_init(&props);
 	if (fbdev)
Index: kernel/arch/sparc64/src/drivers/tick.c
===================================================================
--- kernel/arch/sparc64/src/drivers/tick.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/drivers/tick.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -89,10 +89,10 @@
 
 	softint.value = softint_read();
-	
+
 	/*
 	 * Make sure we are servicing interrupt_level_14
 	 */
 	assert(n == TT_INTERRUPT_LEVEL_14);
-	
+
 	/*
 	 * Make sure we are servicing TICK_INT.
@@ -106,5 +106,5 @@
 	clear.tick_int = 1;
 	clear_softint_write(clear.value);
-	
+
 	/*
 	 * Reprogram the compare register.
Index: kernel/arch/sparc64/src/fpu_context.c
===================================================================
--- kernel/arch/sparc64/src/fpu_context.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/fpu_context.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,5 +67,5 @@
 	 * GCC (4.1.1) can't handle more than 30 operands in one asm statement.
 	 */
-	
+
 	asm volatile (
 		"std %%f32, %0\n"
@@ -90,5 +90,5 @@
 		  "=m" (fctx->d[28]), "=m" (fctx->d[29]), "=m" (fctx->d[30]), "=m" (fctx->d[31])
 	);
-	
+
 	asm volatile ("stx %%fsr, %0\n" : "=m" (fctx->fsr));
 }
@@ -119,10 +119,10 @@
 		  "m" (fctx->d[12]), "m" (fctx->d[13]), "m" (fctx->d[14]), "m" (fctx->d[15])
 	);
-	
+
 	/*
 	 * We need to split loading of the floating-point registers because
 	 * GCC (4.1.1) can't handle more than 30 operands in one asm statement.
 	 */
-	
+
 	asm volatile (
 		"ldd %0, %%f32\n"
@@ -148,5 +148,5 @@
 		  "m" (fctx->d[28]), "m" (fctx->d[29]), "m" (fctx->d[30]), "m" (fctx->d[31])
 	);
-	
+
 	asm volatile ("ldx %0, %%fsr\n" : : "m" (fctx->fsr));
 }
@@ -155,5 +155,5 @@
 {
 	pstate_reg_t pstate;
-	
+
 	pstate.value = pstate_read();
 	pstate.pef = true;
@@ -164,5 +164,5 @@
 {
 	pstate_reg_t pstate;
-	
+
 	pstate.value = pstate_read();
 	pstate.pef = false;
Index: kernel/arch/sparc64/src/mm/sun4u/as.c
===================================================================
--- kernel/arch/sparc64/src/mm/sun4u/as.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/mm/sun4u/as.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,9 +69,9 @@
 	tsb_entry_t *tsb = (tsb_entry_t *) PA2KA(tsb_base);
 	memsetb(tsb, TSB_SIZE, 0);
-	
+
 	as->arch.itsb = tsb;
 	as->arch.dtsb = tsb + ITSB_ENTRY_COUNT;
 #endif
-	
+
 	return EOK;
 }
@@ -81,5 +81,5 @@
 #ifdef CONFIG_TSB
 	frame_free(KA2PA((uintptr_t) as->arch.itsb), TSB_FRAMES);
-	
+
 	return TSB_FRAMES;
 #else
@@ -93,5 +93,5 @@
 	tsb_invalidate(as, 0, (size_t) -1);
 #endif
-	
+
 	return 0;
 }
@@ -107,5 +107,5 @@
 {
 	tlb_context_reg_t ctx;
-	
+
 	/*
 	 * Note that we don't and may not lock the address space. That's ok
@@ -115,5 +115,5 @@
 	 *
 	 */
-	
+
 	/*
 	 * Write ASID to secondary context register. The primary context
@@ -126,13 +126,13 @@
 	ctx.context = as->asid;
 	mmu_secondary_context_write(ctx.v);
-	
+
 #ifdef CONFIG_TSB
 	uintptr_t base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH);
-	
+
 	assert(as->arch.itsb);
 	assert(as->arch.dtsb);
-	
+
 	uintptr_t tsb = (uintptr_t) as->arch.itsb;
-	
+
 	if (!overlaps(tsb, TSB_SIZE, base, 1 << KERNEL_PAGE_WIDTH)) {
 		/*
@@ -145,5 +145,5 @@
 		dtlb_insert_mapping(tsb, KA2PA(tsb), PAGESIZE_64K, true, true);
 	}
-	
+
 	/*
 	 * Setup TSB Base registers.
@@ -151,14 +151,14 @@
 	 */
 	tsb_base_reg_t tsb_base_reg;
-	
+
 	tsb_base_reg.value = 0;
 	tsb_base_reg.size = TSB_BASE_REG_SIZE;
 	tsb_base_reg.split = 0;
-	
+
 	tsb_base_reg.base = ((uintptr_t) as->arch.itsb) >> MMU_PAGE_WIDTH;
 	itsb_base_write(tsb_base_reg.value);
 	tsb_base_reg.base = ((uintptr_t) as->arch.dtsb) >> MMU_PAGE_WIDTH;
 	dtsb_base_write(tsb_base_reg.value);
-	
+
 #if defined (US3)
 	/*
@@ -198,13 +198,13 @@
 	 *
 	 */
-	
+
 #ifdef CONFIG_TSB
 	uintptr_t base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH);
-	
+
 	assert(as->arch.itsb);
 	assert(as->arch.dtsb);
-	
+
 	uintptr_t tsb = (uintptr_t) as->arch.itsb;
-	
+
 	if (!overlaps(tsb, TSB_SIZE, base, 1 << KERNEL_PAGE_WIDTH)) {
 		/*
Index: kernel/arch/sparc64/src/mm/sun4u/frame.c
===================================================================
--- kernel/arch/sparc64/src/mm/sun4u/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/mm/sun4u/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < memmap.cnt; i++) {
 		uintptr_t base;
@@ -62,8 +62,8 @@
 		size = ALIGN_DOWN(memmap.zones[i].size -
 		    (base - ((uintptr_t) memmap.zones[i].start)), FRAME_SIZE);
-		
+
 		if (!frame_adjust_zone_bounds(low, &base, &size))
 			continue;
- 
+
 		pfn_t confdata;
 		pfn_t pfn = ADDR2PFN(base);
@@ -74,5 +74,5 @@
 			if (confdata == ADDR2PFN(KA2PA(PFN2ADDR(0))))
 				confdata = ADDR2PFN(KA2PA(PFN2ADDR(2)));
-			
+
 			zone_create(pfn, count, confdata,
 			    ZONE_AVAILABLE | ZONE_LOWMEM);
@@ -90,7 +90,7 @@
 	if (config.cpu_active > 1)
 		return;
-	
+
 	frame_common_arch_init(true);
-	
+
 	/*
 	 * On sparc64, physical memory can start on a non-zero address.
Index: kernel/arch/sparc64/src/mm/sun4u/tlb.c
===================================================================
--- kernel/arch/sparc64/src/mm/sun4u/tlb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/mm/sun4u/tlb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -178,7 +178,7 @@
 	tag.context = t->as->asid;
 	tag.vpn = pg.vpn;
-	
+
 	itlb_tag_access_write(tag.value);
-	
+
 	data.value = 0;
 	data.v = true;
@@ -190,5 +190,5 @@
 	data.w = false;
 	data.g = t->g;
-	
+
 	itlb_data_in_write(data.value);
 }
@@ -353,5 +353,5 @@
 	tlb_data_t d;
 	tlb_tag_read_reg_t t;
-	
+
 	printf("I-TLB contents:\n");
 	for (i = 0; i < ITLB_ENTRY_COUNT; i++) {
@@ -377,5 +377,5 @@
 	tlb_data_t d;
 	tlb_tag_read_reg_t t;
-	
+
 	printf("TLB_ISMALL contents:\n");
 	for (i = 0; i < tlb_ismall_size(); i++) {
@@ -384,5 +384,5 @@
 		print_tlb_entry(i, t, d);
 	}
-	
+
 	printf("TLB_IBIG contents:\n");
 	for (i = 0; i < tlb_ibig_size(); i++) {
@@ -391,5 +391,5 @@
 		print_tlb_entry(i, t, d);
 	}
-	
+
 	printf("TLB_DSMALL contents:\n");
 	for (i = 0; i < tlb_dsmall_size(); i++) {
@@ -398,5 +398,5 @@
 		print_tlb_entry(i, t, d);
 	}
-	
+
 	printf("TLB_DBIG_1 contents:\n");
 	for (i = 0; i < tlb_dbig_size(); i++) {
@@ -405,5 +405,5 @@
 		print_tlb_entry(i, t, d);
 	}
-	
+
 	printf("TLB_DBIG_2 contents:\n");
 	for (i = 0; i < tlb_dbig_size(); i++) {
@@ -423,5 +423,5 @@
 	sfsr.value = dtlb_sfsr_read();
 	sfar = dtlb_sfar_read();
-	
+
 #if defined (US)
 	printf("DTLB SFSR: asi=%#x, ft=%#x, e=%d, ct=%d, pr=%d, w=%d, ow=%d, "
@@ -433,7 +433,7 @@
 	    sfsr.e, sfsr.ct, sfsr.pr, sfsr.w, sfsr.ow, sfsr.fv);
 #endif
-	
+
 	printf("DTLB SFAR: address=%p\n", (void *) sfar);
-	
+
 	dtlb_sfsr_write(0);
 }
@@ -446,5 +446,5 @@
 	sfsr.value = dtlb_sfsr_read();
 	sfar = dtlb_sfar_read();
-	
+
 #if defined (US)
 	printf("DTLB SFSR: asi=%#x, ft=%#x, e=%d, ct=%d, pr=%d, w=%d, ow=%d, "
@@ -456,7 +456,7 @@
 	    sfsr.e, sfsr.ct, sfsr.pr, sfsr.w, sfsr.ow, sfsr.fv);
 #endif
-	    
+
 	printf("DTLB SFAR: address=%p\n", (void *) sfar);
-	
+
 	dtlb_sfsr_write(0);
 }
@@ -467,5 +467,5 @@
 {
 	int i;
-	
+
 	/*
 	 * Walk all ITLB and DTLB entries and remove all unlocked mappings.
@@ -521,17 +521,17 @@
 {
 	tlb_context_reg_t pc_save, ctx;
-	
+
 	/* switch to nucleus because we are mapped by the primary context */
 	nucleus_enter();
-	
+
 	ctx.v = pc_save.v = mmu_primary_context_read();
 	ctx.context = asid;
 	mmu_primary_context_write(ctx.v);
-	
+
 	itlb_demap(TLB_DEMAP_CONTEXT, TLB_DEMAP_PRIMARY, 0);
 	dtlb_demap(TLB_DEMAP_CONTEXT, TLB_DEMAP_PRIMARY, 0);
-	
+
 	mmu_primary_context_write(pc_save.v);
-	
+
 	nucleus_leave();
 }
@@ -548,12 +548,12 @@
 	unsigned int i;
 	tlb_context_reg_t pc_save, ctx;
-	
+
 	/* switch to nucleus because we are mapped by the primary context */
 	nucleus_enter();
-	
+
 	ctx.v = pc_save.v = mmu_primary_context_read();
 	ctx.context = asid;
 	mmu_primary_context_write(ctx.v);
-	
+
 	for (i = 0; i < cnt * MMU_PAGES_PER_PAGE; i++) {
 		itlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_PRIMARY,
@@ -562,7 +562,7 @@
 		    page + i * MMU_PAGE_SIZE);
 	}
-	
+
 	mmu_primary_context_write(pc_save.v);
-	
+
 	nucleus_leave();
 }
Index: kernel/arch/sparc64/src/mm/sun4u/tsb.c
===================================================================
--- kernel/arch/sparc64/src/mm/sun4u/tsb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/mm/sun4u/tsb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,8 +57,8 @@
 	size_t i;
 	size_t cnt;
-	
+
 	assert(as->arch.itsb);
 	assert(as->arch.dtsb);
-	
+
 	i0 = (page >> MMU_PAGE_WIDTH) & ITSB_ENTRY_MASK;
 
@@ -67,5 +67,5 @@
 	else
 		cnt = pages * 2;
-	
+
 	for (i = 0; i < cnt; i++) {
 		as->arch.itsb[(i0 + i) & ITSB_ENTRY_MASK].tag.invalid = true;
@@ -86,5 +86,5 @@
 
 	assert(index <= 1);
-	
+
 	as = t->as;
 	entry = ((t->page >> MMU_PAGE_WIDTH) + index) & ITSB_ENTRY_MASK;
@@ -112,7 +112,7 @@
 	tte->data.p = t->k;	/* p as privileged, k as kernel */
 	tte->data.v = t->p;	/* v as valid, p as present */
-	
+
 	write_barrier();
-	
+
 	tte->tag.invalid = false;	/* mark the entry as valid */
 }
@@ -129,5 +129,5 @@
 	tsb_entry_t *tte;
 	size_t entry;
-	
+
 	assert(index <= 1);
 
@@ -161,7 +161,7 @@
 	tte->data.w = ro ? false : t->w;
 	tte->data.v = t->p;
-	
+
 	write_barrier();
-	
+
 	tte->tag.invalid = false;	/* mark the entry as valid */
 }
Index: kernel/arch/sparc64/src/mm/sun4v/as.c
===================================================================
--- kernel/arch/sparc64/src/mm/sun4v/as.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/mm/sun4v/as.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,8 +79,8 @@
 	as->arch.tsb_description.reserved = 0;
 	as->arch.tsb_description.context = 0;
-	
+
 	memsetb(tsb, TSB_SIZE, 0);
 #endif
-	
+
 	return EOK;
 }
@@ -90,5 +90,5 @@
 #ifdef CONFIG_TSB
 	frame_free(as->arch.tsb_description.tsb_base, TSB_FRAMES);
-	
+
 	return TSB_FRAMES;
 #else
@@ -102,5 +102,5 @@
 	tsb_invalidate(as, 0, (size_t) -1);
 #endif
-	
+
 	return EOK;
 }
@@ -117,11 +117,11 @@
 {
 	mmu_secondary_context_write(as->asid);
-	
+
 #ifdef CONFIG_TSB
 	uintptr_t base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH);
-	
+
 	assert(as->arch.tsb_description.tsb_base);
 	uintptr_t tsb = PA2KA(as->arch.tsb_description.tsb_base);
-	
+
 	if (!overlaps(tsb, TSB_SIZE, base, 1 << KERNEL_PAGE_WIDTH)) {
 		/*
@@ -134,5 +134,5 @@
 		dtlb_insert_mapping(tsb, KA2PA(tsb), PAGESIZE_64K, true, true);
 	}
-	
+
 	__hypercall_fast2(MMU_TSB_CTXNON0, 1, KA2PA(&as->arch.tsb_description));
 #endif
@@ -156,12 +156,12 @@
 	 *
 	 */
-	
+
 #ifdef CONFIG_TSB
 	uintptr_t base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH);
-	
+
 	assert(as->arch.tsb_description.tsb_base);
-	
+
 	uintptr_t tsb = PA2KA(as->arch.tsb_description.tsb_base);
-	
+
 	if (!overlaps(tsb, TSB_SIZE, base, 1 << KERNEL_PAGE_WIDTH)) {
 		/*
Index: kernel/arch/sparc64/src/mm/sun4v/frame.c
===================================================================
--- kernel/arch/sparc64/src/mm/sun4v/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/mm/sun4v/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 {
 	unsigned int i;
-		
+
 	for (i = 0; i < memmap.cnt; i++) {
 		uintptr_t base;
@@ -62,5 +62,5 @@
 		size = ALIGN_DOWN(memmap.zones[i].size -
 		    (base - ((uintptr_t) memmap.zones[i].start)), FRAME_SIZE);
-		
+
 		if (!frame_adjust_zone_bounds(low, &base, &size))
 			continue;
@@ -74,5 +74,5 @@
 			if (confdata == ADDR2PFN(KA2PA(PFN2ADDR(0))))
 				confdata = ADDR2PFN(KA2PA(PFN2ADDR(2)));
-			
+
 			zone_create(pfn, count, confdata,
 			    ZONE_AVAILABLE | ZONE_LOWMEM);
Index: kernel/arch/sparc64/src/mm/sun4v/tlb.c
===================================================================
--- kernel/arch/sparc64/src/mm/sun4v/tlb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/mm/sun4v/tlb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -128,5 +128,5 @@
 {
 	tte_data_t data;
-	
+
 	data.value = 0;
 	data.v = true;
@@ -143,5 +143,5 @@
 	data.w = true;
 	data.size = pagesize;
-	
+
 	if (locked) {
 		__hypercall_fast4(
@@ -163,5 +163,5 @@
 {
 	tte_data_t data;
-	
+
 	data.value = 0;
 	data.v = true;
@@ -178,5 +178,5 @@
 	data.w = ro ? false : t->w;
 	data.size = PAGESIZE_8K;
-	
+
 	__hypercall_hyperfast(
 		t->page, t->as->asid, data.value, MMU_FLAG_DTLB, 0, MMU_MAP_ADDR);
@@ -190,5 +190,5 @@
 {
 	tte_data_t data;
-	
+
 	data.value = 0;
 	data.v = true;
@@ -203,5 +203,5 @@
 	data.w = false;
 	data.size = PAGESIZE_8K;
-	
+
 	__hypercall_hyperfast(
 		t->page, t->as->asid, data.value, MMU_FLAG_ITLB, 0, MMU_MAP_ADDR);
@@ -387,5 +387,5 @@
 {
 	unsigned int i;
-	
+
 	/* switch to nucleus because we are mapped by the primary context */
 	nucleus_enter();
Index: kernel/arch/sparc64/src/mm/sun4v/tsb.c
===================================================================
--- kernel/arch/sparc64/src/mm/sun4v/tsb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/mm/sun4v/tsb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,7 +59,7 @@
 	size_t i0, i;
 	size_t cnt;
-	
+
 	assert(as->arch.tsb_description.tsb_base);
-	
+
 	i0 = (page >> MMU_PAGE_WIDTH) & TSB_ENTRY_MASK;
 
@@ -68,5 +68,5 @@
 	else
 		cnt = pages;
-	
+
 	tsb = (tsb_entry_t *) PA2KA(as->arch.tsb_description.tsb_base);
 	for (i = 0; i < cnt; i++)
@@ -87,5 +87,5 @@
 	as = t->as;
 	index = (t->page >> MMU_PAGE_WIDTH) & TSB_ENTRY_MASK;
-	
+
 	tsb = (tsb_entry_t *) PA2KA(as->arch.tsb_description.tsb_base);
 	tte = &tsb[index];
@@ -114,7 +114,7 @@
 	tte->data.w = false;
 	tte->data.size = PAGESIZE_8K;
-	
+
 	write_barrier();
-	
+
 	tte->data.v = t->p;	/* v as valid, p as present */
 }
@@ -162,7 +162,7 @@
 	tte->data.w = ro ? false : t->w;
 	tte->data.size = PAGESIZE_8K;
-	
+
 	write_barrier();
-	
+
 	tte->data.v = t->p;	/* v as valid, p as present */
 }
Index: kernel/arch/sparc64/src/proc/sun4v/scheduler.c
===================================================================
--- kernel/arch/sparc64/src/proc/sun4v/scheduler.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/proc/sun4v/scheduler.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,5 +71,5 @@
 		THREAD->arch.uspace_window_buffer =
 		    (uint8_t *) asi_u64_read(ASI_SCRATCHPAD, SCRATCHPAD_WBUF);
-		
+
 	}
 }
Index: kernel/arch/sparc64/src/smp/sun4u/ipi.c
===================================================================
--- kernel/arch/sparc64/src/smp/sun4u/ipi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/smp/sun4u/ipi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -97,13 +97,13 @@
 	 * we explicitly disable preemption.
 	 */
-	
+
 	preemption_disable();
-	
+
 	status = asi_u64_read(ASI_INTR_DISPATCH_STATUS, 0);
 	if (status & INTR_DISPATCH_STATUS_BUSY)
 		panic("Interrupt Dispatch Status busy bit set\n");
-	
+
 	assert(!(pstate_read() & PSTATE_IE_BIT));
-	
+
 	do {
 		set_intr_w_data(func);
@@ -111,11 +111,11 @@
 		    (mid << INTR_VEC_DISPATCH_MID_SHIFT) |
 		    VA_INTR_W_DISPATCH, 0);
-	
+
 		membar();
-		
+
 		do {
 			status = asi_u64_read(ASI_INTR_DISPATCH_STATUS, 0);
 		} while (status & INTR_DISPATCH_STATUS_BUSY);
-		
+
 		done = !(status & INTR_DISPATCH_STATUS_NACK);
 		if (!done) {
@@ -128,5 +128,5 @@
 		}
 	} while (!done);
-	
+
 	preemption_enable();
 }
@@ -147,7 +147,7 @@
 {
 	unsigned int i;
-	
+
 	void (* func)(void);
-	
+
 	switch (ipi) {
 	case IPI_TLB_SHOOTDOWN:
@@ -158,5 +158,5 @@
 		break;
 	}
-	
+
 	/*
 	 * As long as we don't support hot-plugging
@@ -165,5 +165,5 @@
 	 * without locking.
 	 */
-	
+
 	for (i = 0; i < config.cpu_active; i++) {
 		if (&cpus[i] == CPU)
@@ -187,5 +187,5 @@
 {
 	assert(&cpus[cpu_id] != CPU);
-	
+
 	if (ipi == IPI_SMP_CALL) {
 		cross_call(cpus[cpu_id].arch.mid, smp_call_ipi_recv);
Index: kernel/arch/sparc64/src/smp/sun4u/smp.c
===================================================================
--- kernel/arch/sparc64/src/smp/sun4u/smp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/smp/sun4u/smp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 	ofw_tree_node_t *node;
 	unsigned int cnt = 0;
-	
+
 	if (is_us() || is_us_iii()) {
 		node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
@@ -76,5 +76,5 @@
 		}
 	}
-	
+
 	config.cpu_count = max(1, cnt);
 }
@@ -89,5 +89,5 @@
 	uint32_t mid;
 	ofw_tree_property_t *prop;
-		
+
 	/* 'upa-portid' for US, 'portid' for US-III, 'cpuid' for US-IV */
 	prop = ofw_tree_getprop(node, "upa-portid");
@@ -96,8 +96,8 @@
 	if ((!prop) || (!prop->value))
 		prop = ofw_tree_getprop(node, "cpuid");
-		
+
 	if (!prop || prop->value == NULL)
 		return;
-		
+
 	mid = *((uint32_t *) prop->value);
 	if (CPU->arch.mid == mid)
@@ -105,5 +105,5 @@
 
 	waking_up_mid = mid;
-		
+
 	if (waitq_sleep_timeout(&ap_completion_wq, 1000000,
 	    SYNCH_FLAGS_NONE, NULL) == ETIMEOUT)
@@ -117,5 +117,5 @@
 	ofw_tree_node_t *node;
 	int i;
-	
+
 	if (is_us() || is_us_iii()) {
 		node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
Index: kernel/arch/sparc64/src/smp/sun4v/ipi.c
===================================================================
--- kernel/arch/sparc64/src/smp/sun4v/ipi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/smp/sun4v/ipi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -96,5 +96,5 @@
 {
 	void (* func)(void);
-	
+
 	switch (ipi) {
 	case IPI_TLB_SHOOTDOWN:
Index: kernel/arch/sparc64/src/smp/sun4v/smp.c
===================================================================
--- kernel/arch/sparc64/src/smp/sun4v/smp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/smp/sun4v/smp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -359,5 +359,5 @@
 	if (__hypercall_fast1(CPU_STOP, cpuid) != EOK)
 		return false;
-	
+
 	/* wait for the CPU to stop */
 	uint64_t state;
@@ -365,5 +365,5 @@
 	while (state == CPU_STATE_RUNNING)
 		__hypercall_fast_ret1(cpuid, 0, 0, 0, 0, CPU_STATE, &state);
-	
+
 	/* make the CPU run again and execute HelenOS code */
 	if (__hypercall_fast4(CPU_START, cpuid,
@@ -372,10 +372,10 @@
 		return false;
 #endif
-	
+
 	if (waitq_sleep_timeout(&ap_completion_wq, 10000000,
 	    SYNCH_FLAGS_NONE, NULL) == ETIMEOUT)
 		printf("%s: waiting for processor (cpuid = %" PRIu64 ") timed out\n",
 		    __func__, cpuid);
-	
+
 	return true;
 }
Index: kernel/arch/sparc64/src/sparc64.c
===================================================================
--- kernel/arch/sparc64/src/sparc64.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/sparc64.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 		if (options) {
 			ofw_tree_property_t *prop;
-		
+
 			prop = ofw_tree_getprop(options, "boot-args");
 			if (prop && prop->value) {
Index: kernel/arch/sparc64/src/sun4u/asm.S
===================================================================
--- kernel/arch/sparc64/src/sun4u/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/sun4u/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -102,5 +102,5 @@
 	wrpr %g1, TSTATE_IE_BIT, %tstate
 	wrpr %i0, 0, %tnpc
-	
+
 	/*
 	 * Set primary context according to secondary context.
@@ -117,5 +117,5 @@
 	 */
 	wrpr %g0, WSTATE_OTHER(0) | WSTATE_NORMAL(1), %wstate
-	
+
 	done				! jump to userspace
 FUNCTION_END(switch_to_userspace)
Index: kernel/arch/sparc64/src/sun4u/sparc64.c
===================================================================
--- kernel/arch/sparc64/src/sun4u/sparc64.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/sun4u/sparc64.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,5 +72,5 @@
 	/* Copy init task info. */
 	init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);
-	
+
 	size_t i;
 	for (i = 0; i < init.cnt; i++) {
@@ -80,5 +80,5 @@
 		    bootinfo->taskmap.tasks[i].name);
 	}
-	
+
 	/* Copy physical memory map. */
 	memmap.total = bootinfo->memmap.total;
@@ -88,9 +88,9 @@
 		memmap.zones[i].size = bootinfo->memmap.zones[i].size;
 	}
-	
+
 	/* Copy boot allocations info. */
 	ballocs.base = bootinfo->ballocs.base;
 	ballocs.size = bootinfo->ballocs.size;
-	
+
 	ofw_tree_init(bootinfo->ofw_root);
 }
@@ -111,5 +111,5 @@
 		/* Map OFW information into sysinfo */
 		ofw_sysinfo_map();
-		
+
 		/*
 		 * We have 2^11 different interrupt vectors.
@@ -167,5 +167,5 @@
 	    (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
 	    (uintptr_t) kernel_uarg->uspace_uarg);
-	
+
 	/* Not reached */
 	while (1);
Index: kernel/arch/sparc64/src/sun4u/start.S
===================================================================
--- kernel/arch/sparc64/src/sun4u/start.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/sun4u/start.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -85,5 +85,5 @@
 	! Get bits (PHYSMEM_ADDR_SIZE - 1):13 of physmem_base.
 	srlx %l6, 13, %l5
-	
+
 	! l5 <= physmem_base[(PHYSMEM_ADDR_SIZE - 1):13]
 	sllx %l5, 13 + (63 - (PHYSMEM_ADDR_SIZE - 1)), %l5
@@ -101,5 +101,5 @@
 	wrpr %g0, NWINDOWS - 1, %cleanwin	! prevent needless clean_window
 						! traps for kernel
-						
+
 	wrpr %g0, 0, %wstate			! use default spill/fill trap
 
@@ -132,5 +132,5 @@
 	set (TLB_DEMAP_CONTEXT << TLB_DEMAP_TYPE_SHIFT) | (context_id << \
 		TLB_DEMAP_CONTEXT_SHIFT), %r1
-	
+
 	! demap context 0
 	SET_TLB_DEMAP_CMD(g1, TLB_DEMAP_NUCLEUS)
@@ -161,5 +161,5 @@
 	sllx %r2, TTE_V_SHIFT, %r2; \
 	or %r1, %r2, %r1;
-	
+
 	! write DTLB data and install the kernel mapping
 	SET_TLB_DATA(g1, g2, TTE_L | TTE_W)	! use non-global mapping
@@ -182,5 +182,5 @@
 	stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG
 	membar #Sync
-	
+
 	/*
 	 * Now is time to take over the IMMU. Unfortunatelly, it cannot be done
@@ -202,7 +202,7 @@
 	 * the taken over DTLB.
 	 */
-	
+
 	set kernel_image_start, %g5
-	
+
 	! write ITLB tag of context 1
 	SET_TLB_TAG(g1, MEM_CONTEXT_TEMP)
@@ -215,15 +215,15 @@
 	stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG
 	flush %g5
-	
+
 	! switch to context 1
 	mov MEM_CONTEXT_TEMP, %g1
 	stxa %g1, [VA_PRIMARY_CONTEXT_REG] %asi	! ASI_DMMU is correct here !!!
 	flush %g5
-	
+
 	! demap context 0
 	SET_TLB_DEMAP_CMD(g1, TLB_DEMAP_NUCLEUS)
 	stxa %g0, [%g1] ASI_IMMU_DEMAP
 	flush %g5
-	
+
 	! write ITLB tag of context 0
 	SET_TLB_TAG(g1, MEM_CONTEXT_KERNEL)
@@ -244,9 +244,9 @@
 	stxa %g0, [%g1] ASI_IMMU_DEMAP
 	flush %g5
-	
+
 	! set context 0 in the primary context register
 	stxa %g0, [VA_PRIMARY_CONTEXT_REG] %asi	! ASI_DMMU is correct here !!!
 	flush %g5
-	
+
 	! leave nucleus - using primary context, i.e. context 0
 	wrpr %g0, 0, %tl
@@ -271,9 +271,9 @@
 	or %l3, %l5, %l3
 	stx %l3, [%l4 + %lo(kernel_8k_tlb_data_template)]
-	
+
 	! flush the whole D-cache
 	set (DCACHE_SIZE - DCACHE_LINE_SIZE), %g1
 	stxa %g0, [%g1] ASI_DCACHE_TAG
-	
+
 0:
 	membar #Sync
@@ -282,5 +282,5 @@
 	stxa %g0, [%g1] ASI_DCACHE_TAG
 	membar #Sync
-	
+
 	/*
 	 * So far, we have not touched the stack.
@@ -290,5 +290,5 @@
 	or %sp, %lo(temporary_boot_stack), %sp
 	sub %sp, STACK_BIAS, %sp
-	
+
 	/*
 	 * Call sparc64_pre_main(bootinfo)
@@ -296,5 +296,5 @@
 	call sparc64_pre_main
 	mov %o1, %o0
-	
+
 	/*
 	 * Create the first stack frame.
@@ -372,5 +372,5 @@
 	/* Not reached. */
 #endif
-	
+
 0:
 	ba,a %xcc, 0b
Index: kernel/arch/sparc64/src/sun4v/asm.S
===================================================================
--- kernel/arch/sparc64/src/sun4v/asm.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/sun4v/asm.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,5 +58,5 @@
 	wrpr %g1, TSTATE_IE_BIT, %tstate
 	wrpr %i0, 0, %tnpc
-	
+
 	/*
 	 * Set primary context according to secondary context.
Index: kernel/arch/sparc64/src/sun4v/md.c
===================================================================
--- kernel/arch/sparc64/src/sun4v/md.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/sun4v/md.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -244,5 +244,5 @@
 		char *head;
 		more = str_parse_head(&name, &head);
-		
+
 		while (md_next_child(&node)) {
 			element_idx_t child = md_get_child_node(node);
@@ -292,5 +292,5 @@
 			return true;
 		}
-		
+
 		(*node)++;
 	} while (element->tag != LIST_END);
Index: kernel/arch/sparc64/src/sun4v/sparc64.c
===================================================================
--- kernel/arch/sparc64/src/sun4v/sparc64.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/sun4v/sparc64.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -74,5 +74,5 @@
 	/* Copy init task info. */
 	init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);
-	
+
 	size_t i;
 	for (i = 0; i < init.cnt; i++) {
@@ -82,5 +82,5 @@
 		    bootinfo->taskmap.tasks[i].name);
 	}
-	
+
 	/* Copy physical memory map. */
 	memmap.total = bootinfo->memmap.total;
@@ -90,5 +90,5 @@
 		memmap.zones[i].size = bootinfo->memmap.zones[i].size;
 	}
-	
+
 	md_init();
 }
@@ -109,5 +109,5 @@
 		/* Map OFW information into sysinfo */
 		ofw_sysinfo_map();
-		
+
 		/*
 		 * We have 2^11 different interrupt vectors.
@@ -165,5 +165,5 @@
 	    (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
 	    (uintptr_t) kernel_uarg->uspace_uarg);
-	
+
 	/* Not reached */
 	while (1);
Index: kernel/arch/sparc64/src/sun4v/start.S
===================================================================
--- kernel/arch/sparc64/src/sun4v/start.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/sun4v/start.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -115,5 +115,5 @@
 	! Get bits (PHYSMEM_ADDR_SIZE - 1):13 of physmem_base.
 	srlx %l6, 13, %l5
-	
+
 	! l5 <= physmem_base[(PHYSMEM_ADDR_SIZE - 1):13]
 	sllx %l5, 13 + (63 - (PHYSMEM_ADDR_SIZE - 1)), %l5
@@ -130,5 +130,5 @@
 	wrpr %g0, NWINDOWS - 1, %cleanwin	! prevent needless clean_window
 						! traps for kernel
-						
+
 	wrpr %g0, 0, %wstate			! use default spill/fill trap
 
@@ -252,5 +252,5 @@
 	call sparc64_pre_main
 	or %l1, %g0, %o0
-	
+
 	/*
 	 * Create the first stack frame.
Index: kernel/arch/sparc64/src/trap/exception.c
===================================================================
--- kernel/arch/sparc64/src/trap/exception.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/trap/exception.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 	const char *tpcs = symtab_fmt_name_lookup(istate->tpc);
 	const char *tnpcs = symtab_fmt_name_lookup(istate->tnpc);
-	
+
 	printf("TSTATE=%#" PRIx64 "\n", istate->tstate);
 	printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, tpcs);
@@ -100,5 +100,5 @@
 {
 	fprs_reg_t fprs;
-	
+
 	fprs.value = fprs_read();
 	if (!fprs.fef) {
Index: kernel/arch/sparc64/src/trap/sun4u/interrupt.c
===================================================================
--- kernel/arch/sparc64/src/trap/sun4u/interrupt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/trap/sun4u/interrupt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,5 +58,5 @@
 	if (status & (!INTR_DISPATCH_STATUS_BUSY))
 		panic("Interrupt Dispatch Status busy bit not set\n");
-	
+
 	uint64_t intrcv = asi_u64_read(ASI_INTR_RECEIVE, 0);
 #if defined (US)
@@ -65,5 +65,5 @@
 	uint64_t data0 = asi_u64_read(ASI_INTR_R, VA_INTR_R_DATA_0);
 #endif
-	
+
 	irq_t *irq = irq_dispatch_and_lock(data0);
 	if (irq) {
@@ -72,5 +72,5 @@
 		 */
 		irq->handler(irq);
-		
+
 		/*
 		 * See if there is a clear-interrupt-routine and call it.
@@ -78,5 +78,5 @@
 		if (irq->cir)
 			irq->cir(irq->cir_arg, irq->inr);
-		
+
 		irq_spinlock_unlock(&irq->lock, false);
 	} else if (data0 > config.base) {
@@ -103,5 +103,5 @@
 #endif
 	}
-	
+
 	membar();
 	asi_u64_write(ASI_INTR_RECEIVE, 0, 0);
Index: kernel/arch/sparc64/src/trap/sun4u/trap_table.S
===================================================================
--- kernel/arch/sparc64/src/trap/sun4u/trap_table.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/trap/sun4u/trap_table.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -502,5 +502,5 @@
 .if NOT(\is_syscall)
 	rdpr %tstate, %g3
-	
+
 	/*
 	 * One of the ways this handler can be invoked is after a nested MMU trap from
@@ -576,5 +576,5 @@
 	 */
 	wrpr %g0, WSTATE_OTHER(0) | WSTATE_NORMAL(0), %wstate
-	
+
 	/*
 	 * Copy arguments.
@@ -605,9 +605,9 @@
 	 */
 	stx %g4, [%sp + STACK_BIAS + ISTATE_OFFSET_Y]
-	
+
 	wrpr %g0, 0, %tl
 	wrpr %g0, PSTATE_PRIV_BIT | PSTATE_PEF_BIT, %pstate
 	SAVE_GLOBALS
-	
+
 .if NOT(\is_syscall)
 	/*
@@ -629,5 +629,5 @@
 	wrpr %g0, PSTATE_AG_BIT | PSTATE_PRIV_BIT, %pstate
 	wrpr %g0, 1, %tl
-	
+
 	/*
 	 * Read TSTATE, TPC and TNPC from saved copy.
@@ -742,5 +742,5 @@
 	rd %pc, %g1
 	flush %g1
-	
+
 	rdpr %cwp, %g1
 	rdpr %otherwin, %g2
@@ -800,5 +800,5 @@
 	mov NWINDOWS - 2, %g1			! use dealy slot for both cases
 	sub %g1, %g2, %g1
-	
+
 	wrpr %g0, 0, %otherwin
 	wrpr %g1, 0, %cansave			! NWINDOWS - 2 - CANRESTORE
@@ -845,5 +845,5 @@
 	and %g1, NWINDOWS - 1, %g1
 	wrpr %g1, 0, %cwp			! CWP--
-	
+
 .if \is_syscall
 	done
Index: kernel/arch/sparc64/src/trap/sun4v/trap_table.S
===================================================================
--- kernel/arch/sparc64/src/trap/sun4v/trap_table.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/arch/sparc64/src/trap/sun4v/trap_table.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -606,5 +606,5 @@
 	and \tmpreg1, NWINDOWS - 1, \tmpreg1		! modulo NWINDOWS
 	wrpr \tmpreg1, %cwp
-	
+
 	! spill to kernel stack
 	stx %l0, [%sp + STACK_BIAS + L0_OFFSET]
@@ -766,5 +766,5 @@
 	ldx [%sp + STACK_BIAS + ISTATE_OFFSET_Y], %g4
 	wr %g4, %y
-	
+
 	/* If TSTATE.CWP + 1 == CWP, then we do not have to fix CWP. */
 	and %g1, TSTATE_CWP_MASK, %l0
@@ -871,5 +871,5 @@
 	and \tmpreg1, NWINDOWS - 1, \tmpreg1		! modulo NWINDOWS
 	wrpr \tmpreg1, %cwp
-	
+
 	! spill to userspace window buffer
 	SAVE_TO_USPACE_WBUF \tmpreg3, \tmpreg1
@@ -1028,5 +1028,5 @@
 	mov NWINDOWS - 2, %g1			! use dealy slot for both cases
 	sub %g1, %g2, %g1
-	
+
 	wrpr %g0, 0, %otherwin
 	wrpr %g1, 0, %cansave			! NWINDOWS - 2 - CANRESTORE
@@ -1073,5 +1073,5 @@
 	and %g1, NWINDOWS - 1, %g1
 	wrpr %g1, 0, %cwp			! CWP--
-	
+
 .if \is_syscall
 	done
Index: kernel/doc/doxygroups.h
===================================================================
--- kernel/doc/doxygroups.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/doc/doxygroups.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -23,9 +23,9 @@
   * @ingroup kernel
   */
- 
+
 	/** @defgroup genericproc generic
 	* @ingroup proc
 	*/
- 	
+
 
 	/**
@@ -94,15 +94,15 @@
   * @ingroup kernel
   */
- 
+
 	/**
 	 * @defgroup genericmm generic
 	 * @ingroup mm
 	 */
- 
+
 	/**
 	 * @defgroup genarchmm genarch
 	 * @ingroup mm
 	 */
- 	
+
 	/**
 	 * @cond amd64
@@ -111,5 +111,5 @@
 	 * @endcond
 	 */
-	 
+
 	/**
 	 * @cond arm32
@@ -118,5 +118,5 @@
 	 * @endcond
 	 */
-	
+
 	/**
 	 * @cond ia32
@@ -125,5 +125,5 @@
 	 * @endcond
 	 */
-	
+
 	/**
 	 * @cond ia64
@@ -132,5 +132,5 @@
 	 * @endcond
 	 */
-	
+
 	/**
 	 * @cond mips32
@@ -139,5 +139,5 @@
 	 * @endcond
 	 */
-	
+
 	/**
 	 * @cond ppc32
@@ -146,5 +146,5 @@
 	 * @endcond
 	 */
-	
+
 	/**
 	 * @cond ppc64
@@ -153,5 +153,5 @@
 	 * @endcond
 	 */
-	
+
 	/**
 	 * @cond sparc64
@@ -160,11 +160,11 @@
 	 * @endcond
 	 */
-	
-
- 
+
+
+
 /** @defgroup genericipc IPC
  * @ingroup kernel
  */
- 
+
 /** @defgroup generickio KIO
  * @brief Kernel character input/output facility
@@ -187,5 +187,5 @@
 	 * @endcond
 	 */
-	 
+
  	/**
 	 * @cond arm32
@@ -240,9 +240,9 @@
  * @ingroup others
  */
- 
+
 	/** @defgroup genericdebug generic
 	* @ingroup debug
 	*/
- 
+
 	/**
 	 * @cond amd64
@@ -251,5 +251,5 @@
 	 * @endcond
 	 */
-	 
+
 	/**
 	 * @cond arm32
@@ -315,5 +315,5 @@
 	 * @endcond
 	 */
-	 
+
 	/**
 	 * @cond arm32
@@ -376,5 +376,5 @@
 	* @ingroup others
 	*/
- 	
+
 	/**
 	 * @cond amd64
@@ -383,5 +383,5 @@
 	 * @endcond
 	 */
-	 
+
 	/**
 	 * @cond arm32
Index: kernel/genarch/include/genarch/fb/fb.h
===================================================================
--- kernel/genarch/include/genarch/fb/fb.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/include/genarch/fb/fb.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	/** Physical address of the framebuffer device. */
 	uintptr_t addr;
-	
+
 	/**
 	 * Address where the first (top left) pixel is mapped,
@@ -52,14 +52,14 @@
 	 */
 	unsigned int offset;
-	
+
 	/** Screen width in pixels. */
 	unsigned int x;
-	
+
 	/** Screen height in pixels. */
 	unsigned int y;
-	
+
 	/** Bytes per one scanline. */
 	unsigned int scan;
-	
+
 	/** Color model. */
 	visual_t visual;
Index: kernel/genarch/include/genarch/kbrd/kbrd.h
===================================================================
--- kernel/genarch/include/genarch/kbrd/kbrd.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/include/genarch/kbrd/kbrd.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,8 +43,8 @@
 typedef struct {
 	thread_t *thread;
-	
+
 	indev_t *sink;
 	indev_t raw;
-	
+
 	SPINLOCK_DECLARE(keylock);        /**< keylock protects keyflags and lockflags. */
 	volatile unsigned int keyflags;   /**< Tracking of multiple keypresses. */
Index: kernel/genarch/include/genarch/ofw/ebus.h
===================================================================
--- kernel/genarch/include/genarch/ofw/ebus.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/include/genarch/ofw/ebus.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,5 +45,5 @@
 	uint32_t child_base;
 	uint32_t parent_space;
-	
+
 	/* Group phys.mid and phys.lo together */
 	uint64_t parent_base;
Index: kernel/genarch/include/genarch/ofw/ofw_tree.h
===================================================================
--- kernel/genarch/include/genarch/ofw/ofw_tree.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/include/genarch/ofw/ofw_tree.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,12 +49,12 @@
 	struct ofw_tree_node *peer;
 	struct ofw_tree_node *child;
-	
+
 	phandle node_handle;            /**< Old OpenFirmware node handle. */
-	
+
 	char *da_name;                  /**< Disambigued name. */
-	
+
 	size_t properties;              /**< Number of properties. */
 	ofw_tree_property_t *property;
-	
+
 	/**
 	 * Pointer to a structure representing respective device.
Index: kernel/genarch/include/genarch/ofw/pci.h
===================================================================
--- kernel/genarch/include/genarch/ofw/pci.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/include/genarch/ofw/pci.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,5 +38,5 @@
 	/* Needs to be masked to obtain pure space id */
 	uint32_t space;
-	
+
 	/* Group phys.mid and phys.lo together */
 	uint64_t addr;
@@ -46,5 +46,5 @@
 typedef struct {
 	uint32_t space;
-	
+
 	/* Group phys.mid and phys.lo together */
 	uint64_t child_base;
Index: kernel/genarch/include/genarch/srln/srln.h
===================================================================
--- kernel/genarch/include/genarch/srln/srln.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/include/genarch/srln/srln.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
 typedef struct {
 	thread_t *thread;
-	
+
 	indev_t *sink;
 	indev_t raw;
Index: kernel/genarch/src/acpi/acpi.c
===================================================================
--- kernel/genarch/src/acpi/acpi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/acpi/acpi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,17 +69,17 @@
 	uint8_t sum = 0;
 	uint32_t i;
-	
+
 	for (i = 0; i < 20; i++)
 		sum = (uint8_t) (sum + _rsdp[i]);
-	
+
 	if (sum)
 		return 0; /* bad checksum */
-	
+
 	if (rsdp->revision == 0)
 		return 1; /* ACPI 1.0 */
-	
+
 	for (; i < rsdp->length; i++)
 		sum = (uint8_t) (sum + _rsdp[i]);
-	
+
 	return !sum;
 }
@@ -90,8 +90,8 @@
 	uint8_t sum = 0;
 	unsigned int i;
-	
+
 	for (i = 0; i < hdr->length; i++)
 		sum = (uint8_t) (sum + sdt[i]);
-	
+
 	return !sum;
 }
@@ -109,5 +109,5 @@
 	vsdt = (struct acpi_sdt_header *) km_map((uintptr_t) psdt,
 	    vhdr->length, PAGE_WRITE | PAGE_NOT_CACHEABLE);
-	
+
 	// TODO: do not leak vtmp
 
@@ -121,5 +121,5 @@
 	size_t cnt = (acpi_rsdt->header.length - sizeof(struct acpi_sdt_header))
 	    / sizeof(uint32_t);
-	
+
 	for (i = 0; i < cnt; i++) {
 		for (j = 0; j < sizeof(signature_map)
@@ -127,10 +127,10 @@
 			struct acpi_sdt_header *hdr =
 			    (struct acpi_sdt_header *) (sysarg_t) acpi_rsdt->entry[i];
-			
+
 			struct acpi_sdt_header *vhdr = map_sdt(hdr);
 			if (CMP_SIGNATURE(vhdr->signature, signature_map[j].signature)) {
 				if (!acpi_sdt_check((uint8_t *) vhdr))
 					break;
-				
+
 				*signature_map[j].sdt_ptr = vhdr;
 				LOG("%p: ACPI %s", *signature_map[j].sdt_ptr,
@@ -147,5 +147,5 @@
 	size_t cnt = (acpi_xsdt->header.length - sizeof(struct acpi_sdt_header))
 	    / sizeof(uint64_t);
-	
+
 	for (i = 0; i < cnt; i++) {
 		for (j = 0; j < sizeof(signature_map)
@@ -153,10 +153,10 @@
 			struct acpi_sdt_header *hdr =
 			    (struct acpi_sdt_header *) ((uintptr_t) acpi_xsdt->entry[i]);
-			
+
 			struct acpi_sdt_header *vhdr = map_sdt(hdr);
 			if (CMP_SIGNATURE(vhdr->signature, signature_map[j].signature)) {
 				if (!acpi_sdt_check((uint8_t *) vhdr))
 					break;
-				
+
 				*signature_map[j].sdt_ptr = vhdr;
 				LOG("%p: ACPI %s", *signature_map[j].sdt_ptr,
@@ -174,5 +174,5 @@
 	unsigned int length[2] = { 1024, 128 * 1024 };
 	uint64_t *sig = (uint64_t *) RSDP_SIGNATURE;
-	
+
 	/*
 	 * Find Root System Description Pointer
@@ -180,5 +180,5 @@
 	 * 2. search 128K starting at 0xe0000
 	 */
-	
+
 	addr[0] = (uint8_t *) PA2KA(ebda);
 	for (i = (ebda ? 0 : 1); i < 2; i++) {
@@ -191,10 +191,10 @@
 		}
 	}
-	
+
 	return;
-	
+
 rsdp_found:
 	LOG("%p: ACPI Root System Description Pointer", acpi_rsdp);
-	
+
 	uintptr_t acpi_rsdt_p = (uintptr_t) acpi_rsdp->rsdt_address;
 	uintptr_t acpi_xsdt_p = 0;
@@ -202,23 +202,23 @@
 	if (acpi_rsdp->revision)
 		acpi_xsdt_p = (uintptr_t) acpi_rsdp->xsdt_address;
-	
+
 	if (acpi_rsdt_p)
 		acpi_rsdt = (struct acpi_rsdt *) map_sdt(
 		    (struct acpi_sdt_header *) acpi_rsdt_p);
-	
+
 	if (acpi_xsdt_p)
 		acpi_xsdt = (struct acpi_xsdt *) map_sdt(
 		    (struct acpi_sdt_header *) acpi_xsdt_p);
-	
+
 	if ((acpi_rsdt) && (!acpi_sdt_check((uint8_t *) acpi_rsdt))) {
 		log(LF_ARCH, LVL_ERROR, "RSDT: bad checksum");
 		return;
 	}
-	
+
 	if ((acpi_xsdt) && (!acpi_sdt_check((uint8_t *) acpi_xsdt))) {
 		log(LF_ARCH, LVL_ERROR, "XSDT: bad checksum");
 		return;
 	}
-	
+
 	if (acpi_xsdt)
 		configure_via_xsdt();
Index: kernel/genarch/src/acpi/madt.c
===================================================================
--- kernel/genarch/src/acpi/madt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/acpi/madt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -83,5 +83,5 @@
 {
 	assert(i < madt_l_apic_entry_cnt);
-	
+
 	return ((struct madt_l_apic *)
 	    madt_entries_index[madt_l_apic_entry_index + i])->apic_id;
@@ -91,5 +91,5 @@
 {
 	assert(i < madt_l_apic_entry_cnt);
-	
+
 	/*
 	 * FIXME: The current local APIC driver limits usable
@@ -99,5 +99,5 @@
 	if (i > 7)
 		return false;
-	
+
 	return ((struct madt_l_apic *)
 	    madt_entries_index[madt_l_apic_entry_index + i])->flags & 0x1;
@@ -107,5 +107,5 @@
 {
 	assert(i < madt_l_apic_entry_cnt);
-	
+
 	return ((struct madt_l_apic *)
 	    madt_entries_index[madt_l_apic_entry_index + i])->apic_id ==
@@ -117,5 +117,5 @@
 	if (irq >= sizeof(isa_irq_map) / sizeof(int))
 		return (int) irq;
-	
+
 	return isa_irq_map[irq];
 }
@@ -135,11 +135,11 @@
 	uint8_t typea = (*((struct madt_apic_header **) a))->type;
 	uint8_t typeb = (*((struct madt_apic_header **) b))->type;
-	
+
 	if (typea > typeb)
 		return 1;
-	
+
 	if (typea < typeb)
 		return -1;
-	
+
 	return 0;
 }
@@ -149,12 +149,12 @@
 	if (madt_l_apic_entry_cnt == 0)
 		madt_l_apic_entry_index = i;
-	
+
 	madt_l_apic_entry_cnt++;
-	
+
 	if (!(la->flags & 0x1)) {
 		/* Processor is unusable, skip it. */
 		return;
 	}
-	
+
 	apic_id_mask |= 1 << la->apic_id;
 }
@@ -169,5 +169,5 @@
 		/* Currently not supported */
 	}
-	
+
 	madt_io_apic_entry_cnt++;
 }
@@ -177,5 +177,5 @@
 {
 	assert(override->source < sizeof(isa_irq_map) / sizeof(int));
-	
+
 	isa_irq_map[override->source] = override->global_int;
 }
@@ -186,7 +186,7 @@
 	    (((uint8_t *) acpi_madt) + acpi_madt->header.length);
 	struct madt_apic_header *hdr;
-	
+
 	l_apic = (uint32_t *) (sysarg_t) acpi_madt->l_apic_address;
-	
+
 	/* Count MADT entries */
 	unsigned int madt_entries_index_cnt = 0;
@@ -194,5 +194,5 @@
 	    hdr = (struct madt_apic_header *) (((uint8_t *) hdr) + hdr->length))
 		madt_entries_index_cnt++;
-	
+
 	/* Create MADT APIC entries index array */
 	madt_entries_index = (struct madt_apic_header **)
@@ -201,7 +201,7 @@
 	if (!madt_entries_index)
 		panic("Memory allocation error.");
-	
+
 	size_t i = 0;
-	
+
 	for (hdr = acpi_madt->apic_header; hdr < end;
 	    hdr = (struct madt_apic_header *) (((uint8_t *) hdr) + hdr->length)) {
@@ -209,14 +209,14 @@
 		i++;
 	}
-	
+
 	/* Sort MADT index structure */
 	if (!gsort(madt_entries_index, madt_entries_index_cnt,
 	    sizeof(struct madt_apic_header *), madt_cmp, NULL))
 		panic("Sorting error.");
-	
+
 	/* Parse MADT entries */
 	for (i = 0; i < madt_entries_index_cnt; i++) {
 		hdr = madt_entries_index[i];
-		
+
 		switch (hdr->type) {
 		case MADT_L_APIC:
@@ -245,14 +245,14 @@
 				    "MADT: Skipping reserved entry (type=%" PRIu8 ")",
 				    hdr->type);
-				
+
 			if (hdr->type >= MADT_RESERVED_OEM_BEGIN)
 				log(LF_ARCH, LVL_NOTE,
 				    "MADT: Skipping OEM entry (type=%" PRIu8 ")",
 				    hdr->type);
-			
+
 			break;
 		}
 	}
-	
+
 	if (madt_l_apic_entry_cnt > 0)
 		config.cpu_count = madt_l_apic_entry_cnt;
Index: kernel/genarch/src/ddi/ddi-bitmap.c
===================================================================
--- kernel/genarch/src/ddi/ddi-bitmap.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/ddi/ddi-bitmap.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,20 +62,20 @@
 	if (elements > IO_PORTS)
 		return ENOENT;
-	
+
 	if (task->arch.iomap.elements < elements) {
 		/*
 		 * The I/O permission bitmap is too small and needs to be grown.
 		 */
-		
+
 		void *store = malloc(bitmap_size(elements), FRAME_ATOMIC);
 		if (!store)
 			return ENOMEM;
-		
+
 		bitmap_t oldiomap;
 		bitmap_initialize(&oldiomap, task->arch.iomap.elements,
 		    task->arch.iomap.bits);
-		
+
 		bitmap_initialize(&task->arch.iomap, elements, store);
-		
+
 		/*
 		 * Mark the new range inaccessible.
@@ -83,5 +83,5 @@
 		bitmap_set_range(&task->arch.iomap, oldiomap.elements,
 		    elements - oldiomap.elements);
-		
+
 		/*
 		 * In case there really existed smaller iomap,
@@ -91,19 +91,19 @@
 			bitmap_copy(&task->arch.iomap, &oldiomap,
 			    oldiomap.elements);
-			
+
 			free(oldiomap.bits);
 		}
 	}
-	
+
 	/*
 	 * Enable the range and we are done.
 	 */
 	bitmap_clear_range(&task->arch.iomap, (size_t) ioaddr, size);
-	
+
 	/*
 	 * Increment I/O Permission bitmap generation counter.
 	 */
 	task->arch.iomapver++;
-	
+
 	return EOK;
 }
@@ -125,5 +125,5 @@
 	if (elements > IO_PORTS)
 		return ENOENT;
-	
+
 	if (ioaddr >= task->arch.iomap.elements)
 		return EINVAL;
@@ -136,10 +136,10 @@
 	 */
 	bitmap_set_range(&task->arch.iomap, (size_t) ioaddr, size);
-	
+
 	/*
 	 * Increment I/O Permission bitmap generation counter.
 	 */
 	task->arch.iomapver++;
-	
+
 	return 0;
 }
Index: kernel/genarch/src/drivers/dsrln/dsrlnin.c
===================================================================
--- kernel/genarch/src/drivers/dsrln/dsrlnin.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/drivers/dsrln/dsrlnin.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,5 +50,5 @@
 	dsrlnin_instance_t *instance = irq->instance;
 	dsrlnin_t *dev = instance->dsrlnin;
-	
+
 	indev_push_character(instance->srlnin, pio_read_8(&dev->data));
 }
@@ -61,5 +61,5 @@
 		instance->dsrlnin = dev;
 		instance->srlnin = NULL;
-		
+
 		irq_initialize(&instance->irq);
 		instance->irq.inr = inr;
@@ -68,5 +68,5 @@
 		instance->irq.instance = instance;
 	}
-	
+
 	return instance;
 }
@@ -76,5 +76,5 @@
 	assert(instance);
 	assert(srlnin);
-	
+
 	instance->srlnin = srlnin;
 	irq_register(&instance->irq);
Index: kernel/genarch/src/drivers/dsrln/dsrlnout.c
===================================================================
--- kernel/genarch/src/drivers/dsrln/dsrlnout.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/drivers/dsrln/dsrlnout.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,5 +52,5 @@
 {
 	dsrlnout_instance_t *instance = (dsrlnout_instance_t *) dev->data;
-	
+
 	if ((!instance->parea.mapped) || (console_override)) {
 		if (ascii_check(ch))
@@ -73,5 +73,5 @@
 	if (!dsrlndev)
 		return NULL;
-	
+
 	dsrlnout_instance_t *instance = malloc(sizeof(dsrlnout_instance_t),
 	    FRAME_ATOMIC);
@@ -80,8 +80,8 @@
 		return NULL;
 	}
-	
+
 	outdev_initialize("dsrlndev", dsrlndev, &dsrlndev_ops);
 	dsrlndev->data = instance;
-	
+
 	instance->base = base;
 	link_initialize(&instance->parea.link);
@@ -91,5 +91,5 @@
 	instance->parea.mapped = false;
 	ddi_parea_register(&instance->parea);
-	
+
 	if (!fb_exported) {
 		/*
@@ -101,8 +101,8 @@
 		sysinfo_set_item_val("fb.kind", NULL, 3);
 		sysinfo_set_item_val("fb.address.physical", NULL, KA2PA(base));
-		
+
 		fb_exported = true;
 	}
-	
+
 	return dsrlndev;
 }
Index: kernel/genarch/src/drivers/ega/ega.c
===================================================================
--- kernel/genarch/src/drivers/ega/ega.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/drivers/ega/ega.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,7 +63,7 @@
 typedef struct {
 	IRQ_SPINLOCK_DECLARE(lock);
-	
+
 	parea_t parea;
-	
+
 	uint32_t cursor;
 	uint8_t *addr;
@@ -86,353 +86,353 @@
 	if ((ch >= 0x0000) && (ch <= 0x007f))
 		return ch;
-	
+
 	if (ch == 0x00a0)
 		return 255;
-	
+
 	if (ch == 0x00a1)
 		return 173;
-	
+
 	if ((ch >= 0x00a2) && (ch <= 0x00a3))
 		return (ch - 7);
-	
+
 	if (ch == 0x00a5)
 		return 157;
-	
+
 	if (ch == 0x00aa)
 		return 166;
-	
+
 	if (ch == 0x00ab)
 		return 174;
-	
+
 	if (ch == 0x00ac)
 		return 170;
-	
+
 	if (ch == 0x00b0)
 		return 248;
-	
+
 	if (ch == 0x00b1)
 		return 241;
-	
+
 	if (ch == 0x00b2)
 		return 253;
-	
+
 	if (ch == 0x00b5)
 		return 230;
-	
+
 	if (ch == 0x00b7)
 		return 250;
-	
+
 	if (ch == 0x00ba)
 		return 167;
-	
+
 	if (ch == 0x00bb)
 		return 175;
-	
+
 	if (ch == 0x00bc)
 		return 172;
-	
+
 	if (ch == 0x00bd)
 		return 171;
-	
+
 	if (ch == 0x00bf)
 		return 168;
-	
+
 	if ((ch >= 0x00c4) && (ch <= 0x00c5))
 		return (ch - 54);
-	
+
 	if (ch == 0x00c6)
 		return 146;
-	
+
 	if (ch == 0x00c7)
 		return 128;
-	
+
 	if (ch == 0x00c9)
 		return 144;
-	
+
 	if (ch == 0x00d1)
 		return 165;
-	
+
 	if (ch == 0x00d6)
 		return 153;
-	
+
 	if (ch == 0x00dc)
 		return 154;
-	
+
 	if (ch == 0x00df)
 		return 225;
-	
+
 	if (ch == 0x00e0)
 		return 133;
-	
+
 	if (ch == 0x00e1)
 		return 160;
-	
+
 	if (ch == 0x00e2)
 		return 131;
-	
+
 	if (ch == 0x00e4)
 		return 132;
-	
+
 	if (ch == 0x00e5)
 		return 134;
-	
+
 	if (ch == 0x00e6)
 		return 145;
-	
+
 	if (ch == 0x00e7)
 		return 135;
-	
+
 	if (ch == 0x00e8)
 		return 138;
-	
+
 	if (ch == 0x00e9)
 		return 130;
-	
+
 	if ((ch >= 0x00ea) && (ch <= 0x00eb))
 		return (ch - 98);
-	
+
 	if (ch == 0x00ec)
 		return 141;
-	
+
 	if (ch == 0x00ed)
 		return 161;
-	
+
 	if (ch == 0x00ee)
 		return 140;
-	
+
 	if (ch == 0x00ef)
 		return 139;
-	
+
 	if (ch == 0x00f1)
 		return 164;
-	
+
 	if (ch == 0x00f2)
 		return 149;
-	
+
 	if (ch == 0x00f3)
 		return 162;
-	
+
 	if (ch == 0x00f4)
 		return 147;
-	
+
 	if (ch == 0x00f6)
 		return 148;
-	
+
 	if (ch == 0x00f7)
 		return 246;
-	
+
 	if (ch == 0x00f9)
 		return 151;
-	
+
 	if (ch == 0x00fa)
 		return 163;
-	
+
 	if (ch == 0x00fb)
 		return 150;
-	
+
 	if (ch == 0x00fc)
 		return 129;
-	
+
 	if (ch == 0x00ff)
 		return 152;
-	
+
 	if (ch == 0x0192)
 		return 159;
-	
+
 	if (ch == 0x0393)
 		return 226;
-	
+
 	if (ch == 0x0398)
 		return 233;
-	
+
 	if (ch == 0x03a3)
 		return 228;
-	
+
 	if (ch == 0x03a6)
 		return 232;
-	
+
 	if (ch == 0x03a9)
 		return 234;
-	
+
 	if (ch == 0x03b1)
 		return 224;
-	
+
 	if (ch == 0x03b4)
 		return 235;
-	
+
 	if (ch == 0x03b5)
 		return 238;
-	
+
 	if (ch == 0x03c0)
 		return 227;
-	
+
 	if (ch == 0x03c3)
 		return 229;
-	
+
 	if (ch == 0x03c4)
 		return 231;
-	
+
 	if (ch == 0x03c6)
 		return 237;
-	
+
 	if (ch == 0x207f)
 		return 252;
-	
+
 	if (ch == 0x20a7)
 		return 158;
-	
+
 	if (ch == 0x2219)
 		return 249;
-	
+
 	if (ch == 0x221a)
 		return 251;
-	
+
 	if (ch == 0x221e)
 		return 236;
-	
+
 	if (ch == 0x2229)
 		return 239;
-	
+
 	if (ch == 0x2248)
 		return 247;
-	
+
 	if (ch == 0x2261)
 		return 240;
-	
+
 	if (ch == 0x2264)
 		return 243;
-	
+
 	if (ch == 0x2265)
 		return 242;
-	
+
 	if (ch == 0x2310)
 		return 169;
-	
+
 	if ((ch >= 0x2320) && (ch <= 0x2321))
 		return (ch - 8748);
-	
+
 	if (ch == 0x2500)
 		return 196;
-	
+
 	if (ch == 0x2502)
 		return 179;
-	
+
 	if (ch == 0x250c)
 		return 218;
-	
+
 	if (ch == 0x2510)
 		return 191;
-	
+
 	if (ch == 0x2514)
 		return 192;
-	
+
 	if (ch == 0x2518)
 		return 217;
-	
+
 	if (ch == 0x251c)
 		return 195;
-	
+
 	if (ch == 0x2524)
 		return 180;
-	
+
 	if (ch == 0x252c)
 		return 194;
-	
+
 	if (ch == 0x2534)
 		return 193;
-	
+
 	if (ch == 0x253c)
 		return 197;
-	
+
 	if (ch == 0x2550)
 		return 205;
-	
+
 	if (ch == 0x2551)
 		return 186;
-	
+
 	if ((ch >= 0x2552) && (ch <= 0x2553))
 		return (ch - 9341);
-	
+
 	if (ch == 0x2554)
 		return 201;
-	
+
 	if (ch == 0x2555)
 		return 184;
-	
+
 	if (ch == 0x2556)
 		return 183;
-	
+
 	if (ch == 0x2557)
 		return 187;
-	
+
 	if (ch == 0x2558)
 		return 212;
-	
+
 	if (ch == 0x2559)
 		return 211;
-	
+
 	if (ch == 0x255a)
 		return 200;
-	
+
 	if (ch == 0x255b)
 		return 190;
-	
+
 	if (ch == 0x255c)
 		return 189;
-	
+
 	if (ch == 0x255d)
 		return 188;
-	
+
 	if ((ch >= 0x255e) && (ch <= 0x255f))
 		return (ch - 9368);
-	
+
 	if (ch == 0x2560)
 		return 204;
-	
+
 	if ((ch >= 0x2561) && (ch <= 0x2562))
 		return (ch - 9388);
-	
+
 	if (ch == 0x2563)
 		return 185;
-	
+
 	if ((ch >= 0x2564) && (ch <= 0x2565))
 		return (ch - 9363);
-	
+
 	if (ch == 0x2566)
 		return 203;
-	
+
 	if ((ch >= 0x2567) && (ch <= 0x2568))
 		return (ch - 9368);
-	
+
 	if (ch == 0x2569)
 		return 202;
-	
+
 	if (ch == 0x256a)
 		return 216;
-	
+
 	if (ch == 0x256b)
 		return 215;
-	
+
 	if (ch == 0x256c)
 		return 206;
-	
+
 	if (ch == 0x2580)
 		return 223;
-	
+
 	if (ch == 0x2584)
 		return 220;
-	
+
 	if (ch == 0x2588)
 		return 219;
-	
+
 	if (ch == 0x258c)
 		return 221;
-	
+
 	if (ch == 0x2590)
 		return 222;
-	
+
 	if ((ch >= 0x2591) && (ch <= 0x2593))
 		return (ch - 9441);
-	
+
 	return 256;
 }
@@ -445,5 +445,5 @@
 	if (instance->cursor < EGA_SCREEN)
 		return;
-	
+
 	memmove((void *) instance->backbuf,
 	    (void *) (instance->backbuf + EGA_COLS * 2),
@@ -451,5 +451,5 @@
 	memsetw(instance->backbuf + (EGA_SCREEN - EGA_COLS) * 2,
 	    EGA_COLS, EMPTY_CHAR);
-	
+
 	if ((!instance->parea.mapped) || (console_override)) {
 		memmove((void *) instance->addr,
@@ -459,5 +459,5 @@
 		    EGA_COLS, EMPTY_CHAR);
 	}
-	
+
 	instance->cursor = instance->cursor - EGA_COLS;
 }
@@ -492,23 +492,23 @@
 		pio_write_8(instance->base + EGA_INDEX_REG, 0x0f);
 		uint8_t lo = pio_read_8(instance->base + EGA_DATA_REG);
-		
+
 		instance->cursor = (hi << 8) | lo;
 	} else
 		instance->cursor = 0;
-	
+
 	if (instance->cursor >= EGA_SCREEN)
 		instance->cursor = 0;
-	
+
 	if ((instance->cursor % EGA_COLS) != 0)
 		instance->cursor =
 		    (instance->cursor + EGA_COLS) - instance->cursor % EGA_COLS;
-	
+
 	memsetw(instance->backbuf + instance->cursor * 2,
 	    EGA_SCREEN - instance->cursor, EMPTY_CHAR);
-	
+
 	if ((!instance->parea.mapped) || (console_override))
 		memsetw(instance->addr + instance->cursor * 2,
 		    EGA_SCREEN - instance->cursor, EMPTY_CHAR);
-	
+
 	ega_check_cursor(instance);
 	ega_move_cursor(instance);
@@ -521,5 +521,5 @@
 	uint8_t glyph;
 	uint8_t style;
-	
+
 	if ((index >> 8)) {
 		glyph = U_SPECIAL;
@@ -529,8 +529,8 @@
 		style = STYLE;
 	}
-	
+
 	instance->backbuf[instance->cursor * 2] = glyph;
 	instance->backbuf[instance->cursor * 2 + 1] = style;
-	
+
 	if ((!instance->parea.mapped) || (console_override)) {
 		instance->addr[instance->cursor * 2] = glyph;
@@ -542,7 +542,7 @@
 {
 	ega_instance_t *instance = (ega_instance_t *) dev->data;
-	
+
 	irq_spinlock_lock(&instance->lock, true);
-	
+
 	switch (ch) {
 	case '\n':
@@ -565,5 +565,5 @@
 	ega_check_cursor(instance);
 	ega_move_cursor(instance);
-	
+
 	irq_spinlock_unlock(&instance->lock, true);
 }
@@ -572,11 +572,11 @@
 {
 	ega_instance_t *instance = (ega_instance_t *) dev->data;
-	
+
 	irq_spinlock_lock(&instance->lock, true);
-	
+
 	memcpy(instance->addr, instance->backbuf, EGA_VRAM_SIZE);
 	ega_move_cursor(instance);
 	ega_show_cursor(instance);
-	
+
 	irq_spinlock_unlock(&instance->lock, true);
 }
@@ -587,5 +587,5 @@
 	if (!egadev)
 		return NULL;
-	
+
 	ega_instance_t *instance = malloc(sizeof(ega_instance_t), FRAME_ATOMIC);
 	if (!instance) {
@@ -593,10 +593,10 @@
 		return NULL;
 	}
-	
+
 	outdev_initialize("egadev", egadev, &egadev_ops);
 	egadev->data = instance;
-	
+
 	irq_spinlock_initialize(&instance->lock, "*ega.instance.lock");
-	
+
 	instance->base = base;
 	instance->addr = (uint8_t *) km_map(addr, EGA_VRAM_SIZE,
@@ -608,5 +608,5 @@
 		return NULL;
 	}
-	
+
 	instance->backbuf = (uint8_t *) malloc(EGA_VRAM_SIZE, 0);
 	if (!instance->backbuf) {
@@ -616,5 +616,5 @@
 		return NULL;
 	}
-	
+
 	link_initialize(&instance->parea.link);
 	instance->parea.pbase = addr;
@@ -623,9 +623,9 @@
 	instance->parea.mapped = false;
 	ddi_parea_register(&instance->parea);
-	
+
 	/* Synchronize the back buffer and cursor position. */
 	memcpy(instance->backbuf, instance->addr, EGA_VRAM_SIZE);
 	ega_sync_cursor(instance);
-	
+
 	if (!fb_exported) {
 		/*
@@ -640,8 +640,8 @@
 		sysinfo_set_item_val("fb.blinking", NULL, true);
 		sysinfo_set_item_val("fb.address.physical", NULL, addr);
-		
+
 		fb_exported = true;
 	}
-	
+
 	return egadev;
 }
Index: kernel/genarch/src/drivers/i8042/i8042.c
===================================================================
--- kernel/genarch/src/drivers/i8042/i8042.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/drivers/i8042/i8042.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 	i8042_instance_t *i8042_instance = irq->instance;
 	i8042_t *dev = i8042_instance->i8042;
-	
+
 	if (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK)
 		return IRQ_ACCEPT;
@@ -70,5 +70,5 @@
 	i8042_instance_t *instance = irq->instance;
 	i8042_t *dev = instance->i8042;
-	
+
 	if (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK) {
 		uint8_t data = pio_read_8(&dev->data);
@@ -83,5 +83,5 @@
 		if ((pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK) == 0)
 			break;
-		
+
 		(void) pio_read_8(&dev->data);
 		delay(50);  /* 50 us think time */
@@ -94,8 +94,8 @@
 		if ((pio_read_8(&dev->status) & i8042_WAIT_MASK) == 0)
 			break;
-		
+
 		delay(50);  /* 50 us think time */
 	}
-	
+
 	pio_write_8(&dev->status, cmd);
 	delay(10000);  /* 10 ms think time */
@@ -110,5 +110,5 @@
 		instance->i8042 = dev;
 		instance->kbrdin = NULL;
-		
+
 		irq_initialize(&instance->irq);
 		instance->irq.inr = inr;
@@ -117,5 +117,5 @@
 		instance->irq.instance = instance;
 	}
-	
+
 	return instance;
 }
@@ -125,7 +125,7 @@
 	assert(instance);
 	assert(kbrdin);
-	
+
 	i8042_clear_buffer(instance->i8042);
-	
+
 	instance->kbrdin = kbrdin;
 	irq_register(&instance->irq);
Index: kernel/genarch/src/drivers/ns16550/ns16550.c
===================================================================
--- kernel/genarch/src/drivers/ns16550/ns16550.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/drivers/ns16550/ns16550.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,5 +71,5 @@
 {
 	ns16550_instance_t *instance = irq->instance;
-	
+
 	while (ns16550_reg_read(instance, NS16550_REG_LSR) & LSR_DATA_READY) {
 		uint8_t data = ns16550_reg_read(instance, NS16550_REG_RBR);
@@ -95,5 +95,5 @@
 {
 	ns16550_instance_t *instance = (ns16550_instance_t *) dev->data;
-	
+
 	if ((!instance->parea.mapped) || (console_override)) {
 		if (ascii_check(ch))
@@ -135,5 +135,5 @@
 		instance->input = NULL;
 		instance->output = NULL;
-		
+
 		if (output) {
 			instance->output = malloc(sizeof(outdev_t),
@@ -143,5 +143,5 @@
 				return NULL;
 			}
-			
+
 			outdev_initialize("ns16550", instance->output,
 			    &ns16550_ops);
@@ -149,5 +149,5 @@
 			*output = instance->output;
 		}
-		
+
 		irq_initialize(&instance->irq);
 		instance->irq.inr = inr;
@@ -157,5 +157,5 @@
 		instance->irq.cir = cir;
 		instance->irq.cir_arg = cir_arg;
-		
+
 		instance->parea.pbase = (uintptr_t) dev;
 		instance->parea.frames = 1;
@@ -164,5 +164,5 @@
 		ddi_parea_register(&instance->parea);
 	}
-	
+
 	return instance;
 }
@@ -172,10 +172,10 @@
 	assert(instance);
 	assert(input);
-	
+
 	instance->input = input;
 	irq_register(&instance->irq);
-	
+
 	ns16550_clear_buffer(instance);
-	
+
 	/* Enable interrupts */
 	ns16550_reg_write(instance, NS16550_REG_IER, IER_ERBFI);
Index: kernel/genarch/src/drivers/pl050/pl050.c
===================================================================
--- kernel/genarch/src/drivers/pl050/pl050.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/drivers/pl050/pl050.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,5 +64,5 @@
 	uint8_t status;
 	pl050_instance_t *instance = irq->instance;
-	
+
 	while ((status = pio_read_8(pl050->status)) & PL050_STAT_RXFULL) {
 		data = pio_read_8(pl050->data);
@@ -98,5 +98,5 @@
 {
 	uint8_t val;
-	
+
 	instance->kbrdin = kbrdin;
 	irq_register(&instance->irq);
@@ -108,5 +108,5 @@
 	/* reset the data buffer */
 	pio_read_8(pl050->data);
-	
+
 }
 
Index: kernel/genarch/src/drivers/s3c24xx/uart.c
===================================================================
--- kernel/genarch/src/drivers/s3c24xx/uart.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/drivers/s3c24xx/uart.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 	s3c24xx_uart_t *uart =
 	    (s3c24xx_uart_t *) dev->data;
-	
+
 	if ((!uart->parea.mapped) || (console_override)) {
 		if (!ascii_check(ch)) {
@@ -134,5 +134,5 @@
 	pio_write_32(&uart->io->ucon,
 	    pio_read_32(&uart->io->ucon) & ~UCON_RX_INT_LEVEL);
-	
+
 	link_initialize(&uart->parea.link);
 	uart->parea.pbase = paddr;
@@ -141,5 +141,5 @@
 	uart->parea.mapped = false;
 	ddi_parea_register(&uart->parea);
-	
+
 	if (!fb_exported) {
 		/*
Index: kernel/genarch/src/drivers/via-cuda/cuda.c
===================================================================
--- kernel/genarch/src/drivers/via-cuda/cuda.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/drivers/via-cuda/cuda.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -113,5 +113,5 @@
 		instance->irq.preack = true;
 	}
-	
+
 	return instance;
 }
@@ -239,8 +239,8 @@
 	cuda_t *dev = instance->cuda;
 	uint8_t b;
-	
+
 	b = pio_read_8(&dev->b);
 	pio_read_8(&dev->sr);
-	
+
 	if ((b & TREQ) == 0) {
 		instance->xstate = cx_receive;
@@ -250,5 +250,5 @@
 		cuda_send_start(instance);
 	}
-	
+
 	memcpy(buf, instance->rcv_buf, instance->bidx);
 	*len = instance->bidx;
Index: kernel/genarch/src/fb/bfb.c
===================================================================
--- kernel/genarch/src/fb/bfb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/fb/bfb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,5 +61,5 @@
 	    (bfb_bpp == 0) || (bfb_scanline == 0))
 		return false;
-	
+
 	fb_properties_t bfb_props = {
 		.addr = bfb_addr,
@@ -69,5 +69,5 @@
 		.scan = bfb_scanline
 	};
-	
+
 	switch (bfb_bpp) {
 	case 8:
@@ -92,9 +92,9 @@
 		return false;
 	}
-	
+
 	outdev_t *fbdev = fb_init(&bfb_props);
 	if (!fbdev)
 		return false;
-	
+
 	stdout_wire(fbdev);
 	return true;
Index: kernel/genarch/src/fb/fb.c
===================================================================
--- kernel/genarch/src/fb/fb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/fb/fb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -84,38 +84,38 @@
 typedef struct {
 	SPINLOCK_DECLARE(lock);
-	
+
 	parea_t parea;
-	
+
 	uint8_t *addr;
 	uint16_t *backbuf;
 	uint8_t *glyphs;
 	uint8_t *bgscan;
-	
+
 	rgb_conv_t rgb_conv;
-	
+
 	unsigned int xres;
 	unsigned int yres;
-	
+
 	/** Number of rows that fit on framebuffer */
 	unsigned int rowtrim;
-	
+
 	unsigned int scanline;
 	unsigned int glyphscanline;
-	
+
 	unsigned int pixelbytes;
 	unsigned int glyphbytes;
 	unsigned int bgscanbytes;
-	
+
 	/** Number of columns in the backbuffer */
 	unsigned int cols;
 	/** Number of rows in the backbuffer */
 	unsigned int rows;
-	
+
 	/** Starting row in the cyclic backbuffer */
 	unsigned int start_row;
-	
+
 	/** Top-most visible row (relative to start_row) */
 	unsigned int offset_row;
-	
+
 	/** Current backbuffer position */
 	unsigned int position;
@@ -236,20 +236,20 @@
 	if (!overlay)
 		instance->backbuf[BB_POS(instance, col, row)] = glyph;
-	
+
 	/* Do not output if the framebuffer is used by user space */
 	if ((instance->parea.mapped) && (!console_override))
 		return;
-	
+
 	/* Check whether the glyph should be visible */
 	if (row < instance->offset_row)
 		return;
-	
+
 	unsigned int rel_row = row - instance->offset_row;
 	if (rel_row >= instance->rowtrim)
 		return;
-	
+
 	unsigned int x = COL2X(col);
 	unsigned int y = ROW2Y(rel_row);
-	
+
 	for (unsigned int yd = 0; yd < FONT_SCANLINES; yd++)
 		memcpy(&instance->addr[FB_POS(instance, x, y + yd)],
@@ -267,22 +267,22 @@
 			unsigned int y = ROW2Y(rel_row);
 			unsigned int row = rel_row + instance->offset_row;
-			
+
 			for (unsigned int yd = 0; yd < FONT_SCANLINES; yd++) {
 				unsigned int x;
 				unsigned int col;
-				
+
 				for (col = 0, x = 0; col < instance->cols;
 				    col++, x += FONT_WIDTH) {
 					uint16_t glyph;
-					
+
 					if (row < instance->rows - 1) {
 						if (instance->backbuf[BB_POS(instance, col, row)] ==
 						    instance->backbuf[BB_POS(instance, col, row + 1)])
 							continue;
-						
+
 						glyph = instance->backbuf[BB_POS(instance, col, row + 1)];
 					} else
 						glyph = 0;
-					
+
 					memcpy(&instance->addr[FB_POS(instance, x, y + yd)],
 					    &instance->glyphs[GLYPH_POS(instance, glyph, yd)],
@@ -292,14 +292,14 @@
 		}
 	}
-	
+
 	/*
 	 * Implement backbuffer scrolling by wrapping around
 	 * the cyclic buffer.
 	 */
-	
+
 	instance->start_row++;
 	if (instance->start_row == instance->rows)
 		instance->start_row = 0;
-	
+
 	memsetw(&instance->backbuf[BB_POS(instance, 0, instance->rows - 1)],
 	    instance->cols, 0);
@@ -310,5 +310,5 @@
 	unsigned int col = instance->position % instance->cols;
 	unsigned int row = instance->position / instance->cols;
-	
+
 	glyph_draw(instance, fb_font_glyph(U_CURSOR), col, row, true);
 }
@@ -318,5 +318,5 @@
 	unsigned int col = instance->position % instance->cols;
 	unsigned int row = instance->position / instance->cols;
-	
+
 	glyph_draw(instance, instance->backbuf[BB_POS(instance, col, row)],
 	    col, row, true);
@@ -333,18 +333,18 @@
 	/* Prerender glyphs */
 	uint16_t glyph;
-	
+
 	for (glyph = 0; glyph < FONT_GLYPHS; glyph++) {
 		uint32_t fg_color;
-		
+
 		if (glyph == FONT_GLYPHS - 1)
 			fg_color = INV_COLOR;
 		else
 			fg_color = FG_COLOR;
-		
+
 		unsigned int y;
-		
+
 		for (y = 0; y < FONT_SCANLINES; y++) {
 			unsigned int x;
-			
+
 			for (x = 0; x < FONT_WIDTH; x++) {
 				void *dst =
@@ -357,8 +357,8 @@
 		}
 	}
-	
+
 	/* Prerender background scanline */
 	unsigned int x;
-	
+
 	for (x = 0; x < instance->xres; x++)
 		instance->rgb_conv(&instance->bgscan[x * instance->pixelbytes], BG_COLOR);
@@ -370,9 +370,9 @@
 		unsigned int y = ROW2Y(rel_row);
 		unsigned int row = rel_row + instance->offset_row;
-		
+
 		for (unsigned int yd = 0; yd < FONT_SCANLINES; yd++) {
 			unsigned int x;
 			unsigned int col;
-			
+
 			for (col = 0, x = 0; col < instance->cols;
 			    col++, x += FONT_WIDTH) {
@@ -385,18 +385,18 @@
 		}
 	}
-	
+
 	if (COL2X(instance->cols) < instance->xres) {
 		unsigned int y;
 		unsigned int size =
 		    (instance->xres - COL2X(instance->cols)) * instance->pixelbytes;
-		
+
 		for (y = 0; y < instance->yres; y++)
 			memcpy(&instance->addr[FB_POS(instance, COL2X(instance->cols), y)],
 			    instance->bgscan, size);
 	}
-	
+
 	if (ROW2Y(instance->rowtrim) < instance->yres) {
 		unsigned int y;
-		
+
 		for (y = ROW2Y(instance->rowtrim); y < instance->yres; y++)
 			memcpy(&instance->addr[FB_POS(instance, 0, y)],
@@ -414,5 +414,5 @@
 	fb_instance_t *instance = (fb_instance_t *) dev->data;
 	spinlock_lock(&instance->lock);
-	
+
 	switch (ch) {
 	case '\n':
@@ -446,12 +446,12 @@
 		instance->position++;
 	}
-	
+
 	if (instance->position >= instance->cols * instance->rows) {
 		instance->position -= instance->cols;
 		screen_scroll(instance);
 	}
-	
+
 	cursor_put(instance);
-	
+
 	spinlock_unlock(&instance->lock);
 }
@@ -464,13 +464,13 @@
 	fb_instance_t *instance = (fb_instance_t *) dev->data;
 	spinlock_lock(&instance->lock);
-	
+
 	if (instance->offset_row >= instance->rowtrim / 2)
 		instance->offset_row -= instance->rowtrim / 2;
 	else
 		instance->offset_row = 0;
-	
+
 	fb_redraw_internal(instance);
 	cursor_put(instance);
-	
+
 	spinlock_unlock(&instance->lock);
 }
@@ -483,5 +483,5 @@
 	fb_instance_t *instance = (fb_instance_t *) dev->data;
 	spinlock_lock(&instance->lock);
-	
+
 	if (instance->offset_row + instance->rowtrim / 2 <=
 	    instance->rows - instance->rowtrim)
@@ -489,8 +489,8 @@
 	else
 		instance->offset_row = instance->rows - instance->rowtrim;
-	
+
 	fb_redraw_internal(instance);
 	cursor_put(instance);
-	
+
 	spinlock_unlock(&instance->lock);
 }
@@ -502,5 +502,5 @@
 {
 	fb_instance_t *instance = (fb_instance_t *) dev->data;
-	
+
 	spinlock_lock(&instance->lock);
 	fb_redraw_internal(instance);
@@ -517,8 +517,8 @@
 	assert(props->y > 0);
 	assert(props->scan > 0);
-	
+
 	rgb_conv_t rgb_conv;
 	unsigned int pixelbytes;
-	
+
 	switch (props->visual) {
 	case VISUAL_INDIRECT_8:
@@ -570,9 +570,9 @@
 		return NULL;
 	}
-	
+
 	outdev_t *fbdev = malloc(sizeof(outdev_t), FRAME_ATOMIC);
 	if (!fbdev)
 		return NULL;
-	
+
 	fb_instance_t *instance = malloc(sizeof(fb_instance_t), FRAME_ATOMIC);
 	if (!instance) {
@@ -580,10 +580,10 @@
 		return NULL;
 	}
-	
+
 	outdev_initialize("fbdev", fbdev, &fbdev_ops);
 	fbdev->data = instance;
-	
+
 	spinlock_initialize(&instance->lock, "*fb.instance.lock");
-	
+
 	instance->rgb_conv = rgb_conv;
 	instance->pixelbytes = pixelbytes;
@@ -591,22 +591,22 @@
 	instance->yres = props->y;
 	instance->scanline = props->scan;
-	
+
 	instance->rowtrim = Y2ROW(instance->yres);
-	
+
 	instance->cols = X2COL(instance->xres);
 	instance->rows = FB_PAGES * instance->rowtrim;
-	
+
 	instance->start_row = instance->rows - instance->rowtrim;
 	instance->offset_row = instance->start_row;
 	instance->position = instance->start_row * instance->cols;
-	
+
 	instance->glyphscanline = FONT_WIDTH * instance->pixelbytes;
 	instance->glyphbytes = ROW2Y(instance->glyphscanline);
 	instance->bgscanbytes = instance->xres * instance->pixelbytes;
-	
+
 	size_t fbsize = instance->scanline * instance->yres;
 	size_t bbsize = instance->cols * instance->rows * sizeof(uint16_t);
 	size_t glyphsize = FONT_GLYPHS * instance->glyphbytes;
-	
+
 	instance->addr = (uint8_t *) km_map((uintptr_t) props->addr, fbsize,
 	    PAGE_WRITE | PAGE_NOT_CACHEABLE);
@@ -617,5 +617,5 @@
 		return NULL;
 	}
-	
+
 	instance->backbuf = (uint16_t *) malloc(bbsize, 0);
 	if (!instance->backbuf) {
@@ -625,5 +625,5 @@
 		return NULL;
 	}
-	
+
 	instance->glyphs = (uint8_t *) malloc(glyphsize, 0);
 	if (!instance->glyphs) {
@@ -634,5 +634,5 @@
 		return NULL;
 	}
-	
+
 	instance->bgscan = malloc(instance->bgscanbytes, 0);
 	if (!instance->bgscan) {
@@ -644,8 +644,8 @@
 		return NULL;
 	}
-	
+
 	memsetw(instance->backbuf, instance->cols * instance->rows, 0);
 	glyphs_render(instance);
-	
+
 	link_initialize(&instance->parea.link);
 	instance->parea.pbase = props->addr;
@@ -654,5 +654,5 @@
 	instance->parea.mapped = false;
 	ddi_parea_register(&instance->parea);
-	
+
 	if (!fb_exported) {
 		/*
@@ -668,8 +668,8 @@
 		sysinfo_set_item_val("fb.visual", NULL, props->visual);
 		sysinfo_set_item_val("fb.address.physical", NULL, props->addr);
-		
+
 		fb_exported = true;
 	}
-	
+
 	fb_redraw(fbdev);
 	return fbdev;
Index: kernel/genarch/src/fb/font-8x16.c
===================================================================
--- kernel/genarch/src/fb/font-8x16.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/fb/font-8x16.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,317 +47,317 @@
 	if (ch == 0x0000)
 		return 0;
-	
+
 	if ((ch >= 0x0020) && (ch <= 0x007f))
 		return (ch - 32);
-	
+
 	if ((ch >= 0x00a0) && (ch <= 0x021f))
 		return (ch - 64);
-	
+
 	if ((ch >= 0x0222) && (ch <= 0x0233))
 		return (ch - 66);
-	
+
 	if ((ch >= 0x0250) && (ch <= 0x02ad))
 		return (ch - 94);
-	
+
 	if ((ch >= 0x02b0) && (ch <= 0x02cf))
 		return (ch - 96);
-	
+
 	if ((ch >= 0x02d8) && (ch <= 0x02dd))
 		return (ch - 104);
-	
+
 	if (ch == 0x02ee)
 		return 630;
-	
+
 	if ((ch >= 0x0300) && (ch <= 0x0301))
 		return (ch - 137);
-	
+
 	if (ch == 0x0303)
 		return 633;
-	
+
 	if (ch == 0x0309)
 		return 634;
-	
+
 	if ((ch >= 0x0312) && (ch <= 0x0314))
 		return (ch - 151);
-	
+
 	if (ch == 0x0323)
 		return 638;
-	
+
 	if ((ch >= 0x0340) && (ch <= 0x0341))
 		return (ch - 193);
-	
+
 	if ((ch >= 0x0374) && (ch <= 0x0375))
 		return (ch - 243);
-	
+
 	if (ch == 0x037a)
 		return 643;
-	
+
 	if (ch == 0x037e)
 		return 644;
-	
+
 	if ((ch >= 0x0384) && (ch <= 0x038a))
 		return (ch - 255);
-	
+
 	if (ch == 0x038c)
 		return 652;
-	
+
 	if ((ch >= 0x038e) && (ch <= 0x03a1))
 		return (ch - 257);
-	
+
 	if ((ch >= 0x03a3) && (ch <= 0x03ce))
 		return (ch - 258);
-	
+
 	if ((ch >= 0x03d0) && (ch <= 0x03d7))
 		return (ch - 259);
-	
+
 	if ((ch >= 0x03da) && (ch <= 0x03f3))
 		return (ch - 261);
-	
+
 	if ((ch >= 0x0400) && (ch <= 0x0486))
 		return (ch - 273);
-	
+
 	if ((ch >= 0x0488) && (ch <= 0x04ce))
 		return (ch - 274);
-	
+
 	if ((ch >= 0x04d0) && (ch <= 0x04f5))
 		return (ch - 275);
-	
+
 	if ((ch >= 0x04f8) && (ch <= 0x04f9))
 		return (ch - 277);
-	
+
 	if ((ch >= 0x0500) && (ch <= 0x050f))
 		return (ch - 283);
-	
+
 	if ((ch >= 0x0530) && (ch <= 0x0556))
 		return (ch - 315);
-	
+
 	if ((ch >= 0x0559) && (ch <= 0x055f))
 		return (ch - 317);
-	
+
 	if ((ch >= 0x0561) && (ch <= 0x0587))
 		return (ch - 318);
-	
+
 	if ((ch >= 0x0589) && (ch <= 0x058a))
 		return (ch - 319);
-	
+
 	if ((ch >= 0x0591) && (ch <= 0x05a1))
 		return (ch - 325);
-	
+
 	if ((ch >= 0x05a3) && (ch <= 0x05b9))
 		return (ch - 326);
-	
+
 	if ((ch >= 0x05bb) && (ch <= 0x05c4))
 		return (ch - 327);
-	
+
 	if ((ch >= 0x05d0) && (ch <= 0x05ea))
 		return (ch - 338);
-	
+
 	if ((ch >= 0x05f0) && (ch <= 0x05f4))
 		return (ch - 343);
-	
+
 	if (ch == 0x060c)
 		return 1182;
-	
+
 	if (ch == 0x061b)
 		return 1183;
-	
+
 	if (ch == 0x061f)
 		return 1184;
-	
+
 	if ((ch >= 0x0621) && (ch <= 0x063a))
 		return (ch - 384);
-	
+
 	if ((ch >= 0x0640) && (ch <= 0x0655))
 		return (ch - 389);
-	
+
 	if ((ch >= 0x0660) && (ch <= 0x066d))
 		return (ch - 399);
-	
+
 	if ((ch >= 0x0670) && (ch <= 0x06ed))
 		return (ch - 401);
-	
+
 	if ((ch >= 0x06f0) && (ch <= 0x06fe))
 		return (ch - 403);
-	
+
 	if (ch == 0x10d3)
 		return 1388;
-	
+
 	if (ch == 0x10d7)
 		return 1389;
-	
+
 	if (ch == 0x10da)
 		return 1390;
-	
+
 	if (ch == 0x10dd)
 		return 1391;
-	
+
 	if (ch == 0x10e6)
 		return 1392;
-	
+
 	if ((ch >= 0x1e00) && (ch <= 0x1e9b))
 		return (ch - 6287);
-	
+
 	if ((ch >= 0x1ea0) && (ch <= 0x1ef9))
 		return (ch - 6291);
-	
+
 	if ((ch >= 0x1f00) && (ch <= 0x1f07))
 		return (ch - 6297);
-	
+
 	if ((ch >= 0x2000) && (ch <= 0x2027))
 		return (ch - 6545);
-	
+
 	if ((ch >= 0x2030) && (ch <= 0x2046))
 		return (ch - 6553);
-	
+
 	if ((ch >= 0x2048) && (ch <= 0x204d))
 		return (ch - 6554);
-	
+
 	if (ch == 0x2070)
 		return 1716;
-	
+
 	if ((ch >= 0x2074) && (ch <= 0x208f))
 		return (ch - 6591);
-	
+
 	if ((ch >= 0x20a0) && (ch <= 0x20af))
 		return (ch - 6607);
-	
+
 	if ((ch >= 0x2100) && (ch <= 0x213a))
 		return (ch - 6687);
-	
+
 	if ((ch >= 0x2153) && (ch <= 0x2183))
 		return (ch - 6711);
-	
+
 	if ((ch >= 0x2190) && (ch <= 0x21f3))
 		return (ch - 6723);
-	
+
 	if ((ch >= 0x2200) && (ch <= 0x22f1))
 		return (ch - 6735);
-	
+
 	if (ch == 0x2300)
 		return 2211;
-	
+
 	if (ch == 0x2302)
 		return 2212;
-	
+
 	if ((ch >= 0x2308) && (ch <= 0x230b))
 		return (ch - 6755);
-	
+
 	if (ch == 0x2310)
 		return 2217;
-	
+
 	if (ch == 0x2318)
 		return 2218;
-	
+
 	if ((ch >= 0x231a) && (ch <= 0x231b))
 		return (ch - 6767);
-	
+
 	if ((ch >= 0x2320) && (ch <= 0x2321))
 		return (ch - 6771);
-	
+
 	if ((ch >= 0x2329) && (ch <= 0x232a))
 		return (ch - 6778);
-	
+
 	if ((ch >= 0x239b) && (ch <= 0x23bd))
 		return (ch - 6890);
-	
+
 	if (ch == 0x23ce)
 		return 2260;
-	
+
 	if ((ch >= 0x2409) && (ch <= 0x240d))
 		return (ch - 6964);
-	
+
 	if ((ch >= 0x2423) && (ch <= 0x2424))
 		return (ch - 6985);
-	
+
 	if (ch == 0x2426)
 		return 2268;
-	
+
 	if ((ch >= 0x2500) && (ch <= 0x2595))
 		return (ch - 7203);
-	
+
 	if ((ch >= 0x25a0) && (ch <= 0x25f7))
 		return (ch - 7213);
-	
+
 	if ((ch >= 0x2600) && (ch <= 0x2602))
 		return (ch - 7221);
-	
+
 	if ((ch >= 0x2605) && (ch <= 0x260d))
 		return (ch - 7223);
-	
+
 	if ((ch >= 0x2610) && (ch <= 0x2613))
 		return (ch - 7225);
-	
+
 	if (ch == 0x2620)
 		return 2523;
-	
+
 	if (ch == 0x2622)
 		return 2524;
-	
+
 	if (ch == 0x2626)
 		return 2525;
-	
+
 	if ((ch >= 0x2628) && (ch <= 0x262b))
 		return (ch - 7242);
-	
+
 	if ((ch >= 0x262e) && (ch <= 0x2637))
 		return (ch - 7244);
-	
+
 	if ((ch >= 0x2639) && (ch <= 0x2653))
 		return (ch - 7245);
-	
+
 	if ((ch >= 0x2660) && (ch <= 0x2667))
 		return (ch - 7257);
-	
+
 	if ((ch >= 0x2669) && (ch <= 0x266f))
 		return (ch - 7258);
-	
+
 	if ((ch >= 0xfb00) && (ch <= 0xfb05))
 		return (ch - 61674);
-	
+
 	if ((ch >= 0xfb50) && (ch <= 0xfbb1))
 		return (ch - 61748);
-	
+
 	if ((ch >= 0xfbd3) && (ch <= 0xfbe9))
 		return (ch - 61781);
-	
+
 	if ((ch >= 0xfbfc) && (ch <= 0xfbff))
 		return (ch - 61799);
-	
+
 	if ((ch >= 0xfc5b) && (ch <= 0xfc63))
 		return (ch - 61890);
-	
+
 	if (ch == 0xfc90)
 		return 2722;
-	
+
 	if ((ch >= 0xfcf2) && (ch <= 0xfcf4))
 		return (ch - 62031);
-	
+
 	if ((ch >= 0xfd3c) && (ch <= 0xfd3f))
 		return (ch - 62102);
-	
+
 	if (ch == 0xfdf2)
 		return 2730;
-	
+
 	if ((ch >= 0xfe50) && (ch <= 0xfe52))
 		return (ch - 62373);
-	
+
 	if ((ch >= 0xfe54) && (ch <= 0xfe66))
 		return (ch - 62374);
-	
+
 	if ((ch >= 0xfe68) && (ch <= 0xfe6b))
 		return (ch - 62375);
-	
+
 	if ((ch >= 0xfe70) && (ch <= 0xfe72))
 		return (ch - 62379);
-	
+
 	if (ch == 0xfe74)
 		return 2760;
-	
+
 	if ((ch >= 0xfe76) && (ch <= 0xfefc))
 		return (ch - 62381);
-	
+
 	if (ch == 0xfeff)
 		return 2896;
-	
+
 	return 2898;
 }
@@ -3262,5 +3262,5 @@
 	{0xf1, 0x35, 0x55, 0x8a, 0xe0, 0x06, 0x95, 0xd6, 0xb5, 0x97, 0x00, 0xee, 0x8a, 0xee, 0x28, 0xe8},
 	{0x00, 0x38, 0x7c, 0x7c, 0xc6, 0x92, 0xf2, 0xe6, 0xfe, 0xe6, 0x7c, 0x7c, 0x38, 0x00, 0x00, 0x00},
-	
+
 	/* Special glyph for unknown character */
 	{0x00, 0x00, 0x7c, 0xc6, 0xc6, 0x0c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00}
Index: kernel/genarch/src/kbrd/kbrd.c
===================================================================
--- kernel/genarch/src/kbrd/kbrd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/kbrd/kbrd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -78,5 +78,5 @@
 {
 	spinlock_lock(&instance->keylock);
-	
+
 	switch (sc) {
 	case SC_LSHIFT:
@@ -94,5 +94,5 @@
 		break;
 	}
-	
+
 	spinlock_unlock(&instance->keylock);
 }
@@ -108,7 +108,7 @@
 	bool capslock;
 	wchar_t ch;
-	
+
 	spinlock_lock(&instance->keylock);
-	
+
 	switch (sc) {
 	case SC_LSHIFT:
@@ -126,13 +126,13 @@
 		capslock = (instance->keyflags & PRESSED_CAPSLOCK) ||
 		    (instance->lockflags & LOCKED_CAPSLOCK);
-		
+
 		if ((letter) && (capslock))
 			shift = !shift;
-		
+
 		if (shift)
 			ch = sc_secondary_map[sc];
 		else
 			ch = sc_primary_map[sc];
-		
+
 		switch (ch) {
 		case U_PAGE_UP:
@@ -145,8 +145,8 @@
 			indev_push_character(instance->sink, ch);
 		}
-		
-		break;
-	}
-	
+
+		break;
+	}
+
 	spinlock_unlock(&instance->keylock);
 }
@@ -155,11 +155,11 @@
 {
 	kbrd_instance_t *instance = (kbrd_instance_t *) arg;
-	
+
 	while (true) {
 		wchar_t sc = indev_pop_character(&instance->raw);
-		
+
 		if (sc == IGNORE_CODE)
 			continue;
-		
+
 		if (sc & KEY_RELEASE)
 			key_released(instance, (sc ^ KEY_RELEASE) & 0x7f);
@@ -176,18 +176,18 @@
 		instance->thread = thread_create(kkbrd, (void *) instance,
 		    TASK, THREAD_FLAG_NONE, "kkbrd");
-		
+
 		if (!instance->thread) {
 			free(instance);
 			return NULL;
 		}
-		
+
 		instance->sink = NULL;
 		indev_initialize("kbrd", &instance->raw, &kbrd_raw_ops);
-		
+
 		spinlock_initialize(&instance->keylock, "kbrd.instance.keylock");
 		instance->keyflags = 0;
 		instance->lockflags = 0;
 	}
-	
+
 	return instance;
 }
@@ -197,8 +197,8 @@
 	assert(instance);
 	assert(sink);
-	
+
 	instance->sink = sink;
 	thread_ready(instance->thread);
-	
+
 	return &instance->raw;
 }
Index: kernel/genarch/src/kbrd/kbrd_at.c
===================================================================
--- kernel/genarch/src/kbrd/kbrd_at.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/kbrd/kbrd_at.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,5 +71,5 @@
 {
 	spinlock_lock(&instance->keylock);
-	
+
 	switch (sc) {
 	case SC_LSHIFT:
@@ -87,5 +87,5 @@
 		break;
 	}
-	
+
 	spinlock_unlock(&instance->keylock);
 }
@@ -100,7 +100,7 @@
 	bool shift;
 	bool capslock;
-	
+
 	spinlock_lock(&instance->keylock);
-	
+
 	switch (sc) {
 	case SC_LSHIFT:
@@ -118,8 +118,8 @@
 		capslock = (instance->keyflags & PRESSED_CAPSLOCK) ||
 		    (instance->lockflags & LOCKED_CAPSLOCK);
-		
+
 		if ((letter) && (capslock))
 			shift = !shift;
-		
+
 		if (shift)
 			indev_push_character(instance->sink, sc_secondary_map[sc]);
@@ -128,5 +128,5 @@
 		break;
 	}
-	
+
 	spinlock_unlock(&instance->keylock);
 }
@@ -137,5 +137,5 @@
 	static int is_locked = 0;
 	kbrd_instance_t *instance = (kbrd_instance_t *) arg;
-	
+
 	while (true) {
 		wchar_t sc = indev_pop_character(&instance->raw);
@@ -162,5 +162,5 @@
 			}
 		}
-		
+
 	}
 }
@@ -174,18 +174,18 @@
 		instance->thread = thread_create(kkbrd, (void *) instance, TASK, 0,
 		    "kkbrd");
-		
+
 		if (!instance->thread) {
 			free(instance);
 			return NULL;
 		}
-		
+
 		instance->sink = NULL;
 		indev_initialize("kbrd", &instance->raw, &kbrd_raw_ops);
-		
+
 		spinlock_initialize(&instance->keylock, "kbrd_at.instance.keylock");
 		instance->keyflags = 0;
 		instance->lockflags = 0;
 	}
-	
+
 	return instance;
 }
@@ -195,8 +195,8 @@
 	assert(instance);
 	assert(sink);
-	
+
 	instance->sink = sink;
 	thread_ready(instance->thread);
-	
+
 	return &instance->raw;
 }
Index: kernel/genarch/src/kbrd/scanc_pc.c
===================================================================
--- kernel/genarch/src/kbrd/scanc_pc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/kbrd/scanc_pc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -158,5 +158,5 @@
 	U_SPECIAL,      /* 0x45 - NumLock */
 	U_SPECIAL,      /* 0x46 - ScrollLock */
-	
+
 	U_HOME_ARROW,   /* 0x47 - Home */
 	U_UP_ARROW,     /* 0x48 - Up Arrow */
Index: kernel/genarch/src/mm/as_ht.c
===================================================================
--- kernel/genarch/src/mm/as_ht.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/mm/as_ht.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 		    NULL, NULL, SLAB_CACHE_MAGDEFERRED);
 	}
-	
+
 	return NULL;
 }
Index: kernel/genarch/src/mm/as_pt.c
===================================================================
--- kernel/genarch/src/mm/as_pt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/mm/as_pt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 	pte_t *dst_ptl0 = (pte_t *)
 	    PA2KA(frame_alloc(PTL0_FRAMES, FRAME_LOWMEM, PTL0_SIZE - 1));
-	
+
 	if (flags & FLAG_AS_KERNEL)
 		memsetb(dst_ptl0, PTL0_SIZE, 0);
@@ -82,22 +82,22 @@
 		 * Copy the kernel address space portion to new PTL0.
 		 */
-		
+
 		mutex_lock(&AS_KERNEL->lock);
-		
+
 		pte_t *src_ptl0 =
 		    (pte_t *) PA2KA((uintptr_t) AS_KERNEL->genarch.page_table);
-		
+
 		uintptr_t src = (uintptr_t)
 		    &src_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)];
 		uintptr_t dst = (uintptr_t)
 		    &dst_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)];
-		
+
 		memsetb(dst_ptl0, PTL0_SIZE, 0);
 		memcpy((void *) dst, (void *) src,
 		    PTL0_SIZE - (src - (uintptr_t) src_ptl0));
-		
+
 		mutex_unlock(&AS_KERNEL->lock);
 	}
-	
+
 	return (pte_t *) KA2PA((uintptr_t) dst_ptl0);
 }
Index: kernel/genarch/src/mm/asid.c
===================================================================
--- kernel/genarch/src/mm/asid.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/mm/asid.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -84,5 +84,5 @@
 	 * Check if there is an unallocated ASID.
 	 */
-	
+
 	if (asids_allocated == ASIDS_ALLOCABLE) {
 
@@ -91,5 +91,5 @@
 		 * Resort to stealing.
 		 */
-		
+
 		/*
 		 * Remove the first item on the list.
@@ -100,5 +100,5 @@
 		assert(tmp != NULL);
 		list_remove(tmp);
-		
+
 		as = list_get_instance(tmp, as_t, inactive_as_with_asid_link);
 
@@ -115,5 +115,5 @@
 		 */
 		as->asid = ASID_INVALID;
-		
+
 		/*
 		 * If the architecture uses some software cache
@@ -122,5 +122,5 @@
 		 */
 		as_invalidate_translation_cache(as, 0, (size_t) -1);
-		
+
 		/*
 		 * Get the system rid of the stolen ASID.
@@ -146,5 +146,5 @@
 		tlb_shootdown_finalize(ipl);
 	}
-	
+
 	return asid;
 }
Index: kernel/genarch/src/mm/asid_fifo.c
===================================================================
--- kernel/genarch/src/mm/asid_fifo.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/mm/asid_fifo.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -30,5 +30,5 @@
  * @{
  */
- 
+
 /**
  * @file
@@ -66,5 +66,5 @@
 	fifo_create(free_asids);
 #endif
-		
+
 	for (i = 0; i < ASIDS_ALLOCABLE; i++) {
 		fifo_push(free_asids, ASID_START + i);
Index: kernel/genarch/src/mm/page_ht.c
===================================================================
--- kernel/genarch/src/mm/page_ht.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/mm/page_ht.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -135,5 +135,5 @@
 {
 	assert(item);
-	
+
 	pte_t *pte = hash_table_get_inst(item, pte_t, link);
 	slab_free(pte_cache, pte);
@@ -162,9 +162,9 @@
 
 	irq_spinlock_lock(&page_ht_lock, true);
-	
+
 	if (!hash_table_find(&page_ht, key)) {
 		pte_t *pte = slab_alloc(pte_cache, FRAME_LOWMEM | FRAME_ATOMIC);
 		assert(pte != NULL);
-		
+
 		pte->g = (flags & PAGE_GLOBAL) != 0;
 		pte->x = (flags & PAGE_EXEC) != 0;
@@ -175,5 +175,5 @@
 		pte->a = false;
 		pte->d = false;
-		
+
 		pte->as = as;
 		pte->page = ALIGN_DOWN(page, PAGE_SIZE);
@@ -185,5 +185,5 @@
 		 */
 		write_barrier();
-		
+
 		hash_table_insert(&page_ht, &pte->link);
 	}
@@ -210,5 +210,5 @@
 
 	assert(page_table_locked(as));
-	
+
 	irq_spinlock_lock(&page_ht_lock, true);
 
@@ -235,5 +235,5 @@
 	if (cur)
 		return hash_table_get_inst(cur, pte_t, link);
-	
+
 	return NULL;
 }
@@ -257,5 +257,5 @@
 
 	irq_spinlock_unlock(&page_ht_lock, true);
-	
+
 	return t != NULL;
 }
@@ -275,5 +275,5 @@
 	if (!t)
 		panic("Updating non-existent PTE");
-	
+
 	assert(pte->as == t->as);
 	assert(pte->page == t->page);
Index: kernel/genarch/src/mm/page_pt.c
===================================================================
--- kernel/genarch/src/mm/page_pt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/mm/page_pt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -83,5 +83,5 @@
 
 	assert(page_table_locked(as));
-	
+
 	if (GET_PTL1_FLAGS(ptl0, PTL0_INDEX(page)) & PAGE_NOT_PRESENT) {
 		pte_t *newpt = (pte_t *)
@@ -100,7 +100,7 @@
 		SET_PTL1_PRESENT(ptl0, PTL0_INDEX(page));
 	}
-	
+
 	pte_t *ptl1 = (pte_t *) PA2KA(GET_PTL1_ADDRESS(ptl0, PTL0_INDEX(page)));
-	
+
 	if (GET_PTL2_FLAGS(ptl1, PTL1_INDEX(page)) & PAGE_NOT_PRESENT) {
 		pte_t *newpt = (pte_t *)
@@ -117,7 +117,7 @@
 		SET_PTL2_PRESENT(ptl1, PTL1_INDEX(page));
 	}
-	
+
 	pte_t *ptl2 = (pte_t *) PA2KA(GET_PTL2_ADDRESS(ptl1, PTL1_INDEX(page)));
-	
+
 	if (GET_PTL3_FLAGS(ptl2, PTL2_INDEX(page)) & PAGE_NOT_PRESENT) {
 		pte_t *newpt = (pte_t *)
@@ -134,7 +134,7 @@
 		SET_PTL3_PRESENT(ptl2, PTL2_INDEX(page));
 	}
-	
+
 	pte_t *ptl3 = (pte_t *) PA2KA(GET_PTL3_ADDRESS(ptl2, PTL2_INDEX(page)));
-	
+
 	SET_FRAME_ADDRESS(ptl3, PTL3_INDEX(page), frame);
 	SET_FRAME_FLAGS(ptl3, PTL3_INDEX(page), flags | PAGE_NOT_PRESENT);
@@ -165,19 +165,19 @@
 	 * First, remove the mapping, if it exists.
 	 */
-	
+
 	pte_t *ptl0 = (pte_t *) PA2KA((uintptr_t) as->genarch.page_table);
 	if (GET_PTL1_FLAGS(ptl0, PTL0_INDEX(page)) & PAGE_NOT_PRESENT)
 		return;
-	
+
 	pte_t *ptl1 = (pte_t *) PA2KA(GET_PTL1_ADDRESS(ptl0, PTL0_INDEX(page)));
 	if (GET_PTL2_FLAGS(ptl1, PTL1_INDEX(page)) & PAGE_NOT_PRESENT)
 		return;
-	
+
 	pte_t *ptl2 = (pte_t *) PA2KA(GET_PTL2_ADDRESS(ptl1, PTL1_INDEX(page)));
 	if (GET_PTL3_FLAGS(ptl2, PTL2_INDEX(page)) & PAGE_NOT_PRESENT)
 		return;
-	
+
 	pte_t *ptl3 = (pte_t *) PA2KA(GET_PTL3_ADDRESS(ptl2, PTL2_INDEX(page)));
-	
+
 	/*
 	 * Destroy the mapping.
@@ -189,13 +189,13 @@
 	SET_FRAME_FLAGS(ptl3, PTL3_INDEX(page), PAGE_NOT_PRESENT);
 	memsetb(&ptl3[PTL3_INDEX(page)], sizeof(pte_t), 0);
-	
+
 	/*
 	 * Second, free all empty tables along the way from PTL3 down to PTL0
 	 * except those needed for sharing the kernel non-identity mappings.
 	 */
-	
+
 	/* Check PTL3 */
 	bool empty = true;
-	
+
 	unsigned int i;
 	for (i = 0; i < PTL3_ENTRIES; i++) {
@@ -205,5 +205,5 @@
 		}
 	}
-	
+
 	if (empty) {
 		/*
@@ -232,5 +232,5 @@
 		return;
 	}
-	
+
 	/* Check PTL2, empty is still true */
 #if (PTL2_ENTRIES != 0)
@@ -241,5 +241,5 @@
 		}
 	}
-	
+
 	if (empty) {
 		/*
@@ -267,5 +267,5 @@
 	}
 #endif /* PTL2_ENTRIES != 0 */
-	
+
 	/* check PTL1, empty is still true */
 #if (PTL1_ENTRIES != 0)
@@ -276,5 +276,5 @@
 		}
 	}
-	
+
 	if (empty) {
 		/*
@@ -301,5 +301,5 @@
 
 	read_barrier();
-	
+
 	pte_t *ptl1 = (pte_t *) PA2KA(GET_PTL1_ADDRESS(ptl0, PTL0_INDEX(page)));
 	if (GET_PTL2_FLAGS(ptl1, PTL1_INDEX(page)) & PAGE_NOT_PRESENT)
@@ -312,5 +312,5 @@
 	read_barrier();
 #endif
-	
+
 	pte_t *ptl2 = (pte_t *) PA2KA(GET_PTL2_ADDRESS(ptl1, PTL1_INDEX(page)));
 	if (GET_PTL3_FLAGS(ptl2, PTL2_INDEX(page)) & PAGE_NOT_PRESENT)
@@ -323,7 +323,7 @@
 	read_barrier();
 #endif
-	
+
 	pte_t *ptl3 = (pte_t *) PA2KA(GET_PTL3_ADDRESS(ptl2, PTL2_INDEX(page)));
-	
+
 	return &ptl3[PTL3_INDEX(page)];
 }
@@ -400,9 +400,9 @@
 {
 	assert(size > 0);
-	
+
 	uintptr_t ptl0 = PA2KA((uintptr_t) AS_KERNEL->genarch.page_table);
 	uintptr_t ptl0_step = ptl0_step_get();
 	size_t frames;
-	
+
 #if (PTL1_ENTRIES != 0)
 	frames = PTL1_FRAMES;
@@ -412,5 +412,5 @@
 	frames = PTL3_FRAMES;
 #endif
-	
+
 	for (uintptr_t addr = ALIGN_DOWN(base, ptl0_step);
 	    addr - 1 < base + size - 1;
Index: kernel/genarch/src/multiboot/multiboot.c
===================================================================
--- kernel/genarch/src/multiboot/multiboot.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/multiboot/multiboot.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,5 +52,5 @@
 	if (end == NULL)
 		end = cmd_line + str_size(cmd_line);
-	
+
 	/*
 	 * Find last occurence of '/' before 'end'. If found, place start at
@@ -59,5 +59,5 @@
 	const char *cp = end;
 	const char *start = buf;
-	
+
 	while (cp != start) {
 		if (*cp == '/') {
@@ -67,5 +67,5 @@
 		cp--;
 	}
-	
+
 	/* Copy the command. */
 	str_ncpy(buf, size, start, (size_t) (end - start));
@@ -106,8 +106,8 @@
 		if (init.cnt >= CONFIG_INIT_TASKS)
 			break;
-		
+
 		init.tasks[init.cnt].paddr = mods[i].start;
 		init.tasks[init.cnt].size = mods[i].end - mods[i].start;
-		
+
 		/* Copy command line, if available. */
 		if (mods[i].string) {
@@ -120,5 +120,5 @@
 			init.tasks[init.cnt].arguments[0] = 0;
 		}
-		
+
 		init.cnt++;
 	}
@@ -128,13 +128,13 @@
 {
 	uint32_t pos = 0;
-	
+
 	while ((pos < length) && (e820counter < MEMMAP_E820_MAX_RECORDS)) {
 		e820table[e820counter] = memmap->mm_info;
-		
+
 		/* Compute address of next structure. */
 		uint32_t size = sizeof(memmap->size) + memmap->size;
 		memmap = (multiboot_memmap_t *) ((uintptr_t) memmap + size);
 		pos += size;
-		
+
 		e820counter++;
 	}
@@ -163,5 +163,5 @@
 		multiboot_modules(info->mods_count,
 		    (multiboot_module_t *) MULTIBOOT_PTR(info->mods_addr));
-	
+
 	/* Copy memory map. */
 	if ((info->flags & MULTIBOOT_INFO_FLAGS_MMAP) != 0)
Index: kernel/genarch/src/multiboot/multiboot2.c
===================================================================
--- kernel/genarch/src/multiboot/multiboot2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/multiboot/multiboot2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 		multiboot_extract_argument(init.tasks[init.cnt].arguments,
 		    CONFIG_TASK_ARGUMENTS_BUFLEN, module->string);
-		
+
 		init.cnt++;
 	}
@@ -66,15 +66,15 @@
 	    ((uintptr_t) memmap + sizeof(*memmap));
 	uint32_t pos = sizeof(*memmap);
-	
+
 	while ((pos < length) && (e820counter < MEMMAP_E820_MAX_RECORDS)) {
 		e820table[e820counter].base_address = entry->base_address;
 		e820table[e820counter].size = entry->size;
 		e820table[e820counter].type = entry->type;
-		
+
 		/* Compute address of next entry. */
 		entry = (multiboot2_memmap_entry_t *)
 		    ((uintptr_t) entry + memmap->entry_size);
 		pos += memmap->entry_size;
-		
+
 		e820counter++;
 	}
@@ -90,11 +90,11 @@
 		bfb_bpp = fbinfo->bpp;
 		bfb_scanline = fbinfo->scanline;
-		
+
 		bfb_red_pos = fbinfo->rgb.red_pos;
 		bfb_red_size = fbinfo->rgb.red_size;
-		
+
 		bfb_green_pos = fbinfo->rgb.green_pos;
 		bfb_green_size = fbinfo->rgb.green_size;
-		
+
 		bfb_blue_pos = fbinfo->rgb.blue_pos;
 		bfb_blue_size = fbinfo->rgb.blue_size;
@@ -116,8 +116,8 @@
 	if (signature != MULTIBOOT2_LOADER_MAGIC)
 		return;
-	
+
 	const multiboot2_tag_t *tag = (const multiboot2_tag_t *)
 	    ALIGN_UP((uintptr_t) info + sizeof(*info), MULTIBOOT2_TAG_ALIGN);
-	
+
 	while (tag->type != MULTIBOOT2_TAG_TERMINATOR) {
 		switch (tag->type) {
@@ -135,5 +135,5 @@
 			break;
 		}
-		
+
 		tag = (const multiboot2_tag_t *)
 		    ALIGN_UP((uintptr_t) tag + tag->size, MULTIBOOT2_TAG_ALIGN);
Index: kernel/genarch/src/ofw/ebus.c
===================================================================
--- kernel/genarch/src/ofw/ebus.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/ofw/ebus.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,10 +55,10 @@
 	if (!prop)
 		return false;
-		
+
 	ranges = prop->size / sizeof(ofw_ebus_range_t);
 	range = prop->value;
-	
+
 	unsigned int i;
-	
+
 	for (i = 0; i < ranges; i++) {
 		if (reg->space != range[i].child_space)
@@ -67,10 +67,10 @@
 		    range[i].size)) {
 			ofw_pci_reg_t pci_reg;
-			
+
 			pci_reg.space = range[i].parent_space;
 			pci_reg.addr = range[i].parent_base +
 			    (reg->addr - range[i].child_base);
 			pci_reg.size = reg->size;
-			
+
 			return ofw_pci_apply_ranges(node->parent, &pci_reg, pa);
 		}
@@ -86,5 +86,5 @@
 	ofw_tree_property_t *prop;
 	ofw_tree_node_t *controller;
-	
+
 	prop = ofw_tree_getprop(node, "interrupt-map");
 	if (!prop || !prop->value)
@@ -93,19 +93,19 @@
 	ofw_ebus_intr_map_t *intr_map = prop->value;
 	size_t count = prop->size / sizeof(ofw_ebus_intr_map_t);
-	
+
 	assert(count);
-	
+
 	prop = ofw_tree_getprop(node, "interrupt-map-mask");
 	if (!prop || !prop->value)
 		return false;
-	
+
 	ofw_ebus_intr_mask_t *intr_mask = prop->value;
-	
+
 	assert(prop->size == sizeof(ofw_ebus_intr_mask_t));
-	
+
 	uint32_t space = reg->space & intr_mask->space_mask;
 	uint32_t addr = reg->addr & intr_mask->addr_mask;
 	uint32_t intr = interrupt & intr_mask->intr_mask;
-	
+
 	unsigned int i;
 	for (i = 0; i < count; i++) {
@@ -127,5 +127,5 @@
 	if (!controller)
 		return false;
-		
+
 	if (str_cmp(ofw_tree_node_name(controller), "pci") != 0) {
 		/*
Index: kernel/genarch/src/ofw/ofw_tree.c
===================================================================
--- kernel/genarch/src/ofw/ofw_tree.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/ofw/ofw_tree.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,5 +70,5 @@
 			return &node->property[i];
 	}
-	
+
 	return NULL;
 }
@@ -87,5 +87,5 @@
 	if ((!prop) || (prop->size < 2))
 		return NULL;
-	
+
 	return prop->value;
 }
@@ -110,5 +110,5 @@
 			return cur;
 	}
-	
+
 	/*
 	 * Disambigued name not found.
@@ -122,5 +122,5 @@
 			return cur;
 	}
-	
+
 	return NULL;
 }
@@ -141,12 +141,12 @@
 		ofw_tree_property_t *prop =
 		    ofw_tree_getprop(cur, "device_type");
-		
+
 		if ((!prop) || (!prop->value))
 			continue;
-		
+
 		if (str_cmp(prop->value, dtype) == 0)
 			return cur;
 	}
-	
+
 	return NULL;
 }
@@ -170,5 +170,5 @@
 		if (cur->node_handle == handle)
 			return cur;
-		
+
 		if (cur->child) {
 			ofw_tree_node_t *node =
@@ -178,5 +178,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -197,12 +197,12 @@
 		ofw_tree_property_t *prop =
 		    ofw_tree_getprop(cur, "device_type");
-		
+
 		if ((!prop) || (!prop->value))
 			continue;
-		
+
 		if (str_cmp(prop->value, dtype) == 0)
 			return cur;
 	}
-	
+
 	return NULL;
 }
@@ -223,12 +223,12 @@
 		ofw_tree_property_t *prop =
 		    ofw_tree_getprop(cur, "name");
-		
+
 		if ((!prop) || (!prop->value))
 			continue;
-		
+
 		if (str_cmp(prop->value, name) == 0)
 			return cur;
 	}
-	
+
 	return NULL;
 }
@@ -246,15 +246,15 @@
 	if (path[0] != '/')
 		return NULL;
-	
+
 	ofw_tree_node_t *node = ofw_root;
 	size_t j;
-	
+
 	for (size_t i = 1; (i < str_size(path)) && (node); i = j + 1) {
 		for (j = i; (j < str_size(path)) && (path[j] != '/'); j++);
-		
+
 		/* Skip extra slashes */
 		if (i == j)
 			continue;
-		
+
 		char buf[NAME_BUF_LEN + 1];
 		memcpy(buf, &path[i], j - i);
@@ -262,5 +262,5 @@
 		node = ofw_tree_find_child(node, buf);
 	}
-	
+
 	return node;
 }
@@ -285,5 +285,5 @@
 		ofw_tree_property_t *prop =
 		    ofw_tree_getprop(cur, "device_type");
-		
+
 		if ((prop) && (prop->value) && (str_cmp(prop->value, dtype) == 0)) {
 			bool ret = walker(cur, arg);
@@ -291,5 +291,5 @@
 				return false;
 		}
-		
+
 		if (cur->child) {
 			bool ret =
@@ -299,5 +299,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -336,5 +336,5 @@
 {
 	ofw_tree_node_t *node = (ofw_tree_node_t *) data;
-	
+
 	/* Compute serialized data size */
 	*size = 0;
@@ -342,8 +342,8 @@
 		*size += str_size(node->property[i].name) + 1 +
 		    sizeof(node->property[i].size) + node->property[i].size;
-	
+
 	if (dry_run)
 		return NULL;
-	
+
 	void *dump = malloc(*size, FRAME_ATOMIC);
 	if (dump == NULL) {
@@ -351,5 +351,5 @@
 		return NULL;
 	}
-	
+
 	/* Serialize the data */
 	size_t pos = 0;
@@ -358,10 +358,10 @@
 		str_cpy(dump + pos, *size - pos, node->property[i].name);
 		pos += str_size(node->property[i].name) + 1;
-		
+
 		/* Value size */
 		memcpy(dump + pos, &node->property[i].size,
 		    sizeof(node->property[i].size));
 		pos += sizeof(node->property[i].size);
-		
+
 		/* Value */
 		memcpy(dump + pos, node->property[i].value,
@@ -369,5 +369,5 @@
 		pos += node->property[i].size;
 	}
-	
+
 	return ((void *) dump);
 }
@@ -385,5 +385,5 @@
 {
 	char *cur_path = (char *) malloc(PATH_MAX_LEN, 0);
-	
+
 	for (ofw_tree_node_t *cur = node; cur; cur = cur->peer) {
 		if ((cur->parent) && (path))
@@ -391,12 +391,12 @@
 		else
 			snprintf(cur_path, PATH_MAX_LEN, "firmware.%s", cur->da_name);
-		
+
 		sysinfo_set_item_gen_data(cur_path, NULL, ofw_sysinfo_properties,
 		    (void *) cur);
-		
+
 		if (cur->child)
 			ofw_tree_node_sysinfo(cur->child, cur_path);
 	}
-	
+
 	free(cur_path);
 }
Index: kernel/genarch/src/ofw/pci.c
===================================================================
--- kernel/genarch/src/ofw/pci.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/ofw/pci.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,10 +63,10 @@
 		return false;
 	}
-		
+
 	ranges = prop->size / sizeof(ofw_pci_range_t);
 	range = prop->value;
-	
+
 	unsigned int i;
-	
+
 	for (i = 0; i < ranges; i++) {
 		if ((reg->space & PCI_SPACE_MASK) !=
@@ -95,18 +95,18 @@
 		return true;
 	}
-	
+
 	ofw_tree_property_t *prop;
 	ofw_pci_reg_t *assigned_address;
 	size_t assigned_addresses;
-	
+
 	prop = ofw_tree_getprop(node, "assigned-addresses");
 	if (!prop)
 		panic("Cannot find 'assigned-addresses' property.");
-	
+
 	assigned_addresses = prop->size / sizeof(ofw_pci_reg_t);
 	assigned_address = prop->value;
-	
+
 	unsigned int i;
-	
+
 	for (i = 0; i < assigned_addresses; i++) {
 		if ((assigned_address[i].space & PCI_REG_MASK) ==
@@ -118,5 +118,5 @@
 		}
 	}
-	
+
 	return false;
 }
Index: kernel/genarch/src/ofw/sbus.c
===================================================================
--- kernel/genarch/src/ofw/sbus.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/ofw/sbus.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	ofw_sbus_range_t *range;
 	size_t ranges;
-	
+
 	/*
 	 * The SBUS support is very rudimentary in that we simply assume
@@ -55,14 +55,14 @@
 	if (!node->parent || node->parent->parent)
 		return false;
-	
+
 	prop = ofw_tree_getprop(node, "ranges");
 	if (!prop)
 		return false;
-		
+
 	ranges = prop->size / sizeof(ofw_sbus_range_t);
 	range = prop->value;
-	
+
 	unsigned int i;
-	
+
 	for (i = 0; i < ranges; i++) {
 		if (overlaps(reg->addr, reg->size, range[i].child_base,
@@ -73,5 +73,5 @@
 		}
 	}
-	
+
 	return false;
 }
Index: kernel/genarch/src/softint/division.c
===================================================================
--- kernel/genarch/src/softint/division.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/softint/division.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,23 +43,23 @@
 	unsigned int result;
 	int steps = sizeof(unsigned int) * 8;
-	
+
 	*remainder = 0;
 	result = 0;
-	
+
 	if (b == 0) {
 		/* FIXME: division by zero */
 		return 0;
 	}
-	
+
 	if (a < b) {
 		*remainder = a;
 		return 0;
 	}
-	
+
 	for (; steps > 0; steps--) {
 		/* shift one bit to remainder */
 		*remainder = ((*remainder) << 1) | (( a >> 31) & 0x1);
 		result <<= 1;
-		
+
 		if (*remainder >= b) {
 			*remainder -= b;
@@ -68,5 +68,5 @@
 		a <<= 1;
 	}
-	
+
 	return result;
 }
@@ -77,23 +77,23 @@
 	unsigned long long result;
 	int steps = sizeof(unsigned long long) * 8;
-	
+
 	*remainder = 0;
 	result = 0;
-	
+
 	if (b == 0) {
 		/* FIXME: division by zero */
 		return 0;
 	}
-	
+
 	if (a < b) {
 		*remainder = a;
 		return 0;
 	}
-	
+
 	for (; steps > 0; steps--) {
 		/* shift one bit to remainder */
 		*remainder = ((*remainder) << 1) | ((a >> 63) & 0x1);
 		result <<= 1;
-		
+
 		if (*remainder >= b) {
 			*remainder -= b;
@@ -102,5 +102,5 @@
 		a <<= 1;
 	}
-	
+
 	return result;
 }
@@ -111,8 +111,8 @@
 	unsigned int rem;
 	int result = (int) divandmod32(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b))
 		return result;
-	
+
 	return -result;
 }
@@ -123,8 +123,8 @@
 	unsigned long long rem;
 	long long result = (long long) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b))
 		return result;
-	
+
 	return -result;
 }
@@ -149,9 +149,9 @@
 	unsigned int rem;
 	divandmod32(a, b, &rem);
-	
+
 	/* if divident is negative, remainder must be too */
 	if (!(SGN(a)))
 		return -((int) rem);
-	
+
 	return (int) rem;
 }
@@ -162,9 +162,9 @@
 	unsigned long long rem;
 	divandmod64(a, b, &rem);
-	
+
 	/* if divident is negative, remainder must be too */
 	if (!(SGN(a)))
 		return -((long long) rem);
-	
+
 	return (long long) rem;
 }
@@ -190,10 +190,10 @@
 	unsigned int rem;
 	int result = (int) divandmod32(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
@@ -210,10 +210,10 @@
 	unsigned long long rem;
 	long long result = (int) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
Index: kernel/genarch/src/srln/srln.c
===================================================================
--- kernel/genarch/src/srln/srln.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/genarch/src/srln/srln.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,16 +53,16 @@
 	bool cr = false;
 	uint32_t escape = 0;
-	
+
 	while (true) {
 		wchar_t ch = indev_pop_character(&instance->raw);
-		
+
 		/* ANSI escape sequence processing */
 		if (escape != 0) {
 			escape <<= 8;
 			escape |= ch & 0xff;
-			
+
 			if ((escape == 0x1b4f) || (escape == 0x1b5b) || (escape == 0x1b5b33))
 				continue;
-			
+
 			switch (escape) {
 			case 0x1b4f46:
@@ -100,10 +100,10 @@
 			}
 		}
-		
+
 		if (ch == 0x1b) {
 			escape = ch & 0xff;
 			continue;
 		}
-		
+
 		/* Replace carriage return with line feed
 		   and suppress any following line feed */
@@ -112,5 +112,5 @@
 			continue;
 		}
-		
+
 		if (ch == '\r') {
 			ch = '\n';
@@ -118,9 +118,9 @@
 		} else
 			cr = false;
-		
+
 		/* Backspace */
 		if (ch == 0x7f)
 			ch = '\b';
-		
+
 		indev_push_character(instance->sink, ch);
 	}
@@ -134,14 +134,14 @@
 		instance->thread = thread_create(ksrln, (void *) instance,
 		    TASK, THREAD_FLAG_NONE, "ksrln");
-		
+
 		if (!instance->thread) {
 			free(instance);
 			return NULL;
 		}
-		
+
 		instance->sink = NULL;
 		indev_initialize("srln", &instance->raw, &srln_raw_ops);
 	}
-	
+
 	return instance;
 }
@@ -151,8 +151,8 @@
 	assert(instance);
 	assert(sink);
-	
+
 	instance->sink = sink;
 	thread_ready(instance->thread);
-	
+
 	return &instance->raw;
 }
Index: kernel/generic/include/adt/avl.h
===================================================================
--- kernel/generic/include/adt/avl.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/adt/avl.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,5 +69,5 @@
 	 */
 	struct avltree_node *lft;
-	
+
 	/**
 	 * Pointer to the right descendant of this node.
@@ -77,11 +77,11 @@
 	 */
 	struct avltree_node *rgt;
-	
+
 	/** Pointer to the parent node. Root node has NULL parent. */
 	struct avltree_node *par;
-	
+
 	/** Node's key. */
 	avltree_key_t key;
-	
+
 	/**
 	 * Difference between the heights of the left and the right subtree of
Index: kernel/generic/include/adt/bitmap.h
===================================================================
--- kernel/generic/include/adt/bitmap.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/adt/bitmap.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,8 +54,8 @@
 	if (element >= bitmap->elements)
 		return;
-	
+
 	size_t byte = element / BITMAP_ELEMENT;
 	uint8_t mask = 1 << (element & BITMAP_REMAINER);
-	
+
 	if (value) {
 		bitmap->bits[byte] |= mask;
@@ -70,8 +70,8 @@
 	if (element >= bitmap->elements)
 		return 0;
-	
+
 	size_t byte = element / BITMAP_ELEMENT;
 	uint8_t mask = 1 << (element & BITMAP_REMAINER);
-	
+
 	return !!((bitmap->bits)[byte] & mask);
 }
Index: kernel/generic/include/adt/btree.h
===================================================================
--- kernel/generic/include/adt/btree.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/adt/btree.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,5 +60,5 @@
 	 */
 	void *value[BTREE_MAX_KEYS + 1];
-	
+
 	/**
 	 * Pointers to descendants of this node sorted according to the key
Index: kernel/generic/include/adt/cht.h
===================================================================
--- kernel/generic/include/adt/cht.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/adt/cht.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -95,5 +95,5 @@
 	/** Item specific operations. */
 	cht_ops_t *op;
-	
+
 	/** Buckets currently in use. */
 	cht_buckets_t *b;
@@ -120,5 +120,5 @@
 	 */
 	atomic_t resize_reqs;
-	
+
 	/** Number of items in the table that have not been logically deleted. */
 	atomic_t item_cnt;
Index: kernel/generic/include/adt/hash_table.h
===================================================================
--- kernel/generic/include/adt/hash_table.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/adt/hash_table.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,8 +51,8 @@
 	/** Returns the hash of the key stored in the item (ie its lookup key). */
 	size_t (*hash)(const ht_link_t *item);
-	
+
 	/** Returns the hash of the key. */
 	size_t (*key_hash)(void *key);
-	
+
 	/** True if the items are equal (have the same lookup keys). */
 	bool (*equal)(const ht_link_t *item1, const ht_link_t *item2);
Index: kernel/generic/include/adt/list.h
===================================================================
--- kernel/generic/include/adt/list.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/adt/list.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -231,5 +231,5 @@
 		link->prev->next = link->next;
 	}
-	
+
 	link_initialize(link);
 }
@@ -314,7 +314,7 @@
 	part1->prev->next = part2;
 	part2->prev->next = part1;
-	
+
 	link_t *hlp = part1->prev;
-	
+
 	part1->prev = part2->prev;
 	part2->prev = hlp;
@@ -378,14 +378,14 @@
 {
 	unsigned long cnt = 0;
-	
+
 	link_t *link = list_first(list);
 	while (link != NULL) {
 		if (cnt == n)
 			return link;
-		
+
 		cnt++;
 		link = list_next(link, list);
 	}
-	
+
 	return NULL;
 }
Index: kernel/generic/include/bitops.h
===================================================================
--- kernel/generic/include/bitops.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/bitops.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,28 +54,28 @@
 {
 	uint8_t n = 0;
-	
+
 	if (arg >> 16) {
 		arg >>= 16;
 		n += 16;
 	}
-	
+
 	if (arg >> 8) {
 		arg >>= 8;
 		n += 8;
 	}
-	
+
 	if (arg >> 4) {
 		arg >>= 4;
 		n += 4;
 	}
-	
+
 	if (arg >> 2) {
 		arg >>= 2;
 		n += 2;
 	}
-	
+
 	if (arg >> 1)
 		n += 1;
-	
+
 	return n;
 }
@@ -89,10 +89,10 @@
 {
 	uint8_t n = 0;
-	
+
 	if (arg >> 32) {
 		arg >>= 32;
 		n += 32;
 	}
-	
+
 	return n + fnzb32((uint32_t) arg);
 }
Index: kernel/generic/include/config.h
===================================================================
--- kernel/generic/include/config.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/config.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -82,14 +82,14 @@
 	/** Number of processors that are up and running. */
 	volatile size_t cpu_active;
-	
+
 	uintptr_t base;
 	/** Size of memory in bytes taken by kernel and stack. */
 	size_t kernel_size;
-	
+
 	/** Base adddress of initial stack. */
 	uintptr_t stack_base;
 	/** Size of initial stack. */
 	size_t stack_size;
-	
+
 	bool identity_configured;
 	/** Base address of the kernel identity mapped memory. */
@@ -97,7 +97,7 @@
 	/** Size of the kernel identity mapped memory. */
 	size_t identity_size;
-	
+
 	bool non_identity_configured;
-	
+
 	/** End of physical memory. */
 	uint64_t physmem_end;
Index: kernel/generic/include/console/chardev.h
===================================================================
--- kernel/generic/include/console/chardev.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/console/chardev.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 	/** Read character directly from device, assume interrupts disabled. */
 	wchar_t (* poll)(struct indev *);
-	
+
 	/** Signal out-of-band condition. */
 	void (* signal)(struct indev *, indev_signal_t);
@@ -65,10 +65,10 @@
 	const char *name;
 	waitq_t wq;
-	
+
 	/** Protects everything below. */
 	IRQ_SPINLOCK_DECLARE(lock);
 	wchar_t buffer[INDEV_BUFLEN];
 	size_t counter;
-	
+
 	/** Implementation of indev operations. */
 	indev_operations_t *op;
@@ -83,11 +83,11 @@
 	/** Write character to output. */
 	void (* write)(struct outdev *, wchar_t);
-	
+
 	/** Redraw any previously cached characters. */
 	void (* redraw)(struct outdev *);
-	
+
 	/** Scroll up in the device cache. */
 	void (* scroll_up)(struct outdev *);
-	
+
 	/** Scroll down in the device cache. */
 	void (* scroll_down)(struct outdev *);
@@ -97,12 +97,12 @@
 typedef struct outdev {
 	const char *name;
-	
+
 	/** Protects everything below. */
 	SPINLOCK_DECLARE(lock);
-	
+
 	/** Fields suitable for multiplexing. */
 	link_t link;
 	list_t list;
-	
+
 	/** Implementation of outdev operations. */
 	outdev_operations_t *op;
Index: kernel/generic/include/cpu.h
===================================================================
--- kernel/generic/include/cpu.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/cpu.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,17 +54,17 @@
 typedef struct cpu {
 	IRQ_SPINLOCK_DECLARE(lock);
-	
+
 	tlb_shootdown_msg_t tlb_messages[TLB_MESSAGE_QUEUE_LEN];
 	size_t tlb_messages_count;
-	
+
 	context_t saved_context;
-	
+
 	atomic_t nrdy;
 	runq_t rq[RQ_COUNT];
 	volatile size_t needs_relink;
-	
+
 	IRQ_SPINLOCK_DECLARE(timeoutlock);
 	list_t timeout_active_list;
-	
+
 	/**
 	 * When system clock loses a tick, it is
@@ -75,5 +75,5 @@
 	 */
 	size_t missed_clock_ticks;
-	
+
 	/**
 	 * Processor cycle accounting.
@@ -83,20 +83,20 @@
 	uint64_t idle_cycles;
 	uint64_t busy_cycles;
-	
+
 	/**
 	 * Processor ID assigned by kernel.
 	 */
 	unsigned int id;
-	
+
 	bool active;
 	volatile bool tlb_active;
-	
+
 	uint16_t frequency_mhz;
 	uint32_t delay_loop_const;
-	
+
 	cpu_arch_t arch;
-	
+
 	struct thread *fpu_owner;
-	
+
 	/**
 	 * SMP calls to invoke on this CPU.
@@ -104,8 +104,8 @@
 	SPINLOCK_DECLARE(smp_calls_lock);
 	list_t smp_pending_calls;
-	
+
 	/** RCU per-cpu data. Uses own locking. */
 	rcu_cpu_data_t rcu;
-	
+
 	/**
 	 * Stack used by scheduler when there is no running thread.
Index: kernel/generic/include/ddi/ddi.h
===================================================================
--- kernel/generic/include/ddi/ddi.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/ddi/ddi.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,5 +44,5 @@
 typedef struct {
 	link_t link;      /**< Linked list link */
-	
+
 	uintptr_t pbase;  /**< Physical base of the area. */
 	pfn_t frames;     /**< Number of frames in the area. */
Index: kernel/generic/include/ddi/irq.h
===================================================================
--- kernel/generic/include/ddi/irq.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/ddi/irq.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -93,5 +93,5 @@
 	/** Hash table link. */
 	ht_link_t link;
-	
+
 	/** Lock protecting everything in this structure
 	 *  except the link member. When both the IRQ
@@ -100,5 +100,5 @@
 	 */
 	IRQ_SPINLOCK_DECLARE(lock);
-	
+
 	/** Send EOI before processing the interrupt.
 	 *  This is essential for timer interrupt which
@@ -108,5 +108,5 @@
 	 */
 	bool preack;
-	
+
 	/** Actual IRQ number. -1 if not yet assigned. */
 	inr_t inr;
@@ -119,10 +119,10 @@
 	/** Instance argument for the handler and the claim function. */
 	void *instance;
-	
+
 	/** Clear interrupt routine. */
 	cir_t cir;
 	/** First argument to the clear interrupt routine. */
 	void *cir_arg;
-	
+
 	/** Notification configuration structure. */
 	ipc_notif_cfg_t notif_cfg;
Index: kernel/generic/include/ipc/event.h
===================================================================
--- kernel/generic/include/ipc/event.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/ipc/event.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 typedef struct {
 	SPINLOCK_DECLARE(lock);
-	
+
 	/** Answerbox for notifications. */
 	answerbox_t *answerbox;
@@ -55,5 +55,5 @@
 	/** Counter. */
 	size_t counter;
-	
+
 	/** Masked flag. */
 	bool masked;
Index: kernel/generic/include/ipc/ipc.h
===================================================================
--- kernel/generic/include/ipc/ipc.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/ipc/ipc.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,9 +77,9 @@
 	/** Answerbox is active until it enters cleanup. */
 	bool active;
-	
+
 	struct task *task;
-	
+
 	waitq_t wq;
-	
+
 	/** Phones connected to this answerbox. */
 	list_t connected_phones;
@@ -87,10 +87,10 @@
 	list_t calls;
 	list_t dispatched_calls;  /* Should be hash table in the future */
-	
+
 	/** Answered calls. */
 	list_t answers;
-	
+
 	IRQ_SPINLOCK_DECLARE(irq_lock);
-	
+
 	/** Notifications from IRQ handlers. */
 	list_t irq_notifs;
@@ -126,5 +126,5 @@
 	/** Answerbox link. */
 	link_t ab_link;
-	
+
 	unsigned int flags;
 
@@ -145,5 +145,5 @@
 	/** True if the call is in the active list. */
 	bool active;
-	
+
 	/**
 	 * Identification of the caller.
@@ -151,5 +151,5 @@
 	 */
 	struct task *sender;
-	
+
 	/*
 	 * Answerbox that will receive the answer.
@@ -161,8 +161,8 @@
 	/** Phone which was used to send the call. */
 	phone_t *caller_phone;
-	
+
 	/** Private data to internal IPC. */
 	sysarg_t priv;
-	
+
 	/** Data passed from/to userspace. */
 	ipc_data_t data;
Index: kernel/generic/include/macros.h
===================================================================
--- kernel/generic/include/macros.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/macros.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 	if (sz2)
 		return ((s1 >= s2) && (s1 <= e2));
-	
+
 	if (sz1)
 		return ((s2 >= s1) && (s2 <= e1));
@@ -87,9 +87,9 @@
 	if (sz1 == 0)
 		return (s1 == s2) && (sz2 == 0);
-	
+
 	e1 = s1 + sz1 - 1;
 	if (sz2 == 0)
 		return (s1 <= s2) && (s2 <= e1);
-	
+
 	e2 = s2 + sz2 - 1;
 
Index: kernel/generic/include/mm/as.h
===================================================================
--- kernel/generic/include/mm/as.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/mm/as.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -94,5 +94,5 @@
 	/** Protected by asidlock. */
 	link_t inactive_as_with_asid_link;
-	
+
 	/**
 	 * Number of processors on which this
@@ -101,5 +101,5 @@
 	 */
 	size_t cpu_refcount;
-	
+
 	/** Address space identifier.
 	 *
@@ -109,16 +109,16 @@
 	 */
 	asid_t asid;
-	
+
 	/** Number of references (i.e. tasks that reference this as). */
 	atomic_t refcount;
-	
+
 	mutex_t lock;
-	
+
 	/** B+tree of address space areas. */
 	btree_t as_area_btree;
-	
+
 	/** Non-generic content. */
 	as_genarch_t genarch;
-	
+
 	/** Architecture specific content. */
 	as_arch_t arch;
@@ -178,5 +178,5 @@
 		elf_segment_header_t *segment;
 	};
-	
+
 	/** phys_backend members */
 	struct {
@@ -200,26 +200,26 @@
 typedef struct {
 	mutex_t lock;
-	
+
 	/** Containing address space. */
 	as_t *as;
-	
+
 	/** Memory flags. */
 	unsigned int flags;
-	
+
 	/** Address space area attributes. */
 	unsigned int attributes;
-	
+
 	/** Number of pages in the area. */
 	size_t pages;
-	
+
 	/** Number of resident pages in the area. */
 	size_t resident;
-	
+
 	/** Base address of this area. */
 	uintptr_t base;
-	
+
 	/** Map of used space. */
 	btree_t used_space;
-	
+
 	/**
 	 * If the address space area is shared. this is
@@ -227,8 +227,8 @@
 	 */
 	share_info_t *sh_info;
-	
+
 	/** Memory backend backing this address space area. */
 	struct mem_backend *backend;
-	
+
 	/** Data to be used by the backend. */
 	mem_backend_data_t backend_data;
Index: kernel/generic/include/mm/frame.h
===================================================================
--- kernel/generic/include/mm/frame.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/mm/frame.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -97,20 +97,20 @@
 	/** Frame_no of the first frame in the frames array */
 	pfn_t base;
-	
+
 	/** Size of zone */
 	size_t count;
-	
+
 	/** Number of free frame_t structures */
 	size_t free_count;
-	
+
 	/** Number of busy frame_t structures */
 	size_t busy_count;
-	
+
 	/** Type of the zone */
 	zone_flags_t flags;
-	
+
 	/** Frame bitmap */
 	bitmap_t bitmap;
-	
+
 	/** Array of frame_t structures in this zone */
 	frame_t *frames;
Index: kernel/generic/include/mm/slab.h
===================================================================
--- kernel/generic/include/mm/slab.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/mm/slab.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -86,22 +86,22 @@
 typedef struct {
 	const char *name;
-	
+
 	link_t link;
-	
+
 	/* Configuration */
-	
+
 	/** Size of slab position - align_up(sizeof(obj)) */
 	size_t size;
-	
+
 	errno_t (*constructor)(void *obj, unsigned int kmflag);
 	size_t (*destructor)(void *obj);
-	
+
 	/** Flags changing behaviour of cache */
 	unsigned int flags;
-	
+
 	/* Computed values */
 	size_t frames;   /**< Number of frames to be allocated */
 	size_t objects;  /**< Number of objects that fit in */
-	
+
 	/* Statistics */
 	atomic_t allocated_slabs;
@@ -110,5 +110,5 @@
 	/** How many magazines in magazines list */
 	atomic_t magazine_counter;
-	
+
 	/* Slabs */
 	list_t full_slabs;     /**< List of full slabs */
@@ -118,5 +118,5 @@
 	list_t magazines;  /**< List o full magazines */
 	IRQ_SPINLOCK_DECLARE(maglock);
-	
+
 	/** CPU cache */
 	slab_mag_cache_t *mag_cache;
Index: kernel/generic/include/printf/printf_core.h
===================================================================
--- kernel/generic/include/printf/printf_core.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/printf/printf_core.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,8 +43,8 @@
 	/* String output function, returns number of printed characters or EOF */
 	int (*str_write)(const char *, size_t, void *);
-	
+
 	/* Wide string output function, returns number of printed characters or EOF */
 	int (*wstr_write)(const wchar_t *, size_t, void *);
-	
+
 	/* User data - output stream specification, state, locks, etc. */
 	void *data;
Index: kernel/generic/include/proc/task.h
===================================================================
--- kernel/generic/include/proc/task.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/proc/task.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -73,5 +73,5 @@
 	/** Task's linkage for the tasks_tree AVL tree. */
 	avltree_node_t tasks_tree_node;
-	
+
 	/** Task lock.
 	 *
@@ -80,5 +80,5 @@
 	 */
 	IRQ_SPINLOCK_DECLARE(lock);
-	
+
 	char name[TASK_NAME_BUFLEN];
 	/** List of threads contained in this task. */
@@ -90,10 +90,10 @@
 	/** Task security container. */
 	container_id_t container;
-	
+
 	/** Number of references (i.e. threads). */
 	atomic_t refcount;
 	/** Number of threads that haven't exited yet. */
 	atomic_t lifecount;
-	
+
 	/** Task permissions. */
 	perm_t perms;
@@ -101,5 +101,5 @@
 	/** Capabilities */
 	cap_info_t *cap_info;
-	
+
 	/* IPC stuff */
 
@@ -120,16 +120,16 @@
 	/** IPC statistics */
 	stats_ipc_t ipc_info;
-	
+
 #ifdef CONFIG_UDEBUG
 	/** Debugging stuff. */
 	udebug_task_t udebug;
-	
+
 	/** Kernel answerbox. */
 	kbox_t kb;
 #endif /* CONFIG_UDEBUG */
-	
+
 	/** Architecture specific task data. */
 	task_arch_t arch;
-	
+
 	struct futex_cache {
 		/** CHT mapping virtual addresses of futex variables to futex objects.*/
@@ -141,5 +141,5 @@
 		work_t destroy_work;
 	} *futexes;
-	
+
 	/** Accumulated accounting. */
 	uint64_t ucycles;
Index: kernel/generic/include/proc/thread.h
===================================================================
--- kernel/generic/include/proc/thread.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/proc/thread.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,8 +75,8 @@
 	link_t wq_link;  /**< Wait queue link. */
 	link_t th_link;  /**< Links to threads within containing task. */
-	
+
 	/** Threads linkage to the threads_tree. */
 	avltree_node_t threads_tree_node;
-	
+
 	/** Lock protecting thread structure.
 	 *
@@ -84,12 +84,12 @@
 	 */
 	IRQ_SPINLOCK_DECLARE(lock);
-	
+
 	char name[THREAD_NAME_BUFLEN];
-	
+
 	/** Function implementing the thread. */
 	void (*thread_code)(void *);
 	/** Argument passed to thread_code() function. */
 	void *thread_arg;
-	
+
 	/**
 	 * From here, the stored context is restored
@@ -97,5 +97,5 @@
 	 */
 	context_t saved_context;
-	
+
 	/**
 	 * From here, the stored timeout context
@@ -103,5 +103,5 @@
 	 */
 	context_t sleep_timeout_context;
-	
+
 	/**
 	 * From here, the stored interruption context
@@ -109,5 +109,5 @@
 	 */
 	context_t sleep_interruption_context;
-	
+
 	/** If true, the thread can be interrupted from sleep. */
 	bool sleep_interruptible;
@@ -118,5 +118,5 @@
 	/** Flag signalling sleep timeout in progress. */
 	volatile bool timeout_pending;
-	
+
 	/**
 	 * True if this thread is executing copy_from_uspace().
@@ -124,5 +124,5 @@
 	 */
 	bool in_copy_from_uspace;
-	
+
 	/**
 	 * True if this thread is executing copy_to_uspace().
@@ -130,5 +130,5 @@
 	 */
 	bool in_copy_to_uspace;
-	
+
 	/**
 	 * If true, the thread will not go to sleep at all and will call
@@ -136,5 +136,5 @@
 	 */
 	bool interrupted;
-	
+
 	/** If true, thread_join_timeout() cannot be used on this thread. */
 	bool detached;
@@ -143,8 +143,8 @@
 	/** Link used in the joiner_head list. */
 	link_t joiner_link;
-	
+
 	fpu_context_t *saved_fpu_context;
 	bool fpu_context_exists;
-	
+
 	/*
 	 * Defined only if thread doesn't run.
@@ -153,11 +153,11 @@
 	 */
 	bool fpu_context_engaged;
-	
+
 	/* The thread will not be migrated if nomigrate is non-zero. */
 	unsigned int nomigrate;
-	
+
 	/** Thread state. */
 	state_t state;
-	
+
 	/** Thread CPU. */
 	cpu_t *cpu;
@@ -170,8 +170,8 @@
 	/** Thread is executed in user space. */
 	bool uspace;
-	
+
 	/** Ticks before preemption. */
 	uint64_t ticks;
-	
+
 	/** Thread accounting. */
 	uint64_t ucycles;
@@ -181,5 +181,5 @@
 	/** Thread doesn't affect accumulated accounting. */
 	bool uncounted;
-	
+
 	/** Thread's priority. Implemented as index to CPU->rq */
 	int priority;
@@ -195,14 +195,14 @@
 	/** True if the worker will block in order to become idle. Use workq->lock. */
 	bool workq_idling;
-	
+
 	/** RCU thread related data. Protected by its own locks. */
 	rcu_thread_data_t rcu;
-	
+
 	/** Architecture-specific data. */
 	thread_arch_t arch;
-	
+
 	/** Thread's kernel stack. */
 	uint8_t *kstack;
-	
+
 #ifdef CONFIG_UDEBUG
 	/**
@@ -211,5 +211,5 @@
 	 */
 	bool btrace;
-	
+
 	/** Debugging stuff */
 	udebug_thread_t udebug;
Index: kernel/generic/include/synch/rcu.h
===================================================================
--- kernel/generic/include/synch/rcu.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/synch/rcu.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -147,5 +147,5 @@
 	compiler_barrier();
 	THE->rcu_nesting -= RCU_CNT_INC;
-	
+
 	if (RCU_WAS_PREEMPTED == THE->rcu_nesting) {
 		_rcu_preempted_unlock();
@@ -164,5 +164,5 @@
 {
 	assert(PREEMPTION_DISABLED || interrupts_disabled());
-	
+
 	/*
 	 * A new GP was started since the last time we passed a QS.
@@ -225,8 +225,8 @@
 	assert(CPU);
 	preemption_disable();
-	
+
 	if (0 == --CPU->rcu.nesting_cnt) {
 		_rcu_record_qs();
-		
+
 		/*
 		 * The thread was preempted while in a critical section or
@@ -238,5 +238,5 @@
 		}
 	}
-	
+
 	preemption_enable();
 }
Index: kernel/generic/include/synch/rcu_types.h
===================================================================
--- kernel/generic/include/synch/rcu_types.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/synch/rcu_types.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,5 +70,5 @@
 	 */
 	bool is_delaying_gp;
-	
+
 	/** True if we should signal the detector that we exited a reader section.
 	 *
@@ -85,5 +85,5 @@
 	size_t nesting_cnt;
 #endif
-	
+
 	/** Callbacks to invoke once the current grace period ends, ie cur_cbs_gp.
 	 * Accessed by the local reclaimer only.
@@ -118,17 +118,17 @@
 	 */
 	rcu_gp_t next_cbs_gp;
-	
+
 	/** Positive if there are callbacks pending in arriving_cbs. */
 	semaphore_t arrived_flag;
-	
+
 	/** The reclaimer should expedite GPs for cbs in arriving_cbs. */
 	bool expedite_arriving;
-	
+
 	/** Protected by global rcu.barrier_mtx. */
 	rcu_item_t barrier_item;
-	
+
 	/** Interruptable attached reclaimer thread. */
 	struct thread *reclaimer_thr;
-	
+
 	/* Some statistics. */
 	size_t stat_max_cbs;
@@ -150,5 +150,5 @@
 
 #ifdef RCU_PREEMPT_PODZIMEK
-	
+
 	/** True if the thread was preempted in a reader section.
 	 *
@@ -160,5 +160,5 @@
 	bool was_preempted;
 #endif
-	
+
 	/** Preempted threads link. Access with rcu.prempt_lock.*/
 	link_t preempt_link;
Index: kernel/generic/include/synch/spinlock.h
===================================================================
--- kernel/generic/include/synch/spinlock.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/synch/spinlock.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,5 +47,5 @@
 typedef struct spinlock {
 	atomic_t val;
-	
+
 #ifdef CONFIG_DEBUG_SPINLOCK
 	const char *name;
@@ -130,5 +130,5 @@
 	 */
 	CS_LEAVE_BARRIER();
-	
+
 	atomic_set(&lock->val, 0);
 	preemption_enable();
Index: kernel/generic/include/synch/waitq.h
===================================================================
--- kernel/generic/include/synch/waitq.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/synch/waitq.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 	 */
 	IRQ_SPINLOCK_DECLARE(lock);
-	
+
 	/**
 	 * Number of waitq_wakeup() calls that didn't find a thread to wake up.
@@ -61,5 +61,5 @@
 	 */
 	int missed_wakeups;
-	
+
 	/** List of sleeping threads for which there was no missed_wakeup. */
 	list_t sleepers;
Index: kernel/generic/include/synch/workqueue.h
===================================================================
--- kernel/generic/include/synch/workqueue.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/synch/workqueue.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 	link_t queue_link;
 	work_func_t func;
-	
+
 #ifdef CONFIG_DEBUG
 	/* Magic number for integrity checks. */
Index: kernel/generic/include/sysinfo/sysinfo.h
===================================================================
--- kernel/generic/include/sysinfo/sysinfo.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/sysinfo/sysinfo.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -137,11 +137,11 @@
 typedef struct sysinfo_item {
 	char *name;                           /**< Item name */
-	
+
 	sysinfo_item_val_type_t val_type;     /**< Item value type */
 	sysinfo_item_val_t val;               /**< Item value */
-	
+
 	sysinfo_subtree_type_t subtree_type;  /**< Subtree type */
 	sysinfo_subtree_t subtree;            /**< Subtree */
-	
+
 	struct sysinfo_item *next;            /**< Sibling item */
 } sysinfo_item_t;
Index: kernel/generic/include/time/timeout.h
===================================================================
--- kernel/generic/include/time/timeout.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/time/timeout.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,5 +44,5 @@
 typedef struct {
 	IRQ_SPINLOCK_DECLARE(lock);
-	
+
 	/** Link to the list of active timeouts on THE->cpu */
 	link_t link;
Index: kernel/generic/include/udebug/udebug.h
===================================================================
--- kernel/generic/include/udebug/udebug.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/include/udebug/udebug.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,5 +58,5 @@
 	mutex_t lock;
 	char *lock_owner;
-	
+
 	udebug_task_state_t dt_state;
 	call_t *begin_call;
@@ -71,10 +71,10 @@
 	/** Synchronize debug ops on this thread / access to this structure. */
 	mutex_t lock;
-	
+
 	waitq_t go_wq;
 	call_t *go_call;
 	sysarg_t syscall_args[6];
 	istate_t *uspace_state;
-	
+
 	/** What type of event are we stopped in or 0 if none. */
 	udebug_event_t cur_event;
Index: kernel/generic/src/adt/avl.c
===================================================================
--- kernel/generic/src/adt/avl.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/adt/avl.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 {
 	avltree_node_t *p;
-	
+
 	/*
 	 * Iteratively descend to the leaf that can contain the searched key.
@@ -92,5 +92,5 @@
 {
 	avltree_node_t *p = t->root;
-	
+
 	/*
 	 * Check whether the tree is empty.
@@ -98,5 +98,5 @@
 	if (!p)
 		return NULL;
-	
+
 	/*
 	 * Iteratively descend to the leftmost leaf in the tree.
@@ -104,5 +104,5 @@
 	while (p->lft != NULL)
 		p = p->lft;
-	
+
 	return p;
 }
@@ -151,5 +151,5 @@
 #define REBALANCE_INSERT_LR()		REBALANCE_INSERT_XY(lft, rgt, 1)
 #define REBALANCE_INSERT_RL()		REBALANCE_INSERT_XY(rgt, lft, -1)
-	
+
 /** Insert new node into AVL tree.
  *
@@ -172,5 +172,5 @@
 	 */
 	key = newnode->key + t->base;
-	
+
 	/*
 	 * Iteratively descend to the leaf that can contain the new node.
@@ -244,5 +244,5 @@
 		}
 	}
-	
+
 	/*
 	 * To balance the tree, we must check and balance top node.
@@ -260,5 +260,5 @@
 			 */
 			assert(par->balance == 1);
-			
+
 			REBALANCE_INSERT_LR();
 		}
@@ -275,5 +275,5 @@
 			 */
 			assert(par->balance == -1);
-		
+
 			REBALANCE_INSERT_RL();
 		}
@@ -375,5 +375,5 @@
 	assert(t);
 	assert(node);
-	
+
 	if (node->lft == NULL) {
 		if (node->rgt) {
@@ -451,5 +451,5 @@
 		cur->par = node->par;
 	}
-	
+
 	/*
 	 * Repair the parent node's pointer which pointed previously to the
@@ -457,5 +457,5 @@
 	 */
 	(void) repair(t, node, node, cur, NULL, false);
-	
+
 	/*
 	 * Repair cycle which repairs balances of nodes on the way from from the
@@ -484,5 +484,5 @@
 					 * RL rotation.
 					 */
-					
+
 					cur = par->lft;
 					par->lft = cur->rgt;
@@ -490,5 +490,5 @@
 					gpa->rgt = cur->lft;
 					cur->lft = gpa;
-					
+
 					/*
 					 * Repair balances and paternity of
@@ -497,5 +497,5 @@
 					 */
 					REBALANCE_DELETE_RL();
-					
+
 					/*
 					 * Repair paternity.
@@ -513,10 +513,10 @@
 					 * RR rotation.
 					 */
-					
+
 					gpa->rgt = par->lft;
 					if (par->lft)
 						par->lft->par = gpa;
 					par->lft = gpa;
-					
+
 					/*
 					 * Repair paternity.
@@ -524,5 +524,5 @@
 					par->par = gpa->par;
 					gpa->par = par;
-					
+
 					if (par->balance == 0) {
 						/*
@@ -575,10 +575,10 @@
 				 */
 				par = gpa->lft;
-				
+
 				if (par->balance == 1) {
 					/*
 					 * LR rotation.
 					 */
-					
+
 					cur = par->rgt;
 					par->rgt = cur->lft;
@@ -586,5 +586,5 @@
 					gpa->lft = cur->rgt;
 					cur->rgt = gpa;
-					
+
 					/*
 					 * Repair balances and paternity of
@@ -619,5 +619,5 @@
 					par->par = gpa->par;
 					gpa->par = par;
-					
+
 					if (par->balance == 0) {
 						/*
@@ -630,5 +630,5 @@
 						par->balance = 1;
 						gpa->balance = -1;
-						
+
 						(void) repair(t, par, gpa, par,
 						    NULL, false);
@@ -637,5 +637,5 @@
 						par->balance = 0;
 						gpa->balance = 0;
-						
+
 						if (!repair(t, par, gpa, par,
 						    &dir, false))
@@ -667,5 +667,5 @@
 {
 	avltree_node_t *node;
-	
+
 	/*
 	 * Start searching for the smallest key in the tree starting in the root
@@ -673,12 +673,12 @@
 	 * must have the smallest key).
 	 */
-	 
+
 	node = t->root;
 	if (!node)
 		return false;
-	
+
 	while (node->lft != NULL)
 		node = node->lft;
-	
+
 	avltree_delete(t, node);
 
Index: kernel/generic/src/adt/bitmap.c
===================================================================
--- kernel/generic/src/adt/bitmap.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/adt/bitmap.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 	size_t byte = element / BITMAP_ELEMENT;
 	uint8_t mask = 1 << (element & BITMAP_REMAINER);
-	
+
 	return !!((bitmap->bits)[byte] & mask);
 }
@@ -78,8 +78,8 @@
 {
 	size_t size = elements / BITMAP_ELEMENT;
-	
+
 	if ((elements % BITMAP_ELEMENT) != 0)
 		size++;
-	
+
 	return size;
 }
@@ -113,20 +113,20 @@
 {
 	assert(start + count <= bitmap->elements);
-	
+
 	if (count == 0)
 		return;
-	
+
 	size_t start_byte = start / BITMAP_ELEMENT;
 	size_t aligned_start = ALIGN_UP(start, BITMAP_ELEMENT);
-	
+
 	/* Leading unaligned bits */
 	size_t lub = min(aligned_start - start, count);
-	
+
 	/* Aligned middle bits */
 	size_t amb = (count > lub) ? (count - lub) : 0;
-	
+
 	/* Trailing aligned bits */
 	size_t tab = amb % BITMAP_ELEMENT;
-	
+
 	if (start + count < aligned_start) {
 		/* Set bits in the middle of byte. */
@@ -135,5 +135,5 @@
 		return;
 	}
-	
+
 	if (lub) {
 		/* Make sure to set any leading unaligned bits. */
@@ -141,7 +141,7 @@
 		    ~((1 << (BITMAP_ELEMENT - lub)) - 1);
 	}
-	
+
 	size_t i;
-	
+
 	for (i = 0; i < amb / BITMAP_ELEMENT; i++) {
 		/* The middle bits can be set byte by byte. */
@@ -149,5 +149,5 @@
 		    ALL_ONES;
 	}
-	
+
 	if (tab) {
 		/* Make sure to set any trailing aligned bits. */
@@ -167,20 +167,20 @@
 {
 	assert(start + count <= bitmap->elements);
-	
+
 	if (count == 0)
 		return;
-	
+
 	size_t start_byte = start / BITMAP_ELEMENT;
 	size_t aligned_start = ALIGN_UP(start, BITMAP_ELEMENT);
-	
+
 	/* Leading unaligned bits */
 	size_t lub = min(aligned_start - start, count);
-	
+
 	/* Aligned middle bits */
 	size_t amb = (count > lub) ? (count - lub) : 0;
-	
+
 	/* Trailing aligned bits */
 	size_t tab = amb % BITMAP_ELEMENT;
-	
+
 	if (start + count < aligned_start) {
 		/* Set bits in the middle of byte */
@@ -189,5 +189,5 @@
 		return;
 	}
-	
+
 	if (lub) {
 		/* Make sure to clear any leading unaligned bits. */
@@ -195,7 +195,7 @@
 		    (1 << (BITMAP_ELEMENT - lub)) - 1;
 	}
-	
+
 	size_t i;
-	
+
 	for (i = 0; i < amb / BITMAP_ELEMENT; i++) {
 		/* The middle bits can be cleared byte by byte. */
@@ -203,5 +203,5 @@
 		    ALL_ZEROES;
 	}
-	
+
 	if (tab) {
 		/* Make sure to clear any trailing aligned bits. */
@@ -209,5 +209,5 @@
 		    ~((1 << tab) - 1);
 	}
-	
+
 	bitmap->next_fit = start_byte;
 }
@@ -224,10 +224,10 @@
 	assert(count <= dst->elements);
 	assert(count <= src->elements);
-	
+
 	size_t i;
-	
+
 	for (i = 0; i < count / BITMAP_ELEMENT; i++)
 		dst->bits[i] = src->bits[i];
-	
+
 	if (count % BITMAP_ELEMENT) {
 		bitmap_clear_range(dst, i * BITMAP_ELEMENT,
@@ -274,8 +274,8 @@
 	if (count == 0)
 		return false;
-	
+
 	size_t size = bitmap_size(bitmap->elements);
 	size_t next_fit = bitmap->next_fit;
-	
+
 	/*
 	 * Adjust the next-fit value according to the address
@@ -284,30 +284,30 @@
 	if ((prefered > base) && (prefered < base + bitmap->elements)) {
 		size_t prefered_fit = (prefered - base) / BITMAP_ELEMENT;
-		
+
 		if (prefered_fit > next_fit)
 			next_fit = prefered_fit;
 	}
-	
+
 	for (size_t pos = 0; pos < size; pos++) {
 		size_t byte = (next_fit + pos) % size;
-		
+
 		/* Skip if the current byte has all bits set */
 		if (bitmap->bits[byte] == ALL_ONES)
 			continue;
-		
+
 		size_t byte_bit = byte * BITMAP_ELEMENT;
-		
+
 		for (size_t bit = 0; bit < BITMAP_ELEMENT; bit++) {
 			size_t i = byte_bit + bit;
-			
+
 			if (i >= bitmap->elements)
 				break;
-			
+
 			if (!constraint_satisfy(i, base, constraint))
 				continue;
-			
+
 			if (!bitmap_get_fast(bitmap, i)) {
 				size_t continuous = 1;
-				
+
 				for (size_t j = 1; j < count; j++) {
 					if ((i + j < bitmap->elements) &&
@@ -317,5 +317,5 @@
 						break;
 				}
-				
+
 				if (continuous == count) {
 					if (index != NULL) {
@@ -324,5 +324,5 @@
 						*index = i;
 					}
-					
+
 					return true;
 				} else
@@ -331,5 +331,5 @@
 		}
 	}
-	
+
 	return false;
 }
Index: kernel/generic/src/adt/btree.c
===================================================================
--- kernel/generic/src/adt/btree.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/adt/btree.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -83,7 +83,7 @@
 {
 	unsigned int i;
-	
+
 	node->keys = 0;
-	
+
 	/* Clean also space for the extra key. */
 	for (i = 0; i < BTREE_MAX_KEYS + 1; i++) {
@@ -92,8 +92,8 @@
 		node->subtree[i] = NULL;
 	}
-	
+
 	node->subtree[i] = NULL;
 	node->parent = NULL;
-	
+
 	link_initialize(&node->leaf_link);
 	link_initialize(&node->bfs_link);
@@ -122,5 +122,5 @@
 {
 	size_t i;
-	
+
 	if (root->keys) {
 		for (i = 0; i < root->keys + 1; i++) {
@@ -129,5 +129,5 @@
 		}
 	}
-	
+
 	slab_free(btree_node_cache, root);
 }
@@ -156,9 +156,9 @@
 {
 	size_t i;
-	
+
 	for (i = 0; i < node->keys; i++) {
 		if (key < node->key[i]) {
 			size_t j;
-			
+
 			for (j = node->keys; j > i; j--) {
 				node->key[j] = node->key[j - 1];
@@ -166,9 +166,9 @@
 				node->subtree[j + 1] = node->subtree[j];
 			}
-			
+
 			break;
 		}
 	}
-	
+
 	node->key[i] = key;
 	node->value[i] = value;
@@ -191,10 +191,10 @@
 {
 	size_t i;
-	
+
 	for (i = 0; i < node->keys + 1; i++) {
 		if (subtree == node->subtree[i])
 			return i - (int) (right != false);
 	}
-	
+
 	panic("Node %p does not contain subtree %p.", node, subtree);
 }
@@ -215,5 +215,5 @@
 	size_t i;
 	size_t j;
-	
+
 	for (i = 0; i < node->keys; i++) {
 		if (key == node->key[i]) {
@@ -223,12 +223,12 @@
 				node->subtree[j - 1] = node->subtree[j];
 			}
-			
+
 			node->subtree[j - 1] = node->subtree[j];
 			node->keys--;
-			
+
 			return;
 		}
 	}
-	
+
 	panic("Node %p does not contain key %" PRIu64 ".", node, key);
 }
@@ -248,5 +248,5 @@
 {
 	size_t i, j;
-	
+
 	for (i = 0; i < node->keys; i++) {
 		if (key == node->key[i]) {
@@ -256,10 +256,10 @@
 				node->subtree[j] = node->subtree[j + 1];
 			}
-			
+
 			node->keys--;
 			return;
 		}
 	}
-	
+
 	panic("Node %p does not contain key %" PRIu64 ".", node, key);
 }
@@ -280,9 +280,9 @@
 {
 	size_t i;
-	
+
 	for (i = 0; i < node->keys; i++) {
 		if (key < node->key[i]) {
 			size_t j;
-			
+
 			for (j = node->keys; j > i; j--) {
 				node->key[j] = node->key[j - 1];
@@ -290,14 +290,14 @@
 				node->subtree[j + 1] = node->subtree[j];
 			}
-			
+
 			node->subtree[j + 1] = node->subtree[j];
 			break;
 		}
 	}
-	
+
 	node->key[i] = key;
 	node->value[i] = value;
 	node->subtree[i] = lsubtree;
-	
+
 	node->keys++;
 }
@@ -320,8 +320,8 @@
 {
 	btree_key_t key = lnode->key[lnode->keys - 1];
-	
+
 	if (LEAF_NODE(lnode)) {
 		void *value = lnode->value[lnode->keys - 1];
-		
+
 		node_remove_key_and_rsubtree(lnode, key);
 		node_insert_key_and_lsubtree(rnode, key, value, NULL);
@@ -329,9 +329,9 @@
 	} else {
 		btree_node_t *rsubtree = lnode->subtree[lnode->keys];
-		
+
 		node_remove_key_and_rsubtree(lnode, key);
 		node_insert_key_and_lsubtree(rnode, lnode->parent->key[idx], NULL, rsubtree);
 		lnode->parent->key[idx] = key;
-		
+
 		/* Fix parent link of the reconnected right subtree. */
 		rsubtree->parent = rnode;
@@ -356,8 +356,8 @@
 {
 	btree_key_t key = rnode->key[0];
-	
+
 	if (LEAF_NODE(rnode)) {
 		void *value = rnode->value[0];
-		
+
 		node_remove_key_and_lsubtree(rnode, key);
 		node_insert_key_and_rsubtree(lnode, key, value, NULL);
@@ -365,9 +365,9 @@
 	} else {
 		btree_node_t *lsubtree = rnode->subtree[0];
-		
+
 		node_remove_key_and_lsubtree(rnode, key);
 		node_insert_key_and_rsubtree(lnode, rnode->parent->key[idx], NULL, lsubtree);
 		rnode->parent->key[idx] = key;
-		
+
 		/* Fix parent link of the reconnected left subtree. */
 		lsubtree->parent = lnode;
@@ -395,5 +395,5 @@
 	size_t idx;
 	btree_node_t *lnode;
-	
+
 	/*
 	 * If this is root node, the rotation can not be done.
@@ -401,5 +401,5 @@
 	if (ROOT_NODE(node))
 		return false;
-	
+
 	idx = find_key_by_subtree(node->parent, node, true);
 	if ((int) idx == -1) {
@@ -410,5 +410,5 @@
 		return false;
 	}
-	
+
 	lnode = node->parent->subtree[idx];
 	if (lnode->keys < BTREE_MAX_KEYS) {
@@ -420,5 +420,5 @@
 		return true;
 	}
-	
+
 	return false;
 }
@@ -444,5 +444,5 @@
 	size_t idx;
 	btree_node_t *rnode;
-	
+
 	/*
 	 * If this is root node, the rotation can not be done.
@@ -450,5 +450,5 @@
 	if (ROOT_NODE(node))
 		return false;
-	
+
 	idx = find_key_by_subtree(node->parent, node, false);
 	if (idx == node->parent->keys) {
@@ -459,5 +459,5 @@
 		return false;
 	}
-	
+
 	rnode = node->parent->subtree[idx + 1];
 	if (rnode->keys < BTREE_MAX_KEYS) {
@@ -469,5 +469,5 @@
 		return true;
 	}
-	
+
 	return false;
 }
@@ -499,18 +499,18 @@
 	size_t i;
 	size_t j;
-	
+
 	assert(median);
 	assert(node->keys == BTREE_MAX_KEYS);
-	
+
 	/*
 	 * Use the extra space to store the extra node.
 	 */
 	node_insert_key_and_rsubtree(node, key, value, rsubtree);
-	
+
 	/*
 	 * Compute median of keys.
 	 */
 	*median = MEDIAN_HIGH(node);
-	
+
 	/*
 	 * Allocate and initialize new right sibling.
@@ -520,5 +520,5 @@
 	rnode->parent = node->parent;
 	rnode->depth = node->depth;
-	
+
 	/*
 	 * Copy big keys, values and subtree pointers to the new right sibling.
@@ -530,5 +530,5 @@
 		rnode->value[j] = node->value[i];
 		rnode->subtree[j] = node->subtree[i];
-		
+
 		/*
 		 * Fix parent links in subtrees.
@@ -537,12 +537,12 @@
 			rnode->subtree[j]->parent = rnode;
 	}
-	
+
 	rnode->subtree[j] = node->subtree[i];
 	if (rnode->subtree[j])
 		rnode->subtree[j]->parent = rnode;
-	
+
 	rnode->keys = j;  /* Set number of keys of the new node. */
 	node->keys /= 2;  /* Shrink the old node. */
-	
+
 	return rnode;
 }
@@ -578,5 +578,5 @@
 		btree_node_t *rnode;
 		btree_key_t median;
-		
+
 		/*
 		 * Node is full and both siblings (if both exist) are full too.
@@ -584,11 +584,11 @@
 		 * bigger keys (i.e. the new node) into its parent.
 		 */
-		
+
 		rnode = node_split(node, key, value, rsubtree, &median);
-		
+
 		if (LEAF_NODE(node)) {
 			list_insert_after(&rnode->leaf_link, &node->leaf_link);
 		}
-		
+
 		if (ROOT_NODE(node)) {
 			/*
@@ -599,5 +599,5 @@
 			rnode->parent = t->root;
 			node_initialize(t->root);
-			
+
 			/*
 			 * Left-hand side subtree will be the old root (i.e. node).
@@ -605,5 +605,5 @@
 			 */
 			t->root->subtree[0] = node;
-			
+
 			t->root->depth = node->depth + 1;
 		}
@@ -624,7 +624,7 @@
 {
 	btree_node_t *lnode;
-	
+
 	assert(value);
-	
+
 	lnode = leaf_node;
 	if (!lnode) {
@@ -632,5 +632,5 @@
 			panic("B-tree %p already contains key %" PRIu64 ".", t, key);
 	}
-	
+
 	_btree_insert(t, key, value, NULL, lnode);
 }
@@ -648,5 +648,5 @@
 	size_t idx;
 	btree_node_t *lnode;
-	
+
 	/*
 	 * If this is root node, the rotation can not be done.
@@ -654,5 +654,5 @@
 	if (ROOT_NODE(rnode))
 		return false;
-	
+
 	idx = find_key_by_subtree(rnode->parent, rnode, true);
 	if ((int) idx == -1) {
@@ -663,5 +663,5 @@
 		return false;
 	}
-	
+
 	lnode = rnode->parent->subtree[idx];
 	if (lnode->keys > FILL_FACTOR) {
@@ -669,5 +669,5 @@
 		return true;
 	}
-	
+
 	return false;
 }
@@ -685,5 +685,5 @@
 	size_t idx;
 	btree_node_t *rnode;
-	
+
 	/*
 	 * If this is root node, the rotation can not be done.
@@ -691,5 +691,5 @@
 	if (ROOT_NODE(lnode))
 		return false;
-	
+
 	idx = find_key_by_subtree(lnode->parent, lnode, false);
 	if (idx == lnode->parent->keys) {
@@ -700,5 +700,5 @@
 		return false;
 	}
-	
+
 	rnode = lnode->parent->subtree[idx + 1];
 	if (rnode->keys > FILL_FACTOR) {
@@ -706,5 +706,5 @@
 		return true;
 	}
-	
+
 	return false;
 }
@@ -724,7 +724,7 @@
 	btree_node_t *rnode;
 	size_t i;
-	
+
 	assert(!ROOT_NODE(node));
-	
+
 	idx = find_key_by_subtree(node->parent, node, false);
 	if (idx == node->parent->keys) {
@@ -737,14 +737,14 @@
 	} else
 		rnode = node->parent->subtree[idx + 1];
-	
+
 	/* Index nodes need to insert parent node key in between left and right node. */
 	if (INDEX_NODE(node))
 		node->key[node->keys++] = node->parent->key[idx];
-	
+
 	/* Copy the key-value-subtree triplets from the right node. */
 	for (i = 0; i < rnode->keys; i++) {
 		node->key[node->keys + i] = rnode->key[i];
 		node->value[node->keys + i] = rnode->value[i];
-		
+
 		if (INDEX_NODE(node)) {
 			node->subtree[node->keys + i] = rnode->subtree[i];
@@ -752,10 +752,10 @@
 		}
 	}
-	
+
 	if (INDEX_NODE(node)) {
 		node->subtree[node->keys + i] = rnode->subtree[i];
 		rnode->subtree[i]->parent = node;
 	}
-	
+
 	node->keys += rnode->keys;
 	return rnode;
@@ -789,8 +789,8 @@
 			node_remove_key_and_rsubtree(node, key);
 		}
-		
+
 		return;
 	}
-	
+
 	if (node->keys <= FILL_FACTOR) {
 		/*
@@ -801,8 +801,8 @@
 			try_rotation_from_right(node);
 	}
-	
+
 	if (node->keys > FILL_FACTOR) {
 		size_t i;
-		
+
 		/*
 		 * The key can be immediately removed.
@@ -813,5 +813,5 @@
 		 */
 		node_remove_key_and_rsubtree(node, key);
-		
+
 		for (i = 0; i < node->parent->keys; i++) {
 			if (node->parent->key[i] == key)
@@ -822,5 +822,5 @@
 		btree_node_t *rnode;
 		btree_node_t *parent;
-		
+
 		/*
 		 * The node is below the fill factor as well as its left and right sibling.
@@ -832,8 +832,8 @@
 		node_remove_key_and_rsubtree(node, key);
 		rnode = node_combine(node);
-		
+
 		if (LEAF_NODE(rnode))
 			list_remove(&rnode->leaf_link);
-		
+
 		idx = find_key_by_subtree(parent, rnode, true);
 		assert((int) idx != -1);
@@ -855,5 +855,5 @@
 {
 	btree_node_t *lnode;
-	
+
 	lnode = leaf_node;
 	if (!lnode) {
@@ -861,5 +861,5 @@
 			panic("B-tree %p does not contain key %" PRIu64 ".", t, key);
 	}
-	
+
 	_btree_remove(t, key, lnode);
 }
@@ -877,5 +877,5 @@
 {
 	btree_node_t *cur, *next;
-	
+
 	/*
 	 * Iteratively descend to the leaf that can contain the searched key.
@@ -887,5 +887,5 @@
 		 */
 		*leaf_node = cur;
-		
+
 		if (cur->keys == 0)
 			return NULL;
@@ -901,5 +901,5 @@
 			void *val;
 			size_t i;
-			
+
 			/*
 			 * Now if the key is smaller than cur->key[i]
@@ -911,12 +911,12 @@
 					next = cur->subtree[i];
 					val = cur->value[i - 1];
-					
+
 					if (LEAF_NODE(cur))
 						return key == cur->key[i - 1] ? val : NULL;
-					
+
 					goto descend;
 				}
 			}
-			
+
 			/*
 			 * Last possibility is that the key is
@@ -925,5 +925,5 @@
 			next = cur->subtree[i];
 			val = cur->value[i - 1];
-			
+
 			if (LEAF_NODE(cur))
 				return key == cur->key[i - 1] ? val : NULL;
@@ -932,5 +932,5 @@
 		;
 	}
-	
+
 	/*
 	 * The key was not found in the *leaf_node and
@@ -952,5 +952,5 @@
 {
 	assert(LEAF_NODE(node));
-	
+
 	if (node->leaf_link.prev != &t->leaf_list.head)
 		return list_get_instance(node->leaf_link.prev, btree_node_t, leaf_link);
@@ -971,5 +971,5 @@
 {
 	assert(LEAF_NODE(node));
-	
+
 	if (node->leaf_link.next != &t->leaf_list.head)
 		return list_get_instance(node->leaf_link.next, btree_node_t, leaf_link);
@@ -988,9 +988,9 @@
 	int depth = t->root->depth;
 	list_t list;
-	
+
 	printf("Printing B-tree:\n");
 	list_initialize(&list);
 	list_append(&t->root->bfs_link, &list);
-	
+
 	/*
 	 * Use BFS search to print out the tree.
@@ -1000,19 +1000,19 @@
 		link_t *hlp;
 		btree_node_t *node;
-		
+
 		hlp = list_first(&list);
 		assert(hlp != NULL);
 		node = list_get_instance(hlp, btree_node_t, bfs_link);
 		list_remove(hlp);
-		
+
 		assert(node);
-		
+
 		if (node->depth != depth) {
 			printf("\n");
 			depth = node->depth;
 		}
-		
+
 		printf("(");
-		
+
 		for (i = 0; i < node->keys; i++) {
 			printf("%" PRIu64 "%s", node->key[i], i < node->keys - 1 ? "," : "");
@@ -1021,25 +1021,25 @@
 			}
 		}
-		
+
 		if (node->depth && node->subtree[i])
 			list_append(&node->subtree[i]->bfs_link, &list);
-		
+
 		printf(")");
 	}
-	
+
 	printf("\n");
-	
+
 	printf("Printing list of leaves:\n");
 	list_foreach(t->leaf_list, leaf_link, btree_node_t, node) {
 		assert(node);
-		
+
 		printf("(");
-		
+
 		for (i = 0; i < node->keys; i++)
 			printf("%" PRIu64 "%s", node->key[i], i < node->keys - 1 ? "," : "");
-		
+
 		printf(")");
 	}
-	
+
 	printf("\n");
 }
Index: kernel/generic/src/adt/cht.c
===================================================================
--- kernel/generic/src/adt/cht.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/adt/cht.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -531,13 +531,13 @@
 	if (!op || !op->hash || !op->key_hash || !op->equal || !op->key_equal)
 		return false;
-	
+
 	size_t min_order = size_to_order(min_size, CHT_MIN_ORDER);
 	size_t order = size_to_order(init_size, min_order);
-	
+
 	h->b = alloc_buckets(order, false, can_block);
-	
+
 	if (!h->b)
 		return false;
-	
+
 	h->max_load = (max_load == 0) ? CHT_MAX_LOAD : max_load;
 	h->min_order = min_order;
@@ -546,9 +546,9 @@
 	atomic_set(&h->item_cnt, 0);
 	atomic_set(&h->resize_reqs, 0);
-	
+
 	if (NULL == op->remove_callback) {
 		h->op->remove_callback = dummy_remove_callback;
 	}
-	
+
 	/*
 	 * Cached item hashes are stored in item->rcu_link.func. Once the item
@@ -556,8 +556,8 @@
 	 */
 	h->invalid_hash = (uintptr_t)h->op->remove_callback;
-	
+
 	/* Ensure the initialization takes place before we start using the table. */
 	write_barrier();
-	
+
 	return true;
 }
@@ -581,18 +581,18 @@
 		sizeof(cht_buckets_t) + (bucket_cnt - 1) * sizeof(marked_ptr_t);
 	cht_buckets_t *b = malloc(bytes, can_block ? 0 : FRAME_ATOMIC);
-	
+
 	if (!b)
 		return NULL;
-	
+
 	b->order = order;
-	
+
 	marked_ptr_t head_link = set_invalid
 		? make_link(&sentinel, N_INVALID)
 		: make_link(&sentinel, N_NORMAL);
-	
+
 	for (size_t i = 0; i < bucket_cnt; ++i) {
 		b->head[i] = head_link;
 	}
-	
+
 	return b;
 }
@@ -607,8 +607,8 @@
 		if (bucket_cnt <= ((size_t)1 << order))
 			return order;
-		
+
 		++order;
 	} while (order < CHT_MAX_ORDER);
-	
+
 	return order;
 }
@@ -623,5 +623,5 @@
 {
 	cht_destroy_unsafe(h);
-	
+
 	/* You must clear the table of items. Otherwise cht_destroy will leak. */
 	assert(atomic_get(&h->item_cnt) == 0);
@@ -635,8 +635,8 @@
 		rcu_barrier();
 	}
-	
+
 	/* Wait for all remove_callback()s to complete. */
 	rcu_barrier();
-	
+
 	free(h->b);
 	h->b = NULL;
@@ -688,7 +688,7 @@
 	/* See docs to cht_find() and cht_find_lazy(). */
 	assert(rcu_read_locked());
-	
+
 	size_t hash = calc_key_hash(h, key);
-	
+
 	cht_buckets_t *b = rcu_access(h->b);
 	size_t idx = calc_bucket_idx(hash, b->order);
@@ -698,9 +698,9 @@
 	 */
 	marked_ptr_t head = b->head[idx];
-	
+
 	/* Undergoing a resize - take the slow path. */
 	if (N_INVALID == get_mark(head))
 		return find_resizing(h, key, hash, head, idx);
-	
+
 	return search_bucket(h, head, key, hash);
 }
@@ -734,5 +734,5 @@
 	assert(rcu_read_locked());
 	assert(item);
-	
+
 	return find_duplicate(h, item, calc_node_hash(h, item), get_next(item->link));
 }
@@ -758,5 +758,5 @@
 		prev = cur->link;
 	} while (node_hash(h, cur) < search_hash);
-	
+
 	/*
 	 * Only search for an item with an equal key if cur is not the sentinel
@@ -768,9 +768,9 @@
 				return cur;
 		}
-		
+
 		cur = get_next(cur->link);
 		assert(cur);
 	}
-	
+
 	/*
 	 * In the unlikely case that we have encountered a node whose cached
@@ -782,5 +782,5 @@
 		goto try_again;
 	}
-	
+
 	return NULL;
 }
@@ -792,9 +792,9 @@
 	assert(N_INVALID == get_mark(old_head));
 	assert(h->new_b);
-	
+
 	size_t new_idx = calc_bucket_idx(hash, h->new_b->order);
 	marked_ptr_t new_head = h->new_b->head[new_idx];
 	marked_ptr_t search_head = new_head;
-	
+
 	/* Growing. */
 	if (h->b->order < h->new_b->order) {
@@ -818,7 +818,7 @@
 				new_head = h->new_b->head[grow_idx(old_idx)];
 			}
-			
+
 			/* new_head is now the moved bucket, either valid or invalid. */
-			
+
 			/*
 			 * The old bucket was definitely moved to new_head but the
@@ -845,13 +845,13 @@
 			}
 		}
-		
+
 		return search_bucket(h, search_head, key, hash);
 	} else if (h->b->order > h->new_b->order) {
 		/* Shrinking. */
-		
+
 		/* Index of the bucket in the old table that was moved. */
 		size_t move_src_idx = grow_idx(new_idx);
 		marked_ptr_t moved_old_head = h->b->head[move_src_idx];
-		
+
 		/*
 		 * h->b->head[move_src_idx] had already been moved to new_head
@@ -883,7 +883,7 @@
 			search_head = moved_old_head;
 		}
-		
+
 		cht_link_t *ret = search_bucket(h, search_head, key, hash);
-		
+
 		if (ret)
 			return ret;
@@ -906,5 +906,5 @@
 			return search_bucket(h, old_head, key, hash);
 		}
-		
+
 		return NULL;
 	} else {
@@ -979,16 +979,16 @@
 	bool resizing = false;
 	bool inserted = false;
-	
+
 	do {
 		walk_mode_t walk_mode = WM_NORMAL;
 		bool join_finishing;
-		
+
 		resizing = resizing || (N_NORMAL != get_mark(*phead));
-		
+
 		/* The table is resizing. Get the correct bucket head. */
 		if (resizing) {
 			upd_resizing_head(h, hash, &phead, &join_finishing, &walk_mode);
 		}
-		
+
 		wnd_t wnd = {
 			.ppred = phead,
@@ -996,18 +996,18 @@
 			.last = NULL
 		};
-		
+
 		if (!find_wnd_and_gc(h, hash, walk_mode, &wnd, &resizing)) {
 			/* Could not GC a node; or detected an unexpected resize. */
 			continue;
 		}
-		
+
 		if (dup_item && has_duplicate(h, item, hash, wnd.cur, dup_item)) {
 			rcu_read_unlock();
 			return false;
 		}
-		
+
 		inserted = insert_at(item, &wnd, walk_mode, &resizing);
 	} while (!inserted);
-	
+
 	rcu_read_unlock();
 
@@ -1032,13 +1032,13 @@
 {
 	marked_ptr_t ret;
-	
+
 	if (walk_mode == WM_NORMAL) {
 		item->link = make_link(wnd->cur, N_NORMAL);
 		/* Initialize the item before adding it to a bucket. */
 		memory_barrier();
-		
+
 		/* Link a clean/normal predecessor to the item. */
 		ret = cas_link(wnd->ppred, wnd->cur, N_NORMAL, item, N_NORMAL);
-		
+
 		if (ret == make_link(wnd->cur, N_NORMAL)) {
 			return true;
@@ -1054,8 +1054,8 @@
 		/* Initialize the item before adding it to a bucket. */
 		memory_barrier();
-		
+
 		/* Link the not-deleted predecessor to the item. Move its JF mark. */
 		ret = cas_link(wnd->ppred, wnd->cur, jf_mark, item, N_NORMAL);
-		
+
 		return ret == make_link(wnd->cur, jf_mark);
 	} else {
@@ -1065,5 +1065,5 @@
 		/* Initialize the item before adding it to a bucket. */
 		memory_barrier();
-		
+
 		mark_t pred_mark = get_mark(*wnd->ppred);
 		/* If the predecessor is a join node it may be marked deleted.*/
@@ -1090,5 +1090,5 @@
 	assert(cur == &sentinel || hash <= node_hash(h, cur)
 		|| node_hash(h, cur) == h->invalid_hash);
-	
+
 	/* hash < node_hash(h, cur) */
 	if (hash != node_hash(h, cur) && h->invalid_hash != node_hash(h, cur))
@@ -1101,5 +1101,5 @@
 	 */
 	read_barrier();
-	
+
 	*dup_item = find_duplicate(h, item, hash, cur);
 	return NULL != *dup_item;
@@ -1113,5 +1113,5 @@
 
 	cht_link_t *cur = start;
-	
+
 try_again:
 	assert(cur);
@@ -1119,11 +1119,11 @@
 	while (node_hash(h, cur) == hash) {
 		assert(cur != &sentinel);
-		
+
 		bool deleted = (N_DELETED & get_mark(cur->link));
-		
+
 		/* Skip logically deleted nodes. */
 		if (!deleted && h->op->equal(item, cur))
 			return cur;
-		
+
 		cur = get_next(cur->link);
 		assert(cur);
@@ -1135,5 +1135,5 @@
 		goto try_again;
 	}
-	
+
 	return NULL;
 }
@@ -1143,11 +1143,11 @@
 {
 	assert(h);
-	
+
 	size_t hash = calc_key_hash(h, key);
 	size_t removed = 0;
-	
+
 	while (remove_pred(h, hash, h->op->key_equal, key))
 		++removed;
-	
+
 	return removed;
 }
@@ -1181,24 +1181,24 @@
 {
 	rcu_read_lock();
-	
+
 	bool resizing = false;
 	bool deleted = false;
 	bool deleted_but_gc = false;
-	
+
 	cht_buckets_t *b = rcu_access(h->b);
 	size_t idx = calc_bucket_idx(hash, b->order);
 	marked_ptr_t *phead = &b->head[idx];
-	
+
 	do {
 		walk_mode_t walk_mode = WM_NORMAL;
 		bool join_finishing = false;
-		
+
 		resizing = resizing || (N_NORMAL != get_mark(*phead));
-		
+
 		/* The table is resizing. Get the correct bucket head. */
 		if (resizing) {
 			upd_resizing_head(h, hash, &phead, &join_finishing, &walk_mode);
 		}
-		
+
 		wnd_t wnd = {
 			.ppred = phead,
@@ -1206,5 +1206,5 @@
 			.last = NULL
 		};
-		
+
 		if (!find_wnd_and_gc_pred(
 			h, hash, walk_mode, pred, pred_arg, &wnd, &resizing)) {
@@ -1212,5 +1212,5 @@
 			continue;
 		}
-		
+
 		/*
 		 * The item lookup is affected by a bucket join but effects of
@@ -1225,19 +1225,19 @@
 			continue;
 		}
-		
+
 		/* Already deleted, but delete_at() requested one GC pass. */
 		if (deleted_but_gc)
 			break;
-		
+
 		bool found = (wnd.cur != &sentinel && pred(pred_arg, wnd.cur));
-		
+
 		if (!found) {
 			rcu_read_unlock();
 			return false;
 		}
-		
+
 		deleted = delete_at(h, &wnd, walk_mode, &deleted_but_gc, &resizing);
 	} while (!deleted || deleted_but_gc);
-	
+
 	rcu_read_unlock();
 	return true;
@@ -1263,20 +1263,20 @@
 {
 	assert(wnd->cur && wnd->cur != &sentinel);
-	
+
 	*deleted_but_gc = false;
-	
+
 	if (!mark_deleted(wnd->cur, walk_mode, resizing)) {
 		/* Already deleted, or unexpectedly marked as JOIN/JOIN_FOLLOWS. */
 		return false;
 	}
-	
+
 	/* Marked deleted. Unlink from the bucket. */
-	
+
 	/* Never unlink join nodes. */
 	if (walk_mode == WM_LEAVE_JOIN && (N_JOIN & get_mark(wnd->cur->link)))
 		return true;
-	
+
 	cas_order_barrier();
-	
+
 	if (unlink_from_pred(wnd, walk_mode, resizing)) {
 		free_later(h, wnd->cur);
@@ -1284,5 +1284,5 @@
 		*deleted_but_gc = true;
 	}
-	
+
 	return true;
 }
@@ -1293,16 +1293,16 @@
 {
 	assert(cur && cur != &sentinel);
-	
+
 	/*
 	 * Btw, we could loop here if the cas fails but let's not complicate
 	 * things and let's retry from the head of the bucket.
 	 */
-	
+
 	cht_link_t *next = get_next(cur->link);
-	
+
 	if (walk_mode == WM_NORMAL) {
 		/* Only mark clean/normal nodes - JF/JN is used only during resize. */
 		marked_ptr_t ret = cas_link(&cur->link, next, N_NORMAL, next, N_DELETED);
-		
+
 		if (ret != make_link(next, N_NORMAL)) {
 			*resizing = (N_JOIN | N_JOIN_FOLLOWS) & get_mark(ret);
@@ -1311,15 +1311,15 @@
 	} else {
 		static_assert(N_JOIN == N_JOIN_FOLLOWS, "");
-		
+
 		/* Keep the N_JOIN/N_JOIN_FOLLOWS mark but strip N_DELETED. */
 		mark_t cur_mark = get_mark(cur->link) & N_JOIN_FOLLOWS;
-		
+
 		marked_ptr_t ret =
 			cas_link(&cur->link, next, cur_mark, next, cur_mark | N_DELETED);
-		
+
 		if (ret != make_link(next, cur_mark))
 			return false;
 	}
-	
+
 	return true;
 }
@@ -1331,7 +1331,7 @@
 	assert(wnd->cur != &sentinel);
 	assert(wnd->cur && (N_DELETED & get_mark(wnd->cur->link)));
-	
+
 	cht_link_t *next = get_next(wnd->cur->link);
-		
+
 	if (walk_mode == WM_LEAVE_JOIN) {
 		/* Never try to unlink join nodes. */
@@ -1341,8 +1341,8 @@
 		/* Succeed only if the predecessor is clean/normal or a join node. */
 		mark_t exp_pred_mark = (N_JOIN & pred_mark) ? pred_mark : N_NORMAL;
-		
+
 		marked_ptr_t pred_link = make_link(wnd->cur, exp_pred_mark);
 		marked_ptr_t next_link = make_link(next, exp_pred_mark);
-		
+
 		if (pred_link != _cas_link(wnd->ppred, pred_link, next_link))
 			return false;
@@ -1351,12 +1351,12 @@
 		/* Move the JF mark if set. Clear DEL mark. */
 		mark_t cur_mark = N_JOIN_FOLLOWS & get_mark(wnd->cur->link);
-		
+
 		/* The predecessor must be clean/normal. */
 		marked_ptr_t pred_link = make_link(wnd->cur, N_NORMAL);
 		/* Link to cur's successor keeping/copying cur's JF mark. */
 		marked_ptr_t next_link = make_link(next, cur_mark);
-		
+
 		marked_ptr_t ret = _cas_link(wnd->ppred, pred_link, next_link);
-		
+
 		if (pred_link != ret) {
 			/* If we're not resizing the table there are no JF/JN nodes. */
@@ -1366,5 +1366,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -1399,8 +1399,8 @@
 {
 	assert(wnd->cur);
-	
+
 	if (wnd->cur == &sentinel)
 		return true;
-	
+
 	/*
 	 * A read barrier is not needed here to bring up the most recent
@@ -1408,13 +1408,13 @@
 	 * an already deleted node; fail in delete_at(); and retry.
 	 */
-	
+
 	size_t cur_hash;
 
 try_again:
 	cur_hash = node_hash(h, wnd->cur);
-		
+
 	while (cur_hash <= hash) {
 		assert(wnd->cur && wnd->cur != &sentinel);
-		
+
 		/* GC any deleted nodes on the way. */
 		if (N_DELETED & get_mark(wnd->cur->link)) {
@@ -1427,11 +1427,11 @@
 			if (cur_hash == hash && pred(pred_arg, wnd->cur))
 				return true;
-			
+
 			next_wnd(wnd);
 		}
-		
+
 		cur_hash = node_hash(h, wnd->cur);
 	}
-	
+
 	if (cur_hash == h->invalid_hash) {
 		next_wnd(wnd);
@@ -1439,5 +1439,5 @@
 		goto try_again;
 	}
-	
+
 	/* The searched for node is not in the current bucket. */
 	return true;
@@ -1481,8 +1481,8 @@
 			next_wnd(wnd);
 		}
-		
+
 		assert(wnd->cur);
 	}
-	
+
 	if (node_hash(h, wnd->cur) == h->invalid_hash) {
 		next_wnd(wnd);
@@ -1520,5 +1520,5 @@
 		wnd->cur = get_next(wnd->cur->link);
 	}
-	
+
 	return true;
 }
@@ -1539,5 +1539,5 @@
 	 * is visible and if not, make it visible to this cpu.
 	 */
-	
+
 	/*
 	 * Resizer ensures h->b->order stays the same for the duration of this
@@ -1548,21 +1548,21 @@
 	assert(h->b->order > h->new_b->order);
 	assert(wnd->cur);
-	
+
 	/* Either we did not need the joining link or we have already followed it.*/
 	if (wnd->cur != &sentinel)
 		return true;
-	
+
 	/* We have reached the end of a bucket. */
-	
+
 	if (wnd->last != &sentinel) {
 		size_t last_seen_hash = node_hash(h, wnd->last);
-		
+
 		if (last_seen_hash == h->invalid_hash) {
 			last_seen_hash = calc_node_hash(h, wnd->last);
 		}
-		
+
 		size_t last_old_idx = calc_bucket_idx(last_seen_hash, h->b->order);
 		size_t move_src_idx = grow_idx(shrink_idx(last_old_idx));
-		
+
 		/*
 		 * Last node seen was in the joining bucket - if the searched
@@ -1572,5 +1572,5 @@
 			return true;
 	}
-	
+
 	/*
 	 * Reached the end of the bucket but no nodes from the joining bucket
@@ -1603,8 +1603,8 @@
 	size_t old_idx = calc_bucket_idx(hash, b->order);
 	size_t new_idx = calc_bucket_idx(hash, h->new_b->order);
-	
+
 	marked_ptr_t *pold_head = &b->head[old_idx];
 	marked_ptr_t *pnew_head = &h->new_b->head[new_idx];
-	
+
 	/* In any case, use the bucket in the new table. */
 	*phead = pnew_head;
@@ -1614,8 +1614,8 @@
 		size_t move_dest_idx = grow_idx(old_idx);
 		marked_ptr_t *pmoved_head = &h->new_b->head[move_dest_idx];
-		
+
 		/* Complete moving the bucket from the old to the new table. */
 		help_head_move(pold_head, pmoved_head);
-		
+
 		/* The hash belongs to the moved bucket. */
 		if (move_dest_idx == new_idx) {
@@ -1634,5 +1634,5 @@
 			 * half of the split/old/moved bucket.
 			 */
-			
+
 			/* The moved bucket has not yet been split. */
 			if (N_NORMAL != get_mark(*pnew_head)) {
@@ -1645,12 +1645,12 @@
 				assert(N_NORMAL == get_mark(*pnew_head));
 			}
-			
+
 			*walk_mode = WM_LEAVE_JOIN;
 		}
 	} else if (h->new_b->order < b->order ) {
 		/* Shrinking the table. */
-		
+
 		size_t move_src_idx = grow_idx(new_idx);
-		
+
 		/*
 		 * Complete moving the bucket from the old to the new table.
@@ -1658,5 +1658,5 @@
 		 */
 		help_head_move(&b->head[move_src_idx], pnew_head);
-		
+
 		/* Hash belongs to the bucket to be joined with the moved bucket. */
 		if (move_src_idx != old_idx) {
@@ -1666,5 +1666,5 @@
 				join_buckets(h, pold_head, pnew_head, split_hash);
 			}
-			
+
 			/*
 			 * The resizer sets pold_head to &sentinel when all cpus are
@@ -1673,5 +1673,5 @@
 			*join_finishing = (&sentinel != get_next(*pold_head));
 		}
-		
+
 		/* move_head() or join_buckets() makes it so or makes the mark visible.*/
 		assert(N_INVALID == get_mark(*pold_head));
@@ -1713,5 +1713,5 @@
 	/* Head move has to in progress already when calling this func. */
 	assert(N_CONST & get_mark(*psrc_head));
-	
+
 	/* Head already moved. */
 	if (N_INVALID == get_mark(*psrc_head)) {
@@ -1724,5 +1724,5 @@
 		complete_head_move(psrc_head, pdest_head);
 	}
-	
+
 	assert(!(N_CONST & get_mark(*pdest_head)));
 }
@@ -1742,10 +1742,10 @@
 {
 	marked_ptr_t ret, src_link;
-	
+
 	/* Mark src head immutable. */
 	do {
 		cht_link_t *next = get_next(*psrc_head);
 		src_link = make_link(next, N_NORMAL);
-		
+
 		/* Mark the normal/clean src link immutable/const. */
 		ret = cas_link(psrc_head, next, N_NORMAL, next, N_CONST);
@@ -1758,5 +1758,5 @@
 	assert(N_JOIN_FOLLOWS != get_mark(*psrc_head));
 	assert(N_CONST & get_mark(*psrc_head));
-	
+
 	cht_link_t *next = get_next(*psrc_head);
 
@@ -1765,5 +1765,5 @@
 	assert(ret == make_link(&sentinel, N_INVALID) || (N_NORMAL == get_mark(ret)));
 	cas_order_barrier();
-	
+
 	DBG(ret = )
 		cas_link(psrc_head, next, N_CONST, next, N_INVALID);
@@ -1791,5 +1791,5 @@
 	if (N_NORMAL == get_mark(*pdest_head))
 		return;
-	
+
 	/*
 	 * L == Last node of the first part of the split bucket. That part
@@ -1836,11 +1836,11 @@
 	 */
 	wnd_t wnd;
-	
+
 	rcu_read_lock();
-	
+
 	/* Mark the last node of the first part of the split bucket as JF. */
 	mark_join_follows(h, psrc_head, split_hash, &wnd);
 	cas_order_barrier();
-	
+
 	/* There are nodes in the dest bucket, ie the second part of the split. */
 	if (wnd.cur != &sentinel) {
@@ -1857,5 +1857,5 @@
 		 */
 	}
-	
+
 	/* Link the dest head to the second part of the split. */
 	DBG(marked_ptr_t ret = )
@@ -1863,5 +1863,5 @@
 	assert(ret == make_link(&sentinel, N_INVALID) || (N_NORMAL == get_mark(ret)));
 	cas_order_barrier();
-	
+
 	rcu_read_unlock();
 }
@@ -1888,5 +1888,5 @@
 {
 	/* See comment in split_bucket(). */
-	
+
 	bool done = false;
 
@@ -1895,5 +1895,5 @@
 		wnd->ppred = psrc_head;
 		wnd->cur = get_next(*psrc_head);
-		
+
 		/*
 		 * Find the split window, ie the last node of the first part of
@@ -1903,5 +1903,5 @@
 		if (!find_wnd_and_gc(h, split_hash, WM_MOVE_JOIN_FOLLOWS, wnd, &resizing))
 			continue;
-		
+
 		/* Must not report that the table is resizing if WM_MOVE_JOIN_FOLLOWS.*/
 		assert(!resizing);
@@ -1926,10 +1926,10 @@
 {
 	/* See comment in split_bucket(). */
-	
+
 	bool done;
 	do {
 		cht_link_t *next = get_next(join_node->link);
 		mark_t mark = get_mark(join_node->link);
-		
+
 		/*
 		 * May already be marked as deleted, but it won't be unlinked
@@ -1938,5 +1938,5 @@
 		marked_ptr_t ret
 			= cas_link(&join_node->link, next, mark, next, mark | N_JOIN);
-		
+
 		/* Successfully marked or already marked as a join node. */
 		done = (ret == make_link(next, mark))
@@ -2023,11 +2023,11 @@
 	 *  [src_head | Inv]-----------> [JN] -> ..
 	 */
-	
+
 	rcu_read_lock();
-	
+
 	/* Mark src_head immutable - signals updaters that bucket join started. */
 	mark_const(psrc_head);
 	cas_order_barrier();
-	
+
 	cht_link_t *join_node = get_next(*psrc_head);
 
@@ -2035,14 +2035,14 @@
 		mark_join_node(join_node);
 		cas_order_barrier();
-		
+
 		link_to_join_node(h, pdest_head, join_node, split_hash);
 		cas_order_barrier();
 	}
-	
+
 	DBG(marked_ptr_t ret = )
 		cas_link(psrc_head, join_node, N_CONST, join_node, N_INVALID);
 	assert(ret == make_link(join_node, N_CONST) || (N_INVALID == get_mark(ret)));
 	cas_order_barrier();
-	
+
 	rcu_read_unlock();
 }
@@ -2067,12 +2067,12 @@
 			.cur = get_next(*pdest_head)
 		};
-		
+
 		bool resizing = false;
-		
+
 		if (!find_wnd_and_gc(h, split_hash, WM_LEAVE_JOIN, &wnd, &resizing))
 			continue;
 
 		assert(!resizing);
-		
+
 		if (wnd.cur != &sentinel) {
 			/* Must be from the new appended bucket. */
@@ -2081,9 +2081,9 @@
 			return;
 		}
-		
+
 		/* Reached the tail of pdest_head - link it to the join node. */
 		marked_ptr_t ret =
 			cas_link(wnd.ppred, &sentinel, N_NORMAL, join_node, N_NORMAL);
-		
+
 		done = (ret == make_link(&sentinel, N_NORMAL));
 	} while (!done);
@@ -2097,5 +2097,5 @@
 {
 	assert(item != &sentinel);
-	
+
 	/*
 	 * remove_callback only works as rcu_func_t because rcu_link is the first
@@ -2103,5 +2103,5 @@
 	 */
 	rcu_call(&item->rcu_link, (rcu_func_t)h->op->remove_callback);
-	
+
 	item_removed(h);
 }
@@ -2116,8 +2116,8 @@
 	size_t items = (size_t) atomic_predec(&h->item_cnt);
 	size_t bucket_cnt = (1 << h->b->order);
-	
+
 	bool need_shrink = (items == h->max_load * bucket_cnt / 4);
 	bool missed_shrink = (items == h->max_load * bucket_cnt / 8);
-	
+
 	if ((need_shrink || missed_shrink) && h->b->order > h->min_order) {
 		atomic_count_t resize_reqs = atomic_preinc(&h->resize_reqs);
@@ -2137,8 +2137,8 @@
 	size_t items = (size_t) atomic_preinc(&h->item_cnt);
 	size_t bucket_cnt = (1 << h->b->order);
-	
+
 	bool need_grow = (items == h->max_load * bucket_cnt);
 	bool missed_grow = (items == 2 * h->max_load * bucket_cnt);
-	
+
 	if ((need_grow || missed_grow) && h->b->order < CHT_MAX_ORDER) {
 		atomic_count_t resize_reqs = atomic_preinc(&h->resize_reqs);
@@ -2154,5 +2154,5 @@
 {
 	cht_t *h = member_to_inst(arg, cht_t, resize_work);
-	
+
 #ifdef CONFIG_DEBUG
 	assert(h->b);
@@ -2188,5 +2188,5 @@
 	if (h->b->order >= CHT_MAX_ORDER)
 		return;
-	
+
 	h->new_b = alloc_buckets(h->b->order + 1, true, false);
 
@@ -2198,5 +2198,5 @@
 	rcu_synchronize();
 	size_t old_bucket_cnt = (1 << h->b->order);
-	
+
 	/*
 	 * Give updaters a chance to help out with the resize. Do the minimum
@@ -2206,8 +2206,8 @@
 		start_head_move(&h->b->head[idx]);
 	}
-	
+
 	/* Order start_head_move() wrt complete_head_move(). */
 	cas_order_barrier();
-	
+
 	/* Complete moving heads and split any buckets not yet split by updaters. */
 	for (size_t old_idx = 0; old_idx < old_bucket_cnt; ++old_idx) {
@@ -2226,5 +2226,5 @@
 		split_bucket(h, move_dest_head, split_dest_head, split_hash);
 	}
-	
+
 	/*
 	 * Wait for all updaters to notice the new heads. Once everyone sees
@@ -2233,9 +2233,9 @@
 	 */
 	rcu_synchronize();
-	
+
 	/* Clear the JOIN_FOLLOWS mark and remove the link between the split buckets.*/
 	for (size_t old_idx = 0; old_idx < old_bucket_cnt; ++old_idx) {
 		size_t new_idx = grow_idx(old_idx);
-		
+
 		cleanup_join_follows(h, &h->new_b->head[new_idx]);
 	}
@@ -2246,9 +2246,9 @@
 	 */
 	rcu_synchronize();
-	
+
 	/* Clear the JOIN mark and GC any deleted join nodes. */
 	for (size_t old_idx = 0; old_idx < old_bucket_cnt; ++old_idx) {
 		size_t new_idx = grow_to_split_idx(old_idx);
-		
+
 		cleanup_join_node(h, &h->new_b->head[new_idx]);
 	}
@@ -2256,5 +2256,5 @@
 	/* Wait for everyone to see that the table is clear of any resize marks. */
 	rcu_synchronize();
-	
+
 	cht_buckets_t *old_b = h->b;
 	rcu_assign(h->b, h->new_b);
@@ -2262,7 +2262,7 @@
 	/* Wait for everyone to start using the new table. */
 	rcu_synchronize();
-	
+
 	free(old_b);
-	
+
 	/* Not needed; just for increased readability. */
 	h->new_b = NULL;
@@ -2274,5 +2274,5 @@
 	if (h->b->order <= h->min_order)
 		return;
-	
+
 	h->new_b = alloc_buckets(h->b->order - 1, true, false);
 
@@ -2283,7 +2283,7 @@
 	/* Wait for all readers and updaters to see the initialized new table. */
 	rcu_synchronize();
-	
+
 	size_t old_bucket_cnt = (1 << h->b->order);
-	
+
 	/*
 	 * Give updaters a chance to help out with the resize. Do the minimum
@@ -2292,5 +2292,5 @@
 	for (size_t old_idx = 0; old_idx < old_bucket_cnt; ++old_idx) {
 		size_t new_idx = shrink_idx(old_idx);
-		
+
 		/* This bucket should be moved. */
 		if (grow_idx(new_idx) == old_idx) {
@@ -2300,13 +2300,13 @@
 		}
 	}
-	
+
 	/* Order start_head_move() wrt to complete_head_move(). */
 	cas_order_barrier();
-	
+
 	/* Complete moving heads and join buckets with the moved buckets. */
 	for (size_t old_idx = 0; old_idx < old_bucket_cnt; ++old_idx) {
 		size_t new_idx = shrink_idx(old_idx);
 		size_t move_src_idx = grow_idx(new_idx);
-		
+
 		/* This bucket should be moved. */
 		if (move_src_idx == old_idx) {
@@ -2322,5 +2322,5 @@
 		}
 	}
-	
+
 	/*
 	 * Wait for all updaters to notice the new heads. Once everyone sees
@@ -2329,23 +2329,23 @@
 	 */
 	rcu_synchronize();
-	
+
 	/* Let everyone know joins are complete and fully visible. */
 	for (size_t old_idx = 0; old_idx < old_bucket_cnt; ++old_idx) {
 		size_t move_src_idx = grow_idx(shrink_idx(old_idx));
-	
+
 		/* Set the invalid joinee head to NULL. */
 		if (old_idx != move_src_idx) {
 			assert(N_INVALID == get_mark(h->b->head[old_idx]));
-			
+
 			if (&sentinel != get_next(h->b->head[old_idx]))
 				h->b->head[old_idx] = make_link(&sentinel, N_INVALID);
 		}
 	}
-	
+
 	/* todo comment join node vs reset joinee head*/
 	rcu_synchronize();
 
 	size_t new_bucket_cnt = (1 << h->new_b->order);
-		
+
 	/* Clear the JOIN mark and GC any deleted join nodes. */
 	for (size_t new_idx = 0; new_idx < new_bucket_cnt; ++new_idx) {
@@ -2355,13 +2355,13 @@
 	/* Wait for everyone to see that the table is clear of any resize marks. */
 	rcu_synchronize();
-	
+
 	cht_buckets_t *old_b = h->b;
 	rcu_assign(h->b, h->new_b);
-	
+
 	/* Wait for everyone to start using the new table. */
 	rcu_synchronize();
-	
+
 	free(old_b);
-	
+
 	/* Not needed; just for increased readability. */
 	h->new_b = NULL;
@@ -2374,5 +2374,5 @@
 
 	cht_link_t *cur = get_next(*new_head);
-		
+
 	while (cur != &sentinel) {
 		/* Clear the join node's JN mark - even if it is marked as deleted. */
@@ -2381,8 +2381,8 @@
 			break;
 		}
-		
+
 		cur = get_next(cur->link);
 	}
-	
+
 	rcu_read_unlock();
 }
@@ -2394,7 +2394,7 @@
 	assert(join_node != &sentinel);
 	assert(join_node && (N_JOIN & get_mark(join_node->link)));
-	
+
 	bool done;
-	
+
 	/* Clear the JN mark. */
 	do {
@@ -2411,5 +2411,5 @@
 		assert(ret == jn_link || (get_mark(ret) & N_JOIN));
 	} while (!done);
-	
+
 	if (!(N_DELETED & get_mark(join_node->link)))
 		return;
@@ -2419,17 +2419,17 @@
 	/* Clear the JOIN mark before trying to unlink the deleted join node.*/
 	cas_order_barrier();
-	
+
 	size_t jn_hash = node_hash(h, join_node);
 	do {
 		bool resizing = false;
-		
+
 		wnd_t wnd = {
 			.ppred = new_head,
 			.cur = get_next(*new_head)
 		};
-		
+
 		done = find_wnd_and_gc_pred(h, jn_hash, WM_NORMAL, same_node_pred,
 			join_node, &wnd, &resizing);
-		
+
 		assert(!resizing);
 	} while (!done);
@@ -2440,5 +2440,5 @@
 {
 	assert(new_head);
-	
+
 	rcu_read_lock();
 
@@ -2448,5 +2448,5 @@
 	};
 	marked_ptr_t *cur_link = new_head;
-		
+
 	/*
 	 * Find the non-deleted node with a JF mark and clear the JF mark.
@@ -2461,5 +2461,5 @@
 	while (true) {
 		bool is_jf_node = N_JOIN_FOLLOWS & get_mark(*cur_link);
-		
+
 		/* GC any deleted nodes on the way - even deleted JOIN_FOLLOWS. */
 		if (N_DELETED & get_mark(*cur_link)) {
@@ -2483,5 +2483,5 @@
 				marked_ptr_t ret =
 					cas_link(cur_link, next, N_JOIN_FOLLOWS, &sentinel, N_NORMAL);
-				
+
 				assert(next == &sentinel
 					|| ((N_JOIN | N_JOIN_FOLLOWS) & get_mark(ret)));
@@ -2508,5 +2508,5 @@
 		cur_link = &wnd.cur->link;
 	}
-	
+
 	rcu_read_unlock();
 }
@@ -2561,5 +2561,5 @@
 		|| item->hash == sentinel.hash
 		|| item->hash == calc_node_hash(h, item));
-	
+
 	return item->hash;
 }
@@ -2586,8 +2586,8 @@
 {
 	marked_ptr_t ptr = (marked_ptr_t) next;
-	
+
 	assert(!(ptr & N_MARK_MASK));
 	assert(!((unsigned)mark & ~N_MARK_MASK));
-	
+
 	return ptr | mark;
 }
@@ -2690,5 +2690,5 @@
 	 */
 	void *expected = (void*)cur;
-	
+
 	/*
 	 * Use the acquire-release model, although we could probably
@@ -2698,5 +2698,5 @@
 	__atomic_compare_exchange_n((void**)link, &expected, (void *)new, false,
 		__ATOMIC_ACQ_REL, __ATOMIC_ACQUIRE);
-	
+
 	return (marked_ptr_t) expected;
 }
Index: kernel/generic/src/adt/hash_table.c
===================================================================
--- kernel/generic/src/adt/hash_table.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/adt/hash_table.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -96,14 +96,14 @@
 	assert(h);
 	assert(op && op->hash && op->key_hash && op->key_equal);
-	
+
 	/* Check for compulsory ops. */
 	if (!op || !op->hash || !op->key_hash || !op->key_equal)
 		return false;
-	
+
 	h->bucket_cnt = round_up_size(init_size);
-	
+
 	if (!alloc_table(h->bucket_cnt, &h->bucket))
 		return false;
-	
+
 	h->max_load = (max_load == 0) ? HT_MAX_LOAD : max_load;
 	h->item_cnt = 0;
@@ -115,5 +115,5 @@
 		h->op->remove_callback = nop_remove_callback;
 	}
-	
+
 	return true;
 }
@@ -128,7 +128,7 @@
 	assert(h && h->bucket);
 	assert(!h->apply_ongoing);
-	
+
 	clear_items(h);
-	
+
 	free(h->bucket);
 
@@ -159,7 +159,7 @@
 	assert(h && h->bucket);
 	assert(!h->apply_ongoing);
-	
+
 	clear_items(h);
-	
+
 	/* Shrink the table to its minimum size if possible. */
 	if (HT_MIN_BUCKETS < h->bucket_cnt) {
@@ -173,15 +173,15 @@
 	if (h->item_cnt == 0)
 		return;
-	
+
 	for (size_t idx = 0; idx < h->bucket_cnt; ++idx) {
 		list_foreach_safe(h->bucket[idx], cur, next) {
 			assert(cur);
 			ht_link_t *cur_link = member_to_inst(cur, ht_link_t, link);
-			
+
 			list_remove(cur);
 			h->op->remove_callback(cur_link);
 		}
 	}
-	
+
 	h->item_cnt = 0;
 }
@@ -197,7 +197,7 @@
 	assert(h && h->bucket);
 	assert(!h->apply_ongoing);
-	
+
 	size_t idx = h->op->hash(item) % h->bucket_cnt;
-	
+
 	list_append(&item->link, &h->bucket[idx]);
 	++h->item_cnt;
@@ -220,7 +220,7 @@
 	assert(h->op && h->op->hash && h->op->equal);
 	assert(!h->apply_ongoing);
-	
+
 	size_t idx = h->op->hash(item) % h->bucket_cnt;
-	
+
 	/* Check for duplicates. */
 	list_foreach(h->bucket[idx], link, ht_link_t, cur_link) {
@@ -232,9 +232,9 @@
 			return false;
 	}
-	
+
 	list_append(&item->link, &h->bucket[idx]);
 	++h->item_cnt;
 	grow_if_needed(h);
-	
+
 	return true;
 }
@@ -251,5 +251,5 @@
 {
 	assert(h && h->bucket);
-	
+
 	size_t idx = h->op->key_hash(key) % h->bucket_cnt;
 
@@ -264,5 +264,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -305,12 +305,12 @@
 	assert(h && h->bucket);
 	assert(!h->apply_ongoing);
-	
+
 	size_t idx = h->op->key_hash(key) % h->bucket_cnt;
 
 	size_t removed = 0;
-	
+
 	list_foreach_safe(h->bucket[idx], cur, next) {
 		ht_link_t *cur_link = member_to_inst(cur, ht_link_t, link);
-		
+
 		if (h->op->key_equal(key, cur_link)) {
 			++removed;
@@ -322,5 +322,5 @@
 	h->item_cnt -= removed;
 	shrink_if_needed(h);
-	
+
 	return removed;
 }
@@ -352,10 +352,10 @@
 	assert(f);
 	assert(h && h->bucket);
-	
+
 	if (h->item_cnt == 0)
 		return;
-	
+
 	h->apply_ongoing = true;
-	
+
 	for (size_t idx = 0; idx < h->bucket_cnt; ++idx) {
 		list_foreach_safe(h->bucket[idx], cur, next) {
@@ -371,5 +371,5 @@
 out:
 	h->apply_ongoing = false;
-	
+
 	shrink_if_needed(h);
 	grow_if_needed(h);
@@ -380,9 +380,9 @@
 {
 	size_t rounded_size = HT_MIN_BUCKETS;
-	
+
 	while (rounded_size < size) {
 		rounded_size = 2 * rounded_size + 1;
 	}
-	
+
 	return rounded_size;
 }
@@ -392,9 +392,9 @@
 {
 	assert(pbuckets && HT_MIN_BUCKETS <= bucket_cnt);
-		
+
 	list_t *buckets = malloc(bucket_cnt * sizeof(list_t), FRAME_ATOMIC);
 	if (!buckets)
 		return false;
-	
+
 	for (size_t i = 0; i < bucket_cnt; i++)
 		list_initialize(&buckets[i]);
@@ -434,9 +434,9 @@
 	assert(h && h->bucket);
 	assert(HT_MIN_BUCKETS <= new_bucket_cnt);
-	
+
 	/* We are traversing the table and resizing would mess up the buckets. */
 	if (h->apply_ongoing)
 		return;
-	
+
 	list_t *new_buckets;
 
@@ -444,5 +444,5 @@
 	if (!alloc_table(new_bucket_cnt, &new_buckets))
 		return;
-	
+
 	if (0 < h->item_cnt) {
 		/* Rehash all the items to the new table. */
@@ -457,5 +457,5 @@
 		}
 	}
-	
+
 	free(h->bucket);
 	h->bucket = new_buckets;
Index: kernel/generic/src/adt/list.c
===================================================================
--- kernel/generic/src/adt/list.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/adt/list.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 	bool found = false;
 	link_t *hlp = list->head.next;
-	
+
 	while (hlp != &list->head) {
 		if (hlp == link) {
@@ -64,5 +64,5 @@
 		hlp = hlp->next;
 	}
-	
+
 	return found;
 }
@@ -80,13 +80,13 @@
 	if (list_empty(list))
 		return;
-	
+
 	/* Attach list to destination. */
 	list->head.next->prev = pos;
 	list->head.prev->next = pos->next;
-	
+
 	/* Link destination list to the added list. */
 	pos->next->prev = list->head.prev;
 	pos->next = list->head.next;
-	
+
 	list_initialize(list);
 }
@@ -102,5 +102,5 @@
 {
 	unsigned long count = 0;
-	
+
 	link_t *link = list_first(list);
 	while (link != NULL) {
@@ -108,5 +108,5 @@
 		link = list_next(link, list);
 	}
-	
+
 	return count;
 }
Index: kernel/generic/src/console/chardev.c
===================================================================
--- kernel/generic/src/console/chardev.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/console/chardev.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,5 +68,5 @@
 {
 	assert(indev);
-	
+
 	irq_spinlock_lock(&indev->lock, true);
 	if (indev->counter == INDEV_BUFLEN - 1) {
@@ -75,8 +75,8 @@
 		return;
 	}
-	
+
 	indev->counter++;
 	indev->buffer[indev->index++] = ch;
-	
+
 	/* Index modulo size of buffer */
 	indev->index = indev->index % INDEV_BUFLEN;
@@ -102,17 +102,17 @@
 		if (check_poll(indev))
 			return indev->op->poll(indev);
-		
+
 		/* No other way of interacting with user */
 		interrupts_disable();
-		
+
 		if (CPU)
 			printf("cpu%u: ", CPU->id);
 		else
 			printf("cpu: ");
-		
+
 		printf("halted (no polling input)\n");
 		cpu_halt();
 	}
-	
+
 	waitq_sleep(&indev->wq);
 	irq_spinlock_lock(&indev->lock, true);
@@ -121,5 +121,5 @@
 	indev->counter--;
 	irq_spinlock_unlock(&indev->lock, true);
-	
+
 	return ch;
 }
@@ -158,8 +158,8 @@
 	if (indev == NULL)
 		return false;
-	
+
 	if (indev->op == NULL)
 		return false;
-	
+
 	return (indev->op->poll != NULL);
 }
Index: kernel/generic/src/console/cmd.c
===================================================================
--- kernel/generic/src/console/cmd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/console/cmd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -686,5 +686,5 @@
 {
 	spinlock_lock(&cmd_lock);
-	
+
 	size_t len = 0;
 	list_foreach(cmd_list, link, cmd_info_t, hlp) {
@@ -694,5 +694,5 @@
 		spinlock_unlock(&hlp->lock);
 	}
-	
+
 	unsigned int _len = (unsigned int) len;
 	if ((_len != len) || (((int) _len) < 0)) {
@@ -700,5 +700,5 @@
 		return 1;
 	}
-	
+
 	list_foreach(cmd_list, link, cmd_info_t, hlp) {
 		spinlock_lock(&hlp->lock);
@@ -706,7 +706,7 @@
 		spinlock_unlock(&hlp->lock);
 	}
-	
+
 	spinlock_unlock(&cmd_lock);
-	
+
 	return 1;
 }
@@ -721,5 +721,5 @@
 {
 	uint8_t *ptr = NULL;
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
@@ -729,13 +729,13 @@
 		ptr = (uint8_t *) km_map(argv[0].intval, sizeof(uint8_t),
 		    PAGE_NOT_CACHEABLE);
-	
+
 	const uint8_t val = pio_read_8(ptr);
 	printf("read %" PRIxn ": %" PRIx8 "\n", argv[0].intval, val);
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
 		return 1;
 #endif
-	
+
 	km_unmap((uintptr_t) ptr, sizeof(uint8_t));
 	return 1;
@@ -751,5 +751,5 @@
 {
 	uint16_t *ptr = NULL;
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
@@ -759,13 +759,13 @@
 		ptr = (uint16_t *) km_map(argv[0].intval, sizeof(uint16_t),
 		    PAGE_NOT_CACHEABLE);
-	
+
 	const uint16_t val = pio_read_16(ptr);
 	printf("read %" PRIxn ": %" PRIx16 "\n", argv[0].intval, val);
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
 		return 1;
 #endif
-	
+
 	km_unmap((uintptr_t) ptr, sizeof(uint16_t));
 	return 1;
@@ -781,5 +781,5 @@
 {
 	uint32_t *ptr = NULL;
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
@@ -789,13 +789,13 @@
 		ptr = (uint32_t *) km_map(argv[0].intval, sizeof(uint32_t),
 		    PAGE_NOT_CACHEABLE);
-	
+
 	const uint32_t val = pio_read_32(ptr);
 	printf("read %" PRIxn ": %" PRIx32 "\n", argv[0].intval, val);
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
 		return 1;
 #endif
-	
+
 	km_unmap((uintptr_t) ptr, sizeof(uint32_t));
 	return 1;
@@ -811,5 +811,5 @@
 {
 	uint8_t *ptr = NULL;
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
@@ -819,14 +819,14 @@
 		ptr = (uint8_t *) km_map(argv[0].intval, sizeof(uint8_t),
 		    PAGE_NOT_CACHEABLE);
-	
+
 	printf("write %" PRIxn ": %" PRIx8 "\n", argv[0].intval,
 	    (uint8_t) argv[1].intval);
 	pio_write_8(ptr, (uint8_t) argv[1].intval);
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
 		return 1;
 #endif
-	
+
 	km_unmap((uintptr_t) ptr, sizeof(uint8_t));
 	return 1;
@@ -842,5 +842,5 @@
 {
 	uint16_t *ptr = NULL;
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
@@ -850,14 +850,14 @@
 		ptr = (uint16_t *) km_map(argv[0].intval, sizeof(uint16_t),
 		    PAGE_NOT_CACHEABLE);
-	
+
 	printf("write %" PRIxn ": %" PRIx16 "\n", argv[0].intval,
 	    (uint16_t) argv[1].intval);
 	pio_write_16(ptr, (uint16_t) argv[1].intval);
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
 		return 1;
 #endif
-	
+
 	km_unmap((uintptr_t) ptr, sizeof(uint16_t));
 	return 1;
@@ -873,5 +873,5 @@
 {
 	uint32_t *ptr = NULL;
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
@@ -881,14 +881,14 @@
 		ptr = (uint32_t *) km_map(argv[0].intval, sizeof(uint32_t),
 		    PAGE_NOT_CACHEABLE);
-	
+
 	printf("write %" PRIxn ": %" PRIx32 "\n", argv[0].intval,
 	    (uint32_t) argv[1].intval);
 	pio_write_32(ptr, (uint32_t) argv[1].intval);
-	
+
 #ifdef IO_SPACE_BOUNDARY
 	if ((void *) argv->intval < IO_SPACE_BOUNDARY)
 		return 1;
 #endif
-	
+
 	km_unmap((uintptr_t) ptr, sizeof(uint32_t));
 	return 1;
@@ -904,5 +904,5 @@
 {
 	reboot();
-	
+
 	/* Not reached */
 	return 1;
@@ -918,11 +918,11 @@
 {
 	assert(uptime);
-	
+
 	/* This doesn't have to be very accurate */
 	sysarg_t sec = uptime->seconds1;
-	
+
 	printf("Up %" PRIun " days, %" PRIun " hours, %" PRIun " minutes, %" PRIun " seconds\n",
 		sec / 86400, (sec % 86400) / 3600, (sec % 3600) / 60, sec % 60);
-	
+
 	return 1;
 }
@@ -937,8 +937,8 @@
 {
 	spinlock_lock(&cmd_lock);
-	
+
 	list_foreach(cmd_list, link, cmd_info_t, hlp) {
 		spinlock_lock(&hlp->lock);
-		
+
 		if (str_lcmp(hlp->name, (const char *) argv->buffer, str_length(hlp->name)) == 0) {
 			printf("%s - %s\n", hlp->name, hlp->description);
@@ -948,10 +948,10 @@
 			break;
 		}
-		
+
 		spinlock_unlock(&hlp->lock);
 	}
-	
+
 	spinlock_unlock(&cmd_lock);
-	
+
 	return 1;
 }
@@ -961,5 +961,5 @@
 {
 	symtab_print_search((char *) argv->buffer);
-	
+
 	return 1;
 }
@@ -1004,10 +1004,10 @@
 	 * call the function.
 	 */
-	
+
 	unsigned int i;
 	for (i = 0; i < config.cpu_count; i++) {
 		if (!cpus[i].active)
 			continue;
-		
+
 		thread_t *thread;
 		if ((thread = thread_create((void (*)(void *)) cmd_call0,
@@ -1021,5 +1021,5 @@
 			printf("Unable to create thread for cpu%u\n", i);
 	}
-	
+
 	return 1;
 }
@@ -1108,5 +1108,5 @@
 	fncptr_t fptr;
 	errno_t rc;
-	
+
 	symbol = (char *) argv->buffer;
 	rc = symtab_addr_lookup(symbol, &symaddr);
@@ -1183,5 +1183,5 @@
 	bool pointer = false;
 	errno_t rc;
-	
+
 	if (((char *) argv->buffer)[0] == '*') {
 		rc = symtab_addr_lookup((char *) argv->buffer + 1, &addr);
@@ -1195,5 +1195,5 @@
 	} else
 		rc = symtab_addr_lookup((char *) argv->buffer, &addr);
-	
+
 	if (rc == ENOENT)
 		printf("Symbol %s not found.\n", (char *) argv->buffer);
@@ -1210,5 +1210,5 @@
 	} else
 		printf("No symbol information available.\n");
-	
+
 	return 1;
 }
@@ -1252,5 +1252,5 @@
 	else
 		printf("Unknown argument \"%s\".\n", flag_buf);
-	
+
 	return 1;
 }
@@ -1270,5 +1270,5 @@
 	else
 		printf("Unknown argument \"%s\".\n", flag_buf);
-	
+
 	return 1;
 }
@@ -1412,5 +1412,5 @@
 	release_console();
 	indev_pop_character(stdin);
-	
+
 	return 1;
 }
@@ -1420,5 +1420,5 @@
 {
 	printf("%s (%s)\n", test->name, test->desc);
-	
+
 	/* Update and read thread accounting
 	   for benchmarking */
@@ -1427,9 +1427,9 @@
 	task_get_accounting(TASK, &ucycles0, &kcycles0);
 	irq_spinlock_unlock(&TASK->lock, true);
-	
+
 	/* Execute the test */
 	test_quiet = false;
 	const char *ret = test->entry();
-	
+
 	/* Update and read thread accounting */
 	uint64_t ucycles1, kcycles1;
@@ -1437,18 +1437,18 @@
 	task_get_accounting(TASK, &ucycles1, &kcycles1);
 	irq_spinlock_unlock(&TASK->lock, true);
-	
+
 	uint64_t ucycles, kcycles;
 	char usuffix, ksuffix;
 	order_suffix(ucycles1 - ucycles0, &ucycles, &usuffix);
 	order_suffix(kcycles1 - kcycles0, &kcycles, &ksuffix);
-	
+
 	printf("Time: %" PRIu64 "%c user cycles, %" PRIu64 "%c kernel cycles\n",
 	    ucycles, usuffix, kcycles, ksuffix);
-	
+
 	if (ret == NULL) {
 		printf("Test passed\n");
 		return true;
 	}
-	
+
 	printf("%s\n", ret);
 	return false;
@@ -1461,8 +1461,8 @@
 	uint64_t ucycles, kcycles;
 	char usuffix, ksuffix;
-	
+
 	if (cnt < 1)
 		return true;
-	
+
 	uint64_t *data = (uint64_t *) malloc(sizeof(uint64_t) * cnt, 0);
 	if (data == NULL) {
@@ -1470,8 +1470,8 @@
 		return false;
 	}
-	
+
 	for (i = 0; i < cnt; i++) {
 		printf("%s (%u/%u) ... ", test->name, i + 1, cnt);
-		
+
 		/* Update and read thread accounting
 		   for benchmarking */
@@ -1480,9 +1480,9 @@
 		task_get_accounting(TASK, &ucycles0, &kcycles0);
 		irq_spinlock_unlock(&TASK->lock, true);
-		
+
 		/* Execute the test */
 		test_quiet = true;
 		const char *test_ret = test->entry();
-		
+
 		/* Update and read thread accounting */
 		irq_spinlock_lock(&TASK->lock, true);
@@ -1490,5 +1490,5 @@
 		task_get_accounting(TASK, &ucycles1, &kcycles1);
 		irq_spinlock_unlock(&TASK->lock, true);
-		
+
 		if (test_ret != NULL) {
 			printf("%s\n", test_ret);
@@ -1496,5 +1496,5 @@
 			break;
 		}
-		
+
 		data[i] = ucycles1 - ucycles0 + kcycles1 - kcycles0;
 		order_suffix(ucycles1 - ucycles0, &ucycles, &usuffix);
@@ -1503,20 +1503,20 @@
 		    ucycles, usuffix, kcycles, ksuffix);
 	}
-	
+
 	if (ret) {
 		printf("\n");
-		
+
 		uint64_t sum = 0;
-		
+
 		for (i = 0; i < cnt; i++) {
 			sum += data[i];
 		}
-		
+
 		order_suffix(sum / (uint64_t) cnt, &ucycles, &usuffix);
 		printf("Average\t\t%" PRIu64 "%c\n", ucycles, usuffix);
 	}
-	
+
 	free(data);
-	
+
 	return ret;
 }
@@ -1526,10 +1526,10 @@
 	size_t len = 0;
 	test_t *test;
-	
+
 	for (test = tests; test->name != NULL; test++) {
 		if (str_length(test->name) > len)
 			len = str_length(test->name);
 	}
-	
+
 	unsigned int _len = (unsigned int) len;
 	if ((_len != len) || (((int) _len) < 0)) {
@@ -1537,9 +1537,9 @@
 		return;
 	}
-	
+
 	for (test = tests; test->name != NULL; test++)
 		printf("%-*s %s%s\n", _len, test->name, test->desc,
 		    (test->safe ? "" : " (unsafe)"));
-	
+
 	printf("%-*s Run all safe tests\n", _len, "*");
 }
@@ -1555,5 +1555,5 @@
 {
 	test_t *test;
-	
+
 	if (str_cmp((char *) argv->buffer, "*") == 0) {
 		for (test = tests; test->name != NULL; test++) {
@@ -1566,5 +1566,5 @@
 	} else if (str_cmp((char *) argv->buffer, "") != 0) {
 		bool fnd = false;
-		
+
 		for (test = tests; test->name != NULL; test++) {
 			if (str_cmp(test->name, (char *) argv->buffer) == 0) {
@@ -1574,10 +1574,10 @@
 			}
 		}
-		
+
 		if (!fnd)
 			printf("Unknown test\n");
 	} else
 		list_tests();
-	
+
 	return 1;
 }
@@ -1593,5 +1593,5 @@
 	test_t *test;
 	uint32_t cnt = argv[1].intval;
-	
+
 	if (str_cmp((char *) argv->buffer, "*") == 0) {
 		for (test = tests; test->name != NULL; test++) {
@@ -1603,22 +1603,22 @@
 	} else {
 		bool fnd = false;
-		
+
 		for (test = tests; test->name != NULL; test++) {
 			if (str_cmp(test->name, (char *) argv->buffer) == 0) {
 				fnd = true;
-				
+
 				if (test->safe)
 					run_bench(test, cnt);
 				else
 					printf("Unsafe test\n");
-				
+
 				break;
 			}
 		}
-		
+
 		if (!fnd)
 			printf("Unknown test\n");
 	}
-	
+
 	return 1;
 }
Index: kernel/generic/src/console/console.c
===================================================================
--- kernel/generic/src/console/console.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/console/console.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -119,5 +119,5 @@
 		stdin = &stdin_sink;
 	}
-	
+
 	return stdin;
 }
@@ -143,5 +143,5 @@
 		stdout = &stdout_source;
 	}
-	
+
 	list_append(&outdev->link, &stdout->list);
 }
@@ -189,7 +189,7 @@
 {
 	void *faddr = (void *) KA2PA(kio);
-	
+
 	assert((uintptr_t) faddr % FRAME_SIZE == 0);
-	
+
 	kio_parea.pbase = (uintptr_t) faddr;
 	kio_parea.frames = SIZE2FRAMES(sizeof(kio));
@@ -197,8 +197,8 @@
 	kio_parea.mapped = false;
 	ddi_parea_register(&kio_parea);
-	
+
 	sysinfo_set_item_val("kio.faddr", NULL, (sysarg_t) faddr);
 	sysinfo_set_item_val("kio.pages", NULL, KIO_PAGES);
-	
+
 	event_set_unmask_callback(EVENT_KIO, kio_update);
 	atomic_set(&kio_inited, true);
@@ -209,9 +209,9 @@
 	event_notify_1(EVENT_KCONSOLE, false, true);
 	bool prev = console_override;
-	
+
 	console_override = true;
 	if ((stdout) && (stdout->op->redraw))
 		stdout->op->redraw(stdout);
-	
+
 	if ((stdin) && (!prev)) {
 		/*
@@ -256,5 +256,5 @@
 	size_t count = 0;
 	buf[offset] = 0;
-	
+
 	wchar_t ch;
 	while ((ch = indev_pop_character(indev)) != '\n') {
@@ -265,5 +265,5 @@
 				putchar(' ');
 				putchar('\b');
-				
+
 				count--;
 				offset = str_lsize(buf, count);
@@ -271,5 +271,5 @@
 			}
 		}
-		
+
 		if (chr_encode(ch, buf, &offset, buflen - 1) == EOK) {
 			putchar(ch);
@@ -278,5 +278,5 @@
 		}
 	}
-	
+
 	return count;
 }
@@ -294,7 +294,7 @@
 	if (!atomic_get(&kio_inited))
 		return;
-	
+
 	spinlock_lock(&kio_lock);
-	
+
 	if (kio_uspace > 0) {
 		if (event_notify_3(EVENT_KIO, true, kio_start, kio_len,
@@ -302,5 +302,5 @@
 			kio_uspace = 0;
 	}
-	
+
 	spinlock_unlock(&kio_lock);
 }
@@ -312,5 +312,5 @@
 {
 	bool ordy = ((stdout) && (stdout->op->write));
-	
+
 	if (!ordy)
 		return;
@@ -347,8 +347,8 @@
 	else
 		kio_start = (kio_start + 1) % KIO_LENGTH;
-	
+
 	if (kio_stored < kio_len)
 		kio_stored++;
-	
+
 	/* The character is stored for uspace */
 	if (kio_uspace < kio_len)
@@ -359,12 +359,12 @@
 {
 	bool ordy = ((stdout) && (stdout->op->write));
-	
+
 	spinlock_lock(&kio_lock);
 	kio_push_char(ch);
 	spinlock_unlock(&kio_lock);
-	
+
 	/* Output stored characters */
 	kio_flush();
-	
+
 	if (!ordy) {
 		/*
@@ -380,5 +380,5 @@
 		early_putchar(ch);
 	}
-	
+
 	/* Force notification on newline */
 	if (ch == '\n')
@@ -409,10 +409,10 @@
 	if (size > PAGE_SIZE)
 		return (sys_errno_t) ELIMIT;
-	
+
 	if (size > 0) {
 		data = (char *) malloc(size + 1, 0);
 		if (!data)
 			return (sys_errno_t) ENOMEM;
-		
+
 		rc = copy_from_uspace(data, buf, size);
 		if (rc) {
@@ -421,5 +421,5 @@
 		}
 		data[size] = 0;
-		
+
 		switch (cmd) {
 		case KIO_WRITE:
Index: kernel/generic/src/console/kconsole.c
===================================================================
--- kernel/generic/src/console/kconsole.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/console/kconsole.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -98,5 +98,5 @@
 {
 	unsigned int i;
-	
+
 	cmd_init();
 	for (i = 0; i < KCONSOLE_HISTORY; i++)
@@ -114,5 +114,5 @@
 {
 	spinlock_lock(&cmd_lock);
-	
+
 	/*
 	 * Make sure the command is not already listed.
@@ -124,5 +124,5 @@
 			return false;
 		}
-		
+
 		/* Avoid deadlock. */
 		if (hlp < cmd) {
@@ -133,5 +133,5 @@
 			spinlock_lock(&hlp->lock);
 		}
-		
+
 		if (str_cmp(hlp->name, cmd->name) == 0) {
 			/* The command is already there. */
@@ -141,14 +141,14 @@
 			return false;
 		}
-		
+
 		spinlock_unlock(&hlp->lock);
 		spinlock_unlock(&cmd->lock);
 	}
-	
+
 	/*
 	 * Now the command can be added.
 	 */
 	list_append(&cmd->link, &cmd_list);
-	
+
 	spinlock_unlock(&cmd_lock);
 	return true;
@@ -168,27 +168,27 @@
 	link_t **startpos = (link_t**) ctx;
 	size_t namelen = str_length(name);
-	
+
 	spinlock_lock(&cmd_lock);
-	
+
 	if (*startpos == NULL)
 		*startpos = cmd_list.head.next;
-	
+
 	for (; *startpos != &cmd_list.head; *startpos = (*startpos)->next) {
 		cmd_info_t *hlp = list_get_instance(*startpos, cmd_info_t, link);
-		
+
 		const char *curname = hlp->name;
 		if (str_length(curname) < namelen)
 			continue;
-		
+
 		if (str_lcmp(curname, name, namelen) == 0) {
 			*startpos = (*startpos)->next;
 			if (h)
 				*h = hlp->description;
-			
+
 			spinlock_unlock(&cmd_lock);
 			return (curname + str_lsize(curname, namelen));
 		}
 	}
-	
+
 	spinlock_unlock(&cmd_lock);
 	return NULL;
@@ -207,7 +207,7 @@
 {
 	const char *name = input;
-	
+
 	size_t found = 0;
-	
+
 	/*
 	 * Maximum Match Length: Length of longest matching common
@@ -223,14 +223,14 @@
 	size_t total_hints_shown = 0;
 	bool continue_showing_hints = true;
-	
+
 	output[0] = 0;
-	
+
 	while ((hint = hints_enum(name, NULL, &pos))) {
 		if ((found == 0) || (str_length(hint) > str_length(output)))
 			str_cpy(output, MAX_CMDLINE, hint);
-		
+
 		found++;
 	}
-	
+
 	/*
 	 * If the number of possible completions is more than MAX_TAB_HINTS,
@@ -242,10 +242,10 @@
 		    console_prompt_display_all_hints(indev, found);
 	}
-	
+
 	if ((found > 1) && (str_length(output) != 0)) {
 		printf("\n");
 		pos = NULL;
 		while ((hint = hints_enum(name, &help, &pos))) {
-			
+
 			if (continue_showing_hints) {
 				if (help)
@@ -253,8 +253,8 @@
 				else
 					printf("%s%s\n", name, hint);
-				
+
 				--hints_to_show;
 				++total_hints_shown;
-				
+
 				if ((hints_to_show == 0) && (total_hints_shown != found)) {
 					/* Ask user to continue */
@@ -263,20 +263,20 @@
 				}
 			}
-			
+
 			for (max_match_len_tmp = 0;
 			    (output[max_match_len_tmp] ==
 			    hint[max_match_len_tmp]) &&
 			    (max_match_len_tmp < max_match_len); ++max_match_len_tmp);
-			
+
 			max_match_len = max_match_len_tmp;
 		}
-		
+
 		/* Keep only the characters common in all completions */
 		output[max_match_len] = 0;
 	}
-	
+
 	if (found > 0)
 		str_cpy(input, size, output);
-	
+
 	free(output);
 	return found;
@@ -288,22 +288,22 @@
 	size_t end;
 	char *tmp;
-	
+
 	while (isspace(cmdline[start]))
 		start++;
-	
+
 	end = start + 1;
-	
+
 	while (!isspace(cmdline[end]))
 		end++;
-	
+
 	tmp = malloc(STR_BOUNDS(end - start + 1), 0);
-	
+
 	wstr_to_str(tmp, end - start + 1, &cmdline[start]);
-	
+
 	spinlock_lock(&cmd_lock);
-	
+
 	list_foreach(cmd_list, link, cmd_info_t, hlp) {
 		spinlock_lock(&hlp->lock);
-		
+
 		if (str_cmp(hlp->name, tmp) == 0) {
 			spinlock_unlock(&hlp->lock);
@@ -312,11 +312,11 @@
 			return hlp;
 		}
-		
+
 		spinlock_unlock(&hlp->lock);
 	}
-	
+
 	free(tmp);
 	spinlock_unlock(&cmd_lock);
-	
+
 	return NULL;
 }
@@ -325,13 +325,13 @@
 {
 	printf("%s> ", prompt);
-	
+
 	size_t position = 0;
 	wchar_t *current = history[history_pos];
 	current[0] = 0;
 	char *tmp = malloc(STR_BOUNDS(MAX_CMDLINE), 0);
-	
+
 	while (true) {
 		wchar_t ch = indev_pop_character(indev);
-		
+
 		if (ch == '\n') {
 			/* Enter */
@@ -339,10 +339,10 @@
 			break;
 		}
-		
+
 		if (ch == '\b') {
 			/* Backspace */
 			if (position == 0)
 				continue;
-			
+
 			if (wstr_remove(current, position - 1)) {
 				position--;
@@ -353,14 +353,14 @@
 			}
 		}
-		
+
 		if (ch == '\t') {
 			/* Tab completion */
-			
+
 			/* Move to the end of the word */
 			for (; (current[position] != 0) && (!isspace(current[position]));
 			    position++)
 				putchar(current[position]);
-			
-			
+
+
 			/*
 			 * Find the beginning of the word
@@ -376,11 +376,11 @@
 				    (beg > 0) && (!isspace(current[beg]));
 				    beg--);
-				
+
 				if (isspace(current[beg]))
 					beg++;
-				
+
 				wstr_to_str(tmp, position - beg + 1, current + beg);
 			}
-			
+
 			/* Count which argument number are we tabbing (narg=0 is cmd) */
 			bool sp = false;
@@ -394,8 +394,8 @@
 					sp = false;
 			}
-			
+
 			if (narg && isspace(current[0]))
 				narg--;
-			
+
 			int found;
 			if (narg == 0) {
@@ -411,5 +411,5 @@
 				    cmd->hints_enum);
 			}
-			
+
 			if (found == 0)
 				continue;
@@ -424,8 +424,8 @@
 				if (!wstr_linsert(current, ch, position + i, MAX_CMDLINE))
 					break;
-				
+
 				i++;
 			}
-			
+
 			if (found > 1) {
 				/* No unique hint, list was printed */
@@ -436,11 +436,11 @@
 				continue;
 			}
-			
+
 			/* We have a hint */
-			
+
 			printf("%ls", current + position);
 			position += str_length(tmp);
 			print_cc('\b', wstr_length(current) - position);
-			
+
 			if (position == wstr_length(current)) {
 				/* Insert a space after the last completed argument */
@@ -452,5 +452,5 @@
 			continue;
 		}
-		
+
 		if (ch == U_LEFT_ARROW) {
 			/* Left */
@@ -461,5 +461,5 @@
 			continue;
 		}
-		
+
 		if (ch == U_RIGHT_ARROW) {
 			/* Right */
@@ -470,5 +470,5 @@
 			continue;
 		}
-		
+
 		if ((ch == U_UP_ARROW) || (ch == U_DOWN_ARROW)) {
 			/* Up, down */
@@ -476,5 +476,5 @@
 			print_cc(' ', wstr_length(current));
 			print_cc('\b', wstr_length(current));
-			
+
 			if (ch == U_UP_ARROW) {
 				/* Up */
@@ -493,5 +493,5 @@
 			continue;
 		}
-		
+
 		if (ch == U_HOME_ARROW) {
 			/* Home */
@@ -500,5 +500,5 @@
 			continue;
 		}
-		
+
 		if (ch == U_END_ARROW) {
 			/* End */
@@ -507,10 +507,10 @@
 			continue;
 		}
-		
+
 		if (ch == U_DELETE) {
 			/* Delete */
 			if (position == wstr_length(current))
 				continue;
-			
+
 			if (wstr_remove(current, position)) {
 				printf("%ls ", current + position);
@@ -519,5 +519,5 @@
 			continue;
 		}
-		
+
 		if (wstr_linsert(current, ch, position, MAX_CMDLINE)) {
 			printf("%ls", current + position);
@@ -526,10 +526,10 @@
 		}
 	}
-	
+
 	if (wstr_length(current) > 0) {
 		history_pos++;
 		history_pos = history_pos % KCONSOLE_HISTORY;
 	}
-	
+
 	free(tmp);
 	return current;
@@ -546,5 +546,5 @@
 	bool isaddr = false;
 	bool isptr = false;
-	
+
 	/* If we get a name, try to find it in symbol table */
 	if (text[0] == '&') {
@@ -557,9 +557,9 @@
 		len--;
 	}
-	
+
 	if ((text[0] < '0') || (text[0] > '9')) {
 		char symname[MAX_SYMBOL_NAME];
 		str_ncpy(symname, MAX_SYMBOL_NAME, text, len + 1);
-		
+
 		uintptr_t symaddr;
 		errno_t rc = symtab_addr_lookup(symname, &symaddr);
@@ -611,5 +611,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -635,10 +635,10 @@
 	assert(start != NULL);
 	assert(end != NULL);
-	
+
 	bool found_start = false;
 	size_t offset = *start;
 	size_t prev = *start;
 	wchar_t ch;
-	
+
 	while ((ch = str_decode(cmdline, &offset, size)) != 0) {
 		if (!found_start) {
@@ -651,9 +651,9 @@
 				break;
 		}
-		
+
 		prev = offset;
 	}
 	*end = prev;
-	
+
 	return found_start;
 }
@@ -676,10 +676,10 @@
 	}
 	spinlock_lock(&cmd_lock);
-	
+
 	cmd_info_t *cmd = NULL;
-	
+
 	list_foreach(cmd_list, link, cmd_info_t, hlp) {
 		spinlock_lock(&hlp->lock);
-		
+
 		if (str_lcmp(hlp->name, cmdline + start,
 		    max(str_length(hlp->name),
@@ -688,10 +688,10 @@
 			break;
 		}
-		
+
 		spinlock_unlock(&hlp->lock);
 	}
-	
+
 	spinlock_unlock(&cmd_lock);
-	
+
 	if (!cmd) {
 		/* Unknown command. */
@@ -699,7 +699,7 @@
 		return NULL;
 	}
-	
+
 	/* cmd == hlp is locked */
-	
+
 	/*
 	 * The command line must be further analyzed and
@@ -708,10 +708,10 @@
 	 * structure.
 	 */
-	
+
 	bool error = false;
 	size_t i;
 	for (i = 0; i < cmd->argc; i++) {
 		char *buf;
-		
+
 		start = end;
 		if (!parse_argument(cmdline, size, &start, &end)) {
@@ -721,10 +721,10 @@
 				continue;
 			}
-			
+
 			printf("Too few arguments.\n");
 			spinlock_unlock(&cmd->lock);
 			return NULL;
 		}
-		
+
 		switch (cmd->argv[i].type) {
 		case ARG_TYPE_STRING:
@@ -767,10 +767,10 @@
 		}
 	}
-	
+
 	if (error) {
 		spinlock_unlock(&cmd->lock);
 		return NULL;
 	}
-	
+
 	start = end;
 	if (parse_argument(cmdline, size, &start, &end)) {
@@ -779,5 +779,5 @@
 		return NULL;
 	}
-	
+
 	spinlock_unlock(&cmd->lock);
 	return cmd;
@@ -798,13 +798,13 @@
 		return;
 	}
-	
+
 	if (msg)
 		printf("%s", msg);
-	
+
 	if (kcon)
 		indev_pop_character(stdin);
 	else
 		printf("Type \"exit\" to leave the console.\n");
-	
+
 	char *cmdline = malloc(STR_BOUNDS(MAX_CMDLINE), 0);
 	while (true) {
@@ -813,14 +813,14 @@
 		if (!len)
 			continue;
-		
+
 		wstr_to_str(cmdline, STR_BOUNDS(MAX_CMDLINE), tmp);
-		
+
 		if ((!kcon) && (len == 4) && (str_lcmp(cmdline, "exit", 4) == 0))
 			break;
-		
+
 		cmd_info_t *cmd_info = parse_cmdline(cmdline, STR_BOUNDS(MAX_CMDLINE));
 		if (!cmd_info)
 			continue;
-		
+
 		(void) cmd_info->func(cmd_info->argv);
 	}
Index: kernel/generic/src/console/prompt.c
===================================================================
--- kernel/generic/src/console/prompt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/console/prompt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,15 +52,15 @@
 	assert(indev);
 	assert(hints > 0);
-	
+
 	printf("Display all %zu possibilities? (y or n) ", hints);
-	
+
 	while (true) {
 		wchar_t answer = indev_pop_character(indev);
-		
+
 		if ((answer == 'y') || (answer == 'Y')) {
 			printf("y");
 			return true;
 		}
-		
+
 		if ((answer == 'n') || (answer == 'N')) {
 			printf("n");
@@ -84,5 +84,5 @@
 	assert(indev);
 	assert(display_hints != NULL);
-	
+
 	printf("--More--");
 	while (true) {
@@ -95,5 +95,5 @@
 			break;
 		}
-		
+
 		/* Stop displaying hints? */
 		if ((continue_showing_hints == 'n') ||
@@ -104,5 +104,5 @@
 			break;
 		}
-		
+
 		/* Show one more hint? */
 		if (continue_showing_hints == '\n') {
@@ -111,8 +111,8 @@
 		}
 	}
-	
+
 	/* Delete the --More-- option */
 	printf("\r         \r");
-	
+
 	return *display_hints > 0;
 }
Index: kernel/generic/src/cpu/cpu.c
===================================================================
--- kernel/generic/src/cpu/cpu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/cpu/cpu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,13 +63,13 @@
 	if (config.cpu_active == 1) {
 #endif /* CONFIG_SMP */
-		
+
 		cpus = (cpu_t *) malloc(sizeof(cpu_t) * config.cpu_count,
 		    FRAME_ATOMIC);
 		if (!cpus)
 			panic("Cannot allocate CPU structures.");
-		
+
 		/* Initialize everything */
 		memsetb(cpus, sizeof(cpu_t) * config.cpu_count, 0);
-		
+
 		size_t i;
 		for (i = 0; i < config.cpu_count; i++) {
@@ -78,10 +78,10 @@
 			if (!stack_phys)
 				panic("Cannot allocate CPU stack.");
-			
+
 			cpus[i].stack = (uint8_t *) PA2KA(stack_phys);
 			cpus[i].id = i;
-			
+
 			irq_spinlock_initialize(&cpus[i].lock, "cpus[].lock");
-			
+
 			for (unsigned int j = 0; j < RQ_COUNT; j++) {
 				irq_spinlock_initialize(&cpus[i].rq[j].lock, "cpus[].rq[].lock");
@@ -89,19 +89,19 @@
 			}
 		}
-		
+
 #ifdef CONFIG_SMP
 	}
 #endif /* CONFIG_SMP */
-	
+
 	CPU = &cpus[config.cpu_active - 1];
-	
+
 	CPU->active = true;
 	CPU->tlb_active = true;
-	
+
 	CPU->idle = false;
 	CPU->last_cycle = get_cycle();
 	CPU->idle_cycles = 0;
 	CPU->busy_cycles = 0;
-	
+
 	cpu_identify();
 	cpu_arch_init();
@@ -113,5 +113,5 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < config.cpu_count; i++) {
 		if (cpus[i].active)
Index: kernel/generic/src/cpu/cpu_mask.c
===================================================================
--- kernel/generic/src/cpu/cpu_mask.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/cpu/cpu_mask.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 	assert(NULL != cpus);
 	assert(cpu_cnt <= config.cpu_count);
-	
+
 	for (size_t active_word = 0;
 		(active_word + 1) * word_bit_cnt <= cpu_cnt;
@@ -62,5 +62,5 @@
 		cpus->mask[active_word] = -1;
 	}
-	
+
 	size_t remaining_bits = (cpu_cnt % word_bit_cnt);
 	if (0 < remaining_bits) {
@@ -89,7 +89,7 @@
 {
 	assert(cpus);
-	
+
 	size_t word_cnt = cpu_mask_size() / word_size;
-		
+
 	for (size_t word = 0; word < word_cnt; ++word) {
 		cpus->mask[word] = 0;
@@ -102,5 +102,5 @@
 	size_t word = cpu_id / word_bit_cnt;
 	size_t word_pos = cpu_id % word_bit_cnt;
-	
+
 	cpus->mask[word] |= (1U << word_pos);
 }
@@ -111,5 +111,5 @@
 	size_t word = cpu_id / word_bit_cnt;
 	size_t word_pos = cpu_id % word_bit_cnt;
-	
+
 	cpus->mask[word] &= ~(1U << word_pos);
 }
@@ -120,5 +120,5 @@
 	size_t word = cpu_id / word_bit_cnt;
 	size_t word_pos = cpu_id % word_bit_cnt;
-	
+
 	return 0 != (cpus->mask[word] & (1U << word_pos));
 }
@@ -133,5 +133,5 @@
 			return false;
 	}
-	
+
 	return true;
 }
Index: kernel/generic/src/ddi/ddi.c
===================================================================
--- kernel/generic/src/ddi/ddi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ddi/ddi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,10 +79,10 @@
 {
 	mutex_lock(&parea_lock);
-	
+
 	/*
 	 * We don't check for overlaps here as the kernel is pretty sane.
 	 */
 	btree_insert(&parea_btree, (btree_key_t) parea->pbase, parea, NULL);
-	
+
 	mutex_unlock(&parea_lock);
 }
@@ -108,8 +108,8 @@
 {
 	assert(TASK);
-	
+
 	if ((phys % FRAME_SIZE) != 0)
 		return EBADMEM;
-	
+
 	/*
 	 * Unprivileged tasks are only allowed to map pareas
@@ -118,20 +118,20 @@
 	bool priv =
 	    ((perm_get(TASK) & PERM_MEM_MANAGER) == PERM_MEM_MANAGER);
-	
+
 	mem_backend_data_t backend_data;
 	backend_data.base = phys;
 	backend_data.frames = pages;
 	backend_data.anonymous = false;
-	
+
 	/*
 	 * Check if the memory region is explicitly enabled
 	 * for mapping by any parea structure.
 	 */
-	
+
 	mutex_lock(&parea_lock);
 	btree_node_t *nodep;
 	parea_t *parea = (parea_t *) btree_search(&parea_btree,
 	    (btree_key_t) phys, &nodep);
-	
+
 	if ((parea != NULL) && (parea->frames >= pages)) {
 		if ((!priv) && (!parea->unpriv)) {
@@ -139,19 +139,19 @@
 			return EPERM;
 		}
-		
+
 		goto map;
 	}
-	
+
 	parea = NULL;
 	mutex_unlock(&parea_lock);
-	
+
 	/*
 	 * Check if the memory region is part of physical
 	 * memory generally enabled for mapping.
 	 */
-	
+
 	irq_spinlock_lock(&zones.lock, true);
 	size_t znum = find_zone(ADDR2PFN(phys), pages, 0);
-	
+
 	if (znum == (size_t) -1) {
 		/*
@@ -161,11 +161,11 @@
 		 */
 		irq_spinlock_unlock(&zones.lock, true);
-		
+
 		if (!priv)
 			return EPERM;
-		
+
 		goto map;
 	}
-	
+
 	if (zones.info[znum].flags & (ZONE_FIRMWARE | ZONE_RESERVED)) {
 		/*
@@ -174,14 +174,14 @@
 		 */
 		irq_spinlock_unlock(&zones.lock, true);
-		
+
 		if (!priv)
 			return EPERM;
-		
+
 		goto map;
 	}
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
 	return ENOENT;
-	
+
 map:
 	if (!as_area_create(TASK->as, flags, FRAMES2SIZE(pages),
@@ -191,20 +191,20 @@
 		 * We report it using ENOMEM.
 		 */
-		
+
 		if (parea != NULL)
 			mutex_unlock(&parea_lock);
-		
+
 		return ENOMEM;
 	}
-	
+
 	/*
 	 * Mapping is created on-demand during page fault.
 	 */
-	
+
 	if (parea != NULL) {
 		parea->mapped = true;
 		mutex_unlock(&parea_lock);
 	}
-	
+
 	return EOK;
 }
@@ -235,10 +235,10 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = physmem_map(ALIGN_DOWN(phys, FRAME_SIZE), pages, flags, &virt,
 	    bound);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = copy_to_uspace(virt_ptr, &virt, sizeof(virt));
 	if (rc != EOK) {
@@ -246,5 +246,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -273,9 +273,9 @@
 	if (!(perms & PERM_IO_MANAGER))
 		return EPERM;
-	
+
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 	task_t *task = task_find_by_id(id);
-	
+
 	if ((!task) || (!container_check(CONTAINER, task->container))) {
 		/*
@@ -287,5 +287,5 @@
 		return ENOENT;
 	}
-	
+
 	/* Lock the task and release the lock protecting tasks_btree. */
 	irq_spinlock_exchange(&tasks_lock, &task->lock);
@@ -314,9 +314,9 @@
 	if (!(perms & PERM_IO_MANAGER))
 		return EPERM;
-	
+
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 	task_t *task = task_find_by_id(id);
-	
+
 	if ((!task) || (!container_check(CONTAINER, task->container))) {
 		/*
@@ -328,10 +328,10 @@
 		return ENOENT;
 	}
-	
+
 	/* Lock the task and release the lock protecting tasks_btree. */
 	irq_spinlock_exchange(&tasks_lock, &task->lock);
 	errno_t rc = ddi_iospace_disable_arch(task, ioaddr, size);
 	irq_spinlock_unlock(&task->lock, true);
-	
+
 	return rc;
 }
@@ -350,5 +350,5 @@
 	if (rc != EOK)
 		return (sys_errno_t) rc;
-	
+
 	return (sys_errno_t) iospace_enable((task_id_t) arg.task_id,
 	    (uintptr_t) arg.ioaddr, (size_t) arg.size);
@@ -370,5 +370,5 @@
 {
 	assert(TASK);
-	
+
 	// TODO: implement locking of non-anonymous mapping
 	return page_find_mapping(virt, phys);
@@ -380,5 +380,5 @@
 {
 	assert(TASK);
-	
+
 	size_t frames = SIZE2FRAMES(size);
 	if (frames == 0)
@@ -388,10 +388,10 @@
 	if (*phys == 0)
 		return ENOMEM;
-	
+
 	mem_backend_data_t backend_data;
 	backend_data.base = *phys;
 	backend_data.frames = frames;
 	backend_data.anonymous = true;
-	
+
 	if (!as_area_create(TASK->as, map_flags, size,
 	    AS_AREA_ATTR_NONE, &phys_backend, &backend_data, virt, bound)) {
@@ -399,5 +399,5 @@
 		return ENOMEM;
 	}
-	
+
 	return EOK;
 }
@@ -421,12 +421,12 @@
 		 * Non-anonymous DMA mapping
 		 */
-		
+
 		uintptr_t phys;
 		errno_t rc = dmamem_map((uintptr_t) virt_ptr, size, map_flags,
 		    flags, &phys);
-		
+
 		if (rc != EOK)
 			return rc;
-		
+
 		rc = copy_to_uspace(phys_ptr, &phys, sizeof(phys));
 		if (rc != EOK) {
@@ -438,5 +438,5 @@
 		 * Anonymous DMA mapping
 		 */
-		
+
 		uintptr_t constraint;
 		errno_t rc = copy_from_uspace(&constraint, phys_ptr,
@@ -444,10 +444,10 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		uintptr_t virt;
 		rc = copy_from_uspace(&virt, virt_ptr, sizeof(virt));
 		if (rc != EOK)
 			return rc;
-		
+
 		uintptr_t phys;
 		rc = dmamem_map_anonymous(size, constraint, map_flags, flags,
@@ -455,5 +455,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		rc = copy_to_uspace(phys_ptr, &phys, sizeof(phys));
 		if (rc != EOK) {
@@ -461,5 +461,5 @@
 			return rc;
 		}
-		
+
 		rc = copy_to_uspace(virt_ptr, &virt, sizeof(virt));
 		if (rc != EOK) {
@@ -468,5 +468,5 @@
 		}
 	}
-	
+
 	return EOK;
 }
Index: kernel/generic/src/ddi/irq.c
===================================================================
--- kernel/generic/src/ddi/irq.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ddi/irq.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -115,5 +115,5 @@
 	irq_spinlock_initialize(&irq->lock, "irq.lock");
 	irq->inr = -1;
-	
+
 	irq_initialize_arch(irq);
 }
@@ -153,5 +153,5 @@
 	}
 	irq_spinlock_unlock(l, false);
-	
+
 	return NULL;
 }
@@ -179,5 +179,5 @@
 	 * In the usual case the uspace handlers have precedence.
 	 */
-	
+
 	if (console_override) {
 		irq_t *irq = irq_dispatch_and_lock_table(&irq_kernel_hash_table,
@@ -185,14 +185,14 @@
 		if (irq)
 			return irq;
-		
+
 		return irq_dispatch_and_lock_table(&irq_uspace_hash_table,
 		    &irq_uspace_hash_table_lock, inr);
 	}
-	
+
 	irq_t *irq = irq_dispatch_and_lock_table(&irq_uspace_hash_table,
 	    &irq_uspace_hash_table_lock, inr);
 	if (irq)
 		return irq;
-	
+
 	return irq_dispatch_and_lock_table(&irq_kernel_hash_table,
 	    &irq_kernel_hash_table_lock, inr);
Index: kernel/generic/src/debug/debug.c
===================================================================
--- kernel/generic/src/debug/debug.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/debug/debug.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,8 +46,8 @@
 {
 	const char *fn_sym = symtab_fmt_name_lookup((uintptr_t) fn);
-	
+
 	const char *call_site_sym;
 	uintptr_t call_site_off;
-	
+
 	if (symtab_name_lookup((uintptr_t) call_site, &call_site_sym,
 	    &call_site_off) == EOK)
@@ -61,8 +61,8 @@
 {
 	const char *fn_sym = symtab_fmt_name_lookup((uintptr_t) fn);
-	
+
 	const char *call_site_sym;
 	uintptr_t call_site_off;
-	
+
 	if (symtab_name_lookup((uintptr_t) call_site, &call_site_sym,
 	    &call_site_off) == EOK)
Index: kernel/generic/src/debug/panic.c
===================================================================
--- kernel/generic/src/debug/panic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/debug/panic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,10 +49,10 @@
 {
 	console_override = true;
-	
+
 	printf("\n%s Kernel panic ", BANNER_LEFT);
 	if (CPU)
 		printf("on cpu%u ", CPU->id);
 	printf("due to ");
-	
+
 	va_list args;
 	va_start(args, fmt);
@@ -91,7 +91,7 @@
 	}
 	va_end(args);
-	
+
 	printf("\n");
-	
+
 	printf("THE=%p: ", THE);
 	if (THE != NULL) {
@@ -99,18 +99,18 @@
 		    " magic=%#" PRIx32 "\n", THE->preemption,
 		    THE->thread, THE->task, THE->cpu, THE->as, THE->magic);
-		
+
 		if (THE->thread != NULL)
 			printf("thread=\"%s\"\n", THE->thread->name);
-		
+
 		if (THE->task != NULL)
 			printf("task=\"%s\"\n", THE->task->name);
 	} else
 		printf("invalid\n");
-	
+
 	if (istate) {
 		istate_decode(istate);
 		printf("\n");
 	}
-	
+
 	stack_trace();
 	halt();
Index: kernel/generic/src/debug/stacktrace.c
===================================================================
--- kernel/generic/src/debug/stacktrace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/debug/stacktrace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 	uintptr_t fp;
 	uintptr_t pc;
-	
+
 	while ((cnt++ < STACK_FRAMES_MAX) &&
 	    (ops->stack_trace_context_validate(ctx))) {
@@ -60,11 +60,11 @@
 		} else
 			printf("%p: %p()\n", (void *) ctx->fp, (void *) ctx->pc);
-		
+
 		if (!ops->return_address_get(ctx, &pc))
 			break;
-		
+
 		if (!ops->frame_pointer_prev(ctx, &fp))
 			break;
-		
+
 		ctx->fp = fp;
 		ctx->pc = pc;
@@ -96,5 +96,5 @@
 		.istate = istate
 	};
-	
+
 	if (istate_from_uspace(istate))
 		stack_trace_ctx(&ust_ops, &ctx);
Index: kernel/generic/src/debug/symtab.c
===================================================================
--- kernel/generic/src/debug/symtab.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/debug/symtab.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,10 +58,10 @@
 #ifdef CONFIG_SYMTAB
 	size_t i;
-	
+
 	for (i = 1; symbol_table[i].address_le; i++) {
 		if (addr < uint64_t_le2host(symbol_table[i].address_le))
 			break;
 	}
-	
+
 	if (addr >= uint64_t_le2host(symbol_table[i - 1].address_le)) {
 		*name = symbol_table[i - 1].symbol_name;
@@ -71,8 +71,8 @@
 		return EOK;
 	}
-	
+
 	*name = NULL;
 	return ENOENT;
-	
+
 #else
 	*name = NULL;
@@ -97,5 +97,5 @@
 	const char *name;
 	errno_t rc = symtab_name_lookup(addr, &name, NULL);
-	
+
 	switch (rc) {
 	case EOK:
@@ -121,17 +121,17 @@
 {
 	size_t namelen = str_length(name);
-	
+
 	size_t pos;
 	for (pos = *startpos; symbol_table[pos].address_le; pos++) {
 		const char *curname = symbol_table[pos].symbol_name;
-		
+
 		/* Find a ':' in curname */
 		const char *colon = str_chr(curname, ':');
 		if (colon == NULL)
 			continue;
-		
+
 		if (str_length(curname) < namelen)
 			continue;
-		
+
 		if (str_lcmp(name, curname, namelen) == 0) {
 			*startpos = pos;
@@ -139,5 +139,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -162,5 +162,5 @@
 	size_t pos = 0;
 	const char *hint;
-	
+
 	while ((hint = symtab_search_one(name, &pos))) {
 		if (str_length(hint) == 0) {
@@ -170,13 +170,13 @@
 		pos++;
 	}
-	
+
 	if (found > 1)
 		return EOVERFLOW;
-	
+
 	if (found < 1)
 		return ENOENT;
-	
+
 	return EOK;
-	
+
 #else
 	return ENOTSUP;
@@ -195,5 +195,5 @@
 		pos++;
 	}
-	
+
 #else
 	printf("No symbol information available.\n");
@@ -208,19 +208,19 @@
 	size_t len = str_length(input);
 	struct symtab_entry **entry = (struct symtab_entry**)ctx;
-	
+
 	if (*entry == NULL)
 		*entry = symbol_table;
-	
+
 	for (; (*entry)->address_le; (*entry)++) {
 		const char *curname = (*entry)->symbol_name;
-		
+
 		/* Find a ':' in curname */
 		const char *colon = str_chr(curname, ':');
 		if (colon == NULL)
 			continue;
-		
+
 		if (str_length(curname) < len)
 			continue;
-		
+
 		if (str_lcmp(input, curname, len) == 0) {
 			(*entry)++;
@@ -230,7 +230,7 @@
 		}
 	}
-	
+
 	return NULL;
-	
+
 #else
 	return NULL;
Index: kernel/generic/src/interrupt/interrupt.c
===================================================================
--- kernel/generic/src/interrupt/interrupt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/interrupt/interrupt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -78,7 +78,7 @@
 	assert(n < IVT_ITEMS);
 #endif
-	
+
 	irq_spinlock_lock(&exctbl_lock, true);
-	
+
 	iroutine_t old = exc_table[n].handler;
 	exc_table[n].handler = handler;
@@ -87,7 +87,7 @@
 	exc_table[n].cycles = 0;
 	exc_table[n].count = 0;
-	
+
 	irq_spinlock_unlock(&exctbl_lock, true);
-	
+
 	return old;
 }
@@ -104,5 +104,5 @@
 	assert(n < IVT_ITEMS);
 #endif
-	
+
 	/* Account user cycles */
 	if (THREAD) {
@@ -111,5 +111,5 @@
 		irq_spinlock_unlock(&THREAD->lock, false);
 	}
-	
+
 	/* Account CPU usage if it woke up from sleep */
 	if (CPU && CPU->idle) {
@@ -121,31 +121,31 @@
 		irq_spinlock_unlock(&CPU->lock, false);
 	}
-	
+
 	uint64_t begin_cycle = get_cycle();
-	
+
 #ifdef CONFIG_UDEBUG
 	if (THREAD)
 		THREAD->udebug.uspace_state = istate;
 #endif
-	
+
 	exc_table[n].handler(n + IVT_FIRST, istate);
-	
+
 #ifdef CONFIG_UDEBUG
 	if (THREAD)
 		THREAD->udebug.uspace_state = NULL;
 #endif
-	
+
 	/* This is a safe place to exit exiting thread */
 	if ((THREAD) && (THREAD->interrupted) && (istate_from_uspace(istate)))
 		thread_exit();
-	
+
 	/* Account exception handling */
 	uint64_t end_cycle = get_cycle();
-	
+
 	irq_spinlock_lock(&exctbl_lock, false);
 	exc_table[n].cycles += end_cycle - begin_cycle;
 	exc_table[n].count++;
 	irq_spinlock_unlock(&exctbl_lock, false);
-	
+
 	/* Do not charge THREAD for exception cycles */
 	if (THREAD) {
@@ -171,12 +171,12 @@
 	    "program counter %p.\n", TASK->name, TASK->taskid,
 	    (void *) istate_get_pc(istate));
-	
+
 	istate_decode(istate);
 	stack_trace_istate(istate);
-	
+
 	printf("Kill message: ");
 	vprintf(fmt, args);
 	printf("\n");
-	
+
 	task_kill_self(true);
 }
@@ -201,5 +201,5 @@
 	if (!istate_from_uspace(istate))
 		return;
-	
+
 	va_list args;
 	va_start(args, fmt);
@@ -236,5 +236,5 @@
 {
 	bool excs_all;
-	
+
 	if (str_cmp(flag_buf, "-a") == 0)
 		excs_all = true;
@@ -245,11 +245,11 @@
 		return 1;
 	}
-	
+
 #if (IVT_ITEMS > 0)
 	unsigned int i;
 	unsigned int rows;
-	
+
 	irq_spinlock_lock(&exctbl_lock, true);
-	
+
 #ifdef __32_BITS__
 	printf("[exc   ] [description       ] [count   ] [cycles  ]"
@@ -257,5 +257,5 @@
 	rows = 1;
 #endif
-	
+
 #ifdef __64_BITS__
 	printf("[exc   ] [description       ] [count   ] [cycles  ]"
@@ -264,31 +264,31 @@
 	rows = 2;
 #endif
-	
+
 	for (i = 0; i < IVT_ITEMS; i++) {
 		if ((!excs_all) && (!exc_table[i].hot))
 			continue;
-		
+
 		uint64_t count;
 		char count_suffix;
-		
+
 		order_suffix(exc_table[i].count, &count, &count_suffix);
-		
+
 		uint64_t cycles;
 		char cycles_suffix;
-		
+
 		order_suffix(exc_table[i].cycles, &cycles, &cycles_suffix);
-		
+
 		const char *symbol =
 		    symtab_fmt_name_lookup((sysarg_t) exc_table[i].handler);
-		
+
 #ifdef __32_BITS__
 		printf("%-8u %-20s %9" PRIu64 "%c %9" PRIu64 "%c %10p %s\n",
 		    i + IVT_FIRST, exc_table[i].name, count, count_suffix,
 		    cycles, cycles_suffix, exc_table[i].handler, symbol);
-		
+
 		PAGING(rows, 1, irq_spinlock_unlock(&exctbl_lock, true),
 		    irq_spinlock_lock(&exctbl_lock, true));
 #endif
-		
+
 #ifdef __64_BITS__
 		printf("%-8u %-20s %9" PRIu64 "%c %9" PRIu64 "%c %18p\n",
@@ -296,17 +296,17 @@
 		    cycles, cycles_suffix, exc_table[i].handler);
 		printf("         %s\n", symbol);
-		
+
 		PAGING(rows, 2, irq_spinlock_unlock(&exctbl_lock, true),
 		    irq_spinlock_lock(&exctbl_lock, true));
 #endif
 	}
-	
+
 	irq_spinlock_unlock(&exctbl_lock, true);
 #else /* (IVT_ITEMS > 0) */
-	
+
 	printf("No exception table%s.\n", excs_all ? " (showing all exceptions)" : "");
-	
+
 #endif /* (IVT_ITEMS > 0) */
-	
+
 	return 1;
 }
@@ -335,12 +335,12 @@
 {
 	(void) exc_undef;
-	
+
 #if (IVT_ITEMS > 0)
 	unsigned int i;
-	
+
 	for (i = 0; i < IVT_ITEMS; i++)
 		exc_register(i, "undef", false, (iroutine_t) exc_undef);
 #endif
-	
+
 #ifdef CONFIG_KCONSOLE
 	cmd_initialize(&exc_info);
Index: kernel/generic/src/ipc/event.c
===================================================================
--- kernel/generic/src/ipc/event.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/event.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,12 +61,12 @@
 {
 	assert(evno < EVENT_TASK_END);
-	
+
 	event_t *event;
-	
+
 	if (evno < EVENT_END)
 		event = &events[(event_type_t) evno];
 	else
 		event = &task->events[(event_task_type_t) evno - EVENT_END];
-	
+
 	return event;
 }
@@ -96,5 +96,5 @@
 	for (unsigned int i = 0; i < EVENT_END; i++) {
 		spinlock_lock(&events[i].lock);
-		
+
 		if (events[i].answerbox == answerbox) {
 			events[i].answerbox = NULL;
@@ -103,5 +103,5 @@
 			events[i].masked = false;
 		}
-		
+
 		spinlock_unlock(&events[i].lock);
 	}
@@ -125,5 +125,5 @@
 {
 	assert(evno < EVENT_END);
-	
+
 	_event_set_unmask_callback(evno2event(evno, NULL), callback);
 }
@@ -134,5 +134,5 @@
 	assert(evno >= (int) EVENT_END);
 	assert(evno < EVENT_TASK_END);
-		
+
 	_event_set_unmask_callback(evno2event(evno, task), callback);
 }
@@ -144,13 +144,13 @@
 
 	spinlock_lock(&event->lock);
-	
+
 	if (event->answerbox != NULL) {
 		if (!event->masked) {
 			call_t *call = ipc_call_alloc(FRAME_ATOMIC);
-			
+
 			if (call) {
 				call->flags |= IPC_CALL_NOTIF;
 				call->priv = ++event->counter;
-				
+
 				IPC_SET_IMETHOD(call->data, event->imethod);
 				IPC_SET_ARG1(call->data, a1);
@@ -159,7 +159,7 @@
 				IPC_SET_ARG4(call->data, a4);
 				IPC_SET_ARG5(call->data, a5);
-				
+
 				call->data.task_id = TASK ? TASK->taskid : 0;
-				
+
 				irq_spinlock_lock(&event->answerbox->irq_lock,
 				    true);
@@ -168,11 +168,11 @@
 				irq_spinlock_unlock(&event->answerbox->irq_lock,
 				    true);
-				
+
 				waitq_wakeup(&event->answerbox->wq,
 				    WAKEUP_FIRST);
-				
+
 				if (mask)
 					event->masked = true;
-				
+
 				res = EOK;
 			} else
@@ -182,5 +182,5 @@
 	} else
 		res = ENOENT;
-	
+
 	spinlock_unlock(&event->lock);
 	return res;
@@ -210,5 +210,5 @@
 {
 	assert(evno < EVENT_END);
-	
+
 	return event_enqueue(evno2event(evno, NULL), mask, a1, a2, a3, a4, a5);
 }
@@ -239,5 +239,5 @@
 	assert(evno >= (int) EVENT_END);
 	assert(evno < EVENT_TASK_END);
-	
+
 	return event_enqueue(evno2event(evno, task), mask, a1, a2, a3, a4, a5);
 }
@@ -259,7 +259,7 @@
 {
 	errno_t res;
-	
-	spinlock_lock(&event->lock);
-	
+
+	spinlock_lock(&event->lock);
+
 	if (event->answerbox == NULL) {
 		event->answerbox = answerbox;
@@ -270,7 +270,7 @@
 	} else
 		res = EEXIST;
-	
-	spinlock_unlock(&event->lock);
-	
+
+	spinlock_unlock(&event->lock);
+
 	return res;
 }
@@ -289,7 +289,7 @@
 {
 	errno_t res;
-	
-	spinlock_lock(&event->lock);
-	
+
+	spinlock_lock(&event->lock);
+
 	if (event->answerbox == answerbox) {
 		event->answerbox = NULL;
@@ -300,7 +300,7 @@
 	} else
 		res = ENOENT;
-	
-	spinlock_unlock(&event->lock);
-	
+
+	spinlock_unlock(&event->lock);
+
 	return res;
 }
@@ -317,5 +317,5 @@
 	event_callback_t callback = event->unmask_callback;
 	spinlock_unlock(&event->lock);
-	
+
 	/*
 	 * Check if there is an unmask callback
@@ -342,5 +342,5 @@
 	if (evno >= EVENT_TASK_END)
 		return ELIMIT;
-	
+
 	return (sys_errno_t) event_subscribe(evno2event(evno, TASK),
 	    (sysarg_t) imethod, &TASK->answerbox);
@@ -361,5 +361,5 @@
 	if (evno >= EVENT_TASK_END)
 		return ELIMIT;
-	
+
 	return (sys_errno_t) event_unsubscribe(evno2event(evno, TASK),
 	    &TASK->answerbox);
@@ -383,5 +383,5 @@
 	if (evno >= EVENT_TASK_END)
 		return ELIMIT;
-	
+
 	event_unmask(evno2event(evno, TASK));
 
Index: kernel/generic/src/ipc/ipc.c
===================================================================
--- kernel/generic/src/ipc/ipc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/ipc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -127,5 +127,5 @@
 	kobject_initialize(kobj, KOBJECT_TYPE_CALL, call, &call_kobject_ops);
 	call->kobject = kobj;
-	
+
 	return call;
 }
@@ -212,8 +212,8 @@
 	answerbox_t *mybox = slab_alloc(answerbox_cache, 0);
 	ipc_answerbox_init(mybox, TASK);
-	
+
 	/* We will receive data in a special box. */
 	request->callerbox = mybox;
-	
+
 	errno_t rc = ipc_call(phone, request);
 	if (rc != EOK) {
@@ -247,5 +247,5 @@
 			ipc_forget_call(request);	/* releases locks */
 			rc = EINTR;
-			
+
 		} else {
 			spinlock_unlock(&TASK->active_calls_lock);
@@ -264,5 +264,5 @@
 	}
 	assert(!answer || request == answer);
-	
+
 	slab_free(answerbox_cache, mybox);
 	return rc;
@@ -305,17 +305,17 @@
 	    &call->sender->answerbox;
 	bool do_lock = ((!selflocked) || (callerbox != &TASK->answerbox));
-	
+
 	call->flags |= IPC_CALL_ANSWERED;
-	
+
 	call->data.task_id = TASK->taskid;
-	
+
 	if (do_lock)
 		irq_spinlock_lock(&callerbox->lock, true);
-	
+
 	list_append(&call->ab_link, &callerbox->answers);
-	
+
 	if (do_lock)
 		irq_spinlock_unlock(&callerbox->lock, true);
-	
+
 	waitq_wakeup(&callerbox->wq, WAKEUP_FIRST);
 }
@@ -333,5 +333,5 @@
 	list_remove(&call->ab_link);
 	irq_spinlock_unlock(&box->lock, true);
-	
+
 	/* Send back answer */
 	_ipc_answer_free_call(call, false);
@@ -395,12 +395,12 @@
 	caller->ipc_info.call_sent++;
 	irq_spinlock_unlock(&caller->lock, true);
-	
+
 	if (!(call->flags & IPC_CALL_FORWARDED))
 		_ipc_call_actions_internal(phone, call, preforget);
-	
+
 	irq_spinlock_lock(&box->lock, true);
 	list_append(&call->ab_link, &box->calls);
 	irq_spinlock_unlock(&box->lock, true);
-	
+
 	waitq_wakeup(&box->wq, WAKEUP_FIRST);
 }
@@ -426,11 +426,11 @@
 				ipc_backsend_err(phone, call, ENOENT);
 		}
-		
+
 		return ENOENT;
 	}
-	
+
 	answerbox_t *box = phone->callee;
 	_ipc_call(phone, box, call, false);
-	
+
 	mutex_unlock(&phone->lock);
 	return 0;
@@ -457,5 +457,5 @@
 		return EINVAL;
 	}
-	
+
 	answerbox_t *box = phone->callee;
 	if (phone->state != IPC_PHONE_SLAMMED) {
@@ -467,5 +467,5 @@
 		/* Drop the answerbox reference */
 		kobject_put(phone->kobject);
-		
+
 		call_t *call = ipc_call_alloc(0);
 		IPC_SET_IMETHOD(call->data, IPC_M_PHONE_HUNGUP);
@@ -474,8 +474,8 @@
 		_ipc_call(phone, box, call, false);
 	}
-	
+
 	phone->state = IPC_PHONE_HUNGUP;
 	mutex_unlock(&phone->lock);
-	
+
 	return EOK;
 }
@@ -504,10 +504,10 @@
 	list_remove(&call->ab_link);
 	irq_spinlock_unlock(&oldbox->lock, true);
-	
+
 	if (mode & IPC_FF_ROUTE_FROM_ME) {
 		call->data.phone = newphone;
 		call->data.task_id = TASK->taskid;
 	}
-	
+
 	return ipc_call(newphone, call);
 }
@@ -536,26 +536,26 @@
 	uint64_t call_cnt = 0;
 	errno_t rc;
-	
+
 restart:
 	rc = waitq_sleep_timeout(&box->wq, usec, flags, NULL);
 	if (rc != EOK)
 		return NULL;
-	
+
 	irq_spinlock_lock(&box->lock, true);
 	if (!list_empty(&box->irq_notifs)) {
 		/* Count received IRQ notification */
 		irq_cnt++;
-		
+
 		irq_spinlock_lock(&box->irq_lock, false);
-		
+
 		request = list_get_instance(list_first(&box->irq_notifs),
 		    call_t, ab_link);
 		list_remove(&request->ab_link);
-		
+
 		irq_spinlock_unlock(&box->irq_lock, false);
 	} else if (!list_empty(&box->answers)) {
 		/* Count received answer */
 		answer_cnt++;
-		
+
 		/* Handle asynchronous answers */
 		request = list_get_instance(list_first(&box->answers),
@@ -566,10 +566,10 @@
 		/* Count received call */
 		call_cnt++;
-		
+
 		/* Handle requests */
 		request = list_get_instance(list_first(&box->calls),
 		    call_t, ab_link);
 		list_remove(&request->ab_link);
-		
+
 		/* Append request to dispatch queue */
 		list_append(&request->ab_link, &box->dispatched_calls);
@@ -579,13 +579,13 @@
 		goto restart;
 	}
-	
+
 	irq_spinlock_pass(&box->lock, &TASK->lock);
-	
+
 	TASK->ipc_info.irq_notif_received += irq_cnt;
 	TASK->ipc_info.answer_received += answer_cnt;
 	TASK->ipc_info.call_received += call_cnt;
-	
+
 	irq_spinlock_unlock(&TASK->lock, true);
-	
+
 	return request;
 }
@@ -602,5 +602,5 @@
 		call_t *call = list_get_instance(list_first(lst), call_t,
 		    ab_link);
-		
+
 		list_remove(&call->ab_link);
 
@@ -631,5 +631,5 @@
 	phone_t *phone;
 	DEADLOCK_PROBE_INIT(p_phonelck);
-	
+
 	/* Disconnect all phones connected to our answerbox */
 restart_phones:
@@ -643,11 +643,11 @@
 			goto restart_phones;
 		}
-		
+
 		/* Disconnect phone */
 		assert(phone->state == IPC_PHONE_CONNECTED);
-		
+
 		list_remove(&phone->link);
 		phone->state = IPC_PHONE_SLAMMED;
-		
+
 		if (notify_box) {
 			task_hold(phone->caller);
@@ -671,13 +671,13 @@
 
 			kobject_put(phone->kobject);
-			
+
 			/* Must start again */
 			goto restart_phones;
 		}
-		
+
 		mutex_unlock(&phone->lock);
 		kobject_put(phone->kobject);
 	}
-	
+
 	irq_spinlock_unlock(&box->lock, true);
 }
@@ -727,5 +727,5 @@
 		return;
 	}
-	
+
 	call = list_get_instance(list_first(&TASK->active_calls), call_t,
 	    ta_link);
@@ -811,5 +811,5 @@
 	if (restart)
 		goto restart;
-	
+
 	call = ipc_wait_for_call(&TASK->answerbox, SYNCH_NO_TIMEOUT,
 	    SYNCH_FLAGS_NONE);
@@ -872,15 +872,15 @@
 	caps_apply_to_kobject_type(TASK, KOBJECT_TYPE_PHONE,
 	    phone_cap_cleanup_cb, NULL);
-	
+
 	/* Unsubscribe from any event notifications. */
 	event_cleanup_answerbox(&TASK->answerbox);
-	
+
 	/* Disconnect all connected IRQs */
 	caps_apply_to_kobject_type(TASK, KOBJECT_TYPE_IRQ, irq_cap_cleanup_cb,
 	    NULL);
-	
+
 	/* Disconnect all phones connected to our regular answerbox */
 	ipc_answerbox_slam_phones(&TASK->answerbox, false);
-	
+
 #ifdef CONFIG_UDEBUG
 	/* Clean up kbox thread and communications */
@@ -891,10 +891,10 @@
 	caps_apply_to_kobject_type(TASK, KOBJECT_TYPE_CALL, call_cap_cleanup_cb,
 	    NULL);
-	
+
 	/* Answer all messages in 'calls' and 'dispatched_calls' queues */
 	ipc_cleanup_call_list(&TASK->answerbox, &TASK->answerbox.calls);
 	ipc_cleanup_call_list(&TASK->answerbox,
 	    &TASK->answerbox.dispatched_calls);
- 	
+
 	ipc_forget_all_active_calls();
 	ipc_wait_for_all_answered_calls();
@@ -921,9 +921,9 @@
 		printf("%10p ", call);
 #endif
-		
+
 #ifdef __64_BITS__
 		printf("%18p ", call);
 #endif
-		
+
 		spinlock_lock(&call->forget_lock);
 
@@ -954,5 +954,5 @@
 		printf("%-11d %7" PRIun " ", cap->handle,
 		    atomic_get(&phone->active_calls));
-		
+
 		switch (phone->state) {
 		case IPC_PHONE_CONNECTING:
@@ -973,5 +973,5 @@
 			break;
 		}
-		
+
 		printf("\n");
 	}
@@ -996,23 +996,23 @@
 	task_hold(task);
 	irq_spinlock_unlock(&tasks_lock, true);
-	
+
 	printf("[phone cap] [calls] [state\n");
-	
+
 	caps_apply_to_kobject_type(task, KOBJECT_TYPE_PHONE,
 	    print_task_phone_cb, NULL);
-	
+
 	irq_spinlock_lock(&task->lock, true);
 	irq_spinlock_lock(&task->answerbox.lock, false);
-	
+
 #ifdef __32_BITS__
 	printf("[call id ] [method] [arg1] [arg2] [arg3] [arg4] [arg5]"
 	    " [flags] [sender\n");
 #endif
-	
+
 #ifdef __64_BITS__
 	printf("[call id         ] [method] [arg1] [arg2] [arg3] [arg4]"
 	    " [arg5] [flags] [sender\n");
 #endif
-	
+
 	printf(" --- incomming calls ---\n");
 	ipc_print_call_list(&task->answerbox.calls);
@@ -1021,5 +1021,5 @@
 	printf(" --- incoming answers ---\n");
 	ipc_print_call_list(&task->answerbox.answers);
-	
+
 	irq_spinlock_unlock(&task->answerbox.lock, false);
 	irq_spinlock_unlock(&task->lock, true);
Index: kernel/generic/src/ipc/ipcrsc.c
===================================================================
--- kernel/generic/src/ipc/ipcrsc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/ipcrsc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -193,5 +193,5 @@
 		    &phone_kobject_ops);
 		phone->kobject = kobject;
-		
+
 		cap_publish(task, handle, kobject);
 
@@ -213,8 +213,8 @@
 	if (!kobj)
 		return;
-	
+
 	assert(kobj->phone);
 	assert(kobj->phone->state == IPC_PHONE_CONNECTING);
-	
+
 	kobject_put(kobj);
 	cap_free(TASK, handle);
@@ -232,7 +232,7 @@
 	if (!phone_obj)
 		return false;
-	
+
 	assert(phone_obj->phone->state == IPC_PHONE_CONNECTING);
-	
+
 	/* Hand over phone_obj reference to the answerbox */
 	return ipc_phone_connect(phone_obj->phone, box);
Index: kernel/generic/src/ipc/irq.c
===================================================================
--- kernel/generic/src/ipc/irq.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/irq.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -85,5 +85,5 @@
 	for (size_t i = 0; i < rangecount; i++)
 		pbase[i] = ranges[i].base;
-	
+
 	/* Map the PIO ranges into the kernel virtual address space. */
 	for (size_t i = 0; i < rangecount; i++) {
@@ -100,10 +100,10 @@
 		}
 	}
-	
+
 	/* Rewrite the IRQ code addresses from physical to kernel virtual. */
 	for (size_t i = 0; i < cmdcount; i++) {
 		uintptr_t addr;
 		size_t size;
-		
+
 		/* Process only commands that use an address. */
 		switch (cmds[i].cmd) {
@@ -127,7 +127,7 @@
 			continue;
 		}
-		
+
 		addr = (uintptr_t) cmds[i].addr;
-		
+
 		size_t j;
 		for (j = 0; j < rangecount; j++) {
@@ -135,13 +135,13 @@
 			if (!iswithin(pbase[j], ranges[j].size, addr, size))
 				continue;
-			
+
 			/* Switch the command to a kernel virtual address. */
 			addr -= pbase[j];
 			addr += ranges[j].base;
-			
+
 			cmds[i].addr = (void *) addr;
 			break;
 		}
-		
+
 		if (j == rangecount) {
 			/*
@@ -154,5 +154,5 @@
 		}
 	}
-	
+
 	free(pbase);
 	return EOK;
@@ -172,11 +172,11 @@
 		if (cmds[i].cmd >= CMD_LAST)
 			return EINVAL;
-		
+
 		if (cmds[i].srcarg >= IPC_CALL_LEN)
 			return EINVAL;
-		
+
 		if (cmds[i].dstarg >= IPC_CALL_LEN)
 			return EINVAL;
-		
+
 		switch (cmds[i].cmd) {
 		case CMD_PREDICATE:
@@ -188,5 +188,5 @@
 			if (i + cmds[i].value > cmdcount)
 				return EINVAL;
-			
+
 			break;
 		default:
@@ -194,5 +194,5 @@
 		}
 	}
-	
+
 	return EOK;
 }
@@ -224,14 +224,14 @@
 	irq_pio_range_t *ranges = NULL;
 	irq_cmd_t *cmds = NULL;
-	
+
 	irq_code_t *code = malloc(sizeof(*code), 0);
 	errno_t rc = copy_from_uspace(code, ucode, sizeof(*code));
 	if (rc != EOK)
 		goto error;
-	
+
 	if ((code->rangecount > IRQ_MAX_RANGE_COUNT) ||
 	    (code->cmdcount > IRQ_MAX_PROG_SIZE))
 		goto error;
-	
+
 	ranges = malloc(sizeof(code->ranges[0]) * code->rangecount, 0);
 	rc = copy_from_uspace(ranges, code->ranges,
@@ -239,5 +239,5 @@
 	if (rc != EOK)
 		goto error;
-	
+
 	cmds = malloc(sizeof(code->cmds[0]) * code->cmdcount, 0);
 	rc = copy_from_uspace(cmds, code->cmds,
@@ -245,26 +245,26 @@
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = code_check(cmds, code->cmdcount);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = ranges_map_and_apply(ranges, code->rangecount, cmds,
 	    code->cmdcount);
 	if (rc != EOK)
 		goto error;
-	
+
 	code->ranges = ranges;
 	code->cmds = cmds;
-	
+
 	return code;
-	
+
 error:
 	if (cmds)
 		free(cmds);
-	
+
 	if (ranges)
 		free(ranges);
-	
+
 	free(code);
 	return NULL;
@@ -275,5 +275,5 @@
 	irq_spinlock_lock(&irq_uspace_hash_table_lock, true);
 	irq_spinlock_lock(&irq->lock, false);
-	
+
 	if (irq->notif_cfg.hashed_in) {
 		/* Remove the IRQ from the uspace IRQ hash table. */
@@ -318,5 +318,5 @@
 	if ((inr < 0) || (inr > last_inr))
 		return ELIMIT;
-	
+
 	irq_code_t *code;
 	if (ucode) {
@@ -326,5 +326,5 @@
 	} else
 		code = NULL;
-	
+
 	/*
 	 * Allocate and populate the IRQ kernel object.
@@ -334,5 +334,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = copy_to_uspace(uspace_handle, &handle, sizeof(cap_handle_t));
 	if (rc != EOK) {
@@ -353,5 +353,5 @@
 		return ENOMEM;
 	}
-	
+
 	irq_initialize(irq);
 	irq->inr = inr;
@@ -363,5 +363,5 @@
 	irq->notif_cfg.code = code;
 	irq->notif_cfg.counter = 0;
-	
+
 	/*
 	 * Insert the IRQ structure into the uspace IRQ hash table.
@@ -369,8 +369,8 @@
 	irq_spinlock_lock(&irq_uspace_hash_table_lock, true);
 	irq_spinlock_lock(&irq->lock, false);
-	
+
 	irq->notif_cfg.hashed_in = true;
 	hash_table_insert(&irq_uspace_hash_table, &irq->link);
-	
+
 	irq_spinlock_unlock(&irq->lock, false);
 	irq_spinlock_unlock(&irq_uspace_hash_table_lock, true);
@@ -378,5 +378,5 @@
 	kobject_initialize(kobject, KOBJECT_TYPE_IRQ, irq, &irq_kobject_ops);
 	cap_publish(TASK, handle, kobject);
-	
+
 	return EOK;
 }
@@ -395,5 +395,5 @@
 	if (!kobj)
 		return ENOENT;
-	
+
 	assert(kobj->irq->notif_cfg.answerbox == box);
 
@@ -402,5 +402,5 @@
 	kobject_put(kobj);
 	cap_free(TASK, handle);
-	
+
 	return EOK;
 }
@@ -419,5 +419,5 @@
 	list_append(&call->ab_link, &irq->notif_cfg.answerbox->irq_notifs);
 	irq_spinlock_unlock(&irq->notif_cfg.answerbox->irq_lock, false);
-	
+
 	waitq_wakeup(&irq->notif_cfg.answerbox->wq, WAKEUP_FIRST);
 }
@@ -435,15 +435,15 @@
 	irq_code_t *code = irq->notif_cfg.code;
 	uint32_t *scratch = irq->notif_cfg.scratch;
-	
+
 	if (!irq->notif_cfg.notify)
 		return IRQ_DECLINE;
-	
+
 	if (!code)
 		return IRQ_DECLINE;
-	
+
 	for (size_t i = 0; i < code->cmdcount; i++) {
 		uintptr_t srcarg = code->cmds[i].srcarg;
 		uintptr_t dstarg = code->cmds[i].dstarg;
-		
+
 		switch (code->cmds[i].cmd) {
 		case CMD_PIO_READ_8:
@@ -493,5 +493,5 @@
 			if (scratch[srcarg] == 0)
 				i += code->cmds[i].value;
-			
+
 			break;
 		case CMD_ACCEPT:
@@ -502,5 +502,5 @@
 		}
 	}
-	
+
 	return IRQ_DECLINE;
 }
@@ -516,17 +516,17 @@
 {
 	assert(irq);
-	
+
 	assert(interrupts_disabled());
 	assert(irq_spinlock_locked(&irq->lock));
-	
+
 	if (irq->notif_cfg.answerbox) {
 		call_t *call = ipc_call_alloc(FRAME_ATOMIC);
 		if (!call)
 			return;
-		
+
 		call->flags |= IPC_CALL_NOTIF;
 		/* Put a counter to the message */
 		call->priv = ++irq->notif_cfg.counter;
-		
+
 		/* Set up args */
 		IPC_SET_IMETHOD(call->data, irq->notif_cfg.imethod);
@@ -536,5 +536,5 @@
 		IPC_SET_ARG4(call->data, irq->notif_cfg.scratch[4]);
 		IPC_SET_ARG5(call->data, irq->notif_cfg.scratch[5]);
-		
+
 		send_call(irq, call);
 	}
@@ -555,5 +555,5 @@
 {
 	irq_spinlock_lock(&irq->lock, true);
-	
+
 	if (irq->notif_cfg.answerbox) {
 		call_t *call = ipc_call_alloc(FRAME_ATOMIC);
@@ -562,9 +562,9 @@
 			return;
 		}
-		
+
 		call->flags |= IPC_CALL_NOTIF;
 		/* Put a counter to the message */
 		call->priv = ++irq->notif_cfg.counter;
-		
+
 		IPC_SET_IMETHOD(call->data, irq->notif_cfg.imethod);
 		IPC_SET_ARG1(call->data, a1);
@@ -573,8 +573,8 @@
 		IPC_SET_ARG4(call->data, a4);
 		IPC_SET_ARG5(call->data, a5);
-		
+
 		send_call(irq, call);
 	}
-	
+
 	irq_spinlock_unlock(&irq->lock, true);
 }
Index: kernel/generic/src/ipc/kbox.c
===================================================================
--- kernel/generic/src/ipc/kbox.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/kbox.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,12 +63,12 @@
 	TASK->kb.finished = true;
 	mutex_unlock(&TASK->kb.cleanup_lock);
-	
+
 	bool have_kb_thread = (TASK->kb.thread != NULL);
-	
+
 	/*
 	 * From now on nobody will try to connect phones or attach
 	 * kbox threads
 	 */
-	
+
 	/*
 	 * Disconnect all phones connected to our kbox. Passing true for
@@ -78,5 +78,5 @@
 	 */
 	ipc_answerbox_slam_phones(&TASK->kb.box, have_kb_thread);
-	
+
 	/*
 	 * If the task was being debugged, clean up debugging session.
@@ -87,5 +87,5 @@
 	udebug_task_cleanup(TASK);
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	if (have_kb_thread) {
 		LOG("Join kb.thread.");
@@ -95,5 +95,5 @@
 		TASK->kb.thread = NULL;
 	}
-	
+
 	/* Answer all messages in 'calls' and 'dispatched_calls' queues. */
 	ipc_cleanup_call_list(&TASK->kb.box, &TASK->kb.box.calls);
@@ -120,11 +120,11 @@
 		LOG("Was not debugger.");
 	}
-	
+
 	LOG("Continue with hangup message.");
 	IPC_SET_RETVAL(call->data, 0);
 	ipc_answer(&TASK->kb.box, call);
-	
+
 	mutex_lock(&TASK->kb.cleanup_lock);
-	
+
 	irq_spinlock_lock(&TASK->lock, true);
 	irq_spinlock_lock(&TASK->kb.box.lock, false);
@@ -134,5 +134,5 @@
 		 * gets freed and signal to the caller.
 		 */
-		
+
 		/* Only detach kbox thread unless already terminating. */
 		if (TASK->kb.finished == false) {
@@ -141,13 +141,13 @@
 			TASK->kb.thread = NULL;
 		}
-		
+
 		LOG("Phone list is empty.");
 		*last = true;
 	} else
 		*last = false;
-	
+
 	irq_spinlock_unlock(&TASK->kb.box.lock, false);
 	irq_spinlock_unlock(&TASK->lock, true);
-	
+
 	mutex_unlock(&TASK->kb.cleanup_lock);
 }
@@ -166,19 +166,19 @@
 	LOG("Starting.");
 	bool done = false;
-	
+
 	while (!done) {
 		call_t *call = ipc_wait_for_call(&TASK->kb.box, SYNCH_NO_TIMEOUT,
 		    SYNCH_FLAGS_NONE);
-		
+
 		if (call == NULL)
 			continue;  /* Try again. */
-		
+
 		switch (IPC_GET_IMETHOD(call->data)) {
-		
+
 		case IPC_M_DEBUG:
 			/* Handle debug call. */
 			udebug_call_receive(call);
 			break;
-		
+
 		case IPC_M_PHONE_HUNGUP:
 			/*
@@ -189,5 +189,5 @@
 			kbox_proc_phone_hungup(call, &done);
 			break;
-		
+
 		default:
 			/* Ignore */
@@ -195,5 +195,5 @@
 		}
 	}
-	
+
 	LOG("Exiting.");
 }
@@ -213,5 +213,5 @@
 {
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 	task_t *task = task_find_by_id(taskid);
 	if (task == NULL) {
@@ -219,11 +219,11 @@
 		return ENOENT;
 	}
-	
+
 	atomic_inc(&task->refcount);
-	
+
 	irq_spinlock_unlock(&tasks_lock, true);
-	
+
 	mutex_lock(&task->kb.cleanup_lock);
-	
+
 	if (atomic_predec(&task->refcount) == 0) {
 		mutex_unlock(&task->kb.cleanup_lock);
@@ -231,24 +231,24 @@
 		return ENOENT;
 	}
-	
+
 	if (task->kb.finished) {
 		mutex_unlock(&task->kb.cleanup_lock);
 		return EINVAL;
 	}
-	
+
 	/* Create a kbox thread if necessary. */
 	if (task->kb.thread == NULL) {
 		thread_t *kb_thread = thread_create(kbox_thread_proc, NULL, task,
 		    THREAD_FLAG_NONE, "kbox");
-		
+
 		if (!kb_thread) {
 			mutex_unlock(&task->kb.cleanup_lock);
 			return ENOMEM;
 		}
-		
+
 		task->kb.thread = kb_thread;
 		thread_ready(kb_thread);
 	}
-	
+
 	/* Allocate a new phone. */
 	cap_handle_t phone_handle;
@@ -258,5 +258,5 @@
 		return rc;
 	}
-	
+
 	kobject_t *phone_obj = kobject_get(TASK, phone_handle,
 	    KOBJECT_TYPE_PHONE);
@@ -264,5 +264,5 @@
 	/* Hand over phone_obj's reference to ipc_phone_connect() */
 	(void) ipc_phone_connect(phone_obj->phone, &task->kb.box);
-	
+
 	mutex_unlock(&task->kb.cleanup_lock);
 	*out_phone = phone_handle;
Index: kernel/generic/src/ipc/ops/conctmeto.c
===================================================================
--- kernel/generic/src/ipc/ops/conctmeto.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/ops/conctmeto.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -108,5 +108,5 @@
 		IPC_SET_ARG5(answer->data, phone_handle);
 	}
-	
+
 	return EOK;
 }
Index: kernel/generic/src/ipc/ops/dataread.c
===================================================================
--- kernel/generic/src/ipc/ops/dataread.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/ops/dataread.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -74,5 +74,5 @@
 			 */
 			IPC_SET_ARG1(answer->data, dst);
-				
+
 			answer->buffer = malloc(size, 0);
 			errno_t rc = copy_from_uspace(answer->buffer,
Index: kernel/generic/src/ipc/ops/datawrite.c
===================================================================
--- kernel/generic/src/ipc/ops/datawrite.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/ops/datawrite.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 		return rc;
 	}
-		
+
 	return EOK;
 }
@@ -78,5 +78,5 @@
 		size_t size = (size_t)IPC_GET_ARG2(answer->data);
 		size_t max_size = (size_t)IPC_GET_ARG2(*olddata);
-			
+
 		if (size <= max_size) {
 			errno_t rc = copy_to_uspace((void *) dst,
Index: kernel/generic/src/ipc/ops/pagein.c
===================================================================
--- kernel/generic/src/ipc/ops/pagein.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/ops/pagein.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -92,5 +92,5 @@
 		page_table_unlock(AS, true);
 	}
-	
+
 	return EOK;
 }
Index: kernel/generic/src/ipc/ops/sharein.c
===================================================================
--- kernel/generic/src/ipc/ops/sharein.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/ops/sharein.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,5 +47,5 @@
 		as_t *as = answer->sender->as;
 		irq_spinlock_unlock(&answer->sender->lock, true);
-			
+
 		uintptr_t dst_base = (uintptr_t) -1;
 		errno_t rc = as_area_share(AS, IPC_GET_ARG1(answer->data),
@@ -55,5 +55,5 @@
 		IPC_SET_RETVAL(answer->data, rc);
 	}
-	
+
 	return EOK;
 }
Index: kernel/generic/src/ipc/ops/shareout.c
===================================================================
--- kernel/generic/src/ipc/ops/shareout.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/ops/shareout.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,10 +68,10 @@
 		    IPC_GET_ARG2(*olddata), AS, IPC_GET_ARG3(*olddata),
 		    &dst_base, IPC_GET_ARG1(answer->data));
-			
+
 		if (rc == EOK) {
 			rc = copy_to_uspace((void *) IPC_GET_ARG2(answer->data),
 			    &dst_base, sizeof(dst_base));
 		}
-			
+
 		IPC_SET_RETVAL(answer->data, rc);
 	}
Index: kernel/generic/src/ipc/sysipc.c
===================================================================
--- kernel/generic/src/ipc/sysipc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/ipc/sysipc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,5 +69,5 @@
 	if (imethod <= IPC_M_LAST_SYSTEM)
 		return true;
-	
+
 	return false;
 }
@@ -207,5 +207,5 @@
 		mutex_unlock(&phone->lock);
 	}
-	
+
 	if (!olddata)
 		return rc;
@@ -242,5 +242,5 @@
 	    (call->flags & IPC_CALL_FORWARDED))
 		IPC_SET_RETVAL(call->data, EFORWARD);
-	
+
 	SYSIPC_OP(answer_process, call);
 }
@@ -276,9 +276,9 @@
 	if (!kobj->phone)
 		return ENOENT;
-	
+
 	call_t *call = ipc_call_alloc(0);
 	call->priv = priv;
 	memcpy(call->data.args, data->args, sizeof(data->args));
-	
+
 	errno_t rc = request_preprocess(call, kobj->phone);
 	if (!rc) {
@@ -322,9 +322,9 @@
 	} else
 		IPC_SET_RETVAL(call->data, rc);
-	
+
 	memcpy(data->args, call->data.args, sizeof(data->args));
 	kobject_put(call->kobject);
 	kobject_put(kobj);
-	
+
 	return EOK;
 }
@@ -342,5 +342,5 @@
 	if (atomic_get(&phone->active_calls) >= IPC_MAX_ASYNC_CALLS)
 		return -1;
-	
+
 	return 0;
 }
@@ -368,10 +368,10 @@
 	if (!kobj)
 		return ENOENT;
-	
+
 	if (check_call_limit(kobj->phone)) {
 		kobject_put(kobj);
 		return ELIMIT;
 	}
-	
+
 	call_t *call = ipc_call_alloc(0);
 	IPC_SET_IMETHOD(call->data, imethod);
@@ -379,5 +379,5 @@
 	IPC_SET_ARG2(call->data, arg2);
 	IPC_SET_ARG3(call->data, arg3);
-	
+
 	/*
 	 * To achieve deterministic behavior, zero out arguments that are beyond
@@ -388,12 +388,12 @@
 	/* Set the user-defined label */
 	call->data.label = label;
-	
+
 	errno_t res = request_preprocess(call, kobj->phone);
-	
+
 	if (!res)
 		ipc_call(kobj->phone, call);
 	else
 		ipc_backsend_err(kobj->phone, call, res);
-	
+
 	kobject_put(kobj);
 	return EOK;
@@ -432,12 +432,12 @@
 	/* Set the user-defined label */
 	call->data.label = label;
-	
+
 	errno_t res = request_preprocess(call, kobj->phone);
-	
+
 	if (!res)
 		ipc_call(kobj->phone, call);
 	else
 		ipc_backsend_err(kobj->phone, call, res);
-	
+
 	kobject_put(kobj);
 	return EOK;
@@ -473,5 +473,5 @@
 	if (!ckobj)
 		return ENOENT;
-	
+
 	call_t *call = ckobj->call;
 
@@ -480,5 +480,5 @@
 	if (need_old)
 		old = call->data;
-	
+
 	bool after_forward = false;
 	errno_t rc;
@@ -489,12 +489,12 @@
 		goto error;
 	}
-	
+
 	if (!method_is_forwardable(IPC_GET_IMETHOD(call->data))) {
 		rc = EPERM;
 		goto error;
 	}
-	
+
 	call->flags |= IPC_CALL_FORWARDED;
-	
+
 	/*
 	 * User space is not allowed to change interface and method of system
@@ -507,12 +507,12 @@
 			if (IPC_GET_IMETHOD(call->data) == IPC_M_CONNECT_TO_ME)
 				phone_dealloc(IPC_GET_ARG5(call->data));
-			
+
 			IPC_SET_ARG1(call->data, imethod);
 			IPC_SET_ARG2(call->data, arg1);
 			IPC_SET_ARG3(call->data, arg2);
-			
+
 			if (slow)
 				IPC_SET_ARG4(call->data, arg3);
-			
+
 			/*
 			 * For system methods we deliberately don't
@@ -530,5 +530,5 @@
 		}
 	}
-	
+
 	rc = ipc_forward(call, pkobj->phone, &TASK->answerbox, mode);
 	if (rc != EOK) {
@@ -609,5 +609,5 @@
 	if (rc != EOK)
 		return (sys_errno_t) rc;
-	
+
 	return sys_ipc_forward_common(chandle, phandle,
 	    IPC_GET_IMETHOD(newdata), IPC_GET_ARG1(newdata),
@@ -637,10 +637,10 @@
 	if (!kobj)
 		return ENOENT;
-	
+
 	call_t *call = kobj->call;
 
 	ipc_data_t saved_data;
 	bool saved;
-	
+
 	if (answer_need_old(call)) {
 		memcpy(&saved_data, &call->data, sizeof(call->data));
@@ -648,5 +648,5 @@
 	} else
 		saved = false;
-	
+
 	IPC_SET_RETVAL(call->data, retval);
 	IPC_SET_ARG1(call->data, arg1);
@@ -654,5 +654,5 @@
 	IPC_SET_ARG3(call->data, arg3);
 	IPC_SET_ARG4(call->data, arg4);
-	
+
 	/*
 	 * To achieve deterministic behavior, zero out arguments that are beyond
@@ -661,5 +661,5 @@
 	IPC_SET_ARG5(call->data, 0);
 	errno_t rc = answer_preprocess(call, saved ? &saved_data : NULL);
-	
+
 	ipc_answer(&TASK->answerbox, call);
 
@@ -683,10 +683,10 @@
 	if (!kobj)
 		return ENOENT;
-	
+
 	call_t *call = kobj->call;
 
 	ipc_data_t saved_data;
 	bool saved;
-	
+
 	if (answer_need_old(call)) {
 		memcpy(&saved_data, &call->data, sizeof(call->data));
@@ -694,5 +694,5 @@
 	} else
 		saved = false;
-	
+
 	errno_t rc = copy_from_uspace(&call->data.args, &data->args,
 	    sizeof(call->data.args));
@@ -704,7 +704,7 @@
 		return rc;
 	}
-	
+
 	rc = answer_preprocess(call, saved ? &saved_data : NULL);
-	
+
 	ipc_answer(&TASK->answerbox, call);
 
@@ -727,5 +727,5 @@
 	if (!kobj)
 		return ENOENT;
-	
+
 	errno_t rc = ipc_phone_hangup(kobj->phone);
 	kobject_put(kobj);
@@ -746,14 +746,14 @@
 {
 	call_t *call;
-	
+
 restart:
-	
+
 #ifdef CONFIG_UDEBUG
 	udebug_stoppable_begin();
 #endif
-	
+
 	call = ipc_wait_for_call(&TASK->answerbox, usec,
 	    flags | SYNCH_FLAGS_INTERRUPTIBLE);
-	
+
 #ifdef CONFIG_UDEBUG
 	udebug_stoppable_end();
@@ -766,21 +766,21 @@
 		return EOK;
 	}
-	
+
 	call->data.flags = call->flags;
 	if (call->flags & IPC_CALL_NOTIF) {
 		/* Set in_phone_hash to the interrupt counter */
 		call->data.phone = (void *) call->priv;
-		
+
 		call->data.cap_handle = CAP_NIL;
 
 		STRUCT_TO_USPACE(calldata, &call->data);
 		kobject_put(call->kobject);
-		
+
 		return EOK;
 	}
-	
+
 	if (call->flags & IPC_CALL_ANSWERED) {
 		process_answer(call);
-		
+
 		if (call->flags & IPC_CALL_DISCARD_ANSWER) {
 			kobject_put(call->kobject);
@@ -789,14 +789,14 @@
 
 		call->data.cap_handle = CAP_NIL;
-		
+
 		STRUCT_TO_USPACE(calldata, &call->data);
 		kobject_put(call->kobject);
-		
+
 		return EOK;
 	}
-	
+
 	if (process_request(&TASK->answerbox, call))
 		goto restart;
-	
+
 	cap_handle_t handle;
 	errno_t rc = cap_alloc(TASK, &handle);
@@ -804,5 +804,5 @@
 		goto error;
 	}
-	
+
 	call->data.cap_handle = handle;
 
@@ -871,5 +871,5 @@
 	if (!(perm_get(TASK) & PERM_IRQ_REG))
 		return EPERM;
-	
+
 	return ipc_irq_subscribe(&TASK->answerbox, inr, imethod, ucode, uspace_handle);
 }
@@ -887,7 +887,7 @@
 	if (!(perm_get(TASK) & PERM_IRQ_REG))
 		return EPERM;
-	
+
 	ipc_irq_unsubscribe(&TASK->answerbox, cap);
-	
+
 	return 0;
 }
@@ -903,10 +903,10 @@
 	task_id_t taskid;
 	cap_handle_t phone;
-	
+
 	errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(task_id_t));
 	if (rc == EOK) {
 		rc = ipc_connect_kbox((task_id_t) taskid, &phone);
 	}
-	
+
 	if (rc == EOK) {
 		rc = copy_to_uspace(uspace_phone, &phone, sizeof(cap_handle_t));
@@ -916,5 +916,5 @@
 		}
 	}
-	
+
 	return (sys_errno_t) rc;
 #else
Index: kernel/generic/src/lib/elf.c
===================================================================
--- kernel/generic/src/lib/elf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/lib/elf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -80,5 +80,5 @@
 	    (header->e_ident[EI_MAG3] != ELFMAG3))
 		return EE_INVALID;
-	
+
 	/* Identify ELF compatibility */
 	if ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||
@@ -88,19 +88,19 @@
 	    (header->e_ident[EI_CLASS] != ELF_CLASS))
 		return EE_INCOMPATIBLE;
-	
+
 	if (header->e_phentsize != sizeof(elf_segment_header_t))
 		return EE_INCOMPATIBLE;
-	
+
 	if (header->e_shentsize != sizeof(elf_section_header_t))
 		return EE_INCOMPATIBLE;
-	
+
 	/* Check if the object type is supported. */
 	if (header->e_type != ET_EXEC)
 		return EE_UNSUPPORTED;
-	
+
 	/* Check if the ELF image starts on a page boundary */
 	if (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)
 		return EE_UNSUPPORTED;
-	
+
 	/* Walk through all segment headers and process them. */
 	elf_half i;
@@ -109,10 +109,10 @@
 		    &((elf_segment_header_t *)(((uint8_t *) header) +
 		    header->e_phoff))[i];
-		
+
 		int rc = segment_header(seghdr, header, as, flags);
 		if (rc != EE_OK)
 			return rc;
 	}
-	
+
 	/* Inspect all section headers and process them. */
 	for (i = 0; i < header->e_shnum; i++) {
@@ -120,10 +120,10 @@
 		    &((elf_section_header_t *)(((uint8_t *) header) +
 		    header->e_shoff))[i];
-		
+
 		int rc = section_header(sechdr, header, as);
 		if (rc != EE_OK)
 			return rc;
 	}
-	
+
 	return EE_OK;
 }
@@ -139,5 +139,5 @@
 {
 	assert(rc < sizeof(error_codes) / sizeof(char *));
-	
+
 	return error_codes[rc];
 }
@@ -199,5 +199,5 @@
 	backend_data.elf = elf;
 	backend_data.segment = entry;
-	
+
 	if (entry->p_align > 1) {
 		if ((entry->p_offset % entry->p_align) !=
@@ -205,18 +205,18 @@
 			return EE_INVALID;
 	}
-	
+
 	unsigned int flags = 0;
-	
+
 	if (entry->p_flags & PF_X)
 		flags |= AS_AREA_EXEC;
-	
+
 	if (entry->p_flags & PF_W)
 		flags |= AS_AREA_WRITE;
-	
+
 	if (entry->p_flags & PF_R)
 		flags |= AS_AREA_READ;
-	
+
 	flags |= AS_AREA_CACHEABLE;
-	
+
 	/*
 	 * Align vaddr down, inserting a little "gap" at the beginning.
@@ -226,15 +226,15 @@
 	uintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);
 	size_t mem_sz = entry->p_memsz + (entry->p_vaddr - base);
-	
+
 	as_area_t *area = as_area_create(as, flags, mem_sz,
 	    AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0);
 	if (!area)
 		return EE_MEMORY;
-	
+
 	/*
 	 * The segment will be mapped on demand by elf_page_fault().
 	 *
 	 */
-	
+
 	return EE_OK;
 }
@@ -266,5 +266,5 @@
 		break;
 	}
-	
+
 	return EE_OK;
 }
Index: kernel/generic/src/lib/gsort.c
===================================================================
--- kernel/generic/src/lib/gsort.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/lib/gsort.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 {
 	size_t i = 0;
-	
+
 	while (i < cnt) {
 		if ((i != 0) &&
@@ -109,5 +109,5 @@
 	uint8_t ibuf_slot[IBUF_SIZE];
 	void *slot;
-	
+
 	if (elem_size > IBUF_SIZE) {
 		slot = (void *) malloc(elem_size, 0);
@@ -116,10 +116,10 @@
 	} else
 		slot = (void *) ibuf_slot;
-	
+
 	_gsort(data, cnt, elem_size, cmp, arg, slot);
-	
+
 	if (elem_size > IBUF_SIZE)
 		free(slot);
-	
+
 	return true;
 }
Index: kernel/generic/src/lib/halt.c
===================================================================
--- kernel/generic/src/lib/halt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/lib/halt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 #if (defined(CONFIG_DEBUG)) && (defined(CONFIG_KCONSOLE))
 	bool rundebugger = false;
-	
+
 	if (!atomic_get(&haltstate)) {
 		atomic_set(&haltstate, 1);
@@ -63,17 +63,17 @@
 	atomic_set(&haltstate, 1);
 #endif
-	
+
 	interrupts_disable();
-	
+
 #if (defined(CONFIG_DEBUG)) && (defined(CONFIG_KCONSOLE))
 	if ((rundebugger) && (kconsole_check_poll()))
 		kconsole("panic", "\nLast resort kernel console ready.\n", false);
 #endif
-	
+
 	if (CPU)
 		log(LF_OTHER, LVL_NOTE, "cpu%u: halted", CPU->id);
 	else
 		log(LF_OTHER, LVL_NOTE, "cpu: halted");
-	
+
 	cpu_halt();
 }
Index: kernel/generic/src/lib/mem.c
===================================================================
--- kernel/generic/src/lib/mem.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/lib/mem.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,5 +72,5 @@
 	size_t i;
 	uint16_t *ptr = (uint16_t *) dst;
-	
+
 	for (i = 0; i < cnt; i++)
 		ptr[i] = val;
@@ -94,12 +94,12 @@
 	if (src == dst)
 		return dst;
-	
+
 	/* Non-overlapping? */
 	if ((dst >= src + cnt) || (src >= dst + cnt))
 		return memcpy(dst, src, cnt);
-	
+
 	uint8_t *dp;
 	const uint8_t *sp;
-	
+
 	/* Which direction? */
 	if (src > dst) {
@@ -107,5 +107,5 @@
 		dp = dst;
 		sp = src;
-		
+
 		while (cnt-- != 0)
 			*dp++ = *sp++;
@@ -114,9 +114,9 @@
 		dp = dst + (cnt - 1);
 		sp = src + (cnt - 1);
-		
+
 		while (cnt-- != 0)
 			*dp-- = *sp--;
 	}
-	
+
 	return dst;
 }
Index: kernel/generic/src/lib/memfnc.c
===================================================================
--- kernel/generic/src/lib/memfnc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/lib/memfnc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,8 +57,8 @@
 {
 	uint8_t *dp = (uint8_t *) dst;
-	
+
 	while (cnt-- != 0)
 		*dp++ = val;
-	
+
 	return dst;
 }
@@ -80,8 +80,8 @@
 	uint8_t *dp = (uint8_t *) dst;
 	const uint8_t *sp = (uint8_t *) src;
-	
+
 	while (cnt-- != 0)
 		*dp++ = *sp++;
-	
+
 	return dst;
 }
Index: kernel/generic/src/lib/ra.c
===================================================================
--- kernel/generic/src/lib/ra.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/lib/ra.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -304,6 +304,6 @@
 			succ->flags |= RA_SEGMENT_FREE;
 		}
-		
-	
+
+
 		/* Put unneeded parts back. */
 		if (pred) {
Index: kernel/generic/src/lib/rd.c
===================================================================
--- kernel/generic/src/lib/rd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/lib/rd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,5 +58,5 @@
 	uintptr_t base = (uintptr_t) data;
 	assert((base % FRAME_SIZE) == 0);
-	
+
 	rd_parea.pbase = base;
 	rd_parea.frames = SIZE2FRAMES(size);
@@ -64,9 +64,9 @@
 	rd_parea.mapped = false;
 	ddi_parea_register(&rd_parea);
-	
+
 	sysinfo_set_item_val("rd", NULL, true);
 	sysinfo_set_item_val("rd.size", NULL, size);
 	sysinfo_set_item_val("rd.address.physical", NULL, (sysarg_t) base);
-	
+
 	log(LF_OTHER, LVL_NOTE, "RAM disk at %p (size %zu bytes)", (void *) base,
 	    size);
Index: kernel/generic/src/lib/str.c
===================================================================
--- kernel/generic/src/lib/str.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/lib/str.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -151,13 +151,13 @@
 	if (*offset + 1 > size)
 		return 0;
-	
+
 	/* First byte read from string */
 	uint8_t b0 = (uint8_t) str[(*offset)++];
-	
+
 	/* Determine code length */
-	
+
 	unsigned int b0_bits;  /* Data bits in first byte */
 	unsigned int cbytes;   /* Number of continuation bytes */
-	
+
 	if ((b0 & 0x80) == 0) {
 		/* 0xxxxxxx (Plain ASCII) */
@@ -180,23 +180,23 @@
 		return U_SPECIAL;
 	}
-	
+
 	if (*offset + cbytes > size)
 		return U_SPECIAL;
-	
+
 	wchar_t ch = b0 & LO_MASK_8(b0_bits);
-	
+
 	/* Decode continuation bytes */
 	while (cbytes > 0) {
 		uint8_t b = (uint8_t) str[(*offset)++];
-		
+
 		/* Must be 10xxxxxx */
 		if ((b & 0xc0) != 0x80)
 			return U_SPECIAL;
-		
+
 		/* Shift data bits to ch */
 		ch = (ch << CONT_BITS) | (wchar_t) (b & LO_MASK_8(CONT_BITS));
 		cbytes--;
 	}
-	
+
 	return ch;
 }
@@ -221,17 +221,17 @@
 	if (*offset >= size)
 		return EOVERFLOW;
-	
+
 	if (!chr_check(ch))
 		return EINVAL;
-	
+
 	/* Unsigned version of ch (bit operations should only be done
 	   on unsigned types). */
 	uint32_t cc = (uint32_t) ch;
-	
+
 	/* Determine how many continuation bytes are needed */
-	
+
 	unsigned int b0_bits;  /* Data bits in first byte */
 	unsigned int cbytes;   /* Number of continuation bytes */
-	
+
 	if ((cc & ~LO_MASK_32(7)) == 0) {
 		b0_bits = 7;
@@ -250,9 +250,9 @@
 		return EINVAL;
 	}
-	
+
 	/* Check for available space in buffer */
 	if (*offset + cbytes >= size)
 		return EOVERFLOW;
-	
+
 	/* Encode continuation bytes */
 	unsigned int i;
@@ -261,11 +261,11 @@
 		cc = cc >> CONT_BITS;
 	}
-	
+
 	/* Encode first byte */
 	str[*offset] = (cc & LO_MASK_32(b0_bits)) | HI_MASK_8(8 - b0_bits - 1);
-	
+
 	/* Advance offset */
 	*offset += cbytes + 1;
-	
+
 	return EOK;
 }
@@ -284,8 +284,8 @@
 {
 	size_t size = 0;
-	
+
 	while (*str++ != 0)
 		size++;
-	
+
 	return size;
 }
@@ -323,12 +323,12 @@
 	size_t len = 0;
 	size_t offset = 0;
-	
+
 	while (len < max_len) {
 		if (str_decode(str, &offset, STR_NO_LIMIT) == 0)
 			break;
-		
+
 		len++;
 	}
-	
+
 	return offset;
 }
@@ -363,8 +363,8 @@
 	size_t len = 0;
 	size_t offset = 0;
-	
+
 	while (str_decode(str, &offset, STR_NO_LIMIT) != 0)
 		len++;
-	
+
 	return len;
 }
@@ -380,8 +380,8 @@
 {
 	size_t len = 0;
-	
+
 	while (*wstr++ != 0)
 		len++;
-	
+
 	return len;
 }
@@ -399,8 +399,8 @@
 	size_t len = 0;
 	size_t offset = 0;
-	
+
 	while (str_decode(str, &offset, size) != 0)
 		len++;
-	
+
 	return len;
 }
@@ -419,10 +419,10 @@
 	size_t limit = ALIGN_DOWN(size, sizeof(wchar_t));
 	size_t offset = 0;
-	
+
 	while ((offset < limit) && (*str++ != 0)) {
 		len++;
 		offset += sizeof(wchar_t);
 	}
-	
+
 	return len;
 }
@@ -437,5 +437,5 @@
 	if (WCHAR_SIGNED_CHECK(ch >= 0) && (ch <= 127))
 		return true;
-	
+
 	return false;
 }
@@ -450,5 +450,5 @@
 	if (WCHAR_SIGNED_CHECK(ch >= 0) && (ch <= 1114111))
 		return true;
-	
+
 	return false;
 }
@@ -476,5 +476,5 @@
 	wchar_t c1 = 0;
 	wchar_t c2 = 0;
-	
+
 	size_t off1 = 0;
 	size_t off2 = 0;
@@ -486,5 +486,5 @@
 		if (c1 < c2)
 			return -1;
-		
+
 		if (c1 > c2)
 			return 1;
@@ -523,8 +523,8 @@
 	wchar_t c1 = 0;
 	wchar_t c2 = 0;
-	
+
 	size_t off1 = 0;
 	size_t off2 = 0;
-	
+
 	size_t len = 0;
 
@@ -569,8 +569,8 @@
 	assert(size > 0);
 	assert(src != NULL);
-	
+
 	size_t src_off = 0;
 	size_t dest_off = 0;
-	
+
 	wchar_t ch;
 	while ((ch = str_decode(src, &src_off, STR_NO_LIMIT)) != 0) {
@@ -578,5 +578,5 @@
 			break;
 	}
-	
+
 	dest[dest_off] = '\0';
 }
@@ -602,8 +602,8 @@
 	/* There must be space for a null terminator in the buffer. */
 	assert(size > 0);
-	
+
 	size_t src_off = 0;
 	size_t dest_off = 0;
-	
+
 	wchar_t ch;
 	while ((ch = str_decode(src, &src_off, n)) != 0) {
@@ -611,5 +611,5 @@
 			break;
 	}
-	
+
 	dest[dest_off] = '\0';
 }
@@ -636,5 +636,5 @@
 	char *dest = malloc(size, 0);
 	assert(dest);
-	
+
 	str_cpy(dest, size, src);
 	return dest;
@@ -666,8 +666,8 @@
 	if (size > n)
 		size = n;
-	
+
 	char *dest = malloc(size + 1, 0);
 	assert(dest);
-	
+
 	str_ncpy(dest, size + 1, src, size);
 	return dest;
@@ -695,5 +695,5 @@
 	src_idx = 0;
 	dest_off = 0;
-	
+
 	while ((ch = src[src_idx++]) != 0) {
 		if (chr_encode(ch, dest, &dest_off, size - 1) != EOK)
@@ -717,5 +717,5 @@
 	size_t off = 0;
 	size_t last = 0;
-	
+
 	while ((acc = str_decode(str, &off, STR_NO_LIMIT)) != 0) {
 		if (acc == ch)
@@ -723,5 +723,5 @@
 		last = off;
 	}
-	
+
 	return NULL;
 }
@@ -744,14 +744,14 @@
 {
 	size_t len = wstr_length(str);
-	
+
 	if ((pos > len) || (pos + 1 > max_pos))
 		return false;
-	
+
 	size_t i;
 	for (i = len; i + 1 > pos; i--)
 		str[i + 1] = str[i];
-	
+
 	str[pos] = ch;
-	
+
 	return true;
 }
@@ -772,12 +772,12 @@
 {
 	size_t len = wstr_length(str);
-	
+
 	if (pos >= len)
 		return false;
-	
+
 	size_t i;
 	for (i = pos + 1; i <= len; i++)
 		str[i - 1] = str[i];
-	
+
 	return true;
 }
@@ -800,12 +800,12 @@
 	assert(neg != NULL);
 	assert(result != NULL);
-	
+
 	*neg = false;
 	const char *str = nptr;
-	
+
 	/* Ignore leading whitespace */
 	while (isspace(*str))
 		str++;
-	
+
 	if (*str == '-') {
 		*neg = true;
@@ -813,13 +813,13 @@
 	} else if (*str == '+')
 		str++;
-	
+
 	if (base == 0) {
 		/* Decode base if not specified */
 		base = 10;
-		
+
 		if (*str == '0') {
 			base = 8;
 			str++;
-			
+
 			switch (*str) {
 			case 'b':
@@ -856,11 +856,11 @@
 		}
 	}
-	
+
 	*result = 0;
 	const char *startstr = str;
-	
+
 	while (*str != 0) {
 		unsigned int digit;
-		
+
 		if ((*str >= 'a') && (*str <= 'z'))
 			digit = *str - 'a' + 10;
@@ -871,11 +871,11 @@
 		else
 			break;
-		
+
 		if (digit >= base)
 			break;
-		
+
 		uint64_t prev = *result;
 		*result = (*result) * base + digit;
-		
+
 		if (*result < prev) {
 			/* Overflow */
@@ -883,8 +883,8 @@
 			return EOVERFLOW;
 		}
-		
+
 		str++;
 	}
-	
+
 	if (str == startstr) {
 		/*
@@ -894,10 +894,10 @@
 		str = nptr;
 	}
-	
+
 	*endptr = (char *) str;
-	
+
 	if (str == nptr)
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -919,24 +919,24 @@
 {
 	assert(result != NULL);
-	
+
 	bool neg;
 	char *lendptr;
 	errno_t ret = str_uint(nptr, &lendptr, base, &neg, result);
-	
+
 	if (endptr != NULL)
 		*endptr = (char *) lendptr;
-	
+
 	if (ret != EOK)
 		return ret;
-	
+
 	/* Do not allow negative values */
 	if (neg)
 		return EINVAL;
-	
+
 	/* Check whether we are at the end of
 	   the string in strict mode */
 	if ((strict) && (*lendptr != 0))
 		return EINVAL;
-	
+
 	return EOK;
 }
Index: kernel/generic/src/log/log.c
===================================================================
--- kernel/generic/src/log/log.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/log/log.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -121,10 +121,10 @@
 		len = LOG_LENGTH - log_current_len;
 	}
-	
+
 	if (len == 0)
 		return;
-	
+
 	size_t log_free = LOG_LENGTH - log_used - log_current_len;
-	
+
 	/* Discard older entries to make space, if necessary */
 	while (len > log_free) {
@@ -136,5 +136,5 @@
 		next_for_uspace -= entry_len;
 	}
-	
+
 	size_t pos = (log_current_start + log_current_len) % LOG_LENGTH;
 	log_copy_to(data, pos, len);
@@ -151,8 +151,8 @@
 	spinlock_lock(&log_lock);
 	spinlock_lock(&kio_lock);
-	
+
 	log_current_start = (log_start + log_used) % LOG_LENGTH;
 	log_current_len = 0;
-	
+
 	/* Write header of the log entry, the length will be written in log_end() */
 	log_append((uint8_t *) &log_current_len, sizeof(size_t));
@@ -162,5 +162,5 @@
 	log_append((uint8_t *) &fac32, sizeof(uint32_t));
 	log_append((uint8_t *) &lvl32, sizeof(uint32_t));
-	
+
 	log_counter++;
 }
@@ -174,9 +174,9 @@
 	log_copy_to((uint8_t *) &log_current_len, log_current_start, sizeof(size_t));
 	log_used += log_current_len;
-	
+
 	kio_push_char('\n');
 	spinlock_unlock(&kio_lock);
 	spinlock_unlock(&log_lock);
-	
+
 	/* This has to be called after we released the locks above */
 	kio_flush();
@@ -189,5 +189,5 @@
 	if (!atomic_get(&log_inited))
 		return;
-	
+
 	spinlock_lock(&log_lock);
 	if (next_for_uspace < log_used)
@@ -200,12 +200,12 @@
 	size_t offset = 0;
 	size_t chars = 0;
-	
+
 	while (offset < size) {
 		kio_push_char(str_decode(str, &offset, size));
 		chars++;
 	}
-	
+
 	log_append((const uint8_t *)str, size);
-	
+
 	return chars;
 }
@@ -216,8 +216,8 @@
 	size_t offset = 0;
 	size_t chars = 0;
-	
+
 	for (offset = 0; offset < size; offset += sizeof(wchar_t), chars++) {
 		kio_push_char(wstr[chars]);
-		
+
 		size_t buffer_offset = 0;
 		errno_t rc = chr_encode(wstr[chars], buffer, &buffer_offset, 16);
@@ -225,8 +225,8 @@
 			return EOF;
 		}
-		
+
 		log_append((const uint8_t *)buffer, buffer_offset);
 	}
-	
+
 	return chars;
 }
@@ -239,5 +239,5 @@
 {
 	int ret;
-	
+
 	printf_spec_t ps = {
 		log_printf_str_write,
@@ -245,8 +245,8 @@
 		NULL
 	};
-	
-	
+
+
 	ret = printf_core(fmt, &ps, args);
-	
+
 	return ret;
 }
@@ -260,9 +260,9 @@
 	int ret;
 	va_list args;
-	
+
 	va_start(args, fmt);
 	ret = log_vprintf(fmt, args);
 	va_end(args);
-	
+
 	return ret;
 }
@@ -278,13 +278,13 @@
 	int ret;
 	va_list args;
-	
+
 	log_begin(fac, level);
-	
+
 	va_start(args, fmt);
 	ret = log_vprintf(fmt, args);
 	va_end(args);
-	
+
 	log_end();
-	
+
 	return ret;
 }
@@ -298,8 +298,8 @@
 	char *data;
 	errno_t rc;
-	
+
 	if (size > PAGE_SIZE)
 		return (sys_errno_t) ELIMIT;
-	
+
 	switch (operation) {
 		case KLOG_WRITE:
@@ -307,5 +307,5 @@
 			if (!data)
 				return (sys_errno_t) ENOMEM;
-			
+
 			rc = copy_from_uspace(data, buf, size);
 			if (rc) {
@@ -314,10 +314,10 @@
 			}
 			data[size] = 0;
-			
+
 			if (level >= LVL_LIMIT)
 				level = LVL_NOTE;
-			
+
 			log(LF_USPACE, level, "%s", data);
-			
+
 			free(data);
 			return EOK;
@@ -326,16 +326,16 @@
 			if (!data)
 				return (sys_errno_t) ENOMEM;
-			
+
 			size_t entry_len = 0;
 			size_t copied = 0;
-			
+
 			rc = EOK;
-	
+
 			spinlock_lock(&log_lock);
-			
+
 			while (next_for_uspace < log_used) {
 				size_t pos = (log_start + next_for_uspace) % LOG_LENGTH;
 				log_copy_from((uint8_t *) &entry_len, pos, sizeof(size_t));
-				
+
 				if (entry_len > PAGE_SIZE) {
 					/*
@@ -350,5 +350,5 @@
 					continue;
 				}
-				
+
 				if (size < copied + entry_len) {
 					if (copied == 0)
@@ -356,24 +356,24 @@
 					break;
 				}
-				
+
 				log_copy_from((uint8_t *) (data + copied), pos, entry_len);
 				copied += entry_len;
 				next_for_uspace += entry_len;
 			}
-			
+
 			spinlock_unlock(&log_lock);
-			
+
 			if (rc != EOK) {
 				free(data);
 				return (sys_errno_t) rc;
 			}
-			
+
 			rc = copy_to_uspace(buf, data, size);
-			
+
 			free(data);
-			
+
 			if (rc != EOK)
 				return (sys_errno_t) rc;
-			
+
 			return copy_to_uspace(uspace_nread, &copied, sizeof(copied));
 			return EOK;
Index: kernel/generic/src/main/kinit.c
===================================================================
--- kernel/generic/src/main/kinit.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/main/kinit.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -102,5 +102,5 @@
 {
 	thread_t *thread;
-	
+
 	/*
 	 * Detach kinit as nobody will call thread_join_timeout() on it.
@@ -109,17 +109,17 @@
 
 	interrupts_disable();
-	
+
 	/* Start processing RCU callbacks. RCU is fully functional afterwards. */
 	rcu_kinit_init();
-	
+
 	/*
 	 * Start processing work queue items. Some may have been queued during boot.
 	 */
 	workq_global_worker_init();
-	
+
 #ifdef CONFIG_SMP
 	if (config.cpu_count > 1) {
 		waitq_initialize(&ap_completion_wq);
-		
+
 		/*
 		 * Create the kmp thread and wait for its completion.
@@ -135,13 +135,13 @@
 		} else
 			panic("Unable to create kmp thread.");
-		
+
 		thread_join(thread);
 		thread_detach(thread);
-		
+
 		/*
 		 * For each CPU, create its load balancing thread.
 		 */
 		unsigned int i;
-		
+
 		for (i = 0; i < config.cpu_count; i++) {
 			thread = thread_create(kcpulb, NULL, TASK,
@@ -156,10 +156,10 @@
 	}
 #endif /* CONFIG_SMP */
-	
+
 	/*
 	 * At this point SMP, if present, is configured.
 	 */
 	ARCH_OP(post_smp_init);
-	
+
 	/* Start thread computing system load */
 	thread = thread_create(kload, NULL, TASK, THREAD_FLAG_NONE,
@@ -169,5 +169,5 @@
 	else
 		log(LF_OTHER, LVL_ERROR, "Unable to create kload thread");
-	
+
 #ifdef CONFIG_KCONSOLE
 	if (stdin) {
@@ -184,5 +184,5 @@
 	}
 #endif /* CONFIG_KCONSOLE */
-	
+
 	/*
 	 * Store the default stack size in sysinfo so that uspace can create
@@ -190,7 +190,7 @@
 	 */
 	sysinfo_set_item_val("default.stack_size", NULL, STACK_SIZE_USER);
-	
+
 	interrupts_enable();
-	
+
 	/*
 	 * Create user tasks, load RAM disk images.
@@ -198,5 +198,5 @@
 	size_t i;
 	program_t programs[CONFIG_INIT_TASKS];
-	
+
 	// FIXME: do not propagate arguments through sysinfo
 	// but pass them directly to the tasks
@@ -228,21 +228,21 @@
 			continue;
 		}
-		
+
 		/*
 		 * Construct task name from the 'init:' prefix and the
 		 * name stored in the init structure (if any).
 		 */
-		
+
 		char namebuf[TASK_NAME_BUFLEN];
-		
+
 		const char *name = init.tasks[i].name;
 		if (name[0] == 0)
 			name = "<unknown>";
-		
+
 		static_assert(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN, "");
 		str_cpy(namebuf, TASK_NAME_BUFLEN, INIT_PREFIX);
 		str_cpy(namebuf + INIT_PREFIX_LEN,
 		    TASK_NAME_BUFLEN - INIT_PREFIX_LEN, name);
-		
+
 		/*
 		 * Create virtual memory mappings for init task images.
@@ -252,8 +252,8 @@
 		    PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE);
 		assert(page);
-		
+
 		errno_t rc = program_create_from_image((void *) page, namebuf,
 		    &programs[i]);
-		
+
 		if (rc == 0) {
 			if (programs[i].task != NULL) {
@@ -264,5 +264,5 @@
 				    PERM_PERM | PERM_MEM_MANAGER |
 				    PERM_IO_MANAGER | PERM_IRQ_REG);
-				
+
 				if (!ipc_phone_0) {
 					ipc_phone_0 = &programs[i].task->answerbox;
@@ -276,5 +276,5 @@
 				}
 			}
-			
+
 			/*
 			 * If programs[i].task == NULL then it is
@@ -293,5 +293,5 @@
 			    str_error_name(rc), programs[i].loader_status);
 	}
-	
+
 	/*
 	 * Run user tasks.
@@ -301,10 +301,10 @@
 			program_ready(&programs[i]);
 	}
-	
+
 #ifdef CONFIG_KCONSOLE
 	if (!stdin) {
 		thread_sleep(10);
 		printf("kinit: No stdin\nKernel alive: .");
-		
+
 		unsigned int i = 0;
 		while (true) {
Index: kernel/generic/src/main/main.c
===================================================================
--- kernel/generic/src/main/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/main/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -166,13 +166,13 @@
 	config.cpu_count = 1;
 	config.cpu_active = 1;
-	
+
 	config.base = hardcoded_load_address;
 	config.kernel_size = ALIGN_UP(hardcoded_ktext_size +
 	    hardcoded_kdata_size, PAGE_SIZE);
 	config.stack_size = STACK_SIZE;
-	
+
 	/* Initialy the stack is placed just after the kernel */
 	config.stack_base = config.base + config.kernel_size;
-	
+
 	/* Avoid placing stack on top of init */
 	size_t i;
@@ -190,5 +190,5 @@
 		}
 	}
-	
+
 	/* Avoid placing stack on top of boot allocations. */
 	if (ballocs.size) {
@@ -198,8 +198,8 @@
 			    ballocs.size, PAGE_SIZE);
 	}
-	
+
 	if (config.stack_base < stack_safe)
 		config.stack_base = ALIGN_UP(stack_safe, PAGE_SIZE);
-	
+
 	context_save(&ctx);
 	context_set(&ctx, FADDR(main_bsp_separated_stack),
@@ -218,12 +218,12 @@
 	/* Keep this the first thing. */
 	the_initialize(THE);
-	
+
 	version_print();
-	
+
 	LOG("\nconfig.base=%p config.kernel_size=%zu"
 	    "\nconfig.stack_base=%p config.stack_size=%zu",
 	    (void *) config.base, config.kernel_size,
 	    (void *) config.stack_base, config.stack_size);
-	
+
 #ifdef CONFIG_KCONSOLE
 	/*
@@ -234,5 +234,5 @@
 	kconsole_init();
 #endif
-	
+
 	/*
 	 * Exception handler initialization, before architecture
@@ -240,5 +240,5 @@
 	 */
 	exc_init();
-	
+
 	/*
 	 * Memory management subsystems initialization.
@@ -260,8 +260,8 @@
 	ARCH_OP(pre_smp_init);
 	smp_init();
-	
+
 	/* Slab must be initialized after we know the number of processors. */
 	slab_enable_cpucache();
-	
+
 	uint64_t size;
 	const char *size_suffix;
@@ -269,5 +269,5 @@
 	printf("Detected %u CPU(s), %" PRIu64 " %s free memory\n",
 	    config.cpu_count, size, size_suffix);
-	
+
 	cpu_init();
 	calibrate_delay_loop();
@@ -293,5 +293,5 @@
 	} else
 		printf("No init binaries found.\n");
-	
+
 	ipc_init();
 	event_init();
@@ -299,5 +299,5 @@
 	log_init();
 	stats_init();
-	
+
 	/*
 	 * Create kernel task.
@@ -306,5 +306,5 @@
 	if (!kernel)
 		panic("Cannot create kernel task.");
-	
+
 	/*
 	 * Create the first thread.
@@ -315,5 +315,5 @@
 		panic("Cannot create kinit thread.");
 	thread_ready(kinit_thread);
-	
+
 	/*
 	 * This call to scheduler() will return to kinit,
@@ -344,10 +344,10 @@
 	 */
 	config.cpu_active++;
-	
+
 	/*
 	 * The THE structure is well defined because ctx.sp is used as stack.
 	 */
 	the_initialize(THE);
-	
+
 	ARCH_OP(pre_mm_init);
 	frame_init();
@@ -355,11 +355,11 @@
 	tlb_init();
 	ARCH_OP(post_mm_init);
-	
+
 	cpu_init();
 	calibrate_delay_loop();
 	ARCH_OP(post_cpu_init);
-	
+
 	the_copy(THE, (the_t *) CPU->stack);
-	
+
 	/*
 	 * If we woke kmp up before we left the kernel stack, we could
@@ -382,10 +382,10 @@
 {
 	smp_call_init();
-	
+
 	/*
 	 * Configure timeouts for this cpu.
 	 */
 	timeout_init();
-	
+
 	waitq_wakeup(&ap_completion_wq, WAKEUP_FIRST);
 	scheduler();
Index: kernel/generic/src/main/shutdown.c
===================================================================
--- kernel/generic/src/main/shutdown.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/main/shutdown.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,9 +45,9 @@
 {
 	task_done();
-	
+
 #ifdef CONFIG_DEBUG
 	log(LF_OTHER, LVL_DEBUG, "Rebooting the system");
 #endif
-	
+
 	arch_reboot();
 	halt();
Index: kernel/generic/src/main/uinit.c
===================================================================
--- kernel/generic/src/main/uinit.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/main/uinit.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,12 +65,12 @@
 	 */
 	thread_detach(THREAD);
-	
+
 #ifdef CONFIG_UDEBUG
 	udebug_stoppable_end();
 #endif
-	
+
 	uspace_arg_t *uarg = (uspace_arg_t *) arg;
 	uspace_arg_t local_uarg;
-	
+
 	local_uarg.uspace_entry = uarg->uspace_entry;
 	local_uarg.uspace_stack = uarg->uspace_stack;
@@ -79,7 +79,7 @@
 	local_uarg.uspace_thread_function = NULL;
 	local_uarg.uspace_thread_arg = NULL;
-	
+
 	free(uarg);
-	
+
 	userspace(&local_uarg);
 }
Index: kernel/generic/src/mm/as.c
===================================================================
--- kernel/generic/src/mm/as.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/as.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -114,8 +114,8 @@
 {
 	as_t *as = (as_t *) obj;
-	
+
 	link_initialize(&as->inactive_as_with_asid_link);
 	mutex_initialize(&as->lock, MUTEX_PASSIVE);
-	
+
 	return as_constructor_arch(as, flags);
 }
@@ -130,12 +130,12 @@
 {
 	as_arch_init();
-	
+
 	as_cache = slab_cache_create("as_t", sizeof(as_t), 0,
 	    as_constructor, as_destructor, SLAB_CACHE_MAGDEFERRED);
-	
+
 	AS_KERNEL = as_create(FLAG_AS_KERNEL);
 	if (!AS_KERNEL)
 		panic("Cannot create kernel address space.");
-	
+
 	/*
 	 * Make sure the kernel address space
@@ -155,15 +155,15 @@
 	as_t *as = (as_t *) slab_alloc(as_cache, 0);
 	(void) as_create_arch(as, 0);
-	
+
 	btree_create(&as->as_area_btree);
-	
+
 	if (flags & FLAG_AS_KERNEL)
 		as->asid = ASID_KERNEL;
 	else
 		as->asid = ASID_INVALID;
-	
+
 	atomic_set(&as->refcount, 0);
 	as->cpu_refcount = 0;
-	
+
 #ifdef AS_PAGE_TABLE
 	as->genarch.page_table = page_table_create(flags);
@@ -171,5 +171,5 @@
 	page_table_create(flags);
 #endif
-	
+
 	return as;
 }
@@ -188,13 +188,13 @@
 {
 	DEADLOCK_PROBE_INIT(p_asidlock);
-	
+
 	assert(as != AS);
 	assert(atomic_get(&as->refcount) == 0);
-	
+
 	/*
 	 * Since there is no reference to this address space, it is safe not to
 	 * lock its mutex.
 	 */
-	
+
 	/*
 	 * We need to avoid deadlock between TLB shootdown and asidlock.
@@ -206,5 +206,5 @@
 	preemption_disable();
 	ipl_t ipl = interrupts_read();
-	
+
 retry:
 	interrupts_disable();
@@ -214,19 +214,19 @@
 		goto retry;
 	}
-	
+
 	/* Interrupts disabled, enable preemption */
 	preemption_enable();
-	
+
 	if ((as->asid != ASID_INVALID) && (as != AS_KERNEL)) {
 		if (as->cpu_refcount == 0)
 			list_remove(&as->inactive_as_with_asid_link);
-		
+
 		asid_put(as->asid);
 	}
-	
+
 	spinlock_unlock(&asidlock);
 	interrupts_restore(ipl);
-	
-	
+
+
 	/*
 	 * Destroy address space areas of the address space.
@@ -237,15 +237,15 @@
 	while (cond) {
 		assert(!list_empty(&as->as_area_btree.leaf_list));
-		
+
 		btree_node_t *node =
 		    list_get_instance(list_first(&as->as_area_btree.leaf_list),
 		    btree_node_t, leaf_link);
-		
+
 		if ((cond = node->keys))
 			as_area_destroy(as, node->key[0]);
 	}
-	
+
 	btree_destroy(&as->as_area_btree);
-	
+
 #ifdef AS_PAGE_TABLE
 	page_table_destroy(as->genarch.page_table);
@@ -253,5 +253,5 @@
 	page_table_destroy(NULL);
 #endif
-	
+
 	slab_free(as_cache, as);
 }
@@ -307,5 +307,5 @@
 	if (overflows_into_positive(addr, P2SZ(count)))
 		return false;
-	
+
 	/*
 	 * We don't want any area to have conflicts with NULL page.
@@ -328,5 +328,5 @@
 			return false;
 	}
-	
+
 	/* First, check the two border cases. */
 	btree_node_t *node =
@@ -334,5 +334,5 @@
 	if (node) {
 		area = (as_area_t *) node->value[node->keys - 1];
-		
+
 		if (area != avoid) {
 			mutex_lock(&area->lock);
@@ -346,5 +346,5 @@
 			int const gp = (guarded ||
 			    (area->flags & AS_AREA_GUARD)) ? 1 : 0;
-			
+
 			/*
 			 * The area comes from the left neighbour node, which
@@ -358,13 +358,13 @@
 				return false;
 			}
-			
+
 			mutex_unlock(&area->lock);
 		}
 	}
-	
+
 	node = btree_leaf_node_right_neighbour(&as->as_area_btree, leaf);
 	if (node) {
 		area = (as_area_t *) node->value[0];
-		
+
 		if (area != avoid) {
 			int gp;
@@ -382,5 +382,5 @@
 				gp--;
 			}
-			
+
 			if (overlaps(addr, P2SZ(count + gp), area->base,
 			    P2SZ(area->pages))) {
@@ -388,9 +388,9 @@
 				return false;
 			}
-			
+
 			mutex_unlock(&area->lock);
 		}
 	}
-	
+
 	/* Second, check the leaf node. */
 	btree_key_t i;
@@ -399,8 +399,8 @@
 		int agp;
 		int gp;
-		
+
 		if (area == avoid)
 			continue;
-		
+
 		mutex_lock(&area->lock);
 
@@ -421,8 +421,8 @@
 			return false;
 		}
-		
+
 		mutex_unlock(&area->lock);
 	}
-	
+
 	/*
 	 * So far, the area does not conflict with other areas.
@@ -434,5 +434,5 @@
 		    addr, P2SZ(count));
 	}
-	
+
 	return true;
 }
@@ -456,8 +456,8 @@
 {
 	assert(mutex_locked(&as->lock));
-	
+
 	if (size == 0)
 		return (uintptr_t) -1;
-	
+
 	/*
 	 * Make sure we allocate from page-aligned
@@ -465,12 +465,12 @@
 	 * each step.
 	 */
-	
+
 	size_t pages = SIZE2FRAMES(size);
-	
+
 	/*
 	 * Find the lowest unmapped address aligned on the size
 	 * boundary, not smaller than bound and of the required size.
 	 */
-	
+
 	/* First check the bound address itself */
 	uintptr_t addr = ALIGN_UP(bound, PAGE_SIZE);
@@ -486,13 +486,13 @@
 			return addr;
 	}
-	
+
 	/* Eventually check the addresses behind each area */
 	list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t, node) {
-		
+
 		for (btree_key_t i = 0; i < node->keys; i++) {
 			as_area_t *area = (as_area_t *) node->value[i];
-			
+
 			mutex_lock(&area->lock);
-			
+
 			addr =
 			    ALIGN_UP(area->base + P2SZ(area->pages), PAGE_SIZE);
@@ -508,12 +508,12 @@
 			    ((addr >= bound) && (addr >= area->base) &&
 			    (check_area_conflicts(as, addr, pages, guarded, area)));
-			
+
 			mutex_unlock(&area->lock);
-			
+
 			if (avail)
 				return addr;
 		}
 	}
-	
+
 	/* No suitable address space area found */
 	return (uintptr_t) -1;
@@ -530,11 +530,11 @@
 {
 	bool dealloc = false;
-	
+
 	mutex_lock(&sh_info->lock);
 	assert(sh_info->refcount);
-	
+
 	if (--sh_info->refcount == 0) {
 		dealloc = true;
-		
+
 		/*
 		 * Now walk carefully the pagemap B+tree and free/remove
@@ -544,12 +544,12 @@
 		    btree_node_t, node) {
 			btree_key_t i;
-			
+
 			for (i = 0; i < node->keys; i++)
 				frame_free((uintptr_t) node->value[i], 1);
 		}
-		
+
 	}
 	mutex_unlock(&sh_info->lock);
-	
+
 	if (dealloc) {
 		if (sh_info->backend && sh_info->backend->destroy_shared_data) {
@@ -588,10 +588,10 @@
 	if ((*base != (uintptr_t) AS_AREA_ANY) && !IS_ALIGNED(*base, PAGE_SIZE))
 		return NULL;
-	
+
 	if (size == 0)
 		return NULL;
 
 	size_t pages = SIZE2FRAMES(size);
-	
+
 	/* Writeable executable areas are not supported. */
 	if ((flags & AS_AREA_EXEC) && (flags & AS_AREA_WRITE))
@@ -599,7 +599,7 @@
 
 	bool const guarded = flags & AS_AREA_GUARD;
-	
+
 	mutex_lock(&as->lock);
-	
+
 	if (*base == (uintptr_t) AS_AREA_ANY) {
 		*base = as_get_unmapped_area(as, bound, size, guarded);
@@ -619,9 +619,9 @@
 		return NULL;
 	}
-	
+
 	as_area_t *area = (as_area_t *) malloc(sizeof(as_area_t), 0);
-	
+
 	mutex_initialize(&area->lock, MUTEX_PASSIVE);
-	
+
 	area->as = as;
 	area->flags = flags;
@@ -632,5 +632,5 @@
 	area->backend = backend;
 	area->sh_info = NULL;
-	
+
 	if (backend_data)
 		area->backend_data = *backend_data;
@@ -655,5 +655,5 @@
 
 		area->sh_info = si;
-	
+
 		if (area->backend && area->backend->create_shared_data) {
 			if (!area->backend->create_shared_data(area)) {
@@ -679,7 +679,7 @@
 	btree_insert(&as->as_area_btree, *base, (void *) area,
 	    NULL);
-	
+
 	mutex_unlock(&as->lock);
-	
+
 	return area;
 }
@@ -697,5 +697,5 @@
 {
 	assert(mutex_locked(&as->lock));
-	
+
 	btree_node_t *leaf;
 	as_area_t *area = (as_area_t *) btree_search(&as->as_area_btree, va,
@@ -706,5 +706,5 @@
 		return area;
 	}
-	
+
 	/*
 	 * Search the leaf node and the rightmost record of its left neighbour
@@ -712,11 +712,11 @@
 	 * space area found there.
 	 */
-	
+
 	/* First, search the leaf node itself. */
 	btree_key_t i;
-	
+
 	for (i = 0; i < leaf->keys; i++) {
 		area = (as_area_t *) leaf->value[i];
-		
+
 		mutex_lock(&area->lock);
 
@@ -724,8 +724,8 @@
 		    (va <= area->base + (P2SZ(area->pages) - 1)))
 			return area;
-		
+
 		mutex_unlock(&area->lock);
 	}
-	
+
 	/*
 	 * Second, locate the left neighbour and test its last record.
@@ -736,13 +736,13 @@
 	if (lnode) {
 		area = (as_area_t *) lnode->value[lnode->keys - 1];
-		
+
 		mutex_lock(&area->lock);
-		
+
 		if (va <= area->base + (P2SZ(area->pages) - 1))
 			return area;
-		
+
 		mutex_unlock(&area->lock);
 	}
-	
+
 	return NULL;
 }
@@ -766,5 +766,5 @@
 
 	mutex_lock(&as->lock);
-	
+
 	/*
 	 * Locate the area.
@@ -784,5 +784,5 @@
 		return ENOTSUP;
 	}
-	
+
 	mutex_lock(&area->sh_info->lock);
 	if (area->sh_info->shared) {
@@ -797,5 +797,5 @@
 	}
 	mutex_unlock(&area->sh_info->lock);
-	
+
 	size_t pages = SIZE2FRAMES((address - area->base) + size);
 	if (!pages) {
@@ -807,15 +807,15 @@
 		return EPERM;
 	}
-	
+
 	if (pages < area->pages) {
 		uintptr_t start_free = area->base + P2SZ(pages);
-		
+
 		/*
 		 * Shrinking the area.
 		 * No need to check for overlaps.
 		 */
-		
+
 		page_table_lock(as, false);
-		
+
 		/*
 		 * Remove frames belonging to used space starting from
@@ -828,9 +828,9 @@
 		while (cond) {
 			assert(!list_empty(&area->used_space.leaf_list));
-			
+
 			btree_node_t *node =
 			    list_get_instance(list_last(&area->used_space.leaf_list),
 			    btree_node_t, leaf_link);
-			
+
 			if ((cond = (node->keys != 0))) {
 				uintptr_t ptr = node->key[node->keys - 1];
@@ -838,8 +838,8 @@
 				    (size_t) node->value[node->keys - 1];
 				size_t i = 0;
-				
+
 				if (overlaps(ptr, P2SZ(node_size), area->base,
 				    P2SZ(pages))) {
-					
+
 					if (ptr + P2SZ(node_size) <= start_free) {
 						/*
@@ -850,5 +850,5 @@
 						break;
 					}
-					
+
 					/*
 					 * Part of the interval corresponding
@@ -856,5 +856,5 @@
 					 * address space area.
 					 */
-					
+
 					/* We are almost done */
 					cond = false;
@@ -871,5 +871,5 @@
 						panic("Cannot remove used space.");
 				}
-				
+
 				/*
 				 * Start TLB shootdown sequence.
@@ -887,14 +887,14 @@
 				    as->asid, area->base + P2SZ(pages),
 				    area->pages - pages);
-		
+
 				for (; i < node_size; i++) {
 					pte_t pte;
 					bool found = page_mapping_find(as,
 					    ptr + P2SZ(i), false, &pte);
-					
+
 					assert(found);
 					assert(PTE_VALID(&pte));
 					assert(PTE_PRESENT(&pte));
-					
+
 					if ((area->backend) &&
 					    (area->backend->frame_free)) {
@@ -903,16 +903,16 @@
 						    PTE_GET_FRAME(&pte));
 					}
-					
+
 					page_mapping_remove(as, ptr + P2SZ(i));
 				}
-		
+
 				/*
 				 * Finish TLB shootdown sequence.
 				 */
-		
+
 				tlb_invalidate_pages(as->asid,
 				    area->base + P2SZ(pages),
 				    area->pages - pages);
-		
+
 				/*
 				 * Invalidate software translation caches
@@ -944,5 +944,5 @@
 		}
 	}
-	
+
 	if (area->backend && area->backend->resize) {
 		if (!area->backend->resize(area, pages)) {
@@ -952,10 +952,10 @@
 		}
 	}
-	
+
 	area->pages = pages;
-	
+
 	mutex_unlock(&area->lock);
 	mutex_unlock(&as->lock);
-	
+
 	return 0;
 }
@@ -972,5 +972,5 @@
 {
 	mutex_lock(&as->lock);
-	
+
 	as_area_t *area = find_area_and_lock(as, address);
 	if (!area) {
@@ -981,9 +981,9 @@
 	if (area->backend && area->backend->destroy)
 		area->backend->destroy(area);
-	
+
 	uintptr_t base = area->base;
-	
+
 	page_table_lock(as, false);
-	
+
 	/*
 	 * Start TLB shootdown sequence.
@@ -991,5 +991,5 @@
 	ipl_t ipl = tlb_shootdown_start(TLB_INVL_PAGES, as->asid, area->base,
 	    area->pages);
-	
+
 	/*
 	 * Visit only the pages mapped by used_space B+tree.
@@ -998,18 +998,18 @@
 	    node) {
 		btree_key_t i;
-		
+
 		for (i = 0; i < node->keys; i++) {
 			uintptr_t ptr = node->key[i];
 			size_t size;
-			
+
 			for (size = 0; size < (size_t) node->value[i]; size++) {
 				pte_t pte;
 				bool found = page_mapping_find(as,
 				     ptr + P2SZ(size), false, &pte);
-				
+
 				assert(found);
 				assert(PTE_VALID(&pte));
 				assert(PTE_PRESENT(&pte));
-				
+
 				if ((area->backend) &&
 				    (area->backend->frame_free)) {
@@ -1018,16 +1018,16 @@
 					    PTE_GET_FRAME(&pte));
 				}
-				
+
 				page_mapping_remove(as, ptr + P2SZ(size));
 			}
 		}
 	}
-	
+
 	/*
 	 * Finish TLB shootdown sequence.
 	 */
-	
+
 	tlb_invalidate_pages(as->asid, area->base, area->pages);
-	
+
 	/*
 	 * Invalidate potential software translation caches
@@ -1036,22 +1036,22 @@
 	as_invalidate_translation_cache(as, area->base, area->pages);
 	tlb_shootdown_finalize(ipl);
-	
+
 	page_table_unlock(as, false);
-	
+
 	btree_destroy(&area->used_space);
-	
+
 	area->attributes |= AS_AREA_ATTR_PARTIAL;
-	
+
 	sh_info_remove_reference(area->sh_info);
-	
+
 	mutex_unlock(&area->lock);
-	
+
 	/*
 	 * Remove the empty area from address space.
 	 */
 	btree_remove(&as->as_area_btree, base, NULL);
-	
+
 	free(area);
-	
+
 	mutex_unlock(&as->lock);
 	return 0;
@@ -1098,5 +1098,5 @@
 		return ENOENT;
 	}
-	
+
 	if (!src_area->backend->is_shareable(src_area)) {
 		/*
@@ -1107,14 +1107,14 @@
 		return ENOTSUP;
 	}
-	
+
 	size_t src_size = P2SZ(src_area->pages);
 	unsigned int src_flags = src_area->flags;
 	mem_backend_t *src_backend = src_area->backend;
 	mem_backend_data_t src_backend_data = src_area->backend_data;
-	
+
 	/* Share the cacheable flag from the original mapping */
 	if (src_flags & AS_AREA_CACHEABLE)
 		dst_flags_mask |= AS_AREA_CACHEABLE;
-	
+
 	if ((src_size != acc_size) ||
 	    ((src_flags & dst_flags_mask) != dst_flags_mask)) {
@@ -1123,5 +1123,5 @@
 		return EPERM;
 	}
-	
+
 	/*
 	 * Now we are committed to sharing the area.
@@ -1130,5 +1130,5 @@
 	 */
 	share_info_t *sh_info = src_area->sh_info;
-	
+
 	mutex_lock(&sh_info->lock);
 	sh_info->refcount++;
@@ -1144,8 +1144,8 @@
 		src_area->backend->share(src_area);
 	}
-	
+
 	mutex_unlock(&src_area->lock);
 	mutex_unlock(&src_as->lock);
-	
+
 	/*
 	 * Create copy of the source address space area.
@@ -1164,8 +1164,8 @@
 		 */
 		sh_info_remove_reference(sh_info);
-		
+
 		return ENOMEM;
 	}
-	
+
 	/*
 	 * Now the destination address space area has been
@@ -1179,5 +1179,5 @@
 	mutex_unlock(&dst_area->lock);
 	mutex_unlock(&dst_as->lock);
-	
+
 	return 0;
 }
@@ -1195,5 +1195,5 @@
 {
 	assert(mutex_locked(&area->lock));
-	
+
 	int flagmap[] = {
 		[PF_ACCESS_READ] = AS_AREA_READ,
@@ -1201,8 +1201,8 @@
 		[PF_ACCESS_EXEC] = AS_AREA_EXEC
 	};
-	
+
 	if (!(area->flags & flagmap[access]))
 		return false;
-	
+
 	return true;
 }
@@ -1218,17 +1218,17 @@
 {
 	unsigned int flags = PAGE_USER | PAGE_PRESENT;
-	
+
 	if (aflags & AS_AREA_READ)
 		flags |= PAGE_READ;
-		
+
 	if (aflags & AS_AREA_WRITE)
 		flags |= PAGE_WRITE;
-	
+
 	if (aflags & AS_AREA_EXEC)
 		flags |= PAGE_EXEC;
-	
+
 	if (aflags & AS_AREA_CACHEABLE)
 		flags |= PAGE_CACHEABLE;
-	
+
 	return flags;
 }
@@ -1252,7 +1252,7 @@
 	/* Flags for the new memory mapping */
 	unsigned int page_flags = area_flags_to_page_flags(flags);
-	
+
 	mutex_lock(&as->lock);
-	
+
 	as_area_t *area = find_area_and_lock(as, address);
 	if (!area) {
@@ -1260,5 +1260,5 @@
 		return ENOENT;
 	}
-	
+
 	if (area->backend != &anon_backend) {
 		/* Copying non-anonymous memory not supported yet */
@@ -1277,23 +1277,23 @@
 	}
 	mutex_unlock(&area->sh_info->lock);
-	
+
 	/*
 	 * Compute total number of used pages in the used_space B+tree
 	 */
 	size_t used_pages = 0;
-	
+
 	list_foreach(area->used_space.leaf_list, leaf_link, btree_node_t,
 	    node) {
 		btree_key_t i;
-		
+
 		for (i = 0; i < node->keys; i++)
 			used_pages += (size_t) node->value[i];
 	}
-	
+
 	/* An array for storing frame numbers */
 	uintptr_t *old_frame = malloc(used_pages * sizeof(uintptr_t), 0);
-	
+
 	page_table_lock(as, false);
-	
+
 	/*
 	 * Start TLB shootdown sequence.
@@ -1301,5 +1301,5 @@
 	ipl_t ipl = tlb_shootdown_start(TLB_INVL_PAGES, as->asid, area->base,
 	    area->pages);
-	
+
 	/*
 	 * Remove used pages from page tables and remember their frame
@@ -1307,24 +1307,24 @@
 	 */
 	size_t frame_idx = 0;
-	
+
 	list_foreach(area->used_space.leaf_list, leaf_link, btree_node_t,
 	    node) {
 		btree_key_t i;
-		
+
 		for (i = 0; i < node->keys; i++) {
 			uintptr_t ptr = node->key[i];
 			size_t size;
-			
+
 			for (size = 0; size < (size_t) node->value[i]; size++) {
 				pte_t pte;
 				bool found = page_mapping_find(as,
 				    ptr + P2SZ(size), false, &pte);
-				
+
 				assert(found);
 				assert(PTE_VALID(&pte));
 				assert(PTE_PRESENT(&pte));
-				
+
 				old_frame[frame_idx++] = PTE_GET_FRAME(&pte);
-				
+
 				/* Remove old mapping */
 				page_mapping_remove(as, ptr + P2SZ(size));
@@ -1332,11 +1332,11 @@
 		}
 	}
-	
+
 	/*
 	 * Finish TLB shootdown sequence.
 	 */
-	
+
 	tlb_invalidate_pages(as->asid, area->base, area->pages);
-	
+
 	/*
 	 * Invalidate potential software translation caches
@@ -1345,12 +1345,12 @@
 	as_invalidate_translation_cache(as, area->base, area->pages);
 	tlb_shootdown_finalize(ipl);
-	
+
 	page_table_unlock(as, false);
-	
+
 	/*
 	 * Set the new flags.
 	 */
 	area->flags = flags;
-	
+
 	/*
 	 * Map pages back in with new flags. This step is kept separate
@@ -1359,30 +1359,30 @@
 	 */
 	frame_idx = 0;
-	
+
 	list_foreach(area->used_space.leaf_list, leaf_link, btree_node_t,
 	    node) {
 		btree_key_t i;
-		
+
 		for (i = 0; i < node->keys; i++) {
 			uintptr_t ptr = node->key[i];
 			size_t size;
-			
+
 			for (size = 0; size < (size_t) node->value[i]; size++) {
 				page_table_lock(as, false);
-				
+
 				/* Insert the new mapping */
 				page_mapping_insert(as, ptr + P2SZ(size),
 				    old_frame[frame_idx++], page_flags);
-				
+
 				page_table_unlock(as, false);
 			}
 		}
 	}
-	
+
 	free(old_frame);
-	
+
 	mutex_unlock(&area->lock);
 	mutex_unlock(&as->lock);
-	
+
 	return 0;
 }
@@ -1414,8 +1414,8 @@
 	if (!THREAD)
 		goto page_fault;
-	
+
 	if (!AS)
 		goto page_fault;
-	
+
 	mutex_lock(&AS->lock);
 	as_area_t *area = find_area_and_lock(AS, page);
@@ -1428,5 +1428,5 @@
 		goto page_fault;
 	}
-	
+
 	if (area->attributes & AS_AREA_ATTR_PARTIAL) {
 		/*
@@ -1438,5 +1438,5 @@
 		goto page_fault;
 	}
-	
+
 	if ((!area->backend) || (!area->backend->page_fault)) {
 		/*
@@ -1448,7 +1448,7 @@
 		goto page_fault;
 	}
-	
+
 	page_table_lock(AS, false);
-	
+
 	/*
 	 * To avoid race condition between two page faults on the same address,
@@ -1467,5 +1467,5 @@
 		}
 	}
-	
+
 	/*
 	 * Resort to the backend page fault handler.
@@ -1478,10 +1478,10 @@
 		goto page_fault;
 	}
-	
+
 	page_table_unlock(AS, false);
 	mutex_unlock(&area->lock);
 	mutex_unlock(&AS->lock);
 	return AS_PF_OK;
-	
+
 page_fault:
 	if (THREAD->in_copy_from_uspace) {
@@ -1501,5 +1501,5 @@
 		panic_memtrap(istate, access, address, NULL);
 	}
-	
+
 	return AS_PF_DEFER;
 }
@@ -1521,5 +1521,5 @@
 	DEADLOCK_PROBE_INIT(p_asidlock);
 	preemption_disable();
-	
+
 retry:
 	(void) interrupts_disable();
@@ -1536,5 +1536,5 @@
 	}
 	preemption_enable();
-	
+
 	/*
 	 * First, take care of the old address space.
@@ -1542,5 +1542,5 @@
 	if (old_as) {
 		assert(old_as->cpu_refcount);
-		
+
 		if ((--old_as->cpu_refcount == 0) && (old_as != AS_KERNEL)) {
 			/*
@@ -1551,9 +1551,9 @@
 			 */
 			assert(old_as->asid != ASID_INVALID);
-			
+
 			list_append(&old_as->inactive_as_with_asid_link,
 			    &inactive_as_with_asid_list);
 		}
-		
+
 		/*
 		 * Perform architecture-specific tasks when the address space
@@ -1562,5 +1562,5 @@
 		as_deinstall_arch(old_as);
 	}
-	
+
 	/*
 	 * Second, prepare the new address space.
@@ -1572,9 +1572,9 @@
 			new_as->asid = asid_get();
 	}
-	
+
 #ifdef AS_PAGE_TABLE
 	SET_PTL0_ADDRESS(new_as->genarch.page_table);
 #endif
-	
+
 	/*
 	 * Perform architecture-specific steps.
@@ -1582,7 +1582,7 @@
 	 */
 	as_install_arch(new_as);
-	
+
 	spinlock_unlock(&asidlock);
-	
+
 	AS = new_as;
 }
@@ -1598,5 +1598,5 @@
 {
 	assert(mutex_locked(&area->lock));
-	
+
 	return area_flags_to_page_flags(area->flags);
 }
@@ -1617,5 +1617,5 @@
 	assert(as_operations);
 	assert(as_operations->page_table_create);
-	
+
 	return as_operations->page_table_create(flags);
 }
@@ -1632,5 +1632,5 @@
 	assert(as_operations);
 	assert(as_operations->page_table_destroy);
-	
+
 	as_operations->page_table_destroy(page_table);
 }
@@ -1653,5 +1653,5 @@
 	assert(as_operations);
 	assert(as_operations->page_table_lock);
-	
+
 	as_operations->page_table_lock(as, lock);
 }
@@ -1667,5 +1667,5 @@
 	assert(as_operations);
 	assert(as_operations->page_table_unlock);
-	
+
 	as_operations->page_table_unlock(as, unlock);
 }
@@ -1697,8 +1697,8 @@
 {
 	size_t size;
-	
+
 	page_table_lock(AS, true);
 	as_area_t *src_area = find_area_and_lock(AS, base);
-	
+
 	if (src_area) {
 		size = P2SZ(src_area->pages);
@@ -1706,5 +1706,5 @@
 	} else
 		size = 0;
-	
+
 	page_table_unlock(AS, true);
 	return size;
@@ -1727,5 +1727,5 @@
 	assert(IS_ALIGNED(page, PAGE_SIZE));
 	assert(count);
-	
+
 	btree_node_t *leaf = NULL;
 	size_t pages = (size_t) btree_search(&area->used_space, page, &leaf);
@@ -1738,10 +1738,10 @@
 
 	assert(leaf != NULL);
-	
+
 	if (!leaf->keys) {
 		btree_insert(&area->used_space, page, (void *) count, leaf);
 		goto success;
 	}
-	
+
 	btree_node_t *node = btree_leaf_node_left_neighbour(&area->used_space, leaf);
 	if (node) {
@@ -1750,5 +1750,5 @@
 		size_t left_cnt = (size_t) node->value[node->keys - 1];
 		size_t right_cnt = (size_t) leaf->value[0];
-		
+
 		/*
 		 * Examine the possibility that the interval fits
@@ -1756,5 +1756,5 @@
 		 * the left neigbour and the first interval of the leaf.
 		 */
-		
+
 		if (page >= right_pg) {
 			/* Do nothing. */
@@ -1804,10 +1804,10 @@
 		uintptr_t right_pg = leaf->key[0];
 		size_t right_cnt = (size_t) leaf->value[0];
-		
+
 		/*
 		 * Investigate the border case in which the left neighbour does
 		 * not exist but the interval fits from the left.
 		 */
-		
+
 		if (overlaps(page, P2SZ(count), right_pg, P2SZ(right_cnt))) {
 			/* The interval intersects with the right interval. */
@@ -1832,5 +1832,5 @@
 		}
 	}
-	
+
 	node = btree_leaf_node_right_neighbour(&area->used_space, leaf);
 	if (node) {
@@ -1839,5 +1839,5 @@
 		size_t left_cnt = (size_t) leaf->value[leaf->keys - 1];
 		size_t right_cnt = (size_t) node->value[0];
-		
+
 		/*
 		 * Examine the possibility that the interval fits
@@ -1845,5 +1845,5 @@
 		 * the right neigbour and the last interval of the leaf.
 		 */
-		
+
 		if (page < left_pg) {
 			/* Do nothing. */
@@ -1893,10 +1893,10 @@
 		uintptr_t left_pg = leaf->key[leaf->keys - 1];
 		size_t left_cnt = (size_t) leaf->value[leaf->keys - 1];
-		
+
 		/*
 		 * Investigate the border case in which the right neighbour
 		 * does not exist but the interval fits from the right.
 		 */
-		
+
 		if (overlaps(page, P2SZ(count), left_pg, P2SZ(left_cnt))) {
 			/* The interval intersects with the left interval. */
@@ -1919,5 +1919,5 @@
 		}
 	}
-	
+
 	/*
 	 * Note that if the algorithm made it thus far, the interval can fit
@@ -1932,9 +1932,9 @@
 			size_t left_cnt = (size_t) leaf->value[i - 1];
 			size_t right_cnt = (size_t) leaf->value[i];
-			
+
 			/*
 			 * The interval fits between left_pg and right_pg.
 			 */
-			
+
 			if (overlaps(page, P2SZ(count), left_pg,
 			    P2SZ(left_cnt))) {
@@ -1988,8 +1988,8 @@
 		}
 	}
-	
+
 	panic("Inconsistency detected while adding %zu pages of used "
 	    "space at %p.", count, (void *) page);
-	
+
 success:
 	area->resident += count;
@@ -2013,5 +2013,5 @@
 	assert(IS_ALIGNED(page, PAGE_SIZE));
 	assert(count);
-	
+
 	btree_node_t *leaf;
 	size_t pages = (size_t) btree_search(&area->used_space, page, &leaf);
@@ -2038,9 +2038,9 @@
 				}
 			}
-			
+
 			goto error;
 		}
 	}
-	
+
 	btree_node_t *node = btree_leaf_node_left_neighbour(&area->used_space,
 	    leaf);
@@ -2048,5 +2048,5 @@
 		uintptr_t left_pg = node->key[node->keys - 1];
 		size_t left_cnt = (size_t) node->value[node->keys - 1];
-		
+
 		if (overlaps(left_pg, P2SZ(left_cnt), page, P2SZ(count))) {
 			if (page + P2SZ(count) == left_pg + P2SZ(left_cnt)) {
@@ -2078,13 +2078,13 @@
 			}
 		}
-		
+
 		return false;
 	} else if (page < leaf->key[0])
 		return false;
-	
+
 	if (page > leaf->key[leaf->keys - 1]) {
 		uintptr_t left_pg = leaf->key[leaf->keys - 1];
 		size_t left_cnt = (size_t) leaf->value[leaf->keys - 1];
-		
+
 		if (overlaps(left_pg, P2SZ(left_cnt), page, P2SZ(count))) {
 			if (page + P2SZ(count) == left_pg + P2SZ(left_cnt)) {
@@ -2115,8 +2115,8 @@
 			}
 		}
-		
+
 		return false;
 	}
-	
+
 	/*
 	 * The border cases have been already resolved.
@@ -2128,5 +2128,5 @@
 			uintptr_t left_pg = leaf->key[i - 1];
 			size_t left_cnt = (size_t) leaf->value[i - 1];
-			
+
 			/*
 			 * Now the interval is between intervals corresponding
@@ -2166,13 +2166,13 @@
 				}
 			}
-			
+
 			return false;
 		}
 	}
-	
+
 error:
 	panic("Inconsistency detected while removing %zu pages of used "
 	    "space from %p.", count, (void *) page);
-	
+
 success:
 	area->resident -= count;
@@ -2204,5 +2204,5 @@
 	if (area == NULL)
 		return (sysarg_t) AS_MAP_FAILED;
-	
+
 	return (sysarg_t) virt;
 }
@@ -2233,42 +2233,42 @@
 {
 	mutex_lock(&as->lock);
-	
+
 	/* First pass, count number of areas. */
-	
+
 	size_t area_cnt = 0;
-	
+
 	list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t,
 	    node) {
 		area_cnt += node->keys;
 	}
-	
+
 	size_t isize = area_cnt * sizeof(as_area_info_t);
 	as_area_info_t *info = malloc(isize, 0);
-	
+
 	/* Second pass, record data. */
-	
+
 	size_t area_idx = 0;
-	
+
 	list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t,
 	    node) {
 		btree_key_t i;
-		
+
 		for (i = 0; i < node->keys; i++) {
 			as_area_t *area = node->value[i];
-			
+
 			assert(area_idx < area_cnt);
 			mutex_lock(&area->lock);
-			
+
 			info[area_idx].start_addr = area->base;
 			info[area_idx].size = P2SZ(area->pages);
 			info[area_idx].flags = area->flags;
 			++area_idx;
-			
+
 			mutex_unlock(&area->lock);
 		}
 	}
-	
+
 	mutex_unlock(&as->lock);
-	
+
 	*obuf = info;
 	*osize = isize;
@@ -2283,13 +2283,13 @@
 {
 	mutex_lock(&as->lock);
-	
+
 	/* Print out info about address space areas */
 	list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t,
 	    node) {
 		btree_key_t i;
-		
+
 		for (i = 0; i < node->keys; i++) {
 			as_area_t *area = node->value[i];
-			
+
 			mutex_lock(&area->lock);
 			printf("as_area: %p, base=%p, pages=%zu"
@@ -2300,5 +2300,5 @@
 		}
 	}
-	
+
 	mutex_unlock(&as->lock);
 }
Index: kernel/generic/src/mm/backend_anon.c
===================================================================
--- kernel/generic/src/mm/backend_anon.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/backend_anon.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -125,14 +125,14 @@
 	    node) {
 		unsigned int i;
-		
+
 		for (i = 0; i < node->keys; i++) {
 			uintptr_t base = node->key[i];
 			size_t count = (size_t) node->value[i];
 			unsigned int j;
-			
+
 			for (j = 0; j < count; j++) {
 				pte_t pte;
 				bool found;
-			
+
 				page_table_lock(area->as, false);
 				found = page_mapping_find(area->as,
@@ -201,5 +201,5 @@
 	if (area->sh_info->shared) {
 		btree_node_t *leaf;
-		
+
 		/*
 		 * The area is shared, chances are that the mapping can be found
@@ -214,5 +214,5 @@
 			bool allocate = true;
 			unsigned int i;
-			
+
 			/*
 			 * Zero can be returned as a valid frame address.
@@ -230,5 +230,5 @@
 				memsetb((void *) kpage, PAGE_SIZE, 0);
 				km_temporary_page_put(kpage);
-				
+
 				/*
 				 * Insert the address of the newly allocated
@@ -272,5 +272,5 @@
 	}
 	mutex_unlock(&area->sh_info->lock);
-	
+
 	/*
 	 * Map 'upage' to 'frame'.
@@ -281,5 +281,5 @@
 	if (!used_space_insert(area, upage, 1))
 		panic("Cannot insert used space.");
-		
+
 	return AS_PF_OK;
 }
Index: kernel/generic/src/mm/backend_elf.c
===================================================================
--- kernel/generic/src/mm/backend_elf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/backend_elf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -102,5 +102,5 @@
 	if (area->pages <= nonanon_pages)
 		return true;
-	
+
 	return reserve_try_alloc(area->pages - nonanon_pages);
 }
@@ -123,5 +123,5 @@
 			reserve_free(nonanon_pages - new_pages);
 	}
-	
+
 	return true;
 }
@@ -166,12 +166,12 @@
 	    cur = cur->next) {
 		unsigned int i;
-		
+
 		node = list_get_instance(cur, btree_node_t, leaf_link);
-		
+
 		for (i = 0; i < node->keys; i++) {
 			uintptr_t base = node->key[i];
 			size_t count = (size_t) node->value[i];
 			unsigned int j;
-			
+
 			/*
 			 * Skip read-only areas of used space that are backed
@@ -182,9 +182,9 @@
 				    base + P2SZ(count) <= start_anon)
 					continue;
-			
+
 			for (j = 0; j < count; j++) {
 				pte_t pte;
 				bool found;
-			
+
 				/*
 				 * Skip read-only pages that are backed by the
@@ -195,5 +195,5 @@
 					    base + P2SZ(j + 1) <= start_anon)
 						continue;
-				
+
 				page_table_lock(area->as, false);
 				found = page_mapping_find(area->as,
@@ -212,5 +212,5 @@
 				frame_reference_add(pfn);
 			}
-				
+
 		}
 	}
@@ -267,11 +267,11 @@
 	if (!as_area_check_access(area, access))
 		return AS_PF_FAULT;
-	
+
 	if (upage < ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE))
 		return AS_PF_FAULT;
-	
+
 	if (upage >= entry->p_vaddr + entry->p_memsz)
 		return AS_PF_FAULT;
-	
+
 	i = (upage - ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)) >> PAGE_WIDTH;
 	base = (uintptr_t)
@@ -288,5 +288,5 @@
 		 * The address space area is shared.
 		 */
-		
+
 		frame = (uintptr_t) btree_search(&area->sh_info->pagemap,
 		    upage - area->base, &leaf);
Index: kernel/generic/src/mm/backend_phys.c
===================================================================
--- kernel/generic/src/mm/backend_phys.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/backend_phys.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 	.page_fault = phys_page_fault,
 	.frame_free = NULL,
-	
+
 	.create_shared_data = phys_create_shared_data,
 	.destroy_shared_data = phys_destroy_shared_data
@@ -145,5 +145,5 @@
 	page_mapping_insert(AS, upage, base + (upage - area->base),
 	    as_area_get_flags(area));
-	
+
 	if (!used_space_insert(area, upage, 1))
 		panic("Cannot insert used space.");
Index: kernel/generic/src/mm/backend_user.c
===================================================================
--- kernel/generic/src/mm/backend_user.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/backend_user.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -172,5 +172,5 @@
 		/* Nothing to do */
 	}
-		
+
 }
 
Index: kernel/generic/src/mm/frame.c
===================================================================
--- kernel/generic/src/mm/frame.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/frame.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -108,5 +108,5 @@
 		return (size_t) -1;
 	}
-	
+
 	size_t i;
 	for (i = 0; i < zones.count; i++) {
@@ -114,5 +114,5 @@
 		if (overlaps(zones.info[i].base, zones.info[i].count,
 		    base, count)) {
-			
+
 			/*
 			 * If the overlaping zones are of the same type
@@ -121,5 +121,5 @@
 			 *
 			 */
-			
+
 			if ((zones.info[i].flags != flags) ||
 			    (!iswithin(zones.info[i].base, zones.info[i].count,
@@ -132,5 +132,5 @@
 				    (void *) PFN2ADDR(zones.info[i].count));
 			}
-			
+
 			return (size_t) -1;
 		}
@@ -138,11 +138,11 @@
 			break;
 	}
-	
+
 	/* Move other zones up */
 	for (size_t j = zones.count; j > i; j--)
 		zones.info[j] = zones.info[j - 1];
-	
+
 	zones.count++;
-	
+
 	return i;
 }
@@ -163,5 +163,5 @@
 	for (i = 0; i < zones.count; i++)
 		total += zones.info[i].free_count;
-	
+
 	return total;
 }
@@ -195,5 +195,5 @@
 	if (hint >= zones.count)
 		hint = 0;
-	
+
 	size_t i = hint;
 	do {
@@ -201,11 +201,11 @@
 		    && (zones.info[i].base + zones.info[i].count >= frame + count))
 			return i;
-		
+
 		i++;
 		if (i >= zones.count)
 			i = 0;
-		
+
 	} while (i != hint);
-	
+
 	return (size_t) -1;
 }
@@ -219,5 +219,5 @@
 	 * the bitmap if the last argument is NULL.
 	 */
-	
+
 	return ((zone->flags & ZONE_AVAILABLE) &&
 	    bitmap_allocate_range(&zone->bitmap, count, zone->base,
@@ -245,14 +245,14 @@
 	for (size_t pos = 0; pos < zones.count; pos++) {
 		size_t i = (pos + hint) % zones.count;
-		
+
 		/* Check whether the zone meets the search criteria. */
 		if (!ZONE_FLAGS_MATCH(zones.info[i].flags, flags))
 			continue;
-		
+
 		/* Check if the zone can satisfy the allocation request. */
 		if (zone_can_alloc(&zones.info[i], count, constraint))
 			return i;
 	}
-	
+
 	return (size_t) -1;
 }
@@ -291,18 +291,18 @@
 	for (size_t pos = 0; pos < zones.count; pos++) {
 		size_t i = (pos + hint) % zones.count;
-		
+
 		/* Skip zones containing only high-priority memory. */
 		if (is_high_priority(zones.info[i].base, zones.info[i].count))
 			continue;
-		
+
 		/* Check whether the zone meets the search criteria. */
 		if (!ZONE_FLAGS_MATCH(zones.info[i].flags, flags))
 			continue;
-		
+
 		/* Check if the zone can satisfy the allocation request. */
 		if (zone_can_alloc(&zones.info[i], count, constraint))
 			return i;
 	}
-	
+
 	return (size_t) -1;
 }
@@ -328,14 +328,14 @@
 	if (hint >= zones.count)
 		hint = 0;
-	
+
 	/*
 	 * Prefer zones with low-priority memory over
 	 * zones with high-priority memory.
 	 */
-	
+
 	size_t znum = find_free_zone_lowprio(count, flags, constraint, hint);
 	if (znum != (size_t) -1)
 		return znum;
-	
+
 	/* Take all zones into account */
 	return find_free_zone_all(count, flags, constraint, hint);
@@ -350,5 +350,5 @@
 {
 	assert(index < zone->count);
-	
+
 	return &zone->frames[index];
 }
@@ -371,25 +371,25 @@
 {
 	assert(zone->flags & ZONE_AVAILABLE);
-	
+
 	/* Allocate frames from zone */
 	size_t index = (size_t) -1;
 	int avail = bitmap_allocate_range(&zone->bitmap, count, zone->base,
 	    FRAME_LOWPRIO, constraint, &index);
-	
+
 	assert(avail);
 	assert(index != (size_t) -1);
-	
+
 	/* Update frame reference count */
 	for (size_t i = 0; i < count; i++) {
 		frame_t *frame = zone_get_frame(zone, index + i);
-		
+
 		assert(frame->refcount == 0);
 		frame->refcount = 1;
 	}
-	
+
 	/* Update zone information. */
 	zone->free_count -= count;
 	zone->busy_count += count;
-	
+
 	return index;
 }
@@ -408,19 +408,19 @@
 {
 	assert(zone->flags & ZONE_AVAILABLE);
-	
+
 	frame_t *frame = zone_get_frame(zone, index);
-	
+
 	assert(frame->refcount > 0);
-	
+
 	if (!--frame->refcount) {
 		bitmap_set(&zone->bitmap, index, 0);
-		
+
 		/* Update zone information. */
 		zone->free_count++;
 		zone->busy_count--;
-		
+
 		return 1;
 	}
-	
+
 	return 0;
 }
@@ -430,12 +430,12 @@
 {
 	assert(zone->flags & ZONE_AVAILABLE);
-	
+
 	frame_t *frame = zone_get_frame(zone, index);
 	if (frame->refcount > 0)
 		return;
-	
+
 	frame->refcount = 1;
 	bitmap_set_range(&zone->bitmap, index, 1);
-	
+
 	zone->free_count--;
 	reserve_force_alloc(1);
@@ -462,22 +462,22 @@
 	assert(!overlaps(zones.info[z1].base, zones.info[z1].count,
 	    zones.info[z2].base, zones.info[z2].count));
-	
+
 	/* Difference between zone bases */
 	pfn_t base_diff = zones.info[z2].base - zones.info[z1].base;
-	
+
 	zones.info[z1].count = base_diff + zones.info[z2].count;
 	zones.info[z1].free_count += zones.info[z2].free_count;
 	zones.info[z1].busy_count += zones.info[z2].busy_count;
-	
+
 	bitmap_initialize(&zones.info[z1].bitmap, zones.info[z1].count,
 	    confdata + (sizeof(frame_t) * zones.info[z1].count));
 	bitmap_clear_range(&zones.info[z1].bitmap, 0, zones.info[z1].count);
-	
+
 	zones.info[z1].frames = (frame_t *) confdata;
-	
+
 	/*
 	 * Copy frames and bits from both zones to preserve parents, etc.
 	 */
-	
+
 	for (size_t i = 0; i < old_z1->count; i++) {
 		bitmap_set(&zones.info[z1].bitmap, i,
@@ -485,5 +485,5 @@
 		zones.info[z1].frames[i] = old_z1->frames[i];
 	}
-	
+
 	for (size_t i = 0; i < zones.info[z2].count; i++) {
 		bitmap_set(&zones.info[z1].bitmap, base_diff + i,
@@ -510,11 +510,11 @@
 {
 	assert(zones.info[znum].flags & ZONE_AVAILABLE);
-	
+
 	size_t cframes = SIZE2FRAMES(zone_conf_size(count));
-	
+
 	if ((pfn < zones.info[znum].base) ||
 	    (pfn >= zones.info[znum].base + zones.info[znum].count))
 		return;
-	
+
 	for (size_t i = 0; i < cframes; i++)
 		(void) zone_frame_free(&zones.info[znum],
@@ -536,7 +536,7 @@
 {
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	bool ret = true;
-	
+
 	/*
 	 * We can join only 2 zones with none existing inbetween,
@@ -549,9 +549,9 @@
 		goto errout;
 	}
-	
+
 	pfn_t cframes = SIZE2FRAMES(zone_conf_size(
 	    zones.info[z2].base - zones.info[z1].base
 	    + zones.info[z2].count));
-	
+
 	/* Allocate merged zone data inside one of the zones */
 	pfn_t pfn;
@@ -566,14 +566,14 @@
 		goto errout;
 	}
-	
+
 	/* Preserve original data from z1 */
 	zone_t old_z1 = zones.info[z1];
-	
+
 	/* Do zone merging */
 	zone_merge_internal(z1, z2, &old_z1, (void *) PA2KA(PFN2ADDR(pfn)));
-	
+
 	/* Subtract zone information from busy frames */
 	zones.info[z1].busy_count -= cframes;
-	
+
 	/* Free old zone information */
 	return_config_frames(z1,
@@ -582,14 +582,14 @@
 	    ADDR2PFN(KA2PA((uintptr_t) zones.info[z2].frames)),
 	    zones.info[z2].count);
-	
+
 	/* Move zones down */
 	for (size_t i = z2 + 1; i < zones.count; i++)
 		zones.info[i - 1] = zones.info[i];
-	
+
 	zones.count--;
-	
+
 errout:
 	irq_spinlock_unlock(&zones.lock, true);
-	
+
 	return ret;
 }
@@ -605,5 +605,5 @@
 {
 	size_t i = 1;
-	
+
 	while (i < zones.count) {
 		if (!zone_merge(i - 1, i))
@@ -631,5 +631,5 @@
 	zone->free_count = count;
 	zone->busy_count = 0;
-	
+
 	if (flags & ZONE_AVAILABLE) {
 		/*
@@ -637,15 +637,15 @@
 		 * frame_t structures in the configuration space).
 		 */
-		
+
 		bitmap_initialize(&zone->bitmap, count, confdata +
 		    (sizeof(frame_t) * count));
 		bitmap_clear_range(&zone->bitmap, 0, count);
-		
+
 		/*
 		 * Initialize the array of frame_t structures.
 		 */
-		
+
 		zone->frames = (frame_t *) confdata;
-		
+
 		for (size_t i = 0; i < count; i++)
 			frame_initialize(&zone->frames[i]);
@@ -672,5 +672,5 @@
 {
 	size_t frames = SIZE2FRAMES(zone_conf_size(count));
-	
+
 	return ADDR2PFN((uintptr_t)
 	    frame_alloc(frames, FRAME_LOWMEM | FRAME_ATOMIC, 0));
@@ -697,5 +697,5 @@
 {
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	if (flags & ZONE_AVAILABLE) {  /* Create available zone */
 		/*
@@ -705,8 +705,8 @@
 		 */
 		assert(confframe != ADDR2PFN((uintptr_t ) NULL));
-		
+
 		/* Update the known end of physical memory. */
 		config.physmem_end = max(config.physmem_end, PFN2ADDR(start + count));
-		
+
 		/*
 		 * If confframe is supposed to be inside our zone, then make sure
@@ -714,5 +714,5 @@
 		 */
 		size_t confcount = SIZE2FRAMES(zone_conf_size(count));
-		
+
 		if ((confframe >= start) && (confframe < start + count)) {
 			for (; confframe < start + count; confframe++) {
@@ -721,9 +721,9 @@
 				    KA2PA(config.base), config.kernel_size))
 					continue;
-				
+
 				if (overlaps(addr, PFN2ADDR(confcount),
 				    KA2PA(config.stack_base), config.stack_size))
 					continue;
-				
+
 				bool overlap = false;
 				for (size_t i = 0; i < init.cnt; i++) {
@@ -735,15 +735,15 @@
 					}
 				}
-				
+
 				if (overlap)
 					continue;
-				
+
 				break;
 			}
-			
+
 			if (confframe >= start + count)
 				panic("Cannot find configuration data for zone.");
 		}
-		
+
 		size_t znum = zones_insert_zone(start, count, flags);
 		if (znum == (size_t) -1) {
@@ -751,8 +751,8 @@
 			return (size_t) -1;
 		}
-		
+
 		void *confdata = (void *) PA2KA(PFN2ADDR(confframe));
 		zone_construct(&zones.info[znum], start, count, flags, confdata);
-		
+
 		/* If confdata in zone, mark as unavailable */
 		if ((confframe >= start) && (confframe < start + count)) {
@@ -761,10 +761,10 @@
 				    i - zones.info[znum].base);
 		}
-		
+
 		irq_spinlock_unlock(&zones.lock, true);
-		
+
 		return znum;
 	}
-	
+
 	/* Non-available zone */
 	size_t znum = zones_insert_zone(start, count, flags);
@@ -773,9 +773,9 @@
 		return (size_t) -1;
 	}
-	
+
 	zone_construct(&zones.info[znum], start, count, flags, NULL);
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
-	
+
 	return znum;
 }
@@ -789,12 +789,12 @@
 {
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	size_t znum = find_zone(pfn, 1, hint);
-	
+
 	assert(znum != (size_t) -1);
-	
+
 	zone_get_frame(&zones.info[znum],
 	    pfn - zones.info[znum].base)->parent = data;
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
 }
@@ -803,14 +803,14 @@
 {
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	size_t znum = find_zone(pfn, 1, hint);
-	
+
 	assert(znum != (size_t) -1);
-	
+
 	void *res = zone_get_frame(&zones.info[znum],
 	    pfn - zones.info[znum].base)->parent;
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
-	
+
 	return res;
 }
@@ -831,8 +831,8 @@
 {
 	assert(count > 0);
-	
+
 	size_t hint = pzone ? (*pzone) : 0;
 	pfn_t frame_constraint = ADDR2PFN(constraint);
-	
+
 	/*
 	 * If not told otherwise, we must first reserve the memory.
@@ -840,8 +840,8 @@
 	if (!(flags & FRAME_NO_RESERVE))
 		reserve_force_alloc(count);
-	
+
 loop:
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	/*
 	 * First, find suitable frame zone.
@@ -849,5 +849,5 @@
 	size_t znum = find_free_zone(count, FRAME_TO_ZONE_FLAGS(flags),
 	    frame_constraint, hint);
-	
+
 	/*
 	 * If no memory, reclaim some slab memory,
@@ -858,14 +858,14 @@
 		size_t freed = slab_reclaim(0);
 		irq_spinlock_lock(&zones.lock, true);
-		
+
 		if (freed > 0)
 			znum = find_free_zone(count, FRAME_TO_ZONE_FLAGS(flags),
 			    frame_constraint, hint);
-		
+
 		if (znum == (size_t) -1) {
 			irq_spinlock_unlock(&zones.lock, true);
 			freed = slab_reclaim(SLAB_RECLAIM_ALL);
 			irq_spinlock_lock(&zones.lock, true);
-			
+
 			if (freed > 0)
 				znum = find_free_zone(count, FRAME_TO_ZONE_FLAGS(flags),
@@ -873,27 +873,27 @@
 		}
 	}
-	
+
 	if (znum == (size_t) -1) {
 		if (flags & FRAME_ATOMIC) {
 			irq_spinlock_unlock(&zones.lock, true);
-			
+
 			if (!(flags & FRAME_NO_RESERVE))
 				reserve_free(count);
-			
+
 			return 0;
 		}
-		
+
 		size_t avail = frame_total_free_get_internal();
-		
+
 		irq_spinlock_unlock(&zones.lock, true);
-		
+
 		if (!THREAD)
 			panic("Cannot wait for %zu frames to become available "
 			    "(%zu available).", count, avail);
-		
+
 		/*
 		 * Sleep until some frames are available again.
 		 */
-		
+
 #ifdef CONFIG_DEBUG
 		log(LF_OTHER, LVL_DEBUG,
@@ -901,5 +901,5 @@
 		    "%zu available.", THREAD->tid, count, avail);
 #endif
-		
+
 		/*
 		 * Since the mem_avail_mtx is an active mutex, we need to
@@ -908,34 +908,34 @@
 		ipl_t ipl = interrupts_disable();
 		mutex_lock(&mem_avail_mtx);
-		
+
 		if (mem_avail_req > 0)
 			mem_avail_req = min(mem_avail_req, count);
 		else
 			mem_avail_req = count;
-		
+
 		size_t gen = mem_avail_gen;
-		
+
 		while (gen == mem_avail_gen)
 			condvar_wait(&mem_avail_cv, &mem_avail_mtx);
-		
+
 		mutex_unlock(&mem_avail_mtx);
 		interrupts_restore(ipl);
-		
+
 #ifdef CONFIG_DEBUG
 		log(LF_OTHER, LVL_DEBUG, "Thread %" PRIu64 " woken up.",
 		    THREAD->tid);
 #endif
-		
+
 		goto loop;
 	}
-	
+
 	pfn_t pfn = zone_frame_alloc(&zones.info[znum], count,
 	    frame_constraint) + zones.info[znum].base;
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
-	
+
 	if (pzone)
 		*pzone = znum;
-	
+
 	return PFN2ADDR(pfn);
 }
@@ -960,7 +960,7 @@
 {
 	size_t freed = 0;
-	
+
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	for (size_t i = 0; i < count; i++) {
 		/*
@@ -969,13 +969,13 @@
 		pfn_t pfn = ADDR2PFN(start) + i;
 		size_t znum = find_zone(pfn, 1, 0);
-		
+
 		assert(znum != (size_t) -1);
-		
+
 		freed += zone_frame_free(&zones.info[znum],
 		    pfn - zones.info[znum].base);
 	}
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
-	
+
 	/*
 	 * Signal that some memory has been freed.
@@ -984,19 +984,19 @@
 	 * with TLB shootdown.
 	 */
-	
+
 	ipl_t ipl = interrupts_disable();
 	mutex_lock(&mem_avail_mtx);
-	
+
 	if (mem_avail_req > 0)
 		mem_avail_req -= min(mem_avail_req, freed);
-	
+
 	if (mem_avail_req == 0) {
 		mem_avail_gen++;
 		condvar_broadcast(&mem_avail_cv);
 	}
-	
+
 	mutex_unlock(&mem_avail_mtx);
 	interrupts_restore(ipl);
-	
+
 	if (!(flags & FRAME_NO_RESERVE))
 		reserve_free(freed);
@@ -1024,14 +1024,14 @@
 {
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	/*
 	 * First, find host frame zone for addr.
 	 */
 	size_t znum = find_zone(pfn, 1, 0);
-	
+
 	assert(znum != (size_t) -1);
-	
+
 	zones.info[znum].frames[pfn - zones.info[znum].base].refcount++;
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
 }
@@ -1043,15 +1043,15 @@
 {
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	for (size_t i = 0; i < count; i++) {
 		size_t znum = find_zone(start + i, 1, 0);
-		
+
 		if (znum == (size_t) -1)  /* PFN not found */
 			continue;
-		
+
 		zone_mark_unavailable(&zones.info[znum],
 		    start + i - zones.info[znum].base);
 	}
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
 }
@@ -1068,8 +1068,8 @@
 		condvar_initialize(&mem_avail_cv);
 	}
-	
+
 	/* Tell the architecture to create some memory */
 	frame_low_arch_init();
-	
+
 	if (config.cpu_active == 1) {
 		frame_mark_unavailable(ADDR2PFN(KA2PA(config.base)),
@@ -1077,13 +1077,13 @@
 		frame_mark_unavailable(ADDR2PFN(KA2PA(config.stack_base)),
 		    SIZE2FRAMES(config.stack_size));
-		
+
 		for (size_t i = 0; i < init.cnt; i++)
 			frame_mark_unavailable(ADDR2PFN(init.tasks[i].paddr),
 			    SIZE2FRAMES(init.tasks[i].size));
-		
+
 		if (ballocs.size)
 			frame_mark_unavailable(ADDR2PFN(KA2PA(ballocs.base)),
 			    SIZE2FRAMES(ballocs.size));
-		
+
 		/*
 		 * Blacklist first frame, as allocating NULL would
@@ -1092,5 +1092,5 @@
 		frame_mark_unavailable(0, 1);
 	}
-	
+
 	frame_high_arch_init();
 }
@@ -1113,9 +1113,9 @@
 {
 	uintptr_t limit = KA2PA(config.identity_base) + config.identity_size;
-	
+
 	if (low) {
 		if (*basep > limit)
 			return false;
-		
+
 		if (*basep + *sizep > limit)
 			*sizep = limit - *basep;
@@ -1123,5 +1123,5 @@
 		if (*basep + *sizep <= limit)
 			return false;
-		
+
 		if (*basep <= limit) {
 			*sizep -= limit - *basep;
@@ -1129,5 +1129,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -1139,12 +1139,12 @@
 {
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	uint64_t total = 0;
-	
+
 	for (size_t i = 0; i < zones.count; i++)
 		total += (uint64_t) FRAMES2SIZE(zones.info[i].count);
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
-	
+
 	return total;
 }
@@ -1157,15 +1157,15 @@
 	assert(busy != NULL);
 	assert(free != NULL);
-	
+
 	irq_spinlock_lock(&zones.lock, true);
-	
+
 	*total = 0;
 	*unavail = 0;
 	*busy = 0;
 	*free = 0;
-	
+
 	for (size_t i = 0; i < zones.count; i++) {
 		*total += (uint64_t) FRAMES2SIZE(zones.info[i].count);
-		
+
 		if (zones.info[i].flags & ZONE_AVAILABLE) {
 			*busy += (uint64_t) FRAMES2SIZE(zones.info[i].busy_count);
@@ -1174,5 +1174,5 @@
 			*unavail += (uint64_t) FRAMES2SIZE(zones.info[i].count);
 	}
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
 }
@@ -1190,5 +1190,5 @@
 	printf("[nr] [base address    ] [frames    ] [flags ] [free frames ] [busy frames ]\n");
 #endif
-	
+
 	/*
 	 * Because printing may require allocation of memory, we may not hold
@@ -1201,17 +1201,17 @@
 	 * the listing).
 	 */
-	
+
 	size_t free_lowmem = 0;
 	size_t free_highmem = 0;
 	size_t free_highprio = 0;
-	
+
 	for (size_t i = 0;; i++) {
 		irq_spinlock_lock(&zones.lock, true);
-		
+
 		if (i >= zones.count) {
 			irq_spinlock_unlock(&zones.lock, true);
 			break;
 		}
-		
+
 		pfn_t fbase = zones.info[i].base;
 		uintptr_t base = PFN2ADDR(fbase);
@@ -1220,17 +1220,17 @@
 		size_t free_count = zones.info[i].free_count;
 		size_t busy_count = zones.info[i].busy_count;
-		
+
 		bool available = ((flags & ZONE_AVAILABLE) != 0);
 		bool lowmem = ((flags & ZONE_LOWMEM) != 0);
 		bool highmem = ((flags & ZONE_HIGHMEM) != 0);
 		bool highprio = is_high_priority(fbase, count);
-		
+
 		if (available) {
 			if (lowmem)
 				free_lowmem += free_count;
-			
+
 			if (highmem)
 				free_highmem += free_count;
-			
+
 			if (highprio) {
 				free_highprio += free_count;
@@ -1241,5 +1241,5 @@
 				 * statistics.
 				 */
-				
+
 				for (size_t index = 0; index < count; index++) {
 					if (is_high_priority(fbase + index, 0)) {
@@ -1251,17 +1251,17 @@
 			}
 		}
-		
+
 		irq_spinlock_unlock(&zones.lock, true);
-		
+
 		printf("%-4zu", i);
-		
+
 #ifdef __32_BITS__
 		printf("  %p", (void *) base);
 #endif
-		
+
 #ifdef __64_BITS__
 		printf(" %p", (void *) base);
 #endif
-		
+
 		printf(" %12zu %c%c%c%c%c    ", count,
 		    available ? 'A' : '-',
@@ -1270,27 +1270,27 @@
 		    (flags & ZONE_LOWMEM) ? 'L' : '-',
 		    (flags & ZONE_HIGHMEM) ? 'H' : '-');
-		
+
 		if (available)
 			printf("%14zu %14zu",
 			    free_count, busy_count);
-		
+
 		printf("\n");
 	}
-	
+
 	printf("\n");
-	
+
 	uint64_t size;
 	const char *size_suffix;
-	
+
 	bin_order_suffix(FRAMES2SIZE(free_lowmem), &size, &size_suffix,
 	    false);
 	printf("Available low memory:    %zu frames (%" PRIu64 " %s)\n",
 	    free_lowmem, size, size_suffix);
-	
+
 	bin_order_suffix(FRAMES2SIZE(free_highmem), &size, &size_suffix,
 	    false);
 	printf("Available high memory:   %zu frames (%" PRIu64 " %s)\n",
 	    free_highmem, size, size_suffix);
-	
+
 	bin_order_suffix(FRAMES2SIZE(free_highprio), &size, &size_suffix,
 	    false);
@@ -1308,5 +1308,5 @@
 	irq_spinlock_lock(&zones.lock, true);
 	size_t znum = (size_t) -1;
-	
+
 	for (size_t i = 0; i < zones.count; i++) {
 		if ((i == num) || (PFN2ADDR(zones.info[i].base) == num)) {
@@ -1315,5 +1315,5 @@
 		}
 	}
-	
+
 	if (znum == (size_t) -1) {
 		irq_spinlock_unlock(&zones.lock, true);
@@ -1321,9 +1321,9 @@
 		return;
 	}
-	
+
 	size_t free_lowmem = 0;
 	size_t free_highmem = 0;
 	size_t free_highprio = 0;
-	
+
 	pfn_t fbase = zones.info[znum].base;
 	uintptr_t base = PFN2ADDR(fbase);
@@ -1332,17 +1332,17 @@
 	size_t free_count = zones.info[znum].free_count;
 	size_t busy_count = zones.info[znum].busy_count;
-	
+
 	bool available = ((flags & ZONE_AVAILABLE) != 0);
 	bool lowmem = ((flags & ZONE_LOWMEM) != 0);
 	bool highmem = ((flags & ZONE_HIGHMEM) != 0);
 	bool highprio = is_high_priority(fbase, count);
-	
+
 	if (available) {
 		if (lowmem)
 			free_lowmem = free_count;
-		
+
 		if (highmem)
 			free_highmem = free_count;
-		
+
 		if (highprio) {
 			free_highprio = free_count;
@@ -1353,5 +1353,5 @@
 			 * statistics.
 			 */
-			
+
 			for (size_t index = 0; index < count; index++) {
 				if (is_high_priority(fbase + index, 0)) {
@@ -1363,12 +1363,12 @@
 		}
 	}
-	
+
 	irq_spinlock_unlock(&zones.lock, true);
-	
+
 	uint64_t size;
 	const char *size_suffix;
-	
+
 	bin_order_suffix(FRAMES2SIZE(count), &size, &size_suffix, false);
-	
+
 	printf("Zone number:             %zu\n", znum);
 	printf("Zone base address:       %p\n", (void *) base);
@@ -1381,5 +1381,5 @@
 	    (flags & ZONE_LOWMEM) ? 'L' : '-',
 	    (flags & ZONE_HIGHMEM) ? 'H' : '-');
-	
+
 	if (available) {
 		bin_order_suffix(FRAMES2SIZE(busy_count), &size, &size_suffix,
@@ -1387,20 +1387,20 @@
 		printf("Allocated space:         %zu frames (%" PRIu64 " %s)\n",
 		    busy_count, size, size_suffix);
-		
+
 		bin_order_suffix(FRAMES2SIZE(free_count), &size, &size_suffix,
 		    false);
 		printf("Available space:         %zu frames (%" PRIu64 " %s)\n",
 		    free_count, size, size_suffix);
-		
+
 		bin_order_suffix(FRAMES2SIZE(free_lowmem), &size, &size_suffix,
 		    false);
 		printf("Available low memory:    %zu frames (%" PRIu64 " %s)\n",
 		    free_lowmem, size, size_suffix);
-		
+
 		bin_order_suffix(FRAMES2SIZE(free_highmem), &size, &size_suffix,
 		    false);
 		printf("Available high memory:   %zu frames (%" PRIu64 " %s)\n",
 		    free_highmem, size, size_suffix);
-		
+
 		bin_order_suffix(FRAMES2SIZE(free_highprio), &size, &size_suffix,
 		    false);
Index: kernel/generic/src/mm/km.c
===================================================================
--- kernel/generic/src/mm/km.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/km.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -149,5 +149,5 @@
 	}
 	page_table_unlock(AS_KERNEL, true);
-	
+
 	return vaddr;
 }
@@ -247,5 +247,5 @@
 	assert(framep);
 	assert(!(flags & ~(FRAME_NO_RESERVE | FRAME_ATOMIC)));
-	
+
 	/*
 	 * Allocate a frame, preferably from high memory.
@@ -267,8 +267,8 @@
 		if (!frame)
 			return (uintptr_t) NULL;
-		
+
 		page = PA2KA(frame);
 	}
-	
+
 	*framep = frame;
 	return page;
Index: kernel/generic/src/mm/page.c
===================================================================
--- kernel/generic/src/mm/page.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/page.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -99,5 +99,5 @@
 {
 	assert(page_table_locked(as));
-	
+
 	assert(page_mapping_operations);
 	assert(page_mapping_operations->mapping_insert);
@@ -105,5 +105,5 @@
 	page_mapping_operations->mapping_insert(as, ALIGN_DOWN(page, PAGE_SIZE),
 	    ALIGN_DOWN(frame, FRAME_SIZE), flags);
-	
+
 	/* Repel prefetched accesses to the old mapping. */
 	memory_barrier();
@@ -123,11 +123,11 @@
 {
 	assert(page_table_locked(as));
-	
+
 	assert(page_mapping_operations);
 	assert(page_mapping_operations->mapping_remove);
-	
+
 	page_mapping_operations->mapping_remove(as,
 	    ALIGN_DOWN(page, PAGE_SIZE));
-	
+
 	/* Repel prefetched accesses to the old mapping. */
 	memory_barrier();
@@ -148,8 +148,8 @@
 {
 	assert(nolock || page_table_locked(as));
-	
+
 	assert(page_mapping_operations);
 	assert(page_mapping_operations->mapping_find);
-	
+
 	return page_mapping_operations->mapping_find(as,
 	    ALIGN_DOWN(page, PAGE_SIZE), nolock, pte);
@@ -169,8 +169,8 @@
 {
 	assert(nolock || page_table_locked(as));
-	
+
 	assert(page_mapping_operations);
 	assert(page_mapping_operations->mapping_find);
-	
+
 	page_mapping_operations->mapping_update(as,
 	    ALIGN_DOWN(page, PAGE_SIZE), nolock, pte);
@@ -186,5 +186,5 @@
 	assert(page_mapping_operations);
 	assert(page_mapping_operations->mapping_make_global);
-	
+
 	return page_mapping_operations->mapping_make_global(base, size);
 }
@@ -193,5 +193,5 @@
 {
 	page_table_lock(AS, true);
-	
+
 	pte_t pte;
 	bool found = page_mapping_find(AS, virt, false, &pte);
@@ -200,10 +200,10 @@
 		return ENOENT;
 	}
-	
+
 	*phys = PTE_GET_FRAME(&pte) +
 	    (virt - ALIGN_DOWN(virt, PAGE_SIZE));
-	
+
 	page_table_unlock(AS, true);
-	
+
 	return EOK;
 }
@@ -221,5 +221,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = copy_to_uspace(phys_ptr, &phys, sizeof(phys));
 	return (sys_errno_t) rc;
Index: kernel/generic/src/mm/slab.c
===================================================================
--- kernel/generic/src/mm/slab.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/slab.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -186,15 +186,15 @@
 {
 	size_t zone = 0;
-	
+
 	uintptr_t data_phys =
 	    frame_alloc_generic(cache->frames, flags, 0, &zone);
 	if (!data_phys)
 		return NULL;
-	
+
 	void *data = (void *) PA2KA(data_phys);
-	
+
 	slab_t *slab;
 	size_t fsize;
-	
+
 	if (!(cache->flags & SLAB_CACHE_SLINSIDE)) {
 		slab = slab_alloc(slab_extern_cache, flags);
@@ -207,18 +207,18 @@
 		slab = data + fsize - sizeof(*slab);
 	}
-	
+
 	/* Fill in slab structures */
 	size_t i;
 	for (i = 0; i < cache->frames; i++)
 		frame_set_parent(ADDR2PFN(KA2PA(data)) + i, slab, zone);
-	
+
 	slab->start = data;
 	slab->available = cache->objects;
 	slab->nextavail = 0;
 	slab->cache = cache;
-	
+
 	for (i = 0; i < cache->objects; i++)
 		*((size_t *) (slab->start + i * cache->size)) = i + 1;
-	
+
 	atomic_inc(&cache->allocated_slabs);
 	return slab;
@@ -235,7 +235,7 @@
 	if (!(cache->flags & SLAB_CACHE_SLINSIDE))
 		slab_free(slab_extern_cache, slab);
-	
+
 	atomic_dec(&cache->allocated_slabs);
-	
+
 	return cache->frames;
 }
@@ -263,19 +263,19 @@
 	if (!slab)
 		slab = obj2slab(obj);
-	
+
 	assert(slab->cache == cache);
-	
+
 	size_t freed = 0;
-	
+
 	if (cache->destructor)
 		freed = cache->destructor(obj);
-	
+
 	irq_spinlock_lock(&cache->slablock, true);
 	assert(slab->available < cache->objects);
-	
+
 	*((size_t *) obj) = slab->nextavail;
 	slab->nextavail = (obj - slab->start) / cache->size;
 	slab->available++;
-	
+
 	/* Move it to correct list */
 	if (slab->available == cache->objects) {
@@ -283,5 +283,5 @@
 		list_remove(&slab->link);
 		irq_spinlock_unlock(&cache->slablock, true);
-		
+
 		return freed + slab_space_free(cache, slab);
 	} else if (slab->available == 1) {
@@ -290,5 +290,5 @@
 		list_prepend(&slab->link, &cache->partial_slabs);
 	}
-	
+
 	irq_spinlock_unlock(&cache->slablock, true);
 	return freed;
@@ -303,7 +303,7 @@
 {
 	irq_spinlock_lock(&cache->slablock, true);
-	
+
 	slab_t *slab;
-	
+
 	if (list_empty(&cache->partial_slabs)) {
 		/*
@@ -319,5 +319,5 @@
 		if (!slab)
 			return NULL;
-		
+
 		irq_spinlock_lock(&cache->slablock, true);
 	} else {
@@ -326,16 +326,16 @@
 		list_remove(&slab->link);
 	}
-	
+
 	void *obj = slab->start + slab->nextavail * cache->size;
 	slab->nextavail = *((size_t *) obj);
 	slab->available--;
-	
+
 	if (!slab->available)
 		list_prepend(&slab->link, &cache->full_slabs);
 	else
 		list_prepend(&slab->link, &cache->partial_slabs);
-	
+
 	irq_spinlock_unlock(&cache->slablock, true);
-	
+
 	if ((cache->constructor) && (cache->constructor(obj, flags) != EOK)) {
 		/* Bad, bad, construction failed */
@@ -343,5 +343,5 @@
 		return NULL;
 	}
-	
+
 	return obj;
 }
@@ -361,5 +361,5 @@
 	slab_magazine_t *mag = NULL;
 	link_t *cur;
-	
+
 	irq_spinlock_lock(&cache->maglock, true);
 	if (!list_empty(&cache->magazines)) {
@@ -368,5 +368,5 @@
 		else
 			cur = list_last(&cache->magazines);
-		
+
 		mag = list_get_instance(cur, slab_magazine_t, link);
 		list_remove(&mag->link);
@@ -385,8 +385,8 @@
 {
 	irq_spinlock_lock(&cache->maglock, true);
-	
+
 	list_prepend(&mag->link, &cache->magazines);
 	atomic_inc(&cache->magazine_counter);
-	
+
 	irq_spinlock_unlock(&cache->maglock, true);
 }
@@ -402,12 +402,12 @@
 	size_t i;
 	size_t frames = 0;
-	
+
 	for (i = 0; i < mag->busy; i++) {
 		frames += slab_obj_destroy(cache, mag->objs[i], NULL);
 		atomic_dec(&cache->cached_objs);
 	}
-	
+
 	slab_free(&mag_cache, mag);
-	
+
 	return frames;
 }
@@ -420,11 +420,11 @@
 	slab_magazine_t *cmag = cache->mag_cache[CPU->id].current;
 	slab_magazine_t *lastmag = cache->mag_cache[CPU->id].last;
-	
+
 	assert(irq_spinlock_locked(&cache->mag_cache[CPU->id].lock));
-	
+
 	if (cmag) { /* First try local CPU magazines */
 		if (cmag->busy)
 			return cmag;
-		
+
 		if ((lastmag) && (lastmag->busy)) {
 			cache->mag_cache[CPU->id].current = lastmag;
@@ -433,16 +433,16 @@
 		}
 	}
-	
+
 	/* Local magazines are empty, import one from magazine list */
 	slab_magazine_t *newmag = get_mag_from_cache(cache, 1);
 	if (!newmag)
 		return NULL;
-	
+
 	if (lastmag)
 		magazine_destroy(cache, lastmag);
-	
+
 	cache->mag_cache[CPU->id].last = cmag;
 	cache->mag_cache[CPU->id].current = newmag;
-	
+
 	return newmag;
 }
@@ -457,7 +457,7 @@
 	if (!CPU)
 		return NULL;
-	
+
 	irq_spinlock_lock(&cache->mag_cache[CPU->id].lock, true);
-	
+
 	slab_magazine_t *mag = get_full_current_mag(cache);
 	if (!mag) {
@@ -465,10 +465,10 @@
 		return NULL;
 	}
-	
+
 	void *obj = mag->objs[--mag->busy];
 	irq_spinlock_unlock(&cache->mag_cache[CPU->id].lock, true);
-	
+
 	atomic_dec(&cache->cached_objs);
-	
+
 	return obj;
 }
@@ -487,11 +487,11 @@
 	slab_magazine_t *cmag = cache->mag_cache[CPU->id].current;
 	slab_magazine_t *lastmag = cache->mag_cache[CPU->id].last;
-	
+
 	assert(irq_spinlock_locked(&cache->mag_cache[CPU->id].lock));
-	
+
 	if (cmag) {
 		if (cmag->busy < cmag->size)
 			return cmag;
-		
+
 		if ((lastmag) && (lastmag->busy < lastmag->size)) {
 			cache->mag_cache[CPU->id].last = cmag;
@@ -500,7 +500,7 @@
 		}
 	}
-	
+
 	/* current | last are full | nonexistent, allocate new */
-	
+
 	/*
 	 * We do not want to sleep just because of caching,
@@ -513,16 +513,16 @@
 	if (!newmag)
 		return NULL;
-	
+
 	newmag->size = SLAB_MAG_SIZE;
 	newmag->busy = 0;
-	
+
 	/* Flush last to magazine list */
 	if (lastmag)
 		put_mag_to_cache(cache, lastmag);
-	
+
 	/* Move current as last, save new as current */
 	cache->mag_cache[CPU->id].last = cmag;
 	cache->mag_cache[CPU->id].current = newmag;
-	
+
 	return newmag;
 }
@@ -537,7 +537,7 @@
 	if (!CPU)
 		return -1;
-	
+
 	irq_spinlock_lock(&cache->mag_cache[CPU->id].lock, true);
-	
+
 	slab_magazine_t *mag = make_empty_current_mag(cache);
 	if (!mag) {
@@ -545,11 +545,11 @@
 		return -1;
 	}
-	
+
 	mag->objs[mag->busy++] = obj;
-	
+
 	irq_spinlock_unlock(&cache->mag_cache[CPU->id].lock, true);
-	
+
 	atomic_inc(&cache->cached_objs);
-	
+
 	return 0;
 }
@@ -578,8 +578,8 @@
 	size_t objects = comp_objects(cache);
 	size_t ssize = FRAMES2SIZE(cache->frames);
-	
+
 	if (cache->flags & SLAB_CACHE_SLINSIDE)
 		ssize -= sizeof(slab_t);
-	
+
 	return ssize - objects * cache->size;
 }
@@ -591,9 +591,9 @@
 {
 	assert(_slab_initialized >= 2);
-	
+
 	cache->mag_cache = slab_alloc(&slab_mag_cache, FRAME_ATOMIC);
 	if (!cache->mag_cache)
 		return false;
-	
+
 	size_t i;
 	for (i = 0; i < config.cpu_count; i++) {
@@ -602,5 +602,5 @@
 		    "slab.cache.mag_cache[].lock");
 	}
-	
+
 	return true;
 }
@@ -614,44 +614,44 @@
 {
 	assert(size > 0);
-	
+
 	memsetb(cache, sizeof(*cache), 0);
 	cache->name = name;
-	
+
 	if (align < sizeof(sysarg_t))
 		align = sizeof(sysarg_t);
-	
+
 	size = ALIGN_UP(size, align);
-	
+
 	cache->size = size;
 	cache->constructor = constructor;
 	cache->destructor = destructor;
 	cache->flags = flags;
-	
+
 	list_initialize(&cache->full_slabs);
 	list_initialize(&cache->partial_slabs);
 	list_initialize(&cache->magazines);
-	
+
 	irq_spinlock_initialize(&cache->slablock, "slab.cache.slablock");
 	irq_spinlock_initialize(&cache->maglock, "slab.cache.maglock");
-	
+
 	if (!(cache->flags & SLAB_CACHE_NOMAGAZINE))
 		(void) make_magcache(cache);
-	
+
 	/* Compute slab sizes, object counts in slabs etc. */
 	if (cache->size < SLAB_INSIDE_SIZE)
 		cache->flags |= SLAB_CACHE_SLINSIDE;
-	
+
 	/* Minimum slab frames */
 	cache->frames = SIZE2FRAMES(cache->size);
-	
+
 	while (badness(cache) > SLAB_MAX_BADNESS(cache))
 		cache->frames <<= 1;
-	
+
 	cache->objects = comp_objects(cache);
-	
+
 	/* If info fits in, put it inside */
 	if (badness(cache) > sizeof(slab_t))
 		cache->flags |= SLAB_CACHE_SLINSIDE;
-	
+
 	/* Add cache to cache list */
 	irq_spinlock_lock(&slab_cache_lock, true);
@@ -670,5 +670,5 @@
 	_slab_cache_create(cache, name, size, align, constructor, destructor,
 	    flags);
-	
+
 	return cache;
 }
@@ -685,5 +685,5 @@
 	if (cache->flags & SLAB_CACHE_NOMAGAZINE)
 		return 0; /* Nothing to do */
-	
+
 	/*
 	 * We count up to original magazine count to avoid
@@ -691,8 +691,8 @@
 	 */
 	atomic_count_t magcount = atomic_get(&cache->magazine_counter);
-	
+
 	slab_magazine_t *mag;
 	size_t frames = 0;
-	
+
 	while ((magcount--) && (mag = get_mag_from_cache(cache, 0))) {
 		frames += magazine_destroy(cache, mag);
@@ -700,5 +700,5 @@
 			break;
 	}
-	
+
 	if (flags & SLAB_RECLAIM_ALL) {
 		/* Free cpu-bound magazines */
@@ -707,19 +707,19 @@
 		for (i = 0; i < config.cpu_count; i++) {
 			irq_spinlock_lock(&cache->mag_cache[i].lock, true);
-			
+
 			mag = cache->mag_cache[i].current;
 			if (mag)
 				frames += magazine_destroy(cache, mag);
 			cache->mag_cache[i].current = NULL;
-			
+
 			mag = cache->mag_cache[i].last;
 			if (mag)
 				frames += magazine_destroy(cache, mag);
 			cache->mag_cache[i].last = NULL;
-			
+
 			irq_spinlock_unlock(&cache->mag_cache[i].lock, true);
 		}
 	}
-	
+
 	return frames;
 }
@@ -731,9 +731,9 @@
 {
 	ipl_t ipl = interrupts_disable();
-	
+
 	if ((cache->flags & SLAB_CACHE_NOMAGAZINE) ||
 	    (magazine_obj_put(cache, obj)))
 		slab_obj_destroy(cache, obj, slab);
-	
+
 	interrupts_restore(ipl);
 	atomic_dec(&cache->allocated_objs);
@@ -753,5 +753,5 @@
 	list_remove(&cache->link);
 	irq_spinlock_unlock(&slab_cache_lock, true);
-	
+
 	/*
 	 * Do not lock anything, we assume the software is correct and
@@ -759,18 +759,18 @@
 	 *
 	 */
-	
+
 	/* Destroy all magazines */
 	_slab_reclaim(cache, SLAB_RECLAIM_ALL);
-	
+
 	/* All slabs must be empty */
 	if ((!list_empty(&cache->full_slabs)) ||
 	    (!list_empty(&cache->partial_slabs)))
 		panic("Destroying cache that is not empty.");
-	
+
 	if (!(cache->flags & SLAB_CACHE_NOMAGAZINE)) {
 		slab_t *mag_slab = obj2slab(cache->mag_cache);
 		_slab_free(mag_slab->cache, cache->mag_cache, mag_slab);
 	}
-	
+
 	slab_free(&slab_cache_cache, cache);
 }
@@ -783,18 +783,18 @@
 	/* Disable interrupts to avoid deadlocks with interrupt handlers */
 	ipl_t ipl = interrupts_disable();
-	
+
 	void *result = NULL;
-	
+
 	if (!(cache->flags & SLAB_CACHE_NOMAGAZINE))
 		result = magazine_obj_get(cache);
-	
+
 	if (!result)
 		result = slab_obj_create(cache, flags);
-	
+
 	interrupts_restore(ipl);
-	
+
 	if (result)
 		atomic_inc(&cache->allocated_objs);
-	
+
 	return result;
 }
@@ -812,12 +812,12 @@
 {
 	irq_spinlock_lock(&slab_cache_lock, true);
-	
+
 	size_t frames = 0;
 	list_foreach(slab_cache_list, link, slab_cache_t, cache) {
 		frames += _slab_reclaim(cache, flags);
 	}
-	
+
 	irq_spinlock_unlock(&slab_cache_lock, true);
-	
+
 	return frames;
 }
@@ -828,5 +828,5 @@
 	printf("[cache name      ] [size  ] [pages ] [obj/pg] [slabs ]"
 	    " [cached] [alloc ] [ctl]\n");
-	
+
 	size_t skip = 0;
 	while (true) {
@@ -853,7 +853,7 @@
 		 * statistics.
 		 */
-		
+
 		irq_spinlock_lock(&slab_cache_lock, true);
-		
+
 		link_t *cur;
 		size_t i;
@@ -861,14 +861,14 @@
 		    (i < skip) && (cur != &slab_cache_list.head);
 		    i++, cur = cur->next);
-		
+
 		if (cur == &slab_cache_list.head) {
 			irq_spinlock_unlock(&slab_cache_lock, true);
 			break;
 		}
-		
+
 		skip++;
-		
+
 		slab_cache_t *cache = list_get_instance(cur, slab_cache_t, link);
-		
+
 		const char *name = cache->name;
 		size_t frames = cache->frames;
@@ -879,7 +879,7 @@
 		long allocated_objs = atomic_get(&cache->allocated_objs);
 		unsigned int flags = cache->flags;
-		
+
 		irq_spinlock_unlock(&slab_cache_lock, true);
-		
+
 		printf("%-18s %8zu %8zu %8zu %8ld %8ld %8ld %-5s\n",
 		    name, size, frames, objects, allocated_slabs,
@@ -896,18 +896,18 @@
 	    sizeof(uintptr_t), NULL, NULL, SLAB_CACHE_NOMAGAZINE |
 	    SLAB_CACHE_SLINSIDE);
-	
+
 	/* Initialize slab_cache cache */
 	_slab_cache_create(&slab_cache_cache, "slab_cache_cache",
 	    sizeof(slab_cache_cache), sizeof(uintptr_t), NULL, NULL,
 	    SLAB_CACHE_NOMAGAZINE | SLAB_CACHE_SLINSIDE);
-	
+
 	/* Initialize external slab cache */
 	slab_extern_cache = slab_cache_create("slab_t", sizeof(slab_t), 0,
 	    NULL, NULL, SLAB_CACHE_SLINSIDE | SLAB_CACHE_MAGDEFERRED);
-	
+
 	/* Initialize structures for malloc */
 	size_t i;
 	size_t size;
-	
+
 	for (i = 0, size = (1 << SLAB_MIN_MALLOC_W);
 	    i < (SLAB_MAX_MALLOC_W - SLAB_MIN_MALLOC_W + 1);
@@ -916,5 +916,5 @@
 		    NULL, NULL, SLAB_CACHE_MAGDEFERRED);
 	}
-	
+
 #ifdef CONFIG_DEBUG
 	_slab_initialized = 1;
@@ -934,20 +934,20 @@
 	_slab_initialized = 2;
 #endif
-	
+
 	_slab_cache_create(&slab_mag_cache, "slab_mag_cache",
 	    sizeof(slab_mag_cache_t) * config.cpu_count, sizeof(uintptr_t),
 	    NULL, NULL, SLAB_CACHE_NOMAGAZINE | SLAB_CACHE_SLINSIDE);
-	
+
 	irq_spinlock_lock(&slab_cache_lock, false);
-	
+
 	list_foreach(slab_cache_list, link, slab_cache_t, slab) {
 		if ((slab->flags & SLAB_CACHE_MAGDEFERRED) !=
 		    SLAB_CACHE_MAGDEFERRED)
 			continue;
-		
+
 		(void) make_magcache(slab);
 		slab->flags &= ~SLAB_CACHE_MAGDEFERRED;
 	}
-	
+
 	irq_spinlock_unlock(&slab_cache_lock, false);
 }
@@ -957,10 +957,10 @@
 	assert(_slab_initialized);
 	assert(size <= (1 << SLAB_MAX_MALLOC_W));
-	
+
 	if (size < (1 << SLAB_MIN_MALLOC_W))
 		size = (1 << SLAB_MIN_MALLOC_W);
-	
+
 	uint8_t idx = fnzb(size - 1) - SLAB_MIN_MALLOC_W + 1;
-	
+
 	return slab_alloc(malloc_caches[idx], flags);
 }
@@ -970,24 +970,24 @@
 	assert(_slab_initialized);
 	assert(size <= (1 << SLAB_MAX_MALLOC_W));
-	
+
 	void *new_ptr;
-	
+
 	if (size > 0) {
 		if (size < (1 << SLAB_MIN_MALLOC_W))
 			size = (1 << SLAB_MIN_MALLOC_W);
 		uint8_t idx = fnzb(size - 1) - SLAB_MIN_MALLOC_W + 1;
-		
+
 		new_ptr = slab_alloc(malloc_caches[idx], flags);
 	} else
 		new_ptr = NULL;
-	
+
 	if ((new_ptr != NULL) && (ptr != NULL)) {
 		slab_t *slab = obj2slab(ptr);
 		memcpy(new_ptr, ptr, min(size, slab->cache->size));
 	}
-	
+
 	if (ptr != NULL)
 		free(ptr);
-	
+
 	return new_ptr;
 }
@@ -997,5 +997,5 @@
 	if (!ptr)
 		return;
-	
+
 	slab_t *slab = obj2slab(ptr);
 	_slab_free(slab->cache, ptr, slab);
Index: kernel/generic/src/mm/tlb.c
===================================================================
--- kernel/generic/src/mm/tlb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/mm/tlb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -87,12 +87,12 @@
 	CPU->tlb_active = false;
 	irq_spinlock_lock(&tlblock, false);
-	
+
 	size_t i;
 	for (i = 0; i < config.cpu_count; i++) {
 		if (i == CPU->id)
 			continue;
-		
+
 		cpu_t *cpu = &cpus[i];
-		
+
 		irq_spinlock_lock(&cpu->lock, false);
 		if (cpu->tlb_messages_count == TLB_MESSAGE_QUEUE_LEN) {
@@ -118,7 +118,7 @@
 		irq_spinlock_unlock(&cpu->lock, false);
 	}
-	
+
 	tlb_shootdown_ipi_send();
-	
+
 busy_wait:
 	for (i = 0; i < config.cpu_count; i++) {
@@ -126,5 +126,5 @@
 			goto busy_wait;
 	}
-	
+
 	return ipl;
 }
@@ -153,12 +153,12 @@
 {
 	assert(CPU);
-	
+
 	CPU->tlb_active = false;
 	irq_spinlock_lock(&tlblock, false);
 	irq_spinlock_unlock(&tlblock, false);
-	
+
 	irq_spinlock_lock(&CPU->lock, false);
 	assert(CPU->tlb_messages_count <= TLB_MESSAGE_QUEUE_LEN);
-	
+
 	size_t i;
 	for (i = 0; i < CPU->tlb_messages_count; i++) {
@@ -167,5 +167,5 @@
 		uintptr_t page = CPU->tlb_messages[i].page;
 		size_t count = CPU->tlb_messages[i].count;
-		
+
 		switch (type) {
 		case TLB_INVL_ALL:
@@ -183,9 +183,9 @@
 			break;
 		}
-		
+
 		if (type == TLB_INVL_ALL)
 			break;
 	}
-	
+
 	CPU->tlb_messages_count = 0;
 	irq_spinlock_unlock(&CPU->lock, false);
Index: kernel/generic/src/printf/printf.c
===================================================================
--- kernel/generic/src/printf/printf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/printf/printf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,11 +40,11 @@
 	int ret;
 	va_list args;
-	
+
 	va_start(args, fmt);
-	
+
 	ret = vprintf(fmt, args);
-	
+
 	va_end(args);
-	
+
 	return ret;
 }
Index: kernel/generic/src/printf/printf_core.c
===================================================================
--- kernel/generic/src/printf/printf_core.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/printf/printf_core.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -157,5 +157,5 @@
 	if (str == NULL)
 		return printf_putnchars(nullstr, str_size(nullstr), ps);
-	
+
 	return ps->str_write((void *) str, str_size(str), ps->data);
 }
@@ -173,5 +173,5 @@
 	if (!ascii_check(ch))
 		return ps->str_write((void *) &invalch, 1, ps->data);
-	
+
 	return ps->str_write(&ch, 1, ps->data);
 }
@@ -189,5 +189,5 @@
 	if (!chr_check(ch))
 		return ps->str_write((void *) &invalch, 1, ps->data);
-	
+
 	return ps->wstr_write(&ch, sizeof(wchar_t), ps->data);
 }
@@ -215,8 +215,8 @@
 		}
 	}
-	
+
 	if (printf_putchar(ch, ps) > 0)
 		counter++;
-	
+
 	while (--width > 0) {
 		/*
@@ -227,5 +227,5 @@
 			counter++;
 	}
-	
+
 	return (int) (counter);
 }
@@ -253,8 +253,8 @@
 		}
 	}
-	
+
 	if (printf_putwchar(ch, ps) > 0)
 		counter++;
-	
+
 	while (--width > 0) {
 		/*
@@ -265,5 +265,5 @@
 			counter++;
 	}
-	
+
 	return (int) (counter);
 }
@@ -283,10 +283,10 @@
 	if (str == NULL)
 		return printf_putstr(nullstr, ps);
-	
+
 	/* Print leading spaces. */
 	size_t strw = str_length(str);
 	if ((precision == 0) || (precision > strw))
 		precision = strw;
-	
+
 	/* Left padding */
 	size_t counter = 0;
@@ -298,5 +298,5 @@
 		}
 	}
-	
+
 	/* Part of @a str fitting into the alloted space. */
 	int retval;
@@ -331,10 +331,10 @@
 	if (str == NULL)
 		return printf_putstr(nullstr, ps);
-	
+
 	/* Print leading spaces. */
 	size_t strw = wstr_length(str);
 	if ((precision == 0) || (precision > strw))
 		precision = strw;
-	
+
 	/* Left padding */
 	size_t counter = 0;
@@ -346,5 +346,5 @@
 		}
 	}
-	
+
 	/* Part of @a wstr fitting into the alloted space. */
 	int retval;
@@ -352,7 +352,7 @@
 	if ((retval = printf_wputnchars(str, size, ps)) < 0)
 		return -counter;
-	
+
 	counter += retval;
-	
+
 	/* Right padding */
 	while (width-- > 0) {
@@ -385,14 +385,14 @@
 	else
 		digits = digits_small;
-	
+
 	char data[PRINT_NUMBER_BUFFER_SIZE];
 	char *ptr = &data[PRINT_NUMBER_BUFFER_SIZE - 1];
-	
+
 	/* Size of number with all prefixes and signs */
 	int size = 0;
-	
+
 	/* Put zero at end of string */
 	*ptr-- = 0;
-	
+
 	if (num == 0) {
 		*ptr-- = '0';
@@ -404,8 +404,8 @@
 		} while (num /= base);
 	}
-	
+
 	/* Size of plain number */
 	int number_size = size;
-	
+
 	/*
 	 * Collect the sum of all prefixes/signs/etc. to calculate padding and
@@ -426,5 +426,5 @@
 		}
 	}
-	
+
 	char sgn = 0;
 	if (flags & __PRINTF_FLAG_SIGNED) {
@@ -440,8 +440,8 @@
 		}
 	}
-	
+
 	if (flags & __PRINTF_FLAG_LEFTALIGNED)
 		flags &= ~__PRINTF_FLAG_ZEROPADDED;
-	
+
 	/*
 	 * If the number is left-aligned or precision is specified then
@@ -452,5 +452,5 @@
 			precision = width - size + number_size;
 	}
-	
+
 	/* Print leading spaces */
 	if (number_size > precision) {
@@ -458,8 +458,8 @@
 		precision = number_size;
 	}
-	
+
 	width -= precision + size - number_size;
 	size_t counter = 0;
-	
+
 	if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
 		while (width-- > 0) {
@@ -468,5 +468,5 @@
 		}
 	}
-	
+
 	/* Print sign */
 	if (sgn) {
@@ -474,5 +474,5 @@
 			counter++;
 	}
-	
+
 	/* Print prefix */
 	if (flags & __PRINTF_FLAG_PREFIX) {
@@ -507,5 +507,5 @@
 		}
 	}
-	
+
 	/* Print leading zeroes */
 	precision -= number_size;
@@ -514,17 +514,17 @@
 			counter++;
 	}
-	
+
 	/* Print the number itself */
 	int retval;
 	if ((retval = printf_putstr(++ptr, ps)) > 0)
 		counter += retval;
-	
+
 	/* Print trailing spaces */
-	
+
 	while (width-- > 0) {
 		if (printf_putchar(' ', ps) == 1)
 			counter++;
 	}
-	
+
 	return ((int) counter);
 }
@@ -624,15 +624,15 @@
 	size_t nxt = 0;  /* Index of the next character from fmt */
 	size_t j = 0;    /* Index to the first not printed nonformating character */
-	
+
 	size_t counter = 0;   /* Number of characters printed */
 	int retval;           /* Return values from nested functions */
-	
+
 	while (true) {
 		i = nxt;
 		wchar_t uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
-		
+
 		if (uc == 0)
 			break;
-		
+
 		/* Control character */
 		if (uc == '%') {
@@ -646,11 +646,11 @@
 				counter += retval;
 			}
-			
+
 			j = i;
-			
+
 			/* Parse modifiers */
 			uint32_t flags = 0;
 			bool end = false;
-			
+
 			do {
 				i = nxt;
@@ -676,5 +676,5 @@
 				};
 			} while (!end);
-			
+
 			/* Width & '*' operator */
 			int width = 0;
@@ -683,5 +683,5 @@
 					width *= 10;
 					width += uc - '0';
-					
+
 					i = nxt;
 					uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
@@ -702,5 +702,5 @@
 				}
 			}
-			
+
 			/* Precision and '*' operator */
 			int precision = 0;
@@ -712,5 +712,5 @@
 						precision *= 10;
 						precision += uc - '0';
-						
+
 						i = nxt;
 						uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
@@ -731,7 +731,7 @@
 				}
 			}
-			
+
 			qualifier_t qualifier;
-			
+
 			switch (uc) {
 			case 't':
@@ -780,7 +780,7 @@
 				qualifier = PrintfQualifierInt;
 			}
-			
+
 			unsigned int base = 10;
-			
+
 			switch (uc) {
 			/*
@@ -792,10 +792,10 @@
 				else
 					retval = print_str(va_arg(ap, char *), width, precision, flags, ps);
-				
+
 				if (retval < 0) {
 					counter = -counter;
 					goto out;
 				}
-				
+
 				counter += retval;
 				j = nxt;
@@ -806,14 +806,14 @@
 				else
 					retval = print_char(va_arg(ap, unsigned int), width, flags, ps);
-				
+
 				if (retval < 0) {
 					counter = -counter;
 					goto out;
 				};
-				
+
 				counter += retval;
 				j = nxt;
 				goto next_char;
-			
+
 			/*
 			 * Integer values
@@ -847,10 +847,10 @@
 				base = 16;
 				break;
-			
+
 			/* Percentile itself */
 			case '%':
 				j = i;
 				goto next_char;
-			
+
 			/*
 			 * Bad formatting.
@@ -863,9 +863,9 @@
 				goto next_char;
 			}
-			
+
 			/* Print integers */
 			size_t size;
 			uint64_t number;
-			
+
 			switch (qualifier) {
 			case PrintfQualifierByte:
@@ -907,5 +907,5 @@
 				goto out;
 			}
-			
+
 			if ((retval = print_number(number, width, precision,
 			    base, flags, ps)) < 0) {
@@ -913,5 +913,5 @@
 				goto out;
 			}
-			
+
 			counter += retval;
 			j = nxt;
@@ -920,5 +920,5 @@
 		;
 	}
-	
+
 	if (i > j) {
 		if ((retval = printf_putnchars(&fmt[j], i - j, ps)) < 0) {
@@ -929,5 +929,5 @@
 		counter += retval;
 	}
-	
+
 out:
 	return ((int) counter);
Index: kernel/generic/src/printf/snprintf.c
===================================================================
--- kernel/generic/src/printf/snprintf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/printf/snprintf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,10 +40,10 @@
 	int ret;
 	va_list args;
-	
+
 	va_start(args, fmt);
 	ret = vsnprintf(str, size, fmt, args);
-	
+
 	va_end(args);
-	
+
 	return ret;
 }
Index: kernel/generic/src/printf/vprintf.c
===================================================================
--- kernel/generic/src/printf/vprintf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/printf/vprintf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,10 +45,10 @@
 	size_t offset = 0;
 	size_t chars = 0;
-	
+
 	while (offset < size) {
 		putchar(str_decode(str, &offset, size));
 		chars++;
 	}
-	
+
 	return chars;
 }
@@ -58,5 +58,5 @@
 	size_t offset = 0;
 	size_t chars = 0;
-	
+
 	while (offset < size) {
 		putchar(str[chars]);
@@ -64,5 +64,5 @@
 		offset += sizeof(wchar_t);
 	}
-	
+
 	return chars;
 }
@@ -73,10 +73,10 @@
 	size_t chars = 0;
 	wchar_t uc;
-	
+
 	while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) {
 		putchar(uc);
 		chars++;
 	}
-	
+
 	return chars;
 }
@@ -89,5 +89,5 @@
 		NULL
 	};
-	
+
 	return printf_core(fmt, &ps, ap);
 }
Index: kernel/generic/src/printf/vsnprintf.c
===================================================================
--- kernel/generic/src/printf/vsnprintf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/printf/vsnprintf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,8 +65,8 @@
 {
 	size_t left = data->size - data->len;
-	
+
 	if (left == 0)
 		return ((int) size);
-	
+
 	if (left == 1) {
 		/* We have only one free byte left in buffer
@@ -77,5 +77,5 @@
 		return ((int) size);
 	}
-	
+
 	if (left <= size) {
 		/* We do not have enough space for the whole string
@@ -84,29 +84,29 @@
 		 */
 		size_t index = 0;
-		
+
 		while (index < size) {
 			wchar_t uc = str_decode(str, &index, size);
-			
+
 			if (chr_encode(uc, data->dst, &data->len, data->size - 1) != EOK)
 				break;
 		}
-		
+
 		/* Put trailing zero at end, but not count it
 		 * into data->len so it could be rewritten next time
 		 */
 		data->dst[data->len] = 0;
-		
+
 		return ((int) size);
 	}
-	
+
 	/* Buffer is big enough to print the whole string */
 	memcpy((void *)(data->dst + data->len), (void *) str, size);
 	data->len += size;
-	
+
 	/* Put trailing zero at end, but not count it
 	 * into data->len so it could be rewritten next time
 	 */
 	data->dst[data->len] = 0;
-	
+
 	return ((int) size);
 }
@@ -132,11 +132,11 @@
 {
 	size_t index = 0;
-	
+
 	while (index < (size / sizeof(wchar_t))) {
 		size_t left = data->size - data->len;
-		
+
 		if (left == 0)
 			return ((int) size);
-		
+
 		if (left == 1) {
 			/* We have only one free byte left in buffer
@@ -147,16 +147,16 @@
 			return ((int) size);
 		}
-		
+
 		if (chr_encode(str[index], data->dst, &data->len, data->size - 1) != EOK)
 			break;
-		
+
 		index++;
 	}
-	
+
 	/* Put trailing zero at end, but not count it
 	 * into data->len so it could be rewritten next time
 	 */
 	data->dst[data->len] = 0;
-	
+
 	return ((int) size);
 }
@@ -174,9 +174,9 @@
 		&data
 	};
-	
+
 	/* Print 0 at end of string - fix the case that nothing will be printed */
 	if (size > 0)
 		str[0] = 0;
-	
+
 	/* vsnprintf_write ensures that str will be terminated by zero. */
 	return printf_core(fmt, &ps, ap);
Index: kernel/generic/src/proc/program.c
===================================================================
--- kernel/generic/src/proc/program.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/proc/program.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 	if (!prg->task)
 		return ELIMIT;
-	
+
 	/*
 	 * Create the stack address space area.
@@ -94,8 +94,8 @@
 		return ENOMEM;
 	}
-	
+
 	uspace_arg_t *kernel_uarg = (uspace_arg_t *)
 	    malloc(sizeof(uspace_arg_t), 0);
-	
+
 	kernel_uarg->uspace_entry = (void *) entry_addr;
 	kernel_uarg->uspace_stack = (void *) virt;
@@ -104,5 +104,5 @@
 	kernel_uarg->uspace_thread_arg = NULL;
 	kernel_uarg->uspace_uarg = NULL;
-	
+
 	/*
 	 * Create the main thread.
@@ -117,5 +117,5 @@
 		return ELIMIT;
 	}
-	
+
 	return EOK;
 }
@@ -142,5 +142,5 @@
 	if (!as)
 		return ENOMEM;
-	
+
 	prg->loader_status = elf_load((elf_header_t *) image_addr, as, 0);
 	if (prg->loader_status != EE_OK) {
@@ -148,18 +148,18 @@
 		prg->task = NULL;
 		prg->main_thread = NULL;
-		
+
 		if (prg->loader_status != EE_LOADER)
 			return ENOTSUP;
-		
+
 		/* Register image as the program loader */
 		if (program_loader != NULL)
 			return ELIMIT;
-		
+
 		program_loader = image_addr;
 		log(LF_OTHER, LVL_NOTE, "Program loader at %p", (void *) image_addr);
-		
+
 		return EOK;
 	}
-	
+
 	return program_create(as, ((elf_header_t *) image_addr)->e_entry,
 	    name, prg);
@@ -179,5 +179,5 @@
 	if (!as)
 		return ENOMEM;
-	
+
 	void *loader = program_loader;
 	if (!loader) {
@@ -187,5 +187,5 @@
 		return ENOENT;
 	}
-	
+
 	prg->loader_status = elf_load((elf_header_t *) program_loader, as,
 	    ELD_F_LOADER);
@@ -196,5 +196,5 @@
 		return ENOENT;
 	}
-	
+
 	return program_create(as, ((elf_header_t *) program_loader)->e_entry,
 	    name, prg);
@@ -230,12 +230,12 @@
 	if (name_len > TASK_NAME_BUFLEN - 1)
 		name_len = TASK_NAME_BUFLEN - 1;
-	
+
 	char namebuf[TASK_NAME_BUFLEN];
 	errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len);
 	if (rc != EOK)
 		return (sys_errno_t) rc;
-	
+
 	namebuf[name_len] = 0;
-	
+
 	/* Spawn the new task. */
 	program_t prg;
@@ -243,9 +243,9 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	// FIXME: control the permissions
 	perm_set(prg.task, perm_get(TASK));
 	program_ready(&prg);
-	
+
 	return EOK;
 }
Index: kernel/generic/src/proc/scheduler.c
===================================================================
--- kernel/generic/src/proc/scheduler.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/proc/scheduler.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -90,5 +90,5 @@
 	before_thread_runs_arch();
 	rcu_before_thread_runs();
-	
+
 #ifdef CONFIG_FPU_LAZY
 	if (THREAD == CPU->fpu_owner)
@@ -105,5 +105,5 @@
 	}
 #endif
-	
+
 #ifdef CONFIG_UDEBUG
 	if (THREAD->btrace) {
@@ -113,5 +113,5 @@
 			stack_trace_istate(istate);
 		}
-		
+
 		THREAD->btrace = false;
 	}
@@ -141,10 +141,10 @@
 	fpu_enable();
 	irq_spinlock_lock(&CPU->lock, false);
-	
+
 	/* Save old context */
 	if (CPU->fpu_owner != NULL) {
 		irq_spinlock_lock(&CPU->fpu_owner->lock, false);
 		fpu_context_save(CPU->fpu_owner->saved_fpu_context);
-		
+
 		/* Don't prevent migration */
 		CPU->fpu_owner->fpu_context_engaged = false;
@@ -152,5 +152,5 @@
 		CPU->fpu_owner = NULL;
 	}
-	
+
 	irq_spinlock_lock(&THREAD->lock, false);
 	if (THREAD->fpu_context_exists) {
@@ -164,5 +164,5 @@
 			THREAD->saved_fpu_context =
 			    (fpu_context_t *) slab_alloc(fpu_context_cache, 0);
-			
+
 			/* We may have switched CPUs during slab_alloc */
 			goto restart;
@@ -171,9 +171,9 @@
 		THREAD->fpu_context_exists = true;
 	}
-	
+
 	CPU->fpu_owner = THREAD;
 	THREAD->fpu_context_engaged = true;
 	irq_spinlock_unlock(&THREAD->lock, false);
-	
+
 	irq_spinlock_unlock(&CPU->lock, false);
 }
@@ -201,7 +201,7 @@
 {
 	assert(CPU != NULL);
-	
+
 loop:
-	
+
 	if (atomic_get(&CPU->nrdy) == 0) {
 		/*
@@ -214,5 +214,5 @@
 		irq_spinlock_unlock(&CPU->lock, false);
 		interrupts_enable();
-		
+
 		/*
 		 * An interrupt might occur right now and wake up a thread.
@@ -226,5 +226,5 @@
 
 	assert(!CPU->idle);
-	
+
 	unsigned int i;
 	for (i = 0; i < RQ_COUNT; i++) {
@@ -237,9 +237,9 @@
 			continue;
 		}
-		
+
 		atomic_dec(&CPU->nrdy);
 		atomic_dec(&nrdy);
 		CPU->rq[i].n--;
-		
+
 		/*
 		 * Take the first thread from the queue.
@@ -248,11 +248,11 @@
 		    list_first(&CPU->rq[i].rq), thread_t, rq_link);
 		list_remove(&thread->rq_link);
-		
+
 		irq_spinlock_pass(&(CPU->rq[i].lock), &thread->lock);
-		
+
 		thread->cpu = CPU;
 		thread->ticks = us2ticks((i + 1) * 10000);
 		thread->priority = i;  /* Correct rq index */
-		
+
 		/*
 		 * Clear the stolen flag so that it can be migrated
@@ -261,8 +261,8 @@
 		thread->stolen = false;
 		irq_spinlock_unlock(&thread->lock, false);
-		
+
 		return thread;
 	}
-	
+
 	goto loop;
 }
@@ -282,13 +282,13 @@
 {
 	list_t list;
-	
+
 	list_initialize(&list);
 	irq_spinlock_lock(&CPU->lock, false);
-	
+
 	if (CPU->needs_relink > NEEDS_RELINK_MAX) {
 		int i;
 		for (i = start; i < RQ_COUNT - 1; i++) {
 			/* Remember and empty rq[i + 1] */
-			
+
 			irq_spinlock_lock(&CPU->rq[i + 1].lock, false);
 			list_concat(&list, &CPU->rq[i + 1].rq);
@@ -296,7 +296,7 @@
 			CPU->rq[i + 1].n = 0;
 			irq_spinlock_unlock(&CPU->rq[i + 1].lock, false);
-			
+
 			/* Append rq[i + 1] to rq[i] */
-			
+
 			irq_spinlock_lock(&CPU->rq[i].lock, false);
 			list_concat(&CPU->rq[i].rq, &list);
@@ -304,8 +304,8 @@
 			irq_spinlock_unlock(&CPU->rq[i].lock, false);
 		}
-		
+
 		CPU->needs_relink = 0;
 	}
-	
+
 	irq_spinlock_unlock(&CPU->lock, false);
 }
@@ -321,18 +321,18 @@
 {
 	volatile ipl_t ipl;
-	
+
 	assert(CPU != NULL);
-	
+
 	ipl = interrupts_disable();
-	
+
 	if (atomic_get(&haltstate))
 		halt();
-	
+
 	if (THREAD) {
 		irq_spinlock_lock(&THREAD->lock, false);
-		
+
 		/* Update thread kernel accounting */
 		THREAD->kcycles += get_cycle() - THREAD->last_cycle;
-		
+
 #if (defined CONFIG_FPU) && (!defined CONFIG_FPU_LAZY)
 		fpu_context_save(THREAD->saved_fpu_context);
@@ -342,14 +342,14 @@
 			 * This is the place where threads leave scheduler();
 			 */
-			
+
 			/* Save current CPU cycle */
 			THREAD->last_cycle = get_cycle();
-			
+
 			irq_spinlock_unlock(&THREAD->lock, false);
 			interrupts_restore(THREAD->saved_context.ipl);
-			
+
 			return;
 		}
-		
+
 		/*
 		 * Interrupt priority level of preempted thread is recorded
@@ -360,5 +360,5 @@
 		THREAD->saved_context.ipl = ipl;
 	}
-	
+
 	/*
 	 * Through the 'THE' structure, we keep track of THREAD, TASK, CPU, AS
@@ -368,5 +368,5 @@
 	 */
 	the_copy(THE, (the_t *) CPU->stack);
-	
+
 	/*
 	 * We may not keep the old stack.
@@ -386,5 +386,5 @@
 	    (uintptr_t) CPU->stack, STACK_SIZE);
 	context_restore(&CPU->saved_context);
-	
+
 	/* Not reached */
 }
@@ -402,9 +402,9 @@
 	task_t *old_task = TASK;
 	as_t *old_as = AS;
-	
+
 	assert((!THREAD) || (irq_spinlock_locked(&THREAD->lock)));
 	assert(CPU != NULL);
 	assert(interrupts_disabled());
-	
+
 	/*
 	 * Hold the current task and the address space to prevent their
@@ -414,12 +414,12 @@
 	if (old_task)
 		task_hold(old_task);
-	
+
 	if (old_as)
 		as_hold(old_as);
-	
+
 	if (THREAD) {
 		/* Must be run after the switch to scheduler stack */
 		after_thread_ran();
-		
+
 		switch (THREAD->state) {
 		case Running:
@@ -427,5 +427,5 @@
 			thread_ready(THREAD);
 			break;
-		
+
 		case Exiting:
 			rcu_thread_exiting();
@@ -452,10 +452,10 @@
 				    WAKEUP_FIRST);
 				irq_spinlock_unlock(&THREAD->join_wq.lock, false);
-				
+
 				THREAD->state = Lingering;
 				irq_spinlock_unlock(&THREAD->lock, false);
 			}
 			break;
-			
+
 		case Sleeping:
 			/*
@@ -463,5 +463,5 @@
 			 */
 			THREAD->priority = -1;
-			
+
 			/*
 			 * We need to release wq->lock which we locked in
@@ -470,8 +470,8 @@
 			 */
 			irq_spinlock_unlock(&THREAD->sleep_queue->lock, false);
-			
+
 			irq_spinlock_unlock(&THREAD->lock, false);
 			break;
-		
+
 		default:
 			/*
@@ -482,16 +482,16 @@
 			break;
 		}
-		
+
 		THREAD = NULL;
 	}
-	
+
 	THREAD = find_best_thread();
-	
+
 	irq_spinlock_lock(&THREAD->lock, false);
 	int priority = THREAD->priority;
 	irq_spinlock_unlock(&THREAD->lock, false);
-	
+
 	relink_rq(priority);
-	
+
 	/*
 	 * If both the old and the new task are the same,
@@ -500,5 +500,5 @@
 	if (TASK != THREAD->task) {
 		as_t *new_as = THREAD->task->as;
-		
+
 		/*
 		 * Note that it is possible for two tasks
@@ -512,18 +512,18 @@
 			as_switch(old_as, new_as);
 		}
-		
+
 		TASK = THREAD->task;
 		before_task_runs();
 	}
-	
+
 	if (old_task)
 		task_release(old_task);
-	
+
 	if (old_as)
 		as_release(old_as);
-	
+
 	irq_spinlock_lock(&THREAD->lock, false);
 	THREAD->state = Running;
-	
+
 #ifdef SCHEDULER_VERBOSE
 	log(LF_OTHER, LVL_DEBUG,
@@ -532,5 +532,5 @@
 	    THREAD->ticks, atomic_get(&CPU->nrdy));
 #endif
-	
+
 	/*
 	 * Some architectures provide late kernel PA2KA(identity)
@@ -542,5 +542,5 @@
 	 */
 	before_thread_runs();
-	
+
 	/*
 	 * Copy the knowledge of CPU, TASK, THREAD and preemption counter to
@@ -548,7 +548,7 @@
 	 */
 	the_copy(THE, (the_t *) THREAD->kstack);
-	
+
 	context_restore(&THREAD->saved_context);
-	
+
 	/* Not reached */
 }
@@ -567,10 +567,10 @@
 	atomic_count_t average;
 	atomic_count_t rdy;
-	
+
 	/*
 	 * Detach kcpulb as nobody will call thread_join_timeout() on it.
 	 */
 	thread_detach(THREAD);
-	
+
 loop:
 	/*
@@ -578,5 +578,5 @@
 	 */
 	thread_sleep(1);
-	
+
 not_satisfied:
 	/*
@@ -588,10 +588,10 @@
 	average = atomic_get(&nrdy) / config.cpu_active + 1;
 	rdy = atomic_get(&CPU->nrdy);
-	
+
 	if (average <= rdy)
 		goto satisfied;
-	
+
 	atomic_count_t count = average - rdy;
-	
+
 	/*
 	 * Searching least priority queues on all CPU's first and most priority
@@ -601,9 +601,9 @@
 	size_t acpu_bias = 0;
 	int rq;
-	
+
 	for (rq = RQ_COUNT - 1; rq >= 0; rq--) {
 		for (acpu = 0; acpu < config.cpu_active; acpu++) {
 			cpu_t *cpu = &cpus[(acpu + acpu_bias) % config.cpu_active];
-			
+
 			/*
 			 * Not interested in ourselves.
@@ -614,8 +614,8 @@
 			if (CPU == cpu)
 				continue;
-			
+
 			if (atomic_get(&cpu->nrdy) <= average)
 				continue;
-			
+
 			irq_spinlock_lock(&(cpu->rq[rq].lock), true);
 			if (cpu->rq[rq].n == 0) {
@@ -623,14 +623,14 @@
 				continue;
 			}
-			
+
 			thread_t *thread = NULL;
-			
+
 			/* Search rq from the back */
 			link_t *link = cpu->rq[rq].rq.head.prev;
-			
+
 			while (link != &(cpu->rq[rq].rq.head)) {
 				thread = (thread_t *) list_get_instance(link,
 				    thread_t, rq_link);
-				
+
 				/*
 				 * Do not steal CPU-wired threads, threads
@@ -640,5 +640,5 @@
 				 */
 				irq_spinlock_lock(&thread->lock, false);
-				
+
 				if ((!thread->wired) && (!thread->stolen) &&
 				    (!thread->nomigrate) &&
@@ -649,28 +649,28 @@
 					irq_spinlock_unlock(&thread->lock,
 					    false);
-					
+
 					atomic_dec(&cpu->nrdy);
 					atomic_dec(&nrdy);
-					
+
 					cpu->rq[rq].n--;
 					list_remove(&thread->rq_link);
-					
+
 					break;
 				}
-				
+
 				irq_spinlock_unlock(&thread->lock, false);
-				
+
 				link = link->prev;
 				thread = NULL;
 			}
-			
+
 			if (thread) {
 				/*
 				 * Ready thread on local CPU
 				 */
-				
+
 				irq_spinlock_pass(&(cpu->rq[rq].lock),
 				    &thread->lock);
-				
+
 #ifdef KCPULB_VERBOSE
 				log(LF_OTHER, LVL_DEBUG,
@@ -680,14 +680,14 @@
 				    atomic_get(&nrdy) / config.cpu_active);
 #endif
-				
+
 				thread->stolen = true;
 				thread->state = Entering;
-				
+
 				irq_spinlock_unlock(&thread->lock, true);
 				thread_ready(thread);
-				
+
 				if (--count == 0)
 					goto satisfied;
-				
+
 				/*
 				 * We are not satisfied yet, focus on another
@@ -696,12 +696,12 @@
 				 */
 				acpu_bias++;
-				
+
 				continue;
 			} else
 				irq_spinlock_unlock(&(cpu->rq[rq].lock), true);
-			
-		}
-	}
-	
+
+		}
+	}
+
 	if (atomic_get(&CPU->nrdy)) {
 		/*
@@ -718,7 +718,7 @@
 		goto loop;
 	}
-	
+
 	goto not_satisfied;
-	
+
 satisfied:
 	goto loop;
@@ -735,11 +735,11 @@
 		if (!cpus[cpu].active)
 			continue;
-		
+
 		irq_spinlock_lock(&cpus[cpu].lock, true);
-		
+
 		printf("cpu%u: address=%p, nrdy=%" PRIua ", needs_relink=%zu\n",
 		    cpus[cpu].id, &cpus[cpu], atomic_get(&cpus[cpu].nrdy),
 		    cpus[cpu].needs_relink);
-		
+
 		unsigned int i;
 		for (i = 0; i < RQ_COUNT; i++) {
@@ -749,5 +749,5 @@
 				continue;
 			}
-			
+
 			printf("\trq[%u]: ", i);
 			list_foreach(cpus[cpu].rq[i].rq, rq_link, thread_t,
@@ -757,8 +757,8 @@
 			}
 			printf("\n");
-			
+
 			irq_spinlock_unlock(&(cpus[cpu].rq[i].lock), false);
 		}
-		
+
 		irq_spinlock_unlock(&cpus[cpu].lock, true);
 	}
Index: kernel/generic/src/proc/task.c
===================================================================
--- kernel/generic/src/proc/task.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/proc/task.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -107,15 +107,15 @@
 	task_t *task = avltree_get_instance(node, task_t, tasks_tree_node);
 	size_t *cnt = (size_t *) arg;
-	
+
 	if (task != TASK) {
 		(*cnt)++;
-		
+
 #ifdef CONFIG_DEBUG
 		printf("[%"PRIu64"] ", task->taskid);
 #endif
-		
+
 		task_kill_internal(task);
 	}
-	
+
 	/* Continue the walk */
 	return true;
@@ -138,5 +138,5 @@
 		task_release(task_0);
 	}
-	
+
 	/* Repeat until there are any tasks except TASK */
 	do {
@@ -144,12 +144,12 @@
 		printf("Killing tasks... ");
 #endif
-		
+
 		irq_spinlock_lock(&tasks_lock, true);
 		tasks_left = 0;
 		avltree_walk(&tasks_tree, task_done_walker, &tasks_left);
 		irq_spinlock_unlock(&tasks_lock, true);
-		
+
 		thread_sleep(1);
-		
+
 #ifdef CONFIG_DEBUG
 		printf("\n");
@@ -165,17 +165,17 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	atomic_set(&task->refcount, 0);
 	atomic_set(&task->lifecount, 0);
-	
+
 	irq_spinlock_initialize(&task->lock, "task_t_lock");
-	
+
 	list_initialize(&task->threads);
-	
+
 	ipc_answerbox_init(&task->answerbox, task);
-	
+
 	spinlock_initialize(&task->active_calls_lock, "active_calls_lock");
 	list_initialize(&task->active_calls);
-		
+
 #ifdef CONFIG_UDEBUG
 	/* Init kbox stuff */
@@ -184,5 +184,5 @@
 	mutex_initialize(&task->kb.cleanup_lock, MUTEX_PASSIVE);
 #endif
-	
+
 	return EOK;
 }
@@ -191,5 +191,5 @@
 {
 	task_t *task = (task_t *) obj;
-	
+
 	caps_task_free(task);
 	return 0;
@@ -210,10 +210,10 @@
 		return NULL;
 	}
-	
+
 	task_create_arch(task);
-	
+
 	task->as = as;
 	str_cpy(task->name, TASK_NAME_BUFLEN, name);
-	
+
 	task->container = CONTAINER;
 	task->perms = 0;
@@ -231,5 +231,5 @@
 
 	event_task_init(task);
-	
+
 	task->answerbox.active = true;
 
@@ -237,10 +237,10 @@
 	/* Init debugging stuff */
 	udebug_task_init(&task->udebug);
-	
+
 	/* Init kbox stuff */
 	task->kb.box.active = true;
 	task->kb.finished = false;
 #endif
-	
+
 	if ((ipc_phone_0) &&
 	    (container_check(ipc_phone_0->task->container, task->container))) {
@@ -253,26 +253,26 @@
 			return NULL;
 		}
-		
+
 		kobject_t *phone_obj = kobject_get(task, phone_handle,
 		    KOBJECT_TYPE_PHONE);
 		(void) ipc_phone_connect(phone_obj->phone, ipc_phone_0);
 	}
-	
+
 	futex_task_init(task);
-	
+
 	/*
 	 * Get a reference to the address space.
 	 */
 	as_hold(task->as);
-	
+
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 	task->taskid = ++task_counter;
 	avltree_node_initialize(&task->tasks_tree_node);
 	task->tasks_tree_node.key = task->taskid;
 	avltree_insert(&tasks_tree, &task->tasks_tree_node);
-	
+
 	irq_spinlock_unlock(&tasks_lock, true);
-	
+
 	return task;
 }
@@ -291,20 +291,20 @@
 	avltree_delete(&tasks_tree, &task->tasks_tree_node);
 	irq_spinlock_unlock(&tasks_lock, true);
-	
+
 	/*
 	 * Perform architecture specific task destruction.
 	 */
 	task_destroy_arch(task);
-	
+
 	/*
 	 * Free up dynamically allocated state.
 	 */
 	futex_task_deinit(task);
-	
+
 	/*
 	 * Drop our reference to the address space.
 	 */
 	as_release(task->as);
-	
+
 	slab_free(task_cache, task);
 }
@@ -388,15 +388,15 @@
 {
 	char namebuf[TASK_NAME_BUFLEN];
-	
+
 	/* Cap length of name and copy it from userspace. */
 	if (name_len > TASK_NAME_BUFLEN - 1)
 		name_len = TASK_NAME_BUFLEN - 1;
-	
+
 	errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len);
 	if (rc != EOK)
 		return (sys_errno_t) rc;
-	
+
 	namebuf[name_len] = '\0';
-	
+
 	/*
 	 * As the task name is referenced also from the
@@ -404,16 +404,16 @@
 	 * of the update.
 	 */
-	
+
 	irq_spinlock_lock(&tasks_lock, true);
 	irq_spinlock_lock(&TASK->lock, false);
 	irq_spinlock_lock(&threads_lock, false);
-	
+
 	/* Set task name */
 	str_cpy(TASK->name, TASK_NAME_BUFLEN, namebuf);
-	
+
 	irq_spinlock_unlock(&threads_lock, false);
 	irq_spinlock_unlock(&TASK->lock, false);
 	irq_spinlock_unlock(&tasks_lock, true);
-	
+
 	return EOK;
 }
@@ -432,5 +432,5 @@
 	if (rc != EOK)
 		return (sys_errno_t) rc;
-	
+
 	return (sys_errno_t) task_kill(taskid);
 }
@@ -453,8 +453,8 @@
 	avltree_node_t *node =
 	    avltree_search(&tasks_tree, (avltree_key_t) id);
-	
+
 	if (node)
 		return avltree_get_instance(node, task_t, tasks_tree_node);
-	
+
 	return NULL;
 }
@@ -478,9 +478,9 @@
 	uint64_t uret = task->ucycles;
 	uint64_t kret = task->kcycles;
-	
+
 	/* Current values of threads */
 	list_foreach(task->threads, th_link, thread_t, thread) {
 		irq_spinlock_lock(&thread->lock, false);
-		
+
 		/* Process only counted threads */
 		if (!thread->uncounted) {
@@ -489,12 +489,12 @@
 				thread_update_accounting(false);
 			}
-			
+
 			uret += thread->ucycles;
 			kret += thread->kcycles;
 		}
-		
+
 		irq_spinlock_unlock(&thread->lock, false);
 	}
-	
+
 	*ucycles = uret;
 	*kcycles = kret;
@@ -505,24 +505,24 @@
 	irq_spinlock_lock(&task->lock, false);
 	irq_spinlock_lock(&threads_lock, false);
-	
+
 	/*
 	 * Interrupt all threads.
 	 */
-	
+
 	list_foreach(task->threads, th_link, thread_t, thread) {
 		bool sleeping = false;
-		
+
 		irq_spinlock_lock(&thread->lock, false);
-		
+
 		thread->interrupted = true;
 		if (thread->state == Sleeping)
 			sleeping = true;
-		
+
 		irq_spinlock_unlock(&thread->lock, false);
-		
+
 		if (sleeping)
 			waitq_interrupt_sleep(thread);
 	}
-	
+
 	irq_spinlock_unlock(&threads_lock, false);
 	irq_spinlock_unlock(&task->lock, false);
@@ -543,7 +543,7 @@
 	if (id == 1)
 		return EPERM;
-	
+
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 	task_t *task = task_find_by_id(id);
 	if (!task) {
@@ -551,8 +551,8 @@
 		return ENOENT;
 	}
-	
+
 	task_kill_internal(task);
 	irq_spinlock_unlock(&tasks_lock, true);
-	
+
 	return EOK;
 }
@@ -583,9 +583,9 @@
 		}
 	}
-	
+
 	irq_spinlock_lock(&tasks_lock, true);
 	task_kill_internal(TASK);
 	irq_spinlock_unlock(&tasks_lock, true);
-	
+
 	thread_exit();
 }
@@ -599,5 +599,5 @@
 {
 	task_kill_self(notify);
-	
+
 	/* Unreachable */
 	return EOK;
@@ -609,5 +609,5 @@
 	task_t *task = avltree_get_instance(node, task_t, tasks_tree_node);
 	irq_spinlock_lock(&task->lock, false);
-	
+
 	uint64_t ucycles;
 	uint64_t kcycles;
@@ -616,5 +616,5 @@
 	order_suffix(ucycles, &ucycles, &usuffix);
 	order_suffix(kcycles, &kcycles, &ksuffix);
-	
+
 #ifdef __32_BITS__
 	if (*additional)
@@ -627,5 +627,5 @@
 		    ucycles, usuffix, kcycles, ksuffix);
 #endif
-	
+
 #ifdef __64_BITS__
 	if (*additional)
@@ -637,5 +637,5 @@
 		    task->taskid, task->name, task->container, task, task->as);
 #endif
-	
+
 	irq_spinlock_unlock(&task->lock, false);
 	return true;
@@ -651,5 +651,5 @@
 	/* Messing with task structures, avoid deadlock */
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 #ifdef __32_BITS__
 	if (additional)
@@ -659,5 +659,5 @@
 		    " [ucycles ] [kcycles ]\n");
 #endif
-	
+
 #ifdef __64_BITS__
 	if (additional)
@@ -668,7 +668,7 @@
 		    " [as              ]\n");
 #endif
-	
+
 	avltree_walk(&tasks_tree, task_print_walker, &additional);
-	
+
 	irq_spinlock_unlock(&tasks_lock, true);
 }
Index: kernel/generic/src/proc/thread.c
===================================================================
--- kernel/generic/src/proc/thread.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/proc/thread.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -122,11 +122,11 @@
 	void *arg = THREAD->thread_arg;
 	THREAD->last_cycle = get_cycle();
-	
+
 	/* This is where each thread wakes up after its creation */
 	irq_spinlock_unlock(&THREAD->lock, false);
 	interrupts_enable();
-	
+
 	f(arg);
-	
+
 	/* Accumulate accounting to the task */
 	irq_spinlock_lock(&THREAD->lock, true);
@@ -137,5 +137,5 @@
 		uint64_t kcycles = THREAD->kcycles;
 		THREAD->kcycles = 0;
-		
+
 		irq_spinlock_pass(&THREAD->lock, &TASK->lock);
 		TASK->ucycles += ucycles;
@@ -144,7 +144,7 @@
 	} else
 		irq_spinlock_unlock(&THREAD->lock, true);
-	
+
 	thread_exit();
-	
+
 	/* Not reached */
 }
@@ -156,13 +156,13 @@
 {
 	thread_t *thread = (thread_t *) obj;
-	
+
 	irq_spinlock_initialize(&thread->lock, "thread_t_lock");
 	link_initialize(&thread->rq_link);
 	link_initialize(&thread->wq_link);
 	link_initialize(&thread->th_link);
-	
+
 	/* call the architecture-specific part of the constructor */
 	thr_constructor_arch(thread);
-	
+
 #ifdef CONFIG_FPU
 #ifdef CONFIG_FPU_LAZY
@@ -174,5 +174,5 @@
 #endif /* CONFIG_FPU_LAZY */
 #endif /* CONFIG_FPU */
-	
+
 	/*
 	 * Allocate the kernel stack from the low-memory to prevent an infinite
@@ -193,5 +193,5 @@
 	kmflags |= FRAME_LOWMEM;
 	kmflags &= ~FRAME_HIGHMEM;
-	
+
 	uintptr_t stack_phys =
 	    frame_alloc(STACK_FRAMES, kmflags, STACK_SIZE - 1);
@@ -203,11 +203,11 @@
 		return ENOMEM;
 	}
-	
+
 	thread->kstack = (uint8_t *) PA2KA(stack_phys);
-	
+
 #ifdef CONFIG_UDEBUG
 	mutex_initialize(&thread->udebug.lock, MUTEX_PASSIVE);
 #endif
-	
+
 	return EOK;
 }
@@ -217,15 +217,15 @@
 {
 	thread_t *thread = (thread_t *) obj;
-	
+
 	/* call the architecture-specific part of the destructor */
 	thr_destructor_arch(thread);
-	
+
 	frame_free(KA2PA(thread->kstack), STACK_FRAMES);
-	
+
 #ifdef CONFIG_FPU
 	if (thread->saved_fpu_context)
 		slab_free(fpu_context_cache, thread->saved_fpu_context);
 #endif
-	
+
 	return STACK_FRAMES;  /* number of frames freed */
 }
@@ -239,14 +239,14 @@
 {
 	THREAD = NULL;
-	
+
 	atomic_set(&nrdy, 0);
 	thread_cache = slab_cache_create("thread_t", sizeof(thread_t), 0,
 	    thr_constructor, thr_destructor, 0);
-	
+
 #ifdef CONFIG_FPU
 	fpu_context_cache = slab_cache_create("fpu_context_t",
 	    sizeof(fpu_context_t), FPU_CONTEXT_ALIGN, NULL, NULL, 0);
 #endif
-	
+
 	avltree_create(&threads_tree);
 }
@@ -282,9 +282,9 @@
 {
 	irq_spinlock_lock(&thread->lock, true);
-	
+
 	assert(thread->state != Ready);
 
 	before_thread_is_ready(thread);
-	
+
 	int i = (thread->priority < RQ_COUNT - 1) ?
 	    ++thread->priority : thread->priority;
@@ -305,18 +305,18 @@
 		cpu = CPU;
 	}
-	
+
 	thread->state = Ready;
-	
+
 	irq_spinlock_pass(&thread->lock, &(cpu->rq[i].lock));
-	
+
 	/*
 	 * Append thread to respective ready queue
 	 * on respective processor.
 	 */
-	
+
 	list_append(&thread->rq_link, &cpu->rq[i].rq);
 	cpu->rq[i].n++;
 	irq_spinlock_unlock(&(cpu->rq[i].lock), true);
-	
+
 	atomic_inc(&nrdy);
 	atomic_inc(&cpu->nrdy);
@@ -344,24 +344,24 @@
 	if (!thread)
 		return NULL;
-	
+
 	/* Not needed, but good for debugging */
 	memsetb(thread->kstack, STACK_SIZE, 0);
-	
+
 	irq_spinlock_lock(&tidlock, true);
 	thread->tid = ++last_tid;
 	irq_spinlock_unlock(&tidlock, true);
-	
+
 	context_save(&thread->saved_context);
 	context_set(&thread->saved_context, FADDR(cushion),
 	    (uintptr_t) thread->kstack, STACK_SIZE);
-	
+
 	the_initialize((the_t *) thread->kstack);
-	
+
 	ipl_t ipl = interrupts_disable();
 	thread->saved_context.ipl = interrupts_read();
 	interrupts_restore(ipl);
-	
+
 	str_cpy(thread->name, THREAD_NAME_BUFLEN, name);
-	
+
 	thread->thread_code = func;
 	thread->thread_arg = arg;
@@ -377,30 +377,30 @@
 	thread->uspace =
 	    ((flags & THREAD_FLAG_USPACE) == THREAD_FLAG_USPACE);
-	
+
 	thread->nomigrate = 0;
 	thread->state = Entering;
-	
+
 	timeout_initialize(&thread->sleep_timeout);
 	thread->sleep_interruptible = false;
 	thread->sleep_queue = NULL;
 	thread->timeout_pending = false;
-	
+
 	thread->in_copy_from_uspace = false;
 	thread->in_copy_to_uspace = false;
-	
+
 	thread->interrupted = false;
 	thread->detached = false;
 	waitq_initialize(&thread->join_wq);
-	
+
 	thread->task = task;
-	
+
 	thread->workq = NULL;
-	
+
 	thread->fpu_context_exists = false;
 	thread->fpu_context_engaged = false;
-	
+
 	avltree_node_initialize(&thread->threads_tree_node);
 	thread->threads_tree_node.key = (uintptr_t) thread;
-	
+
 #ifdef CONFIG_UDEBUG
 	/* Initialize debugging stuff */
@@ -408,13 +408,13 @@
 	udebug_thread_initialize(&thread->udebug);
 #endif
-	
+
 	/* Might depend on previous initialization */
 	thread_create_arch(thread);
-	
+
 	rcu_thread_init(thread);
-	
+
 	if ((flags & THREAD_FLAG_NOATTACH) != THREAD_FLAG_NOATTACH)
 		thread_attach(thread, task);
-	
+
 	return thread;
 }
@@ -435,16 +435,16 @@
 	assert(thread->task);
 	assert(thread->cpu);
-	
+
 	irq_spinlock_lock(&thread->cpu->lock, false);
 	if (thread->cpu->fpu_owner == thread)
 		thread->cpu->fpu_owner = NULL;
 	irq_spinlock_unlock(&thread->cpu->lock, false);
-	
+
 	irq_spinlock_pass(&thread->lock, &threads_lock);
-	
+
 	avltree_delete(&threads_tree, &thread->threads_tree_node);
-	
+
 	irq_spinlock_pass(&threads_lock, &thread->task->lock);
-	
+
 	/*
 	 * Detach from the containing task.
@@ -452,5 +452,5 @@
 	list_remove(&thread->th_link);
 	irq_spinlock_unlock(&thread->task->lock, irq_res);
-	
+
 	/*
 	 * Drop the reference to the containing task.
@@ -475,16 +475,16 @@
 	 */
 	irq_spinlock_lock(&task->lock, true);
-	
+
 	/* Hold a reference to the task. */
 	task_hold(task);
-	
+
 	/* Must not count kbox thread into lifecount */
 	if (thread->uspace)
 		atomic_inc(&task->lifecount);
-	
+
 	list_append(&thread->th_link, &task->threads);
-	
+
 	irq_spinlock_pass(&task->lock, &threads_lock);
-	
+
 	/*
 	 * Register this thread in the system-wide list.
@@ -506,5 +506,5 @@
 		/* Generate udebug THREAD_E event */
 		udebug_thread_e_event();
-		
+
 		/*
 		 * This thread will not execute any code or system calls from
@@ -527,5 +527,5 @@
 		}
 	}
-	
+
 restart:
 	irq_spinlock_lock(&THREAD->lock, true);
@@ -535,10 +535,10 @@
 		goto restart;
 	}
-	
+
 	THREAD->state = Exiting;
 	irq_spinlock_unlock(&THREAD->lock, true);
-	
+
 	scheduler();
-	
+
 	/* Not reached */
 	while (true);
@@ -562,12 +562,12 @@
 {
 	assert(thread != NULL);
-	
+
 	irq_spinlock_lock(&thread->lock, true);
-	
+
 	thread->interrupted = true;
 	bool sleeping = (thread->state == Sleeping);
-	
+
 	irq_spinlock_unlock(&thread->lock, true);
-	
+
 	if (sleeping)
 		waitq_interrupt_sleep(thread);
@@ -583,11 +583,11 @@
 {
 	assert(thread != NULL);
-	
+
 	bool interrupted;
-	
+
 	irq_spinlock_lock(&thread->lock, true);
 	interrupted = thread->interrupted;
 	irq_spinlock_unlock(&thread->lock, true);
-	
+
 	return interrupted;
 }
@@ -597,5 +597,5 @@
 {
 	assert(THREAD);
-	
+
 	THREAD->nomigrate++;
 }
@@ -606,5 +606,5 @@
 	assert(THREAD);
 	assert(THREAD->nomigrate > 0);
-	
+
 	if (THREAD->nomigrate > 0)
 		THREAD->nomigrate--;
@@ -624,5 +624,5 @@
 	while (sec > 0) {
 		uint32_t period = (sec > 1000) ? 1000 : sec;
-		
+
 		thread_usleep(period * 1000000);
 		sec -= period;
@@ -643,14 +643,14 @@
 	if (thread == THREAD)
 		return EINVAL;
-	
+
 	/*
 	 * Since thread join can only be called once on an undetached thread,
 	 * the thread pointer is guaranteed to be still valid.
 	 */
-	
+
 	irq_spinlock_lock(&thread->lock, true);
 	assert(!thread->detached);
 	irq_spinlock_unlock(&thread->lock, true);
-	
+
 	return waitq_sleep_timeout(&thread->join_wq, usec, flags, NULL);
 }
@@ -672,5 +672,5 @@
 	irq_spinlock_lock(&thread->lock, true);
 	assert(!thread->detached);
-	
+
 	if (thread->state == Lingering) {
 		/*
@@ -683,5 +683,5 @@
 		thread->detached = true;
 	}
-	
+
 	irq_spinlock_unlock(&thread->lock, true);
 }
@@ -697,7 +697,7 @@
 {
 	waitq_t wq;
-	
+
 	waitq_initialize(&wq);
-	
+
 	(void) waitq_sleep_timeout(&wq, usec, SYNCH_FLAGS_NON_BLOCKING, NULL);
 }
@@ -707,10 +707,10 @@
 	bool *additional = (bool *) arg;
 	thread_t *thread = avltree_get_instance(node, thread_t, threads_tree_node);
-	
+
 	uint64_t ucycles, kcycles;
 	char usuffix, ksuffix;
 	order_suffix(thread->ucycles, &ucycles, &usuffix);
 	order_suffix(thread->kcycles, &kcycles, &ksuffix);
-	
+
 	char *name;
 	if (str_cmp(thread->name, "uinit") == 0)
@@ -718,5 +718,5 @@
 	else
 		name = thread->name;
-	
+
 #ifdef __32_BITS__
 	if (*additional)
@@ -729,5 +729,5 @@
 		    thread->task, thread->task->container);
 #endif
-	
+
 #ifdef __64_BITS__
 	if (*additional)
@@ -741,5 +741,5 @@
 		    thread->task, thread->task->container);
 #endif
-	
+
 	if (*additional) {
 		if (thread->cpu)
@@ -747,18 +747,18 @@
 		else
 			printf("none ");
-		
+
 		if (thread->state == Sleeping) {
 #ifdef __32_BITS__
 			printf(" %10p", thread->sleep_queue);
 #endif
-			
+
 #ifdef __64_BITS__
 			printf(" %18p", thread->sleep_queue);
 #endif
 		}
-		
+
 		printf("\n");
 	}
-	
+
 	return true;
 }
@@ -773,5 +773,5 @@
 	/* Messing with thread structures, avoid deadlock */
 	irq_spinlock_lock(&threads_lock, true);
-	
+
 #ifdef __32_BITS__
 	if (additional)
@@ -782,5 +782,5 @@
 		    " [ctn]\n");
 #endif
-	
+
 #ifdef __64_BITS__
 	if (additional) {
@@ -791,7 +791,7 @@
 		    " [task            ] [ctn]\n");
 #endif
-	
+
 	avltree_walk(&threads_tree, thread_walker, &additional);
-	
+
 	irq_spinlock_unlock(&threads_lock, true);
 }
@@ -814,5 +814,5 @@
 	avltree_node_t *node =
 	    avltree_search(&threads_tree, (avltree_key_t) ((uintptr_t) thread));
-	
+
 	return node != NULL;
 }
@@ -832,10 +832,10 @@
 	assert(interrupts_disabled());
 	assert(irq_spinlock_locked(&THREAD->lock));
-	
+
 	if (user)
 		THREAD->ucycles += time - THREAD->last_cycle;
 	else
 		THREAD->kcycles += time - THREAD->last_cycle;
-	
+
 	THREAD->last_cycle = time;
 }
@@ -846,10 +846,10 @@
 	    (thread_t *) avltree_get_instance(node, thread_t, threads_tree_node);
 	thread_iterator_t *iterator = (thread_iterator_t *) arg;
-	
+
 	if (thread->tid == iterator->thread_id) {
 		iterator->thread = thread;
 		return false;
 	}
-	
+
 	return true;
 }
@@ -869,12 +869,12 @@
 	assert(interrupts_disabled());
 	assert(irq_spinlock_locked(&threads_lock));
-	
+
 	thread_iterator_t iterator;
-	
+
 	iterator.thread_id = thread_id;
 	iterator.thread = NULL;
-	
+
 	avltree_walk(&threads_tree, thread_search_walker, (void *) &iterator);
-	
+
 	return iterator.thread;
 }
@@ -885,5 +885,5 @@
 {
 	irq_spinlock_lock(&threads_lock, true);
-	
+
 	thread_t *thread = thread_find_by_id(thread_id);
 	if (thread == NULL) {
@@ -892,7 +892,7 @@
 		return;
 	}
-	
+
 	irq_spinlock_lock(&thread->lock, false);
-	
+
 	/*
 	 * Schedule a stack trace to be printed
@@ -906,5 +906,5 @@
 	 * is probably justifiable.
 	 */
-	
+
 	bool sleeping = false;
 	istate_t *istate = thread->udebug.uspace_state;
@@ -916,10 +916,10 @@
 	} else
 		printf("Thread interrupt state not available.\n");
-	
+
 	irq_spinlock_unlock(&thread->lock, false);
-	
+
 	if (sleeping)
 		waitq_interrupt_sleep(thread);
-	
+
 	irq_spinlock_unlock(&threads_lock, true);
 }
@@ -935,12 +935,12 @@
 	if (name_len > THREAD_NAME_BUFLEN - 1)
 		name_len = THREAD_NAME_BUFLEN - 1;
-	
+
 	char namebuf[THREAD_NAME_BUFLEN];
 	errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len);
 	if (rc != EOK)
 		return (sys_errno_t) rc;
-	
+
 	namebuf[name_len] = 0;
-	
+
 	/*
 	 * In case of failure, kernel_uarg will be deallocated in this function.
@@ -949,5 +949,5 @@
 	uspace_arg_t *kernel_uarg =
 	    (uspace_arg_t *) malloc(sizeof(uspace_arg_t), 0);
-	
+
 	rc = copy_from_uspace(kernel_uarg, uspace_uarg, sizeof(uspace_arg_t));
 	if (rc != EOK) {
@@ -955,5 +955,5 @@
 		return (sys_errno_t) rc;
 	}
-	
+
 	thread_t *thread = thread_create(uinit, kernel_uarg, TASK,
 	    THREAD_FLAG_USPACE | THREAD_FLAG_NOATTACH, namebuf);
@@ -968,5 +968,5 @@
 				 * creation now.
 				 */
-				
+
 				/*
 				 * The new thread structure is initialized, but
@@ -976,9 +976,9 @@
 				slab_free(thread_cache, thread);
 				free(kernel_uarg);
-				
+
 				return (sys_errno_t) rc;
 			 }
 		}
-		
+
 #ifdef CONFIG_UDEBUG
 		/*
@@ -994,9 +994,9 @@
 #endif
 		thread_ready(thread);
-		
+
 		return 0;
 	} else
 		free(kernel_uarg);
-	
+
 	return (sys_errno_t) ENOMEM;
 }
Index: kernel/generic/src/security/perm.c
===================================================================
--- kernel/generic/src/security/perm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/security/perm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,5 +70,5 @@
 	perm_t perms = task->perms;
 	irq_spinlock_unlock(&task->lock, true);
-	
+
 	return perms;
 }
@@ -88,17 +88,17 @@
 	if (!(perm_get(TASK) & PERM_PERM))
 		return EPERM;
-	
+
 	irq_spinlock_lock(&tasks_lock, true);
 	task_t *task = task_find_by_id(taskid);
-	
+
 	if ((!task) || (!container_check(CONTAINER, task->container))) {
 		irq_spinlock_unlock(&tasks_lock, true);
 		return ENOENT;
 	}
-	
+
 	irq_spinlock_lock(&task->lock, false);
 	task->perms |= perms;
 	irq_spinlock_unlock(&task->lock, false);
-	
+
 	irq_spinlock_unlock(&tasks_lock, true);
 	return EOK;
@@ -119,5 +119,5 @@
 {
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 	task_t *task = task_find_by_id(taskid);
 	if ((!task) || (!container_check(CONTAINER, task->container))) {
@@ -125,5 +125,5 @@
 		return ENOENT;
 	}
-	
+
 	/*
 	 * Revoking permissions is different from granting them in that
@@ -132,5 +132,5 @@
 	 */
 	irq_spinlock_unlock(&TASK->lock, false);
-	
+
 	if ((!(TASK->perms & PERM_PERM)) || (task != TASK)) {
 		irq_spinlock_unlock(&TASK->lock, false);
@@ -138,8 +138,8 @@
 		return EPERM;
 	}
-	
+
 	task->perms &= ~perms;
 	irq_spinlock_unlock(&TASK->lock, false);
-	
+
 	irq_spinlock_unlock(&tasks_lock, true);
 	return EOK;
@@ -164,5 +164,5 @@
 	if (rc != EOK)
 		return (sys_errno_t) rc;
-	
+
 	return perm_grant((task_id_t) taskid, perms);
 }
@@ -185,5 +185,5 @@
 	if (rc != EOK)
 		return (sys_errno_t) rc;
-	
+
 	return perm_revoke((task_id_t) taskid, perms);
 }
Index: kernel/generic/src/smp/ipi.c
===================================================================
--- kernel/generic/src/smp/ipi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/smp/ipi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 	 * - if there is only one CPU but the kernel was compiled with CONFIG_SMP
 	 */
-	
+
 	if (config.cpu_count > 1)
 		ipi_broadcast_arch(ipi);
Index: kernel/generic/src/smp/smp.c
===================================================================
--- kernel/generic/src/smp/smp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/smp/smp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -34,5 +34,5 @@
  * @file
  */
- 
+
 #include <smp/smp.h>
 
Index: kernel/generic/src/smp/smp_call.c
===================================================================
--- kernel/generic/src/smp/smp_call.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/smp/smp_call.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 	assert(CPU);
 	assert(PREEMPTION_DISABLED || interrupts_disabled());
-	
+
 	spinlock_initialize(&CPU->smp_calls_lock, "cpu[].smp_calls_lock");
 	list_initialize(&CPU->smp_pending_calls);
@@ -133,5 +133,5 @@
 	assert(!interrupts_disabled());
 	assert(call_info != NULL);
-	
+
 	/* Discard invalid calls. */
 	if (config.cpu_count <= cpu_id || !cpus[cpu_id].active) {
@@ -140,10 +140,10 @@
 		return;
 	}
-	
+
 	/* Protect cpu->id against migration. */
 	preemption_disable();
 
 	call_start(call_info, func, arg);
-	
+
 	if (cpu_id != CPU->id) {
 #ifdef CONFIG_SMP
@@ -169,8 +169,8 @@
 		func(arg);
 		interrupts_restore(ipl);
-		
+
 		call_done(call_info);
 	}
-	
+
 	preemption_enable();
 }
@@ -209,8 +209,8 @@
 	assert(interrupts_disabled());
 	assert(CPU);
-	
+
 	list_t calls_list;
 	list_initialize(&calls_list);
-	
+
 	/*
 	 * Acts as a load memory barrier. Any changes made by the cpu that
@@ -224,8 +224,8 @@
 	for (link_t *cur = calls_list.head.next, *next = cur->next;
 		!list_empty(&calls_list); cur = next, next = cur->next) {
-		
+
 		smp_call_t *call_info = list_get_instance(cur, smp_call_t, calls_link);
 		list_remove(cur);
-		
+
 		call_info->func(call_info->arg);
 		call_done(call_info);
@@ -240,5 +240,5 @@
 	call_info->func = func;
 	call_info->arg = arg;
-	
+
 	/*
 	 * We can't use standard spinlocks here because we want to lock
@@ -247,5 +247,5 @@
 	 */
 	atomic_set(&call_info->pending, 1);
-	
+
 	/* Let initialization complete before continuing. */
 	memory_barrier();
Index: kernel/generic/src/synch/condvar.c
===================================================================
--- kernel/generic/src/synch/condvar.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/synch/condvar.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -143,5 +143,5 @@
 	/* Lock only after releasing the waitq to avoid a possible deadlock. */
 	spinlock_lock(lock);
-	
+
 	return rc;
 }
@@ -168,7 +168,7 @@
 	ipl_t ipl = irq_lock->ipl;
 	bool guard = irq_lock->guard;
-	
+
 	irq_lock->guard = false;
-	
+
 	/*
 	 * waitq_prepare() restores interrupts to the current state,
@@ -182,8 +182,8 @@
 	 */
 	rc = _condvar_wait_timeout_spinlock(cv, &irq_lock->lock, usec, flags);
-	
+
 	irq_lock->guard = guard;
 	irq_lock->ipl = ipl;
-	
+
 	return rc;
 }
Index: kernel/generic/src/synch/futex.c
===================================================================
--- kernel/generic/src/synch/futex.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/synch/futex.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -157,7 +157,7 @@
 {
 	task->futexes = malloc(sizeof(struct futex_cache), 0);
-	
+
 	cht_create(&task->futexes->ht, 0, 0, 0, true, &task_futex_ht_ops);
-	
+
 	list_initialize(&task->futexes->list);
 	spinlock_initialize(&task->futexes->list_lock, "futex-list-lock");
@@ -183,5 +183,5 @@
 	struct futex_cache *cache =
 		member_to_inst(work, struct futex_cache, destroy_work);
-	
+
 	/*
 	 * Destroy the cache before manually freeing items of the cache in case
@@ -189,5 +189,5 @@
 	 */
 	cht_destroy_unsafe(&cache->ht);
-	
+
 	/* Manually free futex_ptr cache items. */
 	list_foreach_safe(cache->list, cur_link, next_link) {
@@ -197,5 +197,5 @@
 		free(fut_ptr);
 	}
-	
+
 	free(cache);
 }
@@ -205,8 +205,8 @@
 {
 	struct futex_cache *futexes = TASK->futexes;
-	
+
 	/* All threads of this task have terminated. This is the last thread. */
 	spinlock_lock(&futexes->list_lock);
-	
+
 	list_foreach_safe(futexes->list, cur_link, next_link) {
 		futex_ptr_t *fut_ptr = member_to_inst(cur_link, futex_ptr_t, all_link);
@@ -222,5 +222,5 @@
 		futex_release_ref_locked(fut_ptr->futex);
 	}
-	
+
 	spinlock_unlock(&futexes->list_lock);
 }
@@ -252,7 +252,7 @@
 	assert(spinlock_locked(&futex_ht_lock));
 	assert(0 < futex->refcount);
-	
+
 	--futex->refcount;
-	
+
 	if (0 == futex->refcount) {
 		hash_table_remove(&futex_ht, &futex->paddr);
@@ -272,5 +272,5 @@
 {
 	futex_t *futex = find_cached_futex(uaddr);
-	
+
 	if (futex)
 		return futex;
@@ -303,8 +303,8 @@
 		    (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
 	}
-	
+
 	spinlock_unlock(&futex_ht_lock);
 	page_table_unlock(AS, false);
-	
+
 	return success;
 }
@@ -314,5 +314,5 @@
 {
 	cht_read_lock();
-	
+
 	futex_t *futex;
 	cht_link_t *futex_ptr_link = cht_find_lazy(&TASK->futexes->ht, &uaddr);
@@ -321,12 +321,12 @@
 		futex_ptr_t *futex_ptr
 			= member_to_inst(futex_ptr_link, futex_ptr_t, cht_link);
-		
+
 		futex = futex_ptr->futex;
 	} else {
 		futex = NULL;
 	}
-	
+
 	cht_read_unlock();
-	
+
 	return futex;
 }
@@ -340,5 +340,5 @@
 {
 	futex_t *futex = malloc(sizeof(futex_t), 0);
-	
+
 	/*
 	 * Find the futex object in the global futex table (or insert it
@@ -346,7 +346,7 @@
 	 */
 	spinlock_lock(&futex_ht_lock);
-	
+
 	ht_link_t *fut_link = hash_table_find(&futex_ht, &phys_addr);
-	
+
 	if (fut_link) {
 		free(futex);
@@ -357,7 +357,7 @@
 		hash_table_insert(&futex_ht, &futex->ht_link);
 	}
-	
+
 	spinlock_unlock(&futex_ht_lock);
-	
+
 	/*
 	 * Cache the link to the futex object for this task.
@@ -365,10 +365,10 @@
 	futex_ptr_t *fut_ptr = malloc(sizeof(futex_ptr_t), 0);
 	cht_link_t *dup_link;
-	
+
 	fut_ptr->futex = futex;
 	fut_ptr->uaddr = uaddr;
-	
+
 	cht_read_lock();
-	
+
 	/* Cache the mapping from the virtual address to the futex for this task. */
 	if (cht_insert_unique(&TASK->futexes->ht, &fut_ptr->cht_link, &dup_link)) {
@@ -380,5 +380,5 @@
 		free(fut_ptr);
 		futex_release_ref_locked(futex);
-		
+
 		futex_ptr_t *dup = member_to_inst(dup_link, futex_ptr_t, cht_link);
 		futex = dup->futex;
@@ -386,5 +386,5 @@
 
 	cht_read_unlock();
-	
+
 	return futex;
 }
@@ -401,5 +401,5 @@
 {
 	futex_t *futex = get_futex(uaddr);
-	
+
 	if (!futex)
 		return (sys_errno_t) ENOENT;
@@ -428,5 +428,5 @@
 {
 	futex_t *futex = get_futex(uaddr);
-	
+
 	if (futex) {
 		waitq_wakeup(&futex->wq, WAKEUP_FIRST);
@@ -492,5 +492,5 @@
 	const futex_ptr_t *fut_ptr1 = member_to_inst(item1, futex_ptr_t, cht_link);
 	const futex_ptr_t *fut_ptr2 = member_to_inst(item2, futex_ptr_t, cht_link);
-	
+
 	return fut_ptr1->uaddr == fut_ptr2->uaddr;
 }
@@ -500,5 +500,5 @@
 	const futex_ptr_t *fut_ptr = member_to_inst(item, futex_ptr_t, cht_link);
 	uintptr_t uaddr = *(uintptr_t*)key;
-	
+
 	return fut_ptr->uaddr == uaddr;
 }
Index: kernel/generic/src/synch/mutex.c
===================================================================
--- kernel/generic/src/synch/mutex.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/synch/mutex.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -108,5 +108,5 @@
 		assert(usec == SYNCH_NO_TIMEOUT);
 		assert(!(flags & SYNCH_FLAGS_INTERRUPTIBLE));
-		
+
 		unsigned int cnt = 0;
 		bool deadlock_reported = false;
Index: kernel/generic/src/synch/rcu.c
===================================================================
--- kernel/generic/src/synch/rcu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/synch/rcu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -26,6 +26,6 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
- 
- 
+
+
 /** @addtogroup sync
  * @{
@@ -182,5 +182,5 @@
 	 */
 	rcu_gp_t completed_gp;
-	
+
 	/** Protects the following 3 fields. */
 	IRQ_SPINLOCK_DECLARE(preempt_lock);
@@ -195,7 +195,7 @@
 	 */
 	bool preempt_blocking_det;
-	
+
 #ifdef RCU_PREEMPT_A
-	
+
 	/**
 	 * The detector waits on this semaphore for any preempted readers
@@ -205,5 +205,5 @@
 
 #elif defined(RCU_PREEMPT_PODZIMEK)
-	
+
 	/** Reclaimers notify the detector when they request more grace periods.*/
 	condvar_t req_gp_changed;
@@ -228,5 +228,5 @@
 	semaphore_t remaining_readers;
 #endif
-	
+
 	/** Excludes simultaneous rcu_barrier() calls. */
 	mutex_t barrier_mtx;
@@ -235,8 +235,8 @@
 	/** rcu_barrier() waits for the completion of barrier callbacks on this wq.*/
 	waitq_t barrier_wq;
-	
+
 	/** Interruptible attached detector thread pointer. */
 	thread_t *detector_thr;
-	
+
 	/* Some statistics. */
 	size_t stat_expedited_cnt;
@@ -305,10 +305,10 @@
 	_rcu_cur_gp = 0;
 	rcu.completed_gp = 0;
-	
+
 	irq_spinlock_initialize(&rcu.preempt_lock, "rcu.preempt_lock");
 	list_initialize(&rcu.cur_preempted);
 	list_initialize(&rcu.next_preempted);
 	rcu.preempt_blocking_det = false;
-	
+
 	mutex_initialize(&rcu.barrier_mtx, MUTEX_PASSIVE);
 	atomic_set(&rcu.barrier_wait_cnt, 0);
@@ -316,15 +316,15 @@
 
 	semaphore_initialize(&rcu.remaining_readers, 0);
-	
+
 #ifdef RCU_PREEMPT_PODZIMEK
 	condvar_initialize(&rcu.req_gp_changed);
-	
+
 	rcu.req_gp_end_cnt = 0;
 	rcu.req_expedited_cnt = 0;
 	atomic_set(&rcu.delaying_cpu_cnt, 0);
 #endif
-	
+
 	rcu.detector_thr = NULL;
-	
+
 	rcu.stat_expedited_cnt = 0;
 	rcu.stat_delayed_cnt = 0;
@@ -347,5 +347,5 @@
 	CPU->rcu.signal_unlock = false;
 #endif
-	
+
 	CPU->rcu.cur_cbs = NULL;
 	CPU->rcu.cur_cbs_cnt = 0;
@@ -358,5 +358,5 @@
 	CPU->rcu.cur_cbs_gp = 0;
 	CPU->rcu.next_cbs_gp = 0;
-	
+
 	semaphore_initialize(&CPU->rcu.arrived_flag, 0);
 
@@ -364,5 +364,5 @@
 	if (config.cpu_active == 1)
 		CPU->rcu.reclaimer_thr = NULL;
-	
+
 	CPU->rcu.stat_max_cbs = 0;
 	CPU->rcu.stat_avg_cbs = 0;
@@ -379,5 +379,5 @@
 	start_detector();
 #endif
-	
+
 	start_reclaimers();
 }
@@ -391,5 +391,5 @@
 	thread->rcu.was_preempted = false;
 #endif
-	
+
 	link_initialize(&thread->rcu.preempt_link);
 }
@@ -406,5 +406,5 @@
 	for (unsigned int cpu_id = 0; cpu_id < config.cpu_active; ++cpu_id) {
 		assert(cpus[cpu_id].rcu.reclaimer_thr != NULL);
-	
+
 		if (cpus[cpu_id].rcu.reclaimer_thr) {
 			thread_interrupt(cpus[cpu_id].rcu.reclaimer_thr);
@@ -432,5 +432,5 @@
 	uint64_t completed = rcu.completed_gp;
 	spinlock_unlock(&rcu.gp_lock);
-	
+
 	return completed;
 }
@@ -441,7 +441,7 @@
 	for (unsigned int cpu_id = 0; cpu_id < config.cpu_count; ++cpu_id) {
 		char name[THREAD_NAME_BUFLEN] = {0};
-		
+
 		snprintf(name, THREAD_NAME_BUFLEN - 1, "rcu-rec/%u", cpu_id);
-		
+
 		cpus[cpu_id].rcu.reclaimer_thr =
 			thread_create(reclaimer, NULL, TASK, THREAD_FLAG_NONE, name);
@@ -462,8 +462,8 @@
 	rcu.detector_thr =
 		thread_create(detector, NULL, TASK, THREAD_FLAG_NONE, "rcu-det");
-	
+
 	if (!rcu.detector_thr)
 		panic("Failed to create RCU detector thread.");
-	
+
 	thread_ready(rcu.detector_thr);
 }
@@ -475,5 +475,5 @@
 	bool locked = 0 < CPU->rcu.nesting_cnt;
 	preemption_enable();
-	
+
 	return locked;
 }
@@ -489,8 +489,8 @@
 {
 	assert(PREEMPTION_DISABLED || interrupts_disabled());
-	
+
 	if (0 == --(*pnesting_cnt)) {
 		_rcu_record_qs();
-		
+
 		/*
 		 * The thread was preempted while in a critical section or
@@ -511,5 +511,5 @@
 {
 	assert(PREEMPTION_DISABLED || interrupts_disabled());
-	
+
 	/*
 	 * If an interrupt occurs here (even a NMI) it may beat us to
@@ -517,5 +517,5 @@
 	 * for us.
 	 */
-	
+
 	/*
 	 * If the detector is eagerly waiting for this cpu's reader to unlock,
@@ -525,5 +525,5 @@
 		semaphore_up(&rcu.remaining_readers);
 	}
-	
+
 	/*
 	 * This reader was preempted while in a reader section.
@@ -536,5 +536,5 @@
 		rm_preempted_reader();
 	}
-	
+
 	/* If there was something to signal to the detector we have done so. */
 	CPU->rcu.signal_unlock = false;
@@ -565,5 +565,5 @@
 	/* Calling from a reader section will deadlock. */
 	assert(!rcu_read_locked());
-	
+
 	synch_item_t completion;
 
@@ -589,5 +589,5 @@
 	 */
 	mutex_lock(&rcu.barrier_mtx);
-	
+
 	/*
 	 * Ensure we queue a barrier callback on all cpus before the already
@@ -598,13 +598,13 @@
 	DEFINE_CPU_MASK(cpu_mask);
 	cpu_mask_active(cpu_mask);
-	
+
 	cpu_mask_for_each(*cpu_mask, cpu_id) {
 		smp_call(cpu_id, add_barrier_cb, NULL);
 	}
-	
+
 	if (0 < atomic_predec(&rcu.barrier_wait_cnt)) {
 		waitq_sleep(&rcu.barrier_wq);
 	}
-	
+
 	mutex_unlock(&rcu.barrier_mtx);
 }
@@ -659,8 +659,8 @@
 {
 	assert(rcu_item);
-	
+
 	rcu_item->func = func;
 	rcu_item->next = NULL;
-	
+
 	preemption_disable();
 
@@ -670,19 +670,19 @@
 		= local_atomic_exchange(&r->parriving_cbs_tail, &rcu_item->next);
 	*prev_tail = rcu_item;
-	
+
 	/* Approximate the number of callbacks present. */
 	++r->arriving_cbs_cnt;
-	
+
 	if (expedite) {
 		r->expedite_arriving = true;
 	}
-	
+
 	bool first_cb = (prev_tail == &CPU->rcu.arriving_cbs);
-	
+
 	/* Added first callback - notify the reclaimer. */
 	if (first_cb && !semaphore_count_get(&r->arrived_flag)) {
 		semaphore_up(&r->arrived_flag);
 	}
-	
+
 	preemption_enable();
 }
@@ -725,12 +725,12 @@
 	rcu_gp_t last_compl_gp = 0;
 	bool ok = true;
-	
+
 	while (ok && wait_for_pending_cbs()) {
 		assert(CPU->rcu.reclaimer_thr == THREAD);
-		
+
 		exec_completed_cbs(last_compl_gp);
 
 		bool expedite = advance_cbs();
-		
+
 		ok = wait_for_cur_cbs_gp_end(expedite, &last_compl_gp);
 	}
@@ -744,9 +744,9 @@
 
 	bool ok = true;
-	
+
 	while (arriving_cbs_empty() && ok) {
 		ok = semaphore_down_interruptable(&CPU->rcu.arrived_flag);
 	}
-	
+
 	return ok;
 }
@@ -763,11 +763,11 @@
 {
 	upd_stat_missed_gp(last_completed_gp);
-	
+
 	/* Both next_cbs and cur_cbs GP elapsed. */
 	if (CPU->rcu.next_cbs_gp <= last_completed_gp) {
 		assert(CPU->rcu.cur_cbs_gp <= CPU->rcu.next_cbs_gp);
-		
+
 		size_t exec_cnt = CPU->rcu.cur_cbs_cnt + CPU->rcu.next_cbs_cnt;
-		
+
 		if (exec_cnt < CRITICAL_THRESHOLD) {
 			exec_cbs(&CPU->rcu.cur_cbs);
@@ -784,5 +784,5 @@
 			preemption_enable();
 		}
-		
+
 		CPU->rcu.cur_cbs_cnt = 0;
 		CPU->rcu.next_cbs_cnt = 0;
@@ -815,10 +815,10 @@
 		rcu_item_t *next = rcu_item->next;
 		rcu_func_t func = rcu_item->func;
-		
+
 		func(rcu_item);
-		
+
 		rcu_item = next;
 	}
-	
+
 	*phead = NULL;
 }
@@ -843,10 +843,10 @@
 	CPU->rcu.cur_cbs_cnt = CPU->rcu.next_cbs_cnt;
 	CPU->rcu.cur_cbs_gp = CPU->rcu.next_cbs_gp;
-	
+
 	/* Move arriving_cbs to next_cbs. */
-	
+
 	CPU->rcu.next_cbs_cnt = CPU->rcu.arriving_cbs_cnt;
 	CPU->rcu.arriving_cbs_cnt = 0;
-	
+
 	/*
 	 * Too many callbacks queued. Better speed up the detection
@@ -859,5 +859,5 @@
 	/* Start moving the arriving_cbs list to next_cbs. */
 	CPU->rcu.next_cbs = CPU->rcu.arriving_cbs;
-	
+
 	/*
 	 * At least one callback arrived. The tail therefore does not point
@@ -866,5 +866,5 @@
 	if (CPU->rcu.next_cbs) {
 		assert(CPU->rcu.parriving_cbs_tail != &CPU->rcu.arriving_cbs);
-		
+
 		CPU->rcu.arriving_cbs = NULL;
 		/* Reset arriving_cbs before updating the tail pointer. */
@@ -883,5 +883,5 @@
 	/* Update statistics of arrived callbacks. */
 	upd_stat_cb_cnts(CPU->rcu.next_cbs_cnt);
-	
+
 	/*
 	 * Make changes prior to queuing next_cbs visible to readers.
@@ -891,11 +891,11 @@
 
 	/* At the end of next_cbs_gp, exec next_cbs. Determine what GP that is. */
-	
+
 	if (!next_cbs_empty()) {
 		spinlock_lock(&rcu.gp_lock);
-	
+
 		/* Exec next_cbs at the end of the next GP. */
 		CPU->rcu.next_cbs_gp = _rcu_cur_gp + 1;
-		
+
 		/*
 		 * There are no callbacks to invoke before next_cbs. Instruct
@@ -908,12 +908,12 @@
 			CPU->rcu.cur_cbs_gp = rcu.completed_gp + 1;
 		}
-		
+
 		spinlock_unlock(&rcu.gp_lock);
 	} else {
 		CPU->rcu.next_cbs_gp = CPU->rcu.cur_cbs_gp;
 	}
-	
+
 	assert(CPU->rcu.cur_cbs_gp <= CPU->rcu.next_cbs_gp);
-	
+
 	return expedite;
 }
@@ -936,5 +936,5 @@
 	assert(CPU->rcu.cur_cbs_gp <= CPU->rcu.next_cbs_gp);
 	assert(CPU->rcu.cur_cbs_gp <= _rcu_cur_gp + 1);
-	
+
 	while (rcu.completed_gp < CPU->rcu.cur_cbs_gp) {
 		/* GP has not yet started - start a new one. */
@@ -952,12 +952,12 @@
 		} else {
 			/* GP detection is in progress.*/
-			
+
 			if (expedite)
 				condvar_signal(&rcu.expedite_now);
-			
+
 			/* Wait for the GP to complete. */
 			errno_t ret = _condvar_wait_timeout_spinlock(&rcu.gp_ended, &rcu.gp_lock,
 				SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE);
-			
+
 			if (ret == EINTR) {
 				spinlock_unlock(&rcu.gp_lock);
@@ -966,10 +966,10 @@
 		}
 	}
-	
+
 	upd_missed_gp_in_wait(rcu.completed_gp);
-	
+
 	*completed_gp = rcu.completed_gp;
 	spinlock_unlock(&rcu.gp_lock);
-	
+
 	return true;
 }
@@ -978,22 +978,22 @@
 {
 	DEFINE_CPU_MASK(reader_cpus);
-	
+
 	cpu_mask_active(reader_cpus);
 	rm_quiescent_cpus(reader_cpus);
-	
+
 	while (!cpu_mask_is_none(reader_cpus)) {
 		/* Give cpus a chance to context switch (a QS) and batch callbacks. */
 		if(!gp_sleep(&expedite))
 			return false;
-		
+
 		rm_quiescent_cpus(reader_cpus);
 		sample_cpus(reader_cpus, reader_cpus);
 	}
-	
+
 	/* Update statistic. */
 	if (expedite) {
 		++rcu.stat_expedited_cnt;
 	}
-	
+
 	/*
 	 * All cpus have passed through a QS and see the most recent _rcu_cur_gp.
@@ -1032,9 +1032,9 @@
 	assert(interrupts_disabled());
 	cpu_mask_t *reader_cpus = (cpu_mask_t *)arg;
-	
+
 	bool locked = RCU_CNT_INC <= THE->rcu_nesting;
 	/* smp_call machinery makes the most current _rcu_cur_gp visible. */
 	bool passed_qs = (CPU->rcu.last_seen_gp == _rcu_cur_gp);
-		
+
 	if (locked && !passed_qs) {
 		/*
@@ -1062,5 +1062,5 @@
 	 */
 	size_t nesting_cnt = local_atomic_exchange(&THE->rcu_nesting, 0);
-	
+
 	/*
 	 * Ensures NMIs see .rcu_nesting without the WAS_PREEMPTED mark and
@@ -1068,5 +1068,5 @@
 	 */
 	compiler_barrier();
-	
+
 	/* Preempted a reader critical section for the first time. */
 	if (RCU_CNT_INC <= nesting_cnt && !(nesting_cnt & RCU_WAS_PREEMPTED)) {
@@ -1074,5 +1074,5 @@
 		note_preempted_reader();
 	}
-	
+
 	/* Save the thread's nesting count when it is not running. */
 	THREAD->rcu.nesting_cnt = nesting_cnt;
@@ -1110,5 +1110,5 @@
 		THREAD->priority = -1;
 	}
-	
+
 	upd_max_cbs_in_slice(CPU->rcu.arriving_cbs_cnt);
 }
@@ -1118,5 +1118,5 @@
 {
 	assert(!rcu_read_locked());
-	
+
 	/* Load the thread's saved nesting count from before it was preempted. */
 	THE->rcu_nesting = THREAD->rcu.nesting_cnt;
@@ -1131,5 +1131,5 @@
 {
 	assert(THE->rcu_nesting == 0);
-	
+
 	/*
 	 * The thread forgot to exit its reader critical section.
@@ -1159,5 +1159,5 @@
 {
 	assert(0 == THE->rcu_nesting || RCU_WAS_PREEMPTED == THE->rcu_nesting);
-	
+
 	size_t prev = local_atomic_exchange(&THE->rcu_nesting, 0);
 	if (prev == RCU_WAS_PREEMPTED) {
@@ -1212,7 +1212,7 @@
 		return true;
 	}
-	
+
 	spinlock_lock(&rcu.gp_lock);
-	
+
 	if (CPU->rcu.cur_cbs_gp <= rcu.completed_gp) {
 		*completed_gp = rcu.completed_gp;
@@ -1220,8 +1220,8 @@
 		return true;
 	}
-	
+
 	assert(CPU->rcu.cur_cbs_gp <= CPU->rcu.next_cbs_gp);
 	assert(_rcu_cur_gp <= CPU->rcu.cur_cbs_gp);
-	
+
 	/*
 	 * Notify the detector of how many GP ends we intend to wait for, so
@@ -1231,5 +1231,5 @@
 	size_t remaining_gp_ends = (size_t) (CPU->rcu.next_cbs_gp - _rcu_cur_gp);
 	req_detection(remaining_gp_ends + (arriving_cbs_empty() ? 0 : 1));
-	
+
 	/*
 	 * Ask the detector to speed up GP detection if there are too many
@@ -1239,5 +1239,5 @@
 		if(0 == rcu.req_expedited_cnt)
 			condvar_signal(&rcu.expedite_now);
-		
+
 		/*
 		 * Expedite only cub_cbs. If there really is a surge of callbacks
@@ -1250,11 +1250,11 @@
 	/* Wait for cur_cbs_gp to end. */
 	bool interrupted = cv_wait_for_gp(CPU->rcu.cur_cbs_gp);
-	
+
 	*completed_gp = rcu.completed_gp;
 	spinlock_unlock(&rcu.gp_lock);
-	
+
 	if (!interrupted)
 		upd_missed_gp_in_wait(*completed_gp);
-	
+
 	return !interrupted;
 }
@@ -1264,7 +1264,7 @@
 {
 	assert(spinlock_locked(&rcu.gp_lock));
-	
+
 	bool interrupted = false;
-	
+
 	/* Wait until wait_on_gp ends. */
 	while (rcu.completed_gp < wait_on_gp && !interrupted) {
@@ -1273,5 +1273,5 @@
 		interrupted = (ret == EINTR);
 	}
-	
+
 	return interrupted;
 }
@@ -1296,5 +1296,5 @@
 {
 	spinlock_lock(&rcu.gp_lock);
-	
+
 	while (wait_for_detect_req()) {
 		/*
@@ -1303,10 +1303,10 @@
 		 */
 		start_new_gp();
-		
+
 		spinlock_unlock(&rcu.gp_lock);
-		
+
 		if (!wait_for_readers())
 			goto unlocked_out;
-		
+
 		spinlock_lock(&rcu.gp_lock);
 
@@ -1314,7 +1314,7 @@
 		end_cur_gp();
 	}
-	
+
 	spinlock_unlock(&rcu.gp_lock);
-	
+
 unlocked_out:
 	return;
@@ -1325,14 +1325,14 @@
 {
 	assert(spinlock_locked(&rcu.gp_lock));
-	
+
 	bool interrupted = false;
-	
+
 	while (0 == rcu.req_gp_end_cnt && !interrupted) {
 		int ret = _condvar_wait_timeout_spinlock(&rcu.req_gp_changed,
 			&rcu.gp_lock, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE);
-		
+
 		interrupted = (ret == EINTR);
 	}
-	
+
 	return !interrupted;
 }
@@ -1342,8 +1342,8 @@
 {
 	assert(spinlock_locked(&rcu.gp_lock));
-	
+
 	rcu.completed_gp = _rcu_cur_gp;
 	--rcu.req_gp_end_cnt;
-	
+
 	condvar_broadcast(&rcu.gp_ended);
 }
@@ -1353,5 +1353,5 @@
 {
 	DEFINE_CPU_MASK(reading_cpus);
-	
+
 	/* All running cpus have potential readers. */
 	cpu_mask_active(reading_cpus);
@@ -1363,11 +1363,11 @@
 	if (!gp_sleep())
 		return false;
-	
+
 	/* Non-intrusively determine which cpus have yet to pass a QS. */
 	rm_quiescent_cpus(reading_cpus);
-	
+
 	/* Actively interrupt cpus delaying the current GP and demand a QS. */
 	interrupt_delaying_cpus(reading_cpus);
-	
+
 	/* Wait for the interrupted cpus to notify us that they reached a QS. */
 	if (!wait_for_delaying_cpus())
@@ -1378,9 +1378,9 @@
 	 * monotonically descreases.
 	 */
-	
+
 	/* Wait for the last reader in cur_preempted to notify us it is done. */
 	if (!wait_for_preempt_reader())
 		return false;
-	
+
 	return true;
 }
@@ -1397,5 +1397,5 @@
 			DETECT_SLEEP_MS * 1000, SYNCH_FLAGS_INTERRUPTIBLE);
 	}
-	
+
 	if (0 < rcu.req_expedited_cnt) {
 		--rcu.req_expedited_cnt;
@@ -1403,7 +1403,7 @@
 		++rcu.stat_expedited_cnt;
 	}
-	
+
 	spinlock_unlock(&rcu.gp_lock);
-	
+
 	return (ret != EINTR);
 }
@@ -1413,5 +1413,5 @@
 {
 	atomic_set(&rcu.delaying_cpu_cnt, 0);
-	
+
 	sample_cpus(cpu_mask, NULL);
 }
@@ -1426,5 +1426,5 @@
 	assert(interrupts_disabled());
 	assert(!CPU->rcu.is_delaying_gp);
-	
+
 	/* Cpu did not pass a quiescent state yet. */
 	if (CPU->rcu.last_seen_gp != _rcu_cur_gp) {
@@ -1440,5 +1440,5 @@
 			ACCESS_ONCE(CPU->rcu.is_delaying_gp) = true;
 			CPU->rcu.signal_unlock = true;
-			
+
 			atomic_inc(&rcu.delaying_cpu_cnt);
 		} else {
@@ -1466,5 +1466,5 @@
 		 */
 	}
-	
+
 	/*
 	 * smp_call() makes sure any changes propagate back to the caller.
@@ -1483,8 +1483,8 @@
 			return false;
 	}
-	
+
 	/* Update statistic. */
 	rcu.stat_delayed_cnt += delaying_cpu_cnt;
-	
+
 	return true;
 }
@@ -1506,8 +1506,8 @@
 	 */
 	compiler_barrier();
-	
+
 	/* Save the thread's nesting count when it is not running. */
 	THREAD->rcu.nesting_cnt = CPU->rcu.nesting_cnt;
-	
+
 	/* Preempted a reader critical section for the first time. */
 	if (0 < THREAD->rcu.nesting_cnt && !THREAD->rcu.was_preempted) {
@@ -1515,5 +1515,5 @@
 		note_preempted_reader();
 	}
-	
+
 	/*
 	 * The preempted reader has been noted globally. There are therefore
@@ -1528,5 +1528,5 @@
 	 */
 	CPU->rcu.nesting_cnt = 0;
-	
+
 	/*
 	 * This cpu is holding up the current GP. Let the detector know
@@ -1553,5 +1553,5 @@
 		THREAD->priority = -1;
 	}
-	
+
 	upd_max_cbs_in_slice(CPU->rcu.arriving_cbs_cnt);
 }
@@ -1562,8 +1562,8 @@
 	assert(PREEMPTION_DISABLED || interrupts_disabled());
 	assert(0 == CPU->rcu.nesting_cnt);
-	
+
 	/* Load the thread's saved nesting count from before it was preempted. */
 	CPU->rcu.nesting_cnt = THREAD->rcu.nesting_cnt;
-	
+
 	/*
 	 * Ensures NMI see the proper nesting count before .signal_unlock.
@@ -1572,5 +1572,5 @@
 	 */
 	compiler_barrier();
-	
+
 	/*
 	 * In the unlikely event that a NMI occurs between the loading of the
@@ -1594,5 +1594,5 @@
 	assert(THREAD->state == Exiting);
 	assert(PREEMPTION_DISABLED || interrupts_disabled());
-	
+
 	/*
 	 * The thread forgot to exit its reader critical section.
@@ -1617,10 +1617,10 @@
 {
 	assert(spinlock_locked(&rcu.gp_lock));
-	
+
 	irq_spinlock_lock(&rcu.preempt_lock, true);
-	
+
 	/* Start a new GP. Announce to readers that a quiescent state is needed. */
 	++_rcu_cur_gp;
-	
+
 	/*
 	 * Readers preempted before the start of this GP (next_preempted)
@@ -1632,5 +1632,5 @@
 	 */
 	list_concat(&rcu.cur_preempted, &rcu.next_preempted);
-	
+
 	irq_spinlock_unlock(&rcu.preempt_lock, true);
 }
@@ -1694,5 +1694,5 @@
 	 */
 	memory_barrier(); /* MB C */
-	
+
 	cpu_mask_for_each(*cpu_mask, cpu_id) {
 		/*
@@ -1707,5 +1707,5 @@
 		 */
 		bool cpu_acked_gp = (cpus[cpu_id].rcu.last_seen_gp == _rcu_cur_gp);
-		
+
 		/*
 		 * Either the cpu is idle or it is exiting away from idle mode
@@ -1714,5 +1714,5 @@
 		 */
 		bool cpu_idle = cpus[cpu_id].idle;
-		
+
 		if (cpu_acked_gp || cpu_idle) {
 			cpu_mask_reset(cpu_mask, cpu_id);
@@ -1736,5 +1736,5 @@
 {
 	assert(CPU->rcu.cur_cbs_gp <= completed_gp);
-	
+
 	size_t delta = (size_t)(completed_gp - CPU->rcu.cur_cbs_gp);
 	CPU->rcu.stat_missed_gp_in_wait += delta;
@@ -1764,5 +1764,5 @@
 {
 	irq_spinlock_lock(&rcu.preempt_lock, true);
-	
+
 	assert(link_used(&THREAD->rcu.preempt_link));
 
@@ -1793,14 +1793,14 @@
 	bool reader_exists = !list_empty(&rcu.cur_preempted);
 	rcu.preempt_blocking_det = reader_exists;
-	
+
 	irq_spinlock_unlock(&rcu.preempt_lock, true);
-	
+
 	if (reader_exists) {
 		/* Update statistic. */
 		++rcu.stat_preempt_blocking_cnt;
-		
+
 		return semaphore_down_interruptable(&rcu.remaining_readers);
 	}
-	
+
 	return true;
 }
@@ -1809,10 +1809,10 @@
 {
 	rcu_cpu_data_t *cr = &CPU->rcu;
-	
+
 	if (arriving_cbs_cnt > cr->last_arriving_cnt) {
 		size_t arrived_cnt = arriving_cbs_cnt - cr->last_arriving_cnt;
 		cr->stat_max_slice_cbs = max(arrived_cnt, cr->stat_max_slice_cbs);
 	}
-	
+
 	cr->last_arriving_cnt = arriving_cbs_cnt;
 }
@@ -1826,5 +1826,5 @@
 	 * are no locks to lock in order to get up-to-date values.
 	 */
-	
+
 #ifdef RCU_PREEMPT_PODZIMEK
 	const char *algo = "podzimek-preempt-rcu";
@@ -1832,5 +1832,5 @@
 	const char *algo = "a-preempt-rcu";
 #endif
-	
+
 	printf("Config: expedite_threshold=%d, critical_threshold=%d,"
 		" detect_sleep=%dms, %s\n",
@@ -1843,5 +1843,5 @@
 		"running or not)\n", rcu.stat_preempt_blocking_cnt);
 	printf("Smp calls:     %zu\n", rcu.stat_smp_call_cnt);
-	
+
 	printf("Max arrived callbacks per GP and CPU:\n");
 	for (unsigned int i = 0; i < config.cpu_count; ++i) {
@@ -1853,5 +1853,5 @@
 		printf(" %zu", cpus[i].rcu.stat_avg_cbs);
 	}
-	
+
 	printf("\nMax arrived callbacks per time slice and CPU:\n");
 	for (unsigned int i = 0; i < config.cpu_count; ++i) {
Index: kernel/generic/src/synch/smp_memory_barrier.c
===================================================================
--- kernel/generic/src/synch/smp_memory_barrier.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/synch/smp_memory_barrier.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 		smp_call(cpu_id, issue_mem_bar, NULL);
 	}
-	
+
 	return 0;
 }
Index: kernel/generic/src/synch/spinlock.c
===================================================================
--- kernel/generic/src/synch/spinlock.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/synch/spinlock.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,5 +77,5 @@
 	size_t i = 0;
 	bool deadlock_reported = false;
-	
+
 	preemption_disable();
 	while (test_and_set(&lock->val)) {
@@ -101,5 +101,5 @@
 		if (lock->name[0] == '*')
 			continue;
-		
+
 		if (i++ > DEADLOCK_THRESHOLD) {
 			printf("cpu%u: looping on spinlock %p:%s, "
@@ -107,13 +107,13 @@
 			    (void *) CALLER, symtab_fmt_name_lookup(CALLER));
 			stack_trace();
-			
+
 			i = 0;
 			deadlock_reported = true;
 		}
 	}
-	
+
 	if (deadlock_reported)
 		printf("cpu%u: not deadlocked\n", CPU->id);
-	
+
 	/*
 	 * Prevent critical section code from bleeding out this way up.
@@ -131,10 +131,10 @@
 {
 	ASSERT_SPINLOCK(spinlock_locked(lock), lock);
-	
+
 	/*
 	 * Prevent critical section code from bleeding out this way down.
 	 */
 	CS_LEAVE_BARRIER();
-	
+
 	atomic_set(&lock->val, 0);
 	preemption_enable();
@@ -157,13 +157,13 @@
 	preemption_disable();
 	bool ret = !test_and_set(&lock->val);
-	
+
 	/*
 	 * Prevent critical section code from bleeding out this way up.
 	 */
 	CS_ENTER_BARRIER();
-	
+
 	if (!ret)
 		preemption_enable();
-	
+
 	return ret;
 }
@@ -208,10 +208,10 @@
 		ipl_t ipl = interrupts_disable();
 		spinlock_lock(&(lock->lock));
-		
+
 		lock->guard = true;
 		lock->ipl = ipl;
 	} else {
 		ASSERT_IRQ_SPINLOCK(interrupts_disabled(), lock);
-		
+
 		spinlock_lock(&(lock->lock));
 		ASSERT_IRQ_SPINLOCK(!lock->guard, lock);
@@ -231,11 +231,11 @@
 {
 	ASSERT_IRQ_SPINLOCK(interrupts_disabled(), lock);
-	
+
 	if (irq_res) {
 		ASSERT_IRQ_SPINLOCK(lock->guard, lock);
-		
+
 		lock->guard = false;
 		ipl_t ipl = lock->ipl;
-		
+
 		spinlock_unlock(&(lock->lock));
 		interrupts_restore(ipl);
@@ -261,5 +261,5 @@
 	ASSERT_IRQ_SPINLOCK(interrupts_disabled(), lock);
 	bool ret = spinlock_trylock(&(lock->lock));
-	
+
 	ASSERT_IRQ_SPINLOCK((!ret) || (!lock->guard), lock);
 	return ret;
@@ -280,15 +280,15 @@
 {
 	ASSERT_IRQ_SPINLOCK(interrupts_disabled(), unlock);
-	
+
 	/* Pass guard from unlock to lock */
 	bool guard = unlock->guard;
 	ipl_t ipl = unlock->ipl;
 	unlock->guard = false;
-	
+
 	spinlock_unlock(&(unlock->lock));
 	spinlock_lock(&(lock->lock));
-	
+
 	ASSERT_IRQ_SPINLOCK(!lock->guard, lock);
-	
+
 	if (guard) {
 		lock->guard = true;
@@ -311,8 +311,8 @@
 {
 	ASSERT_IRQ_SPINLOCK(interrupts_disabled(), unlock);
-	
+
 	spinlock_lock(&(lock->lock));
 	ASSERT_IRQ_SPINLOCK(!lock->guard, lock);
-	
+
 	/* Pass guard from unlock to lock */
 	if (unlock->guard) {
@@ -321,5 +321,5 @@
 		unlock->guard = false;
 	}
-	
+
 	spinlock_unlock(&(unlock->lock));
 }
Index: kernel/generic/src/synch/waitq.c
===================================================================
--- kernel/generic/src/synch/waitq.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/synch/waitq.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -94,12 +94,12 @@
 	bool do_wakeup = false;
 	DEADLOCK_PROBE_INIT(p_wqlock);
-	
+
 	irq_spinlock_lock(&threads_lock, false);
 	if (!thread_exists(thread))
 		goto out;
-	
+
 grab_locks:
 	irq_spinlock_lock(&thread->lock, false);
-	
+
 	waitq_t *wq;
 	if ((wq = thread->sleep_queue)) {  /* Assignment */
@@ -110,5 +110,5 @@
 			goto grab_locks;
 		}
-		
+
 		list_remove(&thread->wq_link);
 		thread->saved_context = thread->sleep_timeout_context;
@@ -117,11 +117,11 @@
 		irq_spinlock_unlock(&wq->lock, false);
 	}
-	
+
 	thread->timeout_pending = false;
 	irq_spinlock_unlock(&thread->lock, false);
-	
+
 	if (do_wakeup)
 		thread_ready(thread);
-	
+
 out:
 	irq_spinlock_unlock(&threads_lock, false);
@@ -144,13 +144,13 @@
 	bool do_wakeup = false;
 	DEADLOCK_PROBE_INIT(p_wqlock);
-	
+
 	/*
 	 * The thread is quaranteed to exist because
 	 * threads_lock is held.
 	 */
-	
+
 grab_locks:
 	irq_spinlock_lock(&thread->lock, false);
-	
+
 	waitq_t *wq;
 	if ((wq = thread->sleep_queue)) {  /* Assignment */
@@ -162,5 +162,5 @@
 			return;
 		}
-		
+
 		if (!irq_spinlock_trylock(&wq->lock)) {
 			/* Avoid deadlock */
@@ -169,9 +169,9 @@
 			goto grab_locks;
 		}
-		
+
 		if ((thread->timeout_pending) &&
 		    (timeout_unregister(&thread->sleep_timeout)))
 			thread->timeout_pending = false;
-		
+
 		list_remove(&thread->wq_link);
 		thread->saved_context = thread->sleep_interruption_context;
@@ -180,7 +180,7 @@
 		irq_spinlock_unlock(&wq->lock, false);
 	}
-	
+
 	irq_spinlock_unlock(&thread->lock, false);
-	
+
 	if (do_wakeup)
 		thread_ready(thread);
@@ -198,25 +198,25 @@
 {
 	irq_spinlock_lock(&wq->lock, true);
-	
+
 	if (!list_empty(&wq->sleepers)) {
 		thread_t *thread = list_get_instance(list_first(&wq->sleepers),
 		    thread_t, wq_link);
-		
+
 		irq_spinlock_lock(&thread->lock, false);
-		
+
 		assert(thread->sleep_interruptible);
-		
+
 		if ((thread->timeout_pending) &&
 		    (timeout_unregister(&thread->sleep_timeout)))
 			thread->timeout_pending = false;
-		
+
 		list_remove(&thread->wq_link);
 		thread->saved_context = thread->sleep_interruption_context;
 		thread->sleep_queue = NULL;
-		
+
 		irq_spinlock_unlock(&thread->lock, false);
 		thread_ready(thread);
 	}
-	
+
 	irq_spinlock_unlock(&wq->lock, true);
 }
@@ -271,5 +271,5 @@
 {
 	assert((!PREEMPTION_DISABLED) || (PARAM_NON_BLOCKING(flags, usec)));
-	
+
 	ipl_t ipl = waitq_sleep_prepare(wq);
 	bool nblocked;
@@ -296,8 +296,8 @@
 {
 	ipl_t ipl;
-	
+
 restart:
 	ipl = interrupts_disable();
-	
+
 	if (THREAD) {  /* Needed during system initiailzation */
 		/*
@@ -310,5 +310,5 @@
 		 */
 		irq_spinlock_lock(&THREAD->lock, false);
-		
+
 		if (THREAD->timeout_pending) {
 			irq_spinlock_unlock(&THREAD->lock, false);
@@ -316,8 +316,8 @@
 			goto restart;
 		}
-		
+
 		irq_spinlock_unlock(&THREAD->lock, false);
 	}
-	
+
 	irq_spinlock_lock(&wq->lock, false);
 	return ipl;
@@ -354,5 +354,5 @@
 		irq_spinlock_unlock(&wq->lock, false);
 	}
-	
+
 	interrupts_restore(ipl);
 }
@@ -387,5 +387,5 @@
 		}
 	}
-	
+
 	/*
 	 * Now we are firmly decided to go to sleep.
@@ -393,5 +393,5 @@
 	 */
 	irq_spinlock_lock(&THREAD->lock, false);
-	
+
 	if (flags & SYNCH_FLAGS_INTERRUPTIBLE) {
 		/*
@@ -403,5 +403,5 @@
 			return EINTR;
 		}
-		
+
 		/*
 		 * Set context that will be restored if the sleep
@@ -417,5 +417,5 @@
 	} else
 		THREAD->sleep_interruptible = false;
-	
+
 	if (usec) {
 		/* We use the timeout variant. */
@@ -426,12 +426,12 @@
 			return ETIMEOUT;
 		}
-		
+
 		THREAD->timeout_pending = true;
 		timeout_register(&THREAD->sleep_timeout, (uint64_t) usec,
 		    waitq_sleep_timed_out, THREAD);
 	}
-	
+
 	list_append(&THREAD->wq_link, &wq->sleepers);
-	
+
 	/*
 	 * Suspend execution.
@@ -440,15 +440,15 @@
 	THREAD->state = Sleeping;
 	THREAD->sleep_queue = wq;
-	
+
 	/* Must be before entry to scheduler, because there are multiple
 	 * return vectors.
 	 */
 	*blocked = true;
-	
+
 	irq_spinlock_unlock(&THREAD->lock, false);
-	
+
 	/* wq->lock is released in scheduler_separated_stack() */
 	scheduler();
-	
+
 	return EOK;
 }
@@ -511,5 +511,5 @@
 {
 	assert(interrupts_disabled());
-	
+
 	irq_spinlock_lock(&wq->lock, false);
 	irq_spinlock_unlock(&wq->lock, false);
@@ -536,5 +536,5 @@
 	assert(interrupts_disabled());
 	assert(irq_spinlock_locked(&wq->lock));
-	
+
 loop:
 	if (list_empty(&wq->sleepers)) {
@@ -542,12 +542,12 @@
 		if ((count) && (mode == WAKEUP_ALL))
 			wq->missed_wakeups--;
-		
+
 		return;
 	}
-	
+
 	count++;
 	thread_t *thread = list_get_instance(list_first(&wq->sleepers),
 	    thread_t, wq_link);
-	
+
 	/*
 	 * Lock the thread prior to removing it from the wq.
@@ -569,14 +569,14 @@
 	irq_spinlock_lock(&thread->lock, false);
 	list_remove(&thread->wq_link);
-	
+
 	if ((thread->timeout_pending) &&
 	    (timeout_unregister(&thread->sleep_timeout)))
 		thread->timeout_pending = false;
-	
+
 	thread->sleep_queue = NULL;
 	irq_spinlock_unlock(&thread->lock, false);
-	
+
 	thread_ready(thread);
-	
+
 	if (mode == WAKEUP_ALL)
 		goto loop;
Index: kernel/generic/src/synch/workqueue.c
===================================================================
--- kernel/generic/src/synch/workqueue.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/synch/workqueue.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,17 +59,17 @@
 	 */
 	IRQ_SPINLOCK_DECLARE(lock);
-	
+
 	/* Activates a worker if new work arrives or if shutting down the queue. */
 	condvar_t activate_worker;
-	
+
 	/* Queue of work_items ready to be dispatched. */
 	list_t queue;
-	
+
 	/* List of worker threads. */
 	list_t workers;
-	
+
 	/* Number of work items queued. */
 	size_t item_cnt;
-	
+
 	/* Indicates the work queue is shutting down. */
 	bool stopping;
@@ -84,10 +84,10 @@
 	/* Number of blocked workers sleeping in work func() (ie not idle). */
 	size_t blocked_worker_cnt;
-	
+
 	/* Number of pending signal_worker_op() operations. */
 	size_t pending_op_cnt;
-	
+
 	link_t nb_link;
-	
+
 #ifdef CONFIG_DEBUG
 	/* Magic cookie for integrity checks. Immutable. Accessed without lock. */
@@ -105,5 +105,5 @@
 /** Max number of work items per active worker before a new worker is activated.*/
 static const size_t max_items_per_worker = 8;
-	
+
 /** System wide work queue. */
 static struct work_queue g_work_queue;
@@ -157,10 +157,10 @@
 	 */
 	booting = false;
-	
+
 	nonblock_init();
-	
+
 	if (!add_worker(&g_work_queue))
 		panic("Could not create a single global work queue worker!\n");
-	
+
 }
 
@@ -174,5 +174,5 @@
 	/* Maximum concurrency without slowing down the system. */
 	max_concurrent_workers = max(2, config.cpu_count);
-	
+
 	workq_preinit(&g_work_queue, "kworkq");
 }
@@ -188,5 +188,5 @@
 {
 	struct work_queue *workq = malloc(sizeof(struct work_queue), 0);
-	
+
 	if (workq) {
 		if (workq_init(workq, name)) {
@@ -194,8 +194,8 @@
 			return workq;
 		}
-		
+
 		free(workq);
 	}
-	
+
 	return NULL;
 }
@@ -205,5 +205,5 @@
 {
 	assert(!workq_corrupted(workq));
-	
+
 	irq_spinlock_lock(&workq->lock, true);
 	bool stopped = workq->stopping;
@@ -212,5 +212,5 @@
 #endif
 	irq_spinlock_unlock(&workq->lock, true);
-	
+
 	if (!stopped) {
 		workq_stop(workq);
@@ -218,9 +218,9 @@
 		assert(0 == running_workers);
 	}
-	
+
 #ifdef CONFIG_DEBUG
 	workq->cookie = 0;
 #endif
-	
+
 	free(workq);
 }
@@ -232,20 +232,20 @@
 	workq->cookie = WORKQ_MAGIC;
 #endif
-	
+
 	irq_spinlock_initialize(&workq->lock, name);
 	condvar_initialize(&workq->activate_worker);
-	
+
 	list_initialize(&workq->queue);
 	list_initialize(&workq->workers);
-	
+
 	workq->item_cnt = 0;
 	workq->stopping = false;
 	workq->name = name;
-	
+
 	workq->cur_worker_cnt = 1;
 	workq->idle_worker_cnt = 0;
 	workq->activate_pending = 0;
 	workq->blocked_worker_cnt = 0;
-	
+
 	workq->pending_op_cnt = 0;
 	link_initialize(&workq->nb_link);
@@ -270,16 +270,16 @@
 	thread_t *thread = thread_create(worker_thread, workq, TASK,
 		THREAD_FLAG_NONE, workq->name);
-	
+
 	if (!thread) {
 		irq_spinlock_lock(&workq->lock, true);
-		
+
 		/* cur_worker_cnt proactively increased in signal_worker_logic() .*/
 		assert(0 < workq->cur_worker_cnt);
 		--workq->cur_worker_cnt;
-		
+
 		irq_spinlock_unlock(&workq->lock, true);
 		return false;
 	}
-	
+
 	/* Respect lock ordering. */
 	irq_spinlock_lock(&thread->lock, true);
@@ -290,8 +290,8 @@
 	if (!workq->stopping) {
 		success = true;
-		
+
 		/* Try to distribute workers among cpus right away. */
 		unsigned int cpu_id = (workq->cur_worker_cnt) % config.cpu_active;
-		
+
 		if (!cpus[cpu_id].active)
 			cpu_id = CPU->id;
@@ -312,10 +312,10 @@
 		 */
 		success = false;
-		
+
 		/* cur_worker_cnt proactively increased in signal_worker() .*/
 		assert(0 < workq->cur_worker_cnt);
 		--workq->cur_worker_cnt;
 	}
-	
+
 	irq_spinlock_unlock(&workq->lock, false);
 	irq_spinlock_unlock(&thread->lock, true);
@@ -324,7 +324,7 @@
 		thread_interrupt(thread);
 	}
-		
+
 	thread_ready(thread);
-	
+
 	return success;
 }
@@ -337,5 +337,5 @@
 {
 	assert(!workq_corrupted(workq));
-	
+
 	interrupt_workers(workq);
 	wait_for_workers(workq);
@@ -350,8 +350,8 @@
 	assert(!workq->stopping);
 	workq->stopping = true;
-	
+
 	/* Respect lock ordering - do not hold workq->lock during broadcast. */
 	irq_spinlock_unlock(&workq->lock, true);
-	
+
 	condvar_broadcast(&workq->activate_worker);
 }
@@ -361,7 +361,7 @@
 {
 	assert(!PREEMPTION_DISABLED);
-	
+
 	irq_spinlock_lock(&workq->lock, true);
-	
+
 	list_foreach_safe(workq->workers, cur_worker, next_worker) {
 		thread_t *worker = list_get_instance(cur_worker, thread_t, workq_link);
@@ -370,22 +370,22 @@
 		/* Wait without the lock. */
 		irq_spinlock_unlock(&workq->lock, true);
-		
+
 		thread_join(worker);
 		thread_detach(worker);
-		
+
 		irq_spinlock_lock(&workq->lock, true);
 	}
-	
+
 	assert(list_empty(&workq->workers));
-	
+
 	/* Wait for deferred add_worker_op(), signal_worker_op() to finish. */
 	while (0 < workq->cur_worker_cnt || 0 < workq->pending_op_cnt) {
 		irq_spinlock_unlock(&workq->lock, true);
-		
+
 		scheduler();
-		
+
 		irq_spinlock_lock(&workq->lock, true);
 	}
-	
+
 	irq_spinlock_unlock(&workq->lock, true);
 }
@@ -422,5 +422,5 @@
  *                  until func() is entered.
  * @param func      User supplied function to invoke in a worker thread.
- 
+
  * @return false if work queue is shutting down; function is not
  *               queued for further processing.
@@ -442,5 +442,5 @@
  *                  until func() is entered.
  * @param func      User supplied function to invoke in a worker thread.
- 
+
  * @return false if work queue is shutting down; function is not
  *               queued for further processing.
@@ -467,5 +467,5 @@
  * @param func      User supplied function to invoke in a worker thread.
  * @param can_block May adding this work item block?
- 
+
  * @return false if work queue is shutting down; function is not
  *               queued for further processing.
@@ -476,10 +476,10 @@
 {
 	assert(!workq_corrupted(workq));
-	
+
 	bool success = true;
 	signal_op_t signal_op = NULL;
-	
+
 	irq_spinlock_lock(&workq->lock, true);
-	
+
 	if (workq->stopping) {
 		success = false;
@@ -489,5 +489,5 @@
 		++workq->item_cnt;
 		success = true;
-		
+
 		if (!booting) {
 			signal_op = signal_worker_logic(workq, can_block);
@@ -499,5 +499,5 @@
 		}
 	}
-	
+
 	irq_spinlock_unlock(&workq->lock, true);
 
@@ -505,5 +505,5 @@
 		signal_op(workq);
 	}
-	
+
 	return success;
 }
@@ -515,5 +515,5 @@
 	work_item->cookie = WORK_ITEM_MAGIC;
 #endif
-	
+
 	link_initialize(&work_item->queue_link);
 	work_item->func = func;
@@ -524,17 +524,17 @@
 {
 	assert(irq_spinlock_locked(&workq->lock));
-	
+
 	/* Workers blocked are sleeping in the work function (ie not idle). */
 	assert(workq->blocked_worker_cnt <= workq->cur_worker_cnt);
 	/* Idle workers are waiting for more work to arrive in condvar_wait. */
 	assert(workq->idle_worker_cnt <= workq->cur_worker_cnt);
-	
+
 	/* Idle + blocked workers == sleeping worker threads. */
 	size_t sleeping_workers = workq->blocked_worker_cnt + workq->idle_worker_cnt;
-	
+
 	assert(sleeping_workers	<= workq->cur_worker_cnt);
 	/* Workers pending activation are idle workers not yet given a time slice. */
 	assert(workq->activate_pending <= workq->idle_worker_cnt);
-	
+
 	/*
 	 * Workers actively running the work func() this very moment and
@@ -553,5 +553,5 @@
 {
 	assert(irq_spinlock_locked(&workq->lock));
-	
+
 	/*
 	 * Workers actively running the work func() and are neither blocked nor
@@ -578,5 +578,5 @@
 
 	condvar_signal(&workq->activate_worker);
-	
+
 	irq_spinlock_lock(&workq->lock, true);
 	assert(0 < workq->pending_op_cnt);
@@ -597,5 +597,5 @@
 	assert(!workq_corrupted(workq));
 	assert(irq_spinlock_locked(&workq->lock));
-	
+
 	/* Only signal workers if really necessary. */
 	signal_op_t signal_op = NULL;
@@ -630,5 +630,5 @@
 			bool need_worker = (active < max_concurrent_workers)
 				&& (workq->cur_worker_cnt < max_worker_cnt);
-			
+
 			if (need_worker && can_block) {
 				signal_op = add_worker_op;
@@ -641,5 +641,5 @@
 				++workq->cur_worker_cnt;
 			}
-			
+
 			/*
 			 * We cannot create a new worker but we need one desperately
@@ -648,5 +648,5 @@
 			if (need_worker && !can_block && 0 == active) {
 				assert(0 == workq->idle_worker_cnt);
-				
+
 				irq_spinlock_lock(&nonblock_adder.lock, true);
 
@@ -667,5 +667,5 @@
 		signal_op = NULL;
 	}
-	
+
 	return signal_op;
 }
@@ -682,10 +682,10 @@
 		return;
 	}
-	
+
 	assert(arg != NULL);
-	
+
 	struct work_queue *workq = arg;
 	work_t *work_item;
-	
+
 	while (dequeue_work(workq, &work_item)) {
 		/* Copy the func field so func() can safely free work_item. */
@@ -700,7 +700,7 @@
 {
 	assert(!workq_corrupted(workq));
-	
+
 	irq_spinlock_lock(&workq->lock, true);
-	
+
 	/* Check if we should exit if load is low. */
 	if (!workq->stopping && worker_unnecessary(workq)) {
@@ -710,15 +710,15 @@
 		list_remove(&THREAD->workq_link);
 		irq_spinlock_unlock(&workq->lock, true);
-		
+
 		thread_detach(THREAD);
 		return false;
 	}
-	
+
 	bool stop = false;
-	
+
 	/* Wait for work to arrive. */
 	while (list_empty(&workq->queue) && !workq->stopping) {
 		cv_wait(workq);
-		
+
 		if (0 < workq->activate_pending)
 			--workq->activate_pending;
@@ -729,5 +729,5 @@
 		link_t *work_link = list_first(&workq->queue);
 		*pwork_item = list_get_instance(work_link, work_t, queue_link);
-		
+
 #ifdef CONFIG_DEBUG
 		assert(!work_item_corrupted(*pwork_item));
@@ -736,5 +736,5 @@
 		list_remove(work_link);
 		--workq->item_cnt;
-		
+
 		stop = false;
 	} else {
@@ -744,7 +744,7 @@
 		stop = true;
 	}
-	
+
 	irq_spinlock_unlock(&workq->lock, true);
-	
+
 	return !stop;
 }
@@ -754,5 +754,5 @@
 {
 	assert(irq_spinlock_locked(&workq->lock));
-	
+
 	/* No work is pending. We don't need too many idle threads. */
 	if (list_empty(&workq->queue)) {
@@ -775,8 +775,8 @@
 	++workq->idle_worker_cnt;
 	THREAD->workq_idling = true;
-	
+
 	/* Ignore lock ordering just here. */
 	assert(irq_spinlock_locked(&workq->lock));
-	
+
 	_condvar_wait_timeout_irq_spinlock(&workq->activate_worker,
 		&workq->lock, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE);
@@ -784,5 +784,5 @@
 	assert(!workq_corrupted(workq));
 	assert(irq_spinlock_locked(&workq->lock));
-	
+
 	THREAD->workq_idling = false;
 	--workq->idle_worker_cnt;
@@ -803,8 +803,8 @@
 		assert(THREAD != thread);
 		assert(!workq_corrupted(thread->workq));
-		
+
 		/* Protected by thread->lock */
 		thread->workq_blocked = false;
-		
+
 		irq_spinlock_lock(&thread->workq->lock, true);
 		--thread->workq->blocked_worker_cnt;
@@ -823,16 +823,16 @@
 		assert(!THREAD->workq_blocked);
 		assert(!workq_corrupted(THREAD->workq));
-		
+
 		THREAD->workq_blocked = true;
-		
+
 		irq_spinlock_lock(&THREAD->workq->lock, false);
 
 		++THREAD->workq->blocked_worker_cnt;
-		
+
 		bool can_block = false;
 		signal_op_t op = signal_worker_logic(THREAD->workq, can_block);
-		
+
 		irq_spinlock_unlock(&THREAD->workq->lock, false);
-		
+
 		if (op) {
 			assert(add_worker_noblock_op == op || signal_worker_op == op);
@@ -856,7 +856,7 @@
 	const char *load_str = worker_surplus ? "decreasing" :
 		(0 < workq->activate_pending) ? "increasing" : "stable";
-	
+
 	irq_spinlock_unlock(&workq->lock, true);
-	
+
 	printf(
 		"Configuration: max_worker_cnt=%zu, min_worker_cnt=%zu,\n"
@@ -893,12 +893,12 @@
 
 	irq_spinlock_lock(&info->lock, true);
-	
+
 	while (list_empty(&info->work_queues) && !stop) {
 		errno_t ret = _condvar_wait_timeout_irq_spinlock(&info->req_cv,
 			&info->lock, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE);
-		
+
 		stop = (ret == EINTR);
 	}
-	
+
 	if (!stop) {
 		*pworkq = list_get_instance(list_first(&info->work_queues),
@@ -906,10 +906,10 @@
 
 		assert(!workq_corrupted(*pworkq));
-		
+
 		list_remove(&(*pworkq)->nb_link);
 	}
-	
+
 	irq_spinlock_unlock(&info->lock, true);
-	
+
 	return !stop;
 }
@@ -919,5 +919,5 @@
 	nonblock_adder_t *info = arg;
 	struct work_queue *workq;
-	
+
 	while (dequeue_add_req(info, &workq)) {
 		add_worker(workq);
@@ -931,8 +931,8 @@
 	condvar_initialize(&nonblock_adder.req_cv);
 	list_initialize(&nonblock_adder.work_queues);
-	
+
 	nonblock_adder.thread = thread_create(thr_nonblock_add_worker,
 		&nonblock_adder, TASK, THREAD_FLAG_NONE, "kworkq-nb");
-	
+
 	if (nonblock_adder.thread) {
 		thread_ready(nonblock_adder.thread);
Index: kernel/generic/src/syscall/copy.c
===================================================================
--- kernel/generic/src/syscall/copy.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/syscall/copy.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -26,5 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-    
+
 /** @addtogroup generic
  * @{
@@ -63,8 +63,8 @@
 	ipl_t ipl;
 	errno_t rc;
-	
+
 	assert(THREAD);
 	assert(!THREAD->in_copy_from_uspace);
-	
+
 	if (!KERNEL_ADDRESS_SPACE_SHADOWED) {
 		if (overlaps((uintptr_t) uspace_src, size,
@@ -86,8 +86,8 @@
 		return EPERM;
 #endif
-	
+
 	ipl = interrupts_disable();
 	THREAD->in_copy_from_uspace = true;
-	
+
 	rc = memcpy_from_uspace(dst, uspace_src, size);
 
@@ -114,8 +114,8 @@
 	ipl_t ipl;
 	errno_t rc;
-	
+
 	assert(THREAD);
 	assert(!THREAD->in_copy_to_uspace);
-	
+
 	if (!KERNEL_ADDRESS_SPACE_SHADOWED) {
 		if (overlaps((uintptr_t) uspace_dst, size,
@@ -137,8 +137,8 @@
 		return EPERM;
 #endif
-	
+
 	ipl = interrupts_disable();
 	THREAD->in_copy_to_uspace = true;
-	
+
 	rc = memcpy_to_uspace(uspace_dst, src, size);
 
Index: kernel/generic/src/syscall/syscall.c
===================================================================
--- kernel/generic/src/syscall/syscall.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/syscall/syscall.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 	thread_update_accounting(true);
 	irq_spinlock_unlock(&THREAD->lock, true);
-	
+
 #ifdef CONFIG_UDEBUG
 	/*
@@ -82,5 +82,5 @@
 		udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, 0, false);
 #endif
-	
+
 	sysarg_t rc;
 	if (id < SYSCALL_END) {
@@ -91,12 +91,12 @@
 		task_kill_self(true);
 	}
-	
+
 	if (THREAD->interrupted)
 		thread_exit();
-	
+
 #ifdef CONFIG_UDEBUG
 	if (THREAD->udebug.active) {
 		udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, rc, true);
-		
+
 		/*
 		 * Stopping point needed for tasks that only invoke
@@ -111,10 +111,10 @@
 	THREAD->udebug.uspace_state = NULL;
 #endif
-	
+
 	/* Do kernel accounting */
 	irq_spinlock_lock(&THREAD->lock, true);
 	thread_update_accounting(false);
 	irq_spinlock_unlock(&THREAD->lock, true);
-	
+
 	return rc;
 }
@@ -123,5 +123,5 @@
 	/* System management syscalls. */
 	[SYS_KIO] = (syshandler_t) sys_kio,
-	
+
 	/* Thread and task related syscalls. */
 	[SYS_THREAD_CREATE] = (syshandler_t) sys_thread_create,
@@ -130,5 +130,5 @@
 	[SYS_THREAD_USLEEP] = (syshandler_t) sys_thread_usleep,
 	[SYS_THREAD_UDELAY] = (syshandler_t) sys_thread_udelay,
-	
+
 	[SYS_TASK_GET_ID] = (syshandler_t) sys_task_get_id,
 	[SYS_TASK_SET_NAME] = (syshandler_t) sys_task_set_name,
@@ -136,5 +136,5 @@
 	[SYS_TASK_EXIT] = (syshandler_t) sys_task_exit,
 	[SYS_PROGRAM_SPAWN_LOADER] = (syshandler_t) sys_program_spawn_loader,
-	
+
 	/* Synchronization related syscalls. */
 	[SYS_FUTEX_SLEEP] = (syshandler_t) sys_futex_sleep,
@@ -142,5 +142,5 @@
 	[SYS_SMC_COHERENCE] = (syshandler_t) sys_smc_coherence,
 	[SYS_SMP_MEMORY_BARRIER] = (syshandler_t) sys_smp_memory_barrier,
-	
+
 	/* Address space related syscalls. */
 	[SYS_AS_AREA_CREATE] = (syshandler_t) sys_as_area_create,
@@ -148,8 +148,8 @@
 	[SYS_AS_AREA_CHANGE_FLAGS] = (syshandler_t) sys_as_area_change_flags,
 	[SYS_AS_AREA_DESTROY] = (syshandler_t) sys_as_area_destroy,
-	
+
 	/* Page mapping related syscalls. */
 	[SYS_PAGE_FIND_MAPPING] = (syshandler_t) sys_page_find_mapping,
-	
+
 	/* IPC related syscalls. */
 	[SYS_IPC_CALL_ASYNC_FAST] = (syshandler_t) sys_ipc_call_async_fast,
@@ -163,14 +163,14 @@
 	[SYS_IPC_HANGUP] = (syshandler_t) sys_ipc_hangup,
 	[SYS_IPC_CONNECT_KBOX] = (syshandler_t) sys_ipc_connect_kbox,
-	
+
 	/* Event notification syscalls. */
 	[SYS_IPC_EVENT_SUBSCRIBE] = (syshandler_t) sys_ipc_event_subscribe,
 	[SYS_IPC_EVENT_UNSUBSCRIBE] = (syshandler_t) sys_ipc_event_unsubscribe,
 	[SYS_IPC_EVENT_UNMASK] = (syshandler_t) sys_ipc_event_unmask,
-	
+
 	/* Permission related syscalls. */
 	[SYS_PERM_GRANT] = (syshandler_t) sys_perm_grant,
 	[SYS_PERM_REVOKE] = (syshandler_t) sys_perm_revoke,
-	
+
 	/* DDI related syscalls. */
 	[SYS_PHYSMEM_MAP] = (syshandler_t) sys_physmem_map,
@@ -180,8 +180,8 @@
 	[SYS_IOSPACE_ENABLE] = (syshandler_t) sys_iospace_enable,
 	[SYS_IOSPACE_DISABLE] = (syshandler_t) sys_iospace_disable,
-	
+
 	[SYS_IPC_IRQ_SUBSCRIBE] = (syshandler_t) sys_ipc_irq_subscribe,
 	[SYS_IPC_IRQ_UNSUBSCRIBE] = (syshandler_t) sys_ipc_irq_unsubscribe,
-	
+
 	/* Sysinfo syscalls. */
 	[SYS_SYSINFO_GET_KEYS_SIZE] = (syshandler_t) sys_sysinfo_get_keys_size,
@@ -191,8 +191,8 @@
 	[SYS_SYSINFO_GET_DATA_SIZE] = (syshandler_t) sys_sysinfo_get_data_size,
 	[SYS_SYSINFO_GET_DATA] = (syshandler_t) sys_sysinfo_get_data,
-	
+
 	/* Kernel console syscalls. */
 	[SYS_DEBUG_CONSOLE] = (syshandler_t) sys_debug_console,
-	
+
 	[SYS_KLOG] = (syshandler_t) sys_klog,
 };
Index: kernel/generic/src/sysinfo/stats.c
===================================================================
--- kernel/generic/src/sysinfo/stats.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/sysinfo/stats.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -99,5 +99,5 @@
 	if (dry_run)
 		return NULL;
-	
+
 	/* Assumption: config.cpu_count is constant */
 	stats_cpu_t *stats_cpus = (stats_cpu_t *) malloc(*size, FRAME_ATOMIC);
@@ -106,9 +106,9 @@
 		return NULL;
 	}
-	
+
 	size_t i;
 	for (i = 0; i < config.cpu_count; i++) {
 		irq_spinlock_lock(&cpus[i].lock, true);
-		
+
 		stats_cpus[i].id = cpus[i].id;
 		stats_cpus[i].active = cpus[i].active;
@@ -116,8 +116,8 @@
 		stats_cpus[i].busy_cycles = cpus[i].busy_cycles;
 		stats_cpus[i].idle_cycles = cpus[i].idle_cycles;
-		
+
 		irq_spinlock_unlock(&cpus[i].lock, true);
 	}
-	
+
 	return ((void *) stats_cpus);
 }
@@ -137,5 +137,5 @@
 	size_t *count = (size_t *) arg;
 	(*count)++;
-	
+
 	return true;
 }
@@ -156,10 +156,10 @@
 	 * object, return inexact statistics by skipping the respective object.
 	 */
-	
+
 	if (mutex_trylock(&as->lock) != EOK)
 		return 0;
-	
+
 	size_t pages = 0;
-	
+
 	/* Walk the B+ tree and count pages */
 	list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t,
@@ -168,15 +168,15 @@
 		for (i = 0; i < node->keys; i++) {
 			as_area_t *area = node->value[i];
-			
+
 			if (mutex_trylock(&area->lock) != EOK)
 				continue;
-			
+
 			pages += area->pages;
 			mutex_unlock(&area->lock);
 		}
 	}
-	
+
 	mutex_unlock(&as->lock);
-	
+
 	return (pages << PAGE_WIDTH);
 }
@@ -197,10 +197,10 @@
 	 * object, return inexact statistics by skipping the respective object.
 	 */
-	
+
 	if (mutex_trylock(&as->lock) != EOK)
 		return 0;
-	
+
 	size_t pages = 0;
-	
+
 	/* Walk the B+ tree and count pages */
 	list_foreach(as->as_area_btree.leaf_list, leaf_link, btree_node_t, node) {
@@ -208,15 +208,15 @@
 		for (i = 0; i < node->keys; i++) {
 			as_area_t *area = node->value[i];
-			
+
 			if (mutex_trylock(&area->lock) != EOK)
 				continue;
-			
+
 			pages += area->resident;
 			mutex_unlock(&area->lock);
 		}
 	}
-	
+
 	mutex_unlock(&as->lock);
-	
+
 	return (pages << PAGE_WIDTH);
 }
@@ -234,5 +234,5 @@
 	assert(interrupts_disabled());
 	assert(irq_spinlock_locked(&task->lock));
-	
+
 	stats_task->task_id = task->taskid;
 	str_cpy(stats_task->name, TASK_NAME_BUFLEN, task->name);
@@ -260,14 +260,14 @@
 	stats_task_t **iterator = (stats_task_t **) arg;
 	task_t *task = avltree_get_instance(node, task_t, tasks_tree_node);
-	
+
 	/* Interrupts are already disabled */
 	irq_spinlock_lock(&(task->lock), false);
-	
+
 	/* Record the statistics and increment the iterator */
 	produce_stats_task(task, *iterator);
 	(*iterator)++;
-	
+
 	irq_spinlock_unlock(&(task->lock), false);
-	
+
 	return true;
 }
@@ -289,9 +289,9 @@
 	/* Messing with task structures, avoid deadlock */
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 	/* First walk the task tree to count the tasks */
 	size_t count = 0;
 	avltree_walk(&tasks_tree, avl_count_walker, (void *) &count);
-	
+
 	if (count == 0) {
 		/* No tasks found (strange) */
@@ -300,5 +300,5 @@
 		return NULL;
 	}
-	
+
 	*size = sizeof(stats_task_t) * count;
 	if (dry_run) {
@@ -306,5 +306,5 @@
 		return NULL;
 	}
-	
+
 	stats_task_t *stats_tasks = (stats_task_t *) malloc(*size, FRAME_ATOMIC);
 	if (stats_tasks == NULL) {
@@ -314,11 +314,11 @@
 		return NULL;
 	}
-	
+
 	/* Walk tha task tree again to gather the statistics */
 	stats_task_t *iterator = stats_tasks;
 	avltree_walk(&tasks_tree, task_serialize_walker, (void *) &iterator);
-	
+
 	irq_spinlock_unlock(&tasks_lock, true);
-	
+
 	return ((void *) stats_tasks);
 }
@@ -336,5 +336,5 @@
 	assert(interrupts_disabled());
 	assert(irq_spinlock_locked(&thread->lock));
-	
+
 	stats_thread->thread_id = thread->tid;
 	stats_thread->task_id = thread->task->taskid;
@@ -343,5 +343,5 @@
 	stats_thread->ucycles = thread->ucycles;
 	stats_thread->kcycles = thread->kcycles;
-	
+
 	if (thread->cpu != NULL) {
 		stats_thread->on_cpu = true;
@@ -366,14 +366,14 @@
 	stats_thread_t **iterator = (stats_thread_t **) arg;
 	thread_t *thread = avltree_get_instance(node, thread_t, threads_tree_node);
-	
+
 	/* Interrupts are already disabled */
 	irq_spinlock_lock(&thread->lock, false);
-	
+
 	/* Record the statistics and increment the iterator */
 	produce_stats_thread(thread, *iterator);
 	(*iterator)++;
-	
+
 	irq_spinlock_unlock(&thread->lock, false);
-	
+
 	return true;
 }
@@ -395,9 +395,9 @@
 	/* Messing with threads structures, avoid deadlock */
 	irq_spinlock_lock(&threads_lock, true);
-	
+
 	/* First walk the thread tree to count the threads */
 	size_t count = 0;
 	avltree_walk(&threads_tree, avl_count_walker, (void *) &count);
-	
+
 	if (count == 0) {
 		/* No threads found (strange) */
@@ -406,5 +406,5 @@
 		return NULL;
 	}
-	
+
 	*size = sizeof(stats_thread_t) * count;
 	if (dry_run) {
@@ -412,5 +412,5 @@
 		return NULL;
 	}
-	
+
 	stats_thread_t *stats_threads = (stats_thread_t *) malloc(*size, FRAME_ATOMIC);
 	if (stats_threads == NULL) {
@@ -420,11 +420,11 @@
 		return NULL;
 	}
-	
+
 	/* Walk tha thread tree again to gather the statistics */
 	stats_thread_t *iterator = stats_threads;
 	avltree_walk(&threads_tree, thread_serialize_walker, (void *) &iterator);
-	
+
 	irq_spinlock_unlock(&threads_lock, true);
-	
+
 	return ((void *) stats_threads);
 }
@@ -454,13 +454,13 @@
 	sysinfo_return_t ret;
 	ret.tag = SYSINFO_VAL_UNDEFINED;
-	
+
 	/* Parse the task ID */
 	task_id_t task_id;
 	if (str_uint64_t(name, NULL, 0, true, &task_id) != EOK)
 		return ret;
-	
+
 	/* Messing with task structures, avoid deadlock */
 	irq_spinlock_lock(&tasks_lock, true);
-	
+
 	task_t *task = task_find_by_id(task_id);
 	if (task == NULL) {
@@ -469,10 +469,10 @@
 		return ret;
 	}
-	
+
 	if (dry_run) {
 		ret.tag = SYSINFO_VAL_FUNCTION_DATA;
 		ret.data.data = NULL;
 		ret.data.size = sizeof(stats_task_t);
-		
+
 		irq_spinlock_unlock(&tasks_lock, true);
 	} else {
@@ -484,18 +484,18 @@
 			return ret;
 		}
-		
+
 		/* Correct return value */
 		ret.tag = SYSINFO_VAL_FUNCTION_DATA;
 		ret.data.data = (void *) stats_task;
 		ret.data.size = sizeof(stats_task_t);
-		
+
 		/* Hand-over-hand locking */
 		irq_spinlock_exchange(&tasks_lock, &task->lock);
-		
+
 		produce_stats_task(task, stats_task);
-		
+
 		irq_spinlock_unlock(&task->lock, true);
 	}
-	
+
 	return ret;
 }
@@ -525,13 +525,13 @@
 	sysinfo_return_t ret;
 	ret.tag = SYSINFO_VAL_UNDEFINED;
-	
+
 	/* Parse the thread ID */
 	thread_id_t thread_id;
 	if (str_uint64_t(name, NULL, 0, true, &thread_id) != EOK)
 		return ret;
-	
+
 	/* Messing with threads structures, avoid deadlock */
 	irq_spinlock_lock(&threads_lock, true);
-	
+
 	thread_t *thread = thread_find_by_id(thread_id);
 	if (thread == NULL) {
@@ -540,10 +540,10 @@
 		return ret;
 	}
-	
+
 	if (dry_run) {
 		ret.tag = SYSINFO_VAL_FUNCTION_DATA;
 		ret.data.data = NULL;
 		ret.data.size = sizeof(stats_thread_t);
-		
+
 		irq_spinlock_unlock(&threads_lock, true);
 	} else {
@@ -555,18 +555,18 @@
 			return ret;
 		}
-		
+
 		/* Correct return value */
 		ret.tag = SYSINFO_VAL_FUNCTION_DATA;
 		ret.data.data = (void *) stats_thread;
 		ret.data.size = sizeof(stats_thread_t);
-		
+
 		/* Hand-over-hand locking */
 		irq_spinlock_exchange(&threads_lock, &thread->lock);
-		
+
 		produce_stats_thread(thread, stats_thread);
-		
+
 		irq_spinlock_unlock(&thread->lock, true);
 	}
-	
+
 	return ret;
 }
@@ -587,8 +587,8 @@
 {
 	*size = sizeof(stats_exc_t) * IVT_ITEMS;
-	
+
 	if ((dry_run) || (IVT_ITEMS == 0))
 		return NULL;
-	
+
 	stats_exc_t *stats_exceptions =
 	    (stats_exc_t *) malloc(*size, FRAME_ATOMIC);
@@ -598,9 +598,9 @@
 		return NULL;
 	}
-	
+
 #if (IVT_ITEMS > 0)
 	/* Messing with exception table, avoid deadlock */
 	irq_spinlock_lock(&exctbl_lock, true);
-	
+
 	unsigned int i;
 	for (i = 0; i < IVT_ITEMS; i++) {
@@ -611,8 +611,8 @@
 		stats_exceptions[i].count = exc_table[i].count;
 	}
-	
+
 	irq_spinlock_unlock(&exctbl_lock, true);
 #endif
-	
+
 	return ((void *) stats_exceptions);
 }
@@ -642,15 +642,15 @@
 	sysinfo_return_t ret;
 	ret.tag = SYSINFO_VAL_UNDEFINED;
-	
+
 	/* Parse the exception number */
 	uint64_t excn;
 	if (str_uint64_t(name, NULL, 0, true, &excn) != EOK)
 		return ret;
-	
+
 #if (IVT_FIRST > 0)
 	if (excn < IVT_FIRST)
 		return ret;
 #endif
-	
+
 #if (IVT_ITEMS + IVT_FIRST == 0)
 	return ret;
@@ -659,5 +659,5 @@
 		return ret;
 #endif
-	
+
 	if (dry_run) {
 		ret.tag = SYSINFO_VAL_FUNCTION_DATA;
@@ -667,5 +667,5 @@
 		/* Update excn index for accessing exc_table */
 		excn -= IVT_FIRST;
-		
+
 		/* Allocate stats_exc_t structure */
 		stats_exc_t *stats_exception =
@@ -673,13 +673,13 @@
 		if (stats_exception == NULL)
 			return ret;
-		
+
 		/* Messing with exception table, avoid deadlock */
 		irq_spinlock_lock(&exctbl_lock, true);
-		
+
 		/* Correct return value */
 		ret.tag = SYSINFO_VAL_FUNCTION_DATA;
 		ret.data.data = (void *) stats_exception;
 		ret.data.size = sizeof(stats_exc_t);
-		
+
 		stats_exception->id = excn;
 		str_cpy(stats_exception->desc, EXC_NAME_BUFLEN, exc_table[excn].name);
@@ -687,8 +687,8 @@
 		stats_exception->cycles = exc_table[excn].cycles;
 		stats_exception->count = exc_table[excn].count;
-		
+
 		irq_spinlock_unlock(&exctbl_lock, true);
 	}
-	
+
 	return ret;
 }
@@ -711,5 +711,5 @@
 	if (dry_run)
 		return NULL;
-	
+
 	stats_physmem_t *stats_physmem =
 	    (stats_physmem_t *) malloc(*size, FRAME_ATOMIC);
@@ -718,8 +718,8 @@
 		return NULL;
 	}
-	
+
 	zones_stats(&(stats_physmem->total), &(stats_physmem->unavail),
 	    &(stats_physmem->used), &(stats_physmem->free));
-	
+
 	return ((void *) stats_physmem);
 }
@@ -742,5 +742,5 @@
 	if (dry_run)
 		return NULL;
-	
+
 	load_t *stats_load = (load_t *) malloc(*size, FRAME_ATOMIC);
 	if (stats_load == NULL) {
@@ -748,14 +748,14 @@
 		return NULL;
 	}
-	
+
 	/* To always get consistent values acquire the mutex */
 	mutex_lock(&load_lock);
-	
+
 	unsigned int i;
 	for (i = 0; i < LOAD_STEPS; i++)
 		stats_load[i] = avenrdy[i] << LOAD_KERNEL_SHIFT;
-	
+
 	mutex_unlock(&load_lock);
-	
+
 	return ((void *) stats_load);
 }
@@ -768,5 +768,5 @@
 	load *= exp;
 	load += (ready << LOAD_FIXED_SHIFT) * (LOAD_FIXED_1 - exp);
-	
+
 	return (load >> LOAD_FIXED_SHIFT);
 }
@@ -782,17 +782,17 @@
 {
 	thread_detach(THREAD);
-	
+
 	while (true) {
 		atomic_count_t ready = atomic_get(&nrdy);
-		
+
 		/* Mutually exclude with get_stats_load() */
 		mutex_lock(&load_lock);
-		
+
 		unsigned int i;
 		for (i = 0; i < LOAD_STEPS; i++)
 			avenrdy[i] = load_calc(avenrdy[i], load_exp[i], ready);
-		
+
 		mutex_unlock(&load_lock);
-		
+
 		thread_sleep(LOAD_INTERVAL);
 	}
@@ -805,5 +805,5 @@
 {
 	mutex_initialize(&load_lock, MUTEX_PASSIVE);
-	
+
 	sysinfo_set_item_gen_data("system.cpus", NULL, get_stats_cpus, NULL);
 	sysinfo_set_item_gen_data("system.physmem", NULL, get_stats_physmem, NULL);
Index: kernel/generic/src/sysinfo/sysinfo.c
===================================================================
--- kernel/generic/src/sysinfo/sysinfo.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/sysinfo/sysinfo.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,5 +64,5 @@
 {
 	sysinfo_item_t *item = (sysinfo_item_t *) obj;
-	
+
 	item->name = NULL;
 	item->val_type = SYSINFO_VAL_UNDEFINED;
@@ -70,5 +70,5 @@
 	item->subtree.table = NULL;
 	item->next = NULL;
-	
+
 	return EOK;
 }
@@ -84,8 +84,8 @@
 {
 	sysinfo_item_t *item = (sysinfo_item_t *) obj;
-	
+
 	if (item->name != NULL)
 		free(item->name);
-	
+
 	return 0;
 }
@@ -101,5 +101,5 @@
 	    sizeof(sysinfo_item_t), 0, sysinfo_item_constructor,
 	    sysinfo_item_destructor, SLAB_CACHE_MAGDEFERRED);
-	
+
 	mutex_initialize(&sysinfo_lock, MUTEX_ACTIVE);
 }
@@ -127,19 +127,19 @@
 {
 	assert(subtree != NULL);
-	
+
 	sysinfo_item_t *cur = subtree;
-	
+
 	/* Walk all siblings */
 	while (cur != NULL) {
 		size_t i = 0;
-		
+
 		/* Compare name with path */
 		while ((cur->name[i] != 0) && (name[i] == cur->name[i]))
 			i++;
-		
+
 		/* Check for perfect name and path match */
 		if ((name[i] == 0) && (cur->name[i] == 0))
 			return cur;
-		
+
 		/* Partial match up to the delimiter */
 		if ((name[i] == '.') && (cur->name[i] == 0)) {
@@ -155,5 +155,5 @@
 					**ret = cur->subtree.generator.fn(name + i + 1,
 					    dry_run, cur->subtree.generator.data);
-				
+
 				return NULL;
 			default:
@@ -161,16 +161,16 @@
 				if (ret != NULL)
 					*ret = NULL;
-				
+
 				return NULL;
 			}
 		}
-		
+
 		cur = cur->next;
 	}
-	
+
 	/* Not found, no data generated */
 	if (ret != NULL)
 		*ret = NULL;
-	
+
 	return NULL;
 }
@@ -193,22 +193,22 @@
 {
 	assert(psubtree != NULL);
-	
+
 	if (*psubtree == NULL) {
 		/* No parent */
-		
+
 		size_t i = 0;
-		
+
 		/* Find the first delimiter in name */
 		while ((name[i] != 0) && (name[i] != '.'))
 			i++;
-		
+
 		*psubtree =
 		    (sysinfo_item_t *) slab_alloc(sysinfo_item_cache, 0);
 		assert(*psubtree);
-		
+
 		/* Fill in item name up to the delimiter */
 		(*psubtree)->name = str_ndup(name, i);
 		assert((*psubtree)->name);
-		
+
 		/* Create subtree items */
 		if (name[i] == '.') {
@@ -217,19 +217,19 @@
 			    &((*psubtree)->subtree.table));
 		}
-		
+
 		/* No subtree needs to be created */
 		return *psubtree;
 	}
-	
+
 	sysinfo_item_t *cur = *psubtree;
-	
+
 	/* Walk all siblings */
 	while (cur != NULL) {
 		size_t i = 0;
-		
+
 		/* Compare name with path */
 		while ((cur->name[i] != 0) && (name[i] == cur->name[i]))
 			i++;
-		
+
 		/* Check for perfect name and path match
 		 * -> item is already present.
@@ -237,5 +237,5 @@
 		if ((name[i] == 0) && (cur->name[i] == 0))
 			return cur;
-		
+
 		/* Partial match up to the delimiter */
 		if ((name[i] == '.') && (cur->name[i] == 0)) {
@@ -257,5 +257,5 @@
 			}
 		}
-		
+
 		/* No match and no more siblings to check
 		 * -> create a new sibling item.
@@ -266,15 +266,15 @@
 			while ((name[i] != 0) && (name[i] != '.'))
 				i++;
-			
+
 			sysinfo_item_t *item =
 			    (sysinfo_item_t *) slab_alloc(sysinfo_item_cache, 0);
 			assert(item);
-			
+
 			cur->next = item;
-			
+
 			/* Fill in item name up to the delimiter */
 			item->name = str_ndup(name, i);
 			assert(item->name);
-			
+
 			/* Create subtree items */
 			if (name[i] == '.') {
@@ -283,12 +283,12 @@
 				    &(item->subtree.table));
 			}
-			
+
 			/* No subtree needs to be created */
 			return item;
 		}
-		
+
 		cur = cur->next;
 	}
-	
+
 	/* Unreachable */
 	assert(false);
@@ -309,8 +309,8 @@
 	/* Protect sysinfo tree consistency */
 	mutex_lock(&sysinfo_lock);
-	
+
 	if (root == NULL)
 		root = &global_root;
-	
+
 	sysinfo_item_t *item = sysinfo_create_path(name, root);
 	if (item != NULL) {
@@ -318,5 +318,5 @@
 		item->val.val = val;
 	}
-	
+
 	mutex_unlock(&sysinfo_lock);
 }
@@ -340,8 +340,8 @@
 	/* Protect sysinfo tree consistency */
 	mutex_lock(&sysinfo_lock);
-	
+
 	if (root == NULL)
 		root = &global_root;
-	
+
 	sysinfo_item_t *item = sysinfo_create_path(name, root);
 	if (item != NULL) {
@@ -350,5 +350,5 @@
 		item->val.data.size = size;
 	}
-	
+
 	mutex_unlock(&sysinfo_lock);
 }
@@ -368,8 +368,8 @@
 	/* Protect sysinfo tree consistency */
 	mutex_lock(&sysinfo_lock);
-	
+
 	if (root == NULL)
 		root = &global_root;
-	
+
 	sysinfo_item_t *item = sysinfo_create_path(name, root);
 	if (item != NULL) {
@@ -378,5 +378,5 @@
 		item->val.gen_val.data = data;
 	}
-	
+
 	mutex_unlock(&sysinfo_lock);
 }
@@ -401,8 +401,8 @@
 	/* Protect sysinfo tree consistency */
 	mutex_lock(&sysinfo_lock);
-	
+
 	if (root == NULL)
 		root = &global_root;
-	
+
 	sysinfo_item_t *item = sysinfo_create_path(name, root);
 	if (item != NULL) {
@@ -411,5 +411,5 @@
 		item->val.gen_data.data = data;
 	}
-	
+
 	mutex_unlock(&sysinfo_lock);
 }
@@ -426,12 +426,12 @@
 	/* Protect sysinfo tree consistency */
 	mutex_lock(&sysinfo_lock);
-	
+
 	if (root == NULL)
 		root = &global_root;
-	
+
 	sysinfo_item_t *item = sysinfo_create_path(name, root);
 	if (item != NULL)
 		item->val_type = SYSINFO_VAL_UNDEFINED;
-	
+
 	mutex_unlock(&sysinfo_lock);
 }
@@ -451,10 +451,10 @@
 	/* Protect sysinfo tree consistency */
 	mutex_lock(&sysinfo_lock);
-	
+
 	if (root == NULL)
 		root = &global_root;
-	
+
 	sysinfo_item_t *item = sysinfo_create_path(name, root);
-	
+
 	/* Change the type of the subtree only if it is not already
 	   a fixed subtree */
@@ -464,5 +464,5 @@
 		item->subtree.generator.data = data;
 	}
-	
+
 	mutex_unlock(&sysinfo_lock);
 }
@@ -492,5 +492,5 @@
 	for (sysinfo_item_t *cur = root; cur; cur = cur->next) {
 		size_t length;
-		
+
 		if (spaces == 0) {
 			printf("%s", cur->name);
@@ -501,8 +501,8 @@
 			length = str_length(cur->name) + 1;
 		}
-		
+
 		sysarg_t val;
 		size_t size;
-		
+
 		/* Display node value and type */
 		switch (cur->val_type) {
@@ -531,5 +531,5 @@
 			printf("+ %s [unknown]\n", cur->name);
 		}
-		
+
 		/* Recursivelly nest into the subtree */
 		switch (cur->subtree_type) {
@@ -562,10 +562,10 @@
 	   while we are dumping it */
 	mutex_lock(&sysinfo_lock);
-	
+
 	if (root == NULL)
 		sysinfo_dump_internal(global_root, 0);
 	else
 		sysinfo_dump_internal(root, 0);
-	
+
 	mutex_unlock(&sysinfo_lock);
 }
@@ -590,5 +590,5 @@
 	if (root == NULL)
 		root = &global_root;
-	
+
 	/* Try to find the item or generate data */
 	sysinfo_return_t ret;
@@ -596,8 +596,8 @@
 	sysinfo_item_t *item = sysinfo_find_item(name, *root, &ret_ptr,
 	    dry_run);
-	
+
 	if (item != NULL) {
 		/* Item found in the fixed sysinfo tree */
-		
+
 		ret.tag = item->val_type;
 		switch (item->val_type) {
@@ -625,5 +625,5 @@
 		}
 	}
-	
+
 	return ret;
 }
@@ -645,11 +645,11 @@
 	sysinfo_return_t ret;
 	ret.tag = SYSINFO_VAL_UNDEFINED;
-	
+
 	if (size > SYSINFO_MAX_PATH)
 		return ret;
-	
+
 	char *path = (char *) malloc(size + 1, 0);
 	assert(path);
-	
+
 	if ((copy_from_uspace(path, ptr, size + 1) == 0) &&
 	    (path[size] == 0)) {
@@ -662,5 +662,5 @@
 		mutex_unlock(&sysinfo_lock);
 	}
-	
+
 	free(path);
 	return ret;
@@ -686,7 +686,7 @@
 	if (root == NULL)
 		root = &global_root;
-	
+
 	sysinfo_item_t *subtree = NULL;
-	
+
 	if (name[0] != 0) {
 		/* Try to find the item */
@@ -698,8 +698,8 @@
 	} else
 		subtree = *root;
-	
+
 	sysinfo_return_t ret;
 	ret.tag = SYSINFO_VAL_UNDEFINED;
-	
+
 	if (subtree != NULL) {
 		/*
@@ -709,5 +709,5 @@
 		for (sysinfo_item_t *cur = subtree; cur; cur = cur->next)
 			size += str_size(cur->name) + 1;
-		
+
 		if (dry_run) {
 			ret.tag = SYSINFO_VAL_DATA;
@@ -719,5 +719,5 @@
 			if (names == NULL)
 				return ret;
-			
+
 			size_t pos = 0;
 			for (sysinfo_item_t *cur = subtree; cur; cur = cur->next) {
@@ -725,5 +725,5 @@
 				pos += str_size(cur->name) + 1;
 			}
-			
+
 			/* Correct return value */
 			ret.tag = SYSINFO_VAL_DATA;
@@ -732,5 +732,5 @@
 		}
 	}
-	
+
 	return ret;
 }
@@ -754,11 +754,11 @@
 	ret.data.data = NULL;
 	ret.data.size = 0;
-	
+
 	if (size > SYSINFO_MAX_PATH)
 		return ret;
-	
+
 	char *path = (char *) malloc(size + 1, 0);
 	assert(path);
-	
+
 	if ((copy_from_uspace(path, ptr, size + 1) == 0) &&
 	    (path[size] == 0)) {
@@ -771,5 +771,5 @@
 		mutex_unlock(&sysinfo_lock);
 	}
-	
+
 	free(path);
 	return ret;
@@ -794,5 +794,5 @@
 {
 	errno_t rc;
-	
+
 	/*
 	 * Get the keys.
@@ -803,5 +803,5 @@
 	sysinfo_return_t ret =
 	    sysinfo_get_keys_uspace(path_ptr, path_size, true);
-	
+
 	/* Check return data tag */
 	if (ret.tag == SYSINFO_VAL_DATA)
@@ -810,5 +810,5 @@
 	else
 		rc = EINVAL;
-	
+
 	return (sys_errno_t) rc;
 }
@@ -842,9 +842,9 @@
 {
 	errno_t rc;
-	
+
 	/* Get the keys */
 	sysinfo_return_t ret = sysinfo_get_keys_uspace(path_ptr, path_size,
 	    false);
-	
+
 	/* Check return data tag */
 	if (ret.tag == SYSINFO_VAL_DATA) {
@@ -853,9 +853,9 @@
 		if (rc == EOK)
 			rc = copy_to_uspace(size_ptr, &size, sizeof(size));
-		
+
 		free(ret.data.data);
 	} else
 		rc = EINVAL;
-	
+
 	return (sys_errno_t) rc;
 }
@@ -882,5 +882,5 @@
 	 */
 	sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true);
-	
+
 	/*
 	 * Map generated value types to constant types (user space does
@@ -891,5 +891,5 @@
 	else if (ret.tag == SYSINFO_VAL_FUNCTION_DATA)
 		ret.tag = SYSINFO_VAL_DATA;
-	
+
 	return (sysarg_t) ret.tag;
 }
@@ -913,5 +913,5 @@
 {
 	errno_t rc;
-	
+
 	/*
 	 * Get the item.
@@ -921,5 +921,5 @@
 	 */
 	sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true);
-	
+
 	/* Only constant or generated numerical value is returned */
 	if ((ret.tag == SYSINFO_VAL_VAL) || (ret.tag == SYSINFO_VAL_FUNCTION_VAL))
@@ -927,5 +927,5 @@
 	else
 		rc = EINVAL;
-	
+
 	return (sys_errno_t) rc;
 }
@@ -949,5 +949,5 @@
 {
 	errno_t rc;
-	
+
 	/*
 	 * Get the item.
@@ -957,5 +957,5 @@
 	 */
 	sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true);
-	
+
 	/* Only the size of constant or generated binary data is considered */
 	if ((ret.tag == SYSINFO_VAL_DATA) || (ret.tag == SYSINFO_VAL_FUNCTION_DATA))
@@ -964,5 +964,5 @@
 	else
 		rc = EINVAL;
-	
+
 	return (sys_errno_t) rc;
 }
@@ -999,9 +999,9 @@
 {
 	errno_t rc;
-	
+
 	/* Get the item */
 	sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size,
 	    false);
-	
+
 	/* Only constant or generated binary data is considered */
 	if ((ret.tag == SYSINFO_VAL_DATA) ||
@@ -1013,9 +1013,9 @@
 	} else
 		rc = EINVAL;
-	
+
 	/* N.B.: The generated binary data should be freed */
 	if ((ret.tag == SYSINFO_VAL_FUNCTION_DATA) && (ret.data.data != NULL))
 		free(ret.data.data);
-	
+
 	return (sys_errno_t) rc;
 }
Index: kernel/generic/src/time/clock.c
===================================================================
--- kernel/generic/src/time/clock.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/time/clock.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -84,11 +84,11 @@
 	if (faddr == 0)
 		panic("Cannot allocate page for clock.");
-	
+
 	uptime = (uptime_t *) PA2KA(faddr);
-	
+
 	uptime->seconds1 = 0;
 	uptime->seconds2 = 0;
 	uptime->useconds = 0;
-	
+
 	clock_parea.pbase = faddr;
 	clock_parea.frames = 1;
@@ -96,5 +96,5 @@
 	clock_parea.mapped = false;
 	ddi_parea_register(&clock_parea);
-	
+
 	/*
 	 * Prepare information for the userspace so that it can successfully
@@ -146,8 +146,8 @@
 {
 	size_t missed_clock_ticks = CPU->missed_clock_ticks;
-	
+
 	/* Account CPU usage */
 	cpu_update_accounting();
-	
+
 	/*
 	 * To avoid lock ordering problems,
@@ -160,12 +160,12 @@
 		clock_update_counters();
 		cpu_update_accounting();
-		
+
 		irq_spinlock_lock(&CPU->timeoutlock, false);
-		
+
 		link_t *cur;
 		while ((cur = list_first(&CPU->timeout_active_list)) != NULL) {
 			timeout_t *timeout = list_get_instance(cur, timeout_t,
 			    link);
-			
+
 			irq_spinlock_lock(&timeout->lock, false);
 			if (timeout->ticks-- != 0) {
@@ -173,34 +173,34 @@
 				break;
 			}
-			
+
 			list_remove(cur);
 			timeout_handler_t handler = timeout->handler;
 			void *arg = timeout->arg;
 			timeout_reinitialize(timeout);
-			
+
 			irq_spinlock_unlock(&timeout->lock, false);
 			irq_spinlock_unlock(&CPU->timeoutlock, false);
-			
+
 			handler(arg);
-			
+
 			irq_spinlock_lock(&CPU->timeoutlock, false);
 		}
-		
+
 		irq_spinlock_unlock(&CPU->timeoutlock, false);
 	}
 	CPU->missed_clock_ticks = 0;
-	
+
 	/*
 	 * Do CPU usage accounting and find out whether to preempt THREAD.
 	 *
 	 */
-	
+
 	if (THREAD) {
 		uint64_t ticks;
-		
+
 		irq_spinlock_lock(&CPU->lock, false);
 		CPU->needs_relink += 1 + missed_clock_ticks;
 		irq_spinlock_unlock(&CPU->lock, false);
-		
+
 		irq_spinlock_lock(&THREAD->lock, false);
 		if ((ticks = THREAD->ticks)) {
@@ -211,5 +211,5 @@
 		}
 		irq_spinlock_unlock(&THREAD->lock, false);
-		
+
 		if (ticks == 0 && PREEMPTION_ENABLED) {
 			scheduler();
Index: kernel/generic/src/time/delay.c
===================================================================
--- kernel/generic/src/time/delay.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/time/delay.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,5 +35,5 @@
  * @brief	Active delay function.
  */
- 
+
 #include <time/delay.h>
 #include <proc/thread.h>
Index: kernel/generic/src/time/timeout.c
===================================================================
--- kernel/generic/src/time/timeout.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/time/timeout.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -103,14 +103,14 @@
 	irq_spinlock_lock(&CPU->timeoutlock, true);
 	irq_spinlock_lock(&timeout->lock, false);
-	
+
 	if (timeout->cpu)
 		panic("Unexpected: timeout->cpu != 0.");
-	
+
 	timeout->cpu = CPU;
 	timeout->ticks = us2ticks(time);
-	
+
 	timeout->handler = handler;
 	timeout->arg = arg;
-	
+
 	/*
 	 * Insert timeout into the active timeouts list according to timeout->ticks.
@@ -123,18 +123,18 @@
 		target = list_get_instance(cur, timeout_t, link);
 		irq_spinlock_lock(&target->lock, false);
-		
+
 		if (timeout->ticks < sum + target->ticks) {
 			irq_spinlock_unlock(&target->lock, false);
 			break;
 		}
-		
+
 		sum += target->ticks;
 		irq_spinlock_unlock(&target->lock, false);
 	}
-	
+
 	/* Avoid using cur->prev directly */
 	link_t *prev = cur->prev;
 	list_insert_after(&timeout->link, prev);
-	
+
 	/*
 	 * Adjust timeout->ticks according to ticks
@@ -142,5 +142,5 @@
 	 */
 	timeout->ticks -= sum;
-	
+
 	/*
 	 * Decrease ticks of timeout's immediate succesor by timeout->ticks.
@@ -151,5 +151,5 @@
 		irq_spinlock_unlock(&target->lock, false);
 	}
-	
+
 	irq_spinlock_unlock(&timeout->lock, false);
 	irq_spinlock_unlock(&CPU->timeoutlock, true);
@@ -168,5 +168,5 @@
 {
 	DEADLOCK_PROBE_INIT(p_tolock);
-	
+
 grab_locks:
 	irq_spinlock_lock(&timeout->lock, true);
@@ -175,5 +175,5 @@
 		return false;
 	}
-	
+
 	if (!irq_spinlock_trylock(&timeout->cpu->timeoutlock)) {
 		irq_spinlock_unlock(&timeout->lock, true);
@@ -181,10 +181,10 @@
 		goto grab_locks;
 	}
-	
+
 	/*
 	 * Now we know for sure that timeout hasn't been activated yet
 	 * and is lurking in timeout->cpu->timeout_active_list.
 	 */
-	
+
 	link_t *cur = timeout->link.next;
 	if (cur != &timeout->cpu->timeout_active_list.head) {
@@ -194,11 +194,11 @@
 		irq_spinlock_unlock(&tmp->lock, false);
 	}
-	
+
 	list_remove(&timeout->link);
 	irq_spinlock_unlock(&timeout->cpu->timeoutlock, false);
-	
+
 	timeout_reinitialize(timeout);
 	irq_spinlock_unlock(&timeout->lock, true);
-	
+
 	return true;
 }
Index: kernel/generic/src/udebug/udebug.c
===================================================================
--- kernel/generic/src/udebug/udebug.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/udebug/udebug.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 	waitq_initialize(&ut->go_wq);
 	condvar_initialize(&ut->active_cv);
-	
+
 	ut->go_call = NULL;
 	ut->uspace_state = NULL;
@@ -96,5 +96,5 @@
 {
 	ipl_t ipl = waitq_sleep_prepare(wq);
-	
+
 	wq->missed_wakeups = 0;  /* Enforce blocking. */
 	bool blocked;
@@ -119,14 +119,14 @@
 	assert(THREAD);
 	assert(TASK);
-	
+
 	mutex_lock(&TASK->udebug.lock);
-	
+
 	int nsc = --TASK->udebug.not_stoppable_count;
-	
+
 	/* Lock order OK, THREAD->udebug.lock is after TASK->udebug.lock */
 	mutex_lock(&THREAD->udebug.lock);
 	assert(THREAD->udebug.stoppable == false);
 	THREAD->udebug.stoppable = true;
-	
+
 	if ((TASK->udebug.dt_state == UDEBUG_TS_BEGINNING) && (nsc == 0)) {
 		/*
@@ -135,11 +135,11 @@
 		 *
 		 */
-		
+
 		call_t *db_call = TASK->udebug.begin_call;
 		assert(db_call);
-		
+
 		TASK->udebug.dt_state = UDEBUG_TS_ACTIVE;
 		TASK->udebug.begin_call = NULL;
-		
+
 		IPC_SET_RETVAL(db_call->data, 0);
 		ipc_answer(&TASK->answerbox, db_call);
@@ -148,5 +148,5 @@
 		 * Active debugging session
 		 */
-		
+
 		if (THREAD->udebug.active == true &&
 		    THREAD->udebug.go == false) {
@@ -155,18 +155,18 @@
 			 *
 			 */
-			
+
 			/* Make sure nobody takes this call away from us */
 			call_t *go_call = THREAD->udebug.go_call;
 			THREAD->udebug.go_call = NULL;
 			assert(go_call);
-			
+
 			IPC_SET_RETVAL(go_call->data, 0);
 			IPC_SET_ARG1(go_call->data, UDEBUG_EVENT_STOP);
-			
+
 			THREAD->udebug.cur_event = UDEBUG_EVENT_STOP;
 			ipc_answer(&TASK->answerbox, go_call);
 		}
 	}
-	
+
 	mutex_unlock(&THREAD->udebug.lock);
         mutex_unlock(&TASK->udebug.lock);
@@ -185,11 +185,11 @@
 	mutex_lock(&TASK->udebug.lock);
 	mutex_lock(&THREAD->udebug.lock);
-	
+
 	if ((THREAD->udebug.active) && (THREAD->udebug.go == false)) {
 		mutex_unlock(&THREAD->udebug.lock);
 		mutex_unlock(&TASK->udebug.lock);
-		
+
 		udebug_wait_for_go(&THREAD->udebug.go_wq);
-		
+
 		goto restart;
 		/* Must try again - have to lose stoppability atomically. */
@@ -198,5 +198,5 @@
 		assert(THREAD->udebug.stoppable == true);
 		THREAD->udebug.stoppable = false;
-		
+
 		mutex_unlock(&THREAD->udebug.lock);
 		mutex_unlock(&TASK->udebug.lock);
@@ -228,8 +228,8 @@
 	udebug_event_t etype =
 	    end_variant ? UDEBUG_EVENT_SYSCALL_E : UDEBUG_EVENT_SYSCALL_B;
-	
+
 	mutex_lock(&TASK->udebug.lock);
 	mutex_lock(&THREAD->udebug.lock);
-	
+
 	/* Must only generate events when in debugging session and is go. */
 	if (THREAD->udebug.active != true || THREAD->udebug.go == false ||
@@ -239,14 +239,14 @@
 		return;
 	}
-	
+
 	/* Fill in the GO response. */
 	call_t *call = THREAD->udebug.go_call;
 	THREAD->udebug.go_call = NULL;
-	
+
 	IPC_SET_RETVAL(call->data, 0);
 	IPC_SET_ARG1(call->data, etype);
 	IPC_SET_ARG2(call->data, id);
 	IPC_SET_ARG3(call->data, rc);
-	
+
 	THREAD->udebug.syscall_args[0] = a1;
 	THREAD->udebug.syscall_args[1] = a2;
@@ -255,5 +255,5 @@
 	THREAD->udebug.syscall_args[4] = a5;
 	THREAD->udebug.syscall_args[5] = a6;
-	
+
 	/*
 	 * Make sure udebug.go is false when going to sleep
@@ -264,10 +264,10 @@
 	THREAD->udebug.go = false;
 	THREAD->udebug.cur_event = etype;
-	
+
 	ipc_answer(&TASK->answerbox, call);
-	
+
 	mutex_unlock(&THREAD->udebug.lock);
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	udebug_wait_for_go(&THREAD->udebug.go_wq);
 }
@@ -294,9 +294,9 @@
 	mutex_lock(&TASK->udebug.lock);
 	mutex_lock(&THREAD->udebug.lock);
-	
+
 	thread_attach(thread, task);
-	
+
 	LOG("Check state");
-	
+
 	/* Must only generate events when in debugging session */
 	if (THREAD->udebug.active != true) {
@@ -304,19 +304,19 @@
 		    THREAD->udebug.active ? "Yes(+)" : "No",
 		    THREAD->udebug.go ? "Yes(-)" : "No");
-		
+
 		mutex_unlock(&THREAD->udebug.lock);
 		mutex_unlock(&TASK->udebug.lock);
 		return;
 	}
-	
+
 	LOG("Trigger event");
-	
+
 	call_t *call = THREAD->udebug.go_call;
-	
+
 	THREAD->udebug.go_call = NULL;
 	IPC_SET_RETVAL(call->data, 0);
 	IPC_SET_ARG1(call->data, UDEBUG_EVENT_THREAD_B);
 	IPC_SET_ARG2(call->data, (sysarg_t) thread);
-	
+
 	/*
 	 * Make sure udebug.go is false when going to sleep
@@ -327,10 +327,10 @@
 	THREAD->udebug.go = false;
 	THREAD->udebug.cur_event = UDEBUG_EVENT_THREAD_B;
-	
+
 	ipc_answer(&TASK->answerbox, call);
-	
+
 	mutex_unlock(&THREAD->udebug.lock);
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	LOG("Wait for Go");
 	udebug_wait_for_go(&THREAD->udebug.go_wq);
@@ -347,7 +347,7 @@
 	mutex_lock(&TASK->udebug.lock);
 	mutex_lock(&THREAD->udebug.lock);
-	
+
 	LOG("Check state");
-	
+
 	/* Must only generate events when in debugging session. */
 	if (THREAD->udebug.active != true) {
@@ -355,28 +355,28 @@
 		    THREAD->udebug.active ? "Yes" : "No",
 		    THREAD->udebug.go ? "Yes" : "No");
-		
+
 		mutex_unlock(&THREAD->udebug.lock);
 		mutex_unlock(&TASK->udebug.lock);
 		return;
 	}
-	
+
 	LOG("Trigger event");
-	
+
 	call_t *call = THREAD->udebug.go_call;
-	
+
 	THREAD->udebug.go_call = NULL;
 	IPC_SET_RETVAL(call->data, 0);
 	IPC_SET_ARG1(call->data, UDEBUG_EVENT_THREAD_E);
-	
+
 	/* Prevent any further debug activity in thread. */
 	THREAD->udebug.active = false;
 	THREAD->udebug.cur_event = 0;   /* None */
 	THREAD->udebug.go = false;      /* Set to initial value */
-	
+
 	ipc_answer(&TASK->answerbox, call);
-	
+
 	mutex_unlock(&THREAD->udebug.lock);
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	/*
 	 * This event does not sleep - debugging has finished
@@ -405,11 +405,11 @@
 		return EINVAL;
 	}
-	
+
 	LOG("Task %" PRIu64, task->taskid);
-	
+
 	/* Finish debugging of all userspace threads */
 	list_foreach(task->threads, th_link, thread_t, thread) {
 		mutex_lock(&thread->udebug.lock);
-		
+
 		/* Only process userspace threads. */
 		if (thread->uspace) {
@@ -417,5 +417,5 @@
 			thread->udebug.active = false;
 			thread->udebug.cur_event = 0;   /* None */
-			
+
 			/* Is the thread still go? */
 			if (thread->udebug.go == true) {
@@ -426,12 +426,12 @@
 				 */
 				thread->udebug.go = false;
-				
+
 				/* Answer GO call */
 				LOG("Answer GO call with EVENT_FINISHED.");
-				
+
 				IPC_SET_RETVAL(thread->udebug.go_call->data, 0);
 				IPC_SET_ARG1(thread->udebug.go_call->data,
 				    UDEBUG_EVENT_FINISHED);
-				
+
 				ipc_answer(&task->answerbox, thread->udebug.go_call);
 				thread->udebug.go_call = NULL;
@@ -442,5 +442,5 @@
 				 *
 				 */
-				
+
 				/*
 				 * thread's lock must not be held when calling
@@ -450,5 +450,5 @@
 				waitq_wakeup(&thread->udebug.go_wq, WAKEUP_FIRST);
 			}
-			
+
 			mutex_unlock(&thread->udebug.lock);
 			condvar_broadcast(&thread->udebug.active_cv);
@@ -456,8 +456,8 @@
 			mutex_unlock(&thread->udebug.lock);
 	}
-	
+
 	task->udebug.dt_state = UDEBUG_TS_INACTIVE;
 	task->udebug.debugger = NULL;
-	
+
 	return 0;
 }
@@ -474,5 +474,5 @@
 {
 	udebug_stoppable_begin();
-	
+
 	/* Wait until a debugger attends to us. */
 	mutex_lock(&THREAD->udebug.lock);
@@ -480,5 +480,5 @@
 		condvar_wait(&THREAD->udebug.active_cv, &THREAD->udebug.lock);
 	mutex_unlock(&THREAD->udebug.lock);
-	
+
 	/* Make sure the debugging session is over before proceeding. */
 	mutex_lock(&THREAD->udebug.lock);
@@ -486,5 +486,5 @@
 		condvar_wait(&THREAD->udebug.active_cv, &THREAD->udebug.lock);
 	mutex_unlock(&THREAD->udebug.lock);
-	
+
 	udebug_stoppable_end();
 }
Index: kernel/generic/src/udebug/udebug_ops.c
===================================================================
--- kernel/generic/src/udebug/udebug_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/generic/src/udebug/udebug_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -82,8 +82,8 @@
 {
 	mutex_lock(&TASK->udebug.lock);
-	
+
 	/* thread_exists() must be called with threads_lock held */
 	irq_spinlock_lock(&threads_lock, true);
-	
+
 	if (!thread_exists(thread)) {
 		irq_spinlock_unlock(&threads_lock, true);
@@ -91,8 +91,8 @@
 		return ENOENT;
 	}
-	
+
 	/* thread->lock is enough to ensure the thread's existence */
 	irq_spinlock_exchange(&threads_lock, &thread->lock);
-	
+
 	/* Verify that 'thread' is a userspace thread. */
 	if (!thread->uspace) {
@@ -102,5 +102,5 @@
 		return ENOENT;
 	}
-	
+
 	/* Verify debugging state. */
 	if (thread->udebug.active != true) {
@@ -110,5 +110,5 @@
 		return ENOENT;
 	}
-	
+
 	/*
 	 * Since the thread has active == true, TASK->udebug.lock
@@ -118,7 +118,7 @@
 	 */
 	irq_spinlock_unlock(&thread->lock, true);
-	
+
 	/* Only mutex TASK->udebug.lock left. */
-	
+
 	/* Now verify that the thread belongs to the current task. */
 	if (thread->task != TASK) {
@@ -127,5 +127,5 @@
 		return ENOENT;
 	}
-	
+
 	/*
 	 * Now we need to grab the thread's debug lock for synchronization
@@ -134,8 +134,8 @@
 	 */
 	mutex_lock(&thread->udebug.lock);
-	
+
 	/* The big task mutex is no longer needed. */
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	if (thread->udebug.go != being_go) {
 		/* Not in debugging session or undesired GO state. */
@@ -143,7 +143,7 @@
 		return EINVAL;
 	}
-	
+
 	/* Only thread->udebug.lock left. */
-	
+
 	return EOK;  /* All went well. */
 }
@@ -177,16 +177,16 @@
 {
 	LOG("Debugging task %" PRIu64, TASK->taskid);
-	
-	mutex_lock(&TASK->udebug.lock);
-	
+
+	mutex_lock(&TASK->udebug.lock);
+
 	if (TASK->udebug.dt_state != UDEBUG_TS_INACTIVE) {
 		mutex_unlock(&TASK->udebug.lock);
 		return EBUSY;
 	}
-	
+
 	TASK->udebug.dt_state = UDEBUG_TS_BEGINNING;
 	TASK->udebug.begin_call = call;
 	TASK->udebug.debugger = call->sender;
-	
+
 	if (TASK->udebug.not_stoppable_count == 0) {
 		TASK->udebug.dt_state = UDEBUG_TS_ACTIVE;
@@ -195,7 +195,7 @@
 	} else
 		*active = false;  /* only in beginning state */
-	
+
 	/* Set udebug.active on all of the task's userspace threads. */
-	
+
 	list_foreach(TASK->threads, th_link, thread_t, thread) {
 		mutex_lock(&thread->udebug.lock);
@@ -207,5 +207,5 @@
 			mutex_unlock(&thread->udebug.lock);
 	}
-	
+
 	mutex_unlock(&TASK->udebug.lock);
 	return EOK;
@@ -222,9 +222,9 @@
 {
 	LOG("Task %" PRIu64, TASK->taskid);
-	
+
 	mutex_lock(&TASK->udebug.lock);
 	errno_t rc = udebug_task_cleanup(TASK);
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	return rc;
 }
@@ -242,15 +242,15 @@
 {
 	LOG("mask = 0x%x", mask);
-	
-	mutex_lock(&TASK->udebug.lock);
-	
+
+	mutex_lock(&TASK->udebug.lock);
+
 	if (TASK->udebug.dt_state != UDEBUG_TS_ACTIVE) {
 		mutex_unlock(&TASK->udebug.lock);
 		return EINVAL;
 	}
-	
+
 	TASK->udebug.evmask = mask;
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	return EOK;
 }
@@ -272,9 +272,9 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	thread->udebug.go_call = call;
 	thread->udebug.go = true;
 	thread->udebug.cur_event = 0;  /* none */
-	
+
 	/*
 	 * Neither thread's lock nor threads_lock may be held during wakeup.
@@ -282,7 +282,7 @@
 	 */
 	waitq_wakeup(&thread->udebug.go_wq, WAKEUP_FIRST);
-	
+
 	_thread_op_end(thread);
-	
+
 	return EOK;
 }
@@ -300,5 +300,5 @@
 {
 	LOG("udebug_stop()");
-	
+
 	/*
 	 * On success, this will lock thread->udebug.lock. Note that this
@@ -309,8 +309,8 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Take GO away from the thread. */
 	thread->udebug.go = false;
-	
+
 	if (thread->udebug.stoppable != true) {
 		/* Answer will be sent when the thread becomes stoppable. */
@@ -318,25 +318,25 @@
 		return EOK;
 	}
-	
+
 	/*
 	 * Answer GO call.
 	 *
 	 */
-	
+
 	/* Make sure nobody takes this call away from us. */
 	call = thread->udebug.go_call;
 	thread->udebug.go_call = NULL;
-	
+
 	IPC_SET_RETVAL(call->data, 0);
 	IPC_SET_ARG1(call->data, UDEBUG_EVENT_STOP);
-	
+
 	THREAD->udebug.cur_event = UDEBUG_EVENT_STOP;
-	
+
 	_thread_op_end(thread);
-	
+
 	mutex_lock(&TASK->udebug.lock);
 	ipc_answer(&TASK->answerbox, call);
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	return EOK;
 }
@@ -368,10 +368,10 @@
 {
 	LOG("udebug_thread_read()");
-	
+
 	/* Allocate a buffer to hold thread IDs */
 	sysarg_t *id_buffer = malloc(buf_size + 1, 0);
-	
-	mutex_lock(&TASK->udebug.lock);
-	
+
+	mutex_lock(&TASK->udebug.lock);
+
 	/* Verify task state */
 	if (TASK->udebug.dt_state != UDEBUG_TS_ACTIVE) {
@@ -380,13 +380,13 @@
 		return EINVAL;
 	}
-	
+
 	irq_spinlock_lock(&TASK->lock, true);
-	
+
 	/* Copy down the thread IDs */
-	
+
 	size_t max_ids = buf_size / sizeof(sysarg_t);
 	size_t copied_ids = 0;
 	size_t extra_ids = 0;
-	
+
 	/* FIXME: make sure the thread isn't past debug shutdown... */
 	list_foreach(TASK->threads, th_link, thread_t, thread) {
@@ -394,9 +394,9 @@
 		bool uspace = thread->uspace;
 		irq_spinlock_unlock(&thread->lock, false);
-		
+
 		/* Not interested in kernel threads. */
 		if (!uspace)
 			continue;
-		
+
 		if (copied_ids < max_ids) {
 			/* Using thread struct pointer as identification hash */
@@ -405,13 +405,13 @@
 			extra_ids++;
 	}
-	
+
 	irq_spinlock_unlock(&TASK->lock, true);
-	
-	mutex_unlock(&TASK->udebug.lock);
-	
+
+	mutex_unlock(&TASK->udebug.lock);
+
 	*buffer = id_buffer;
 	*stored = copied_ids * sizeof(sysarg_t);
 	*needed = (copied_ids + extra_ids) * sizeof(sysarg_t);
-	
+
 	return EOK;
 }
@@ -431,10 +431,10 @@
 {
 	size_t name_size = str_size(TASK->name) + 1;
-	
+
 	*data = malloc(name_size, 0);
 	*data_size = name_size;
-	
+
 	memcpy(*data, TASK->name, name_size);
-	
+
 	return EOK;
 }
@@ -463,5 +463,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Additionally we need to verify that we are inside a syscall. */
 	if ((thread->udebug.cur_event != UDEBUG_EVENT_SYSCALL_B) &&
@@ -470,13 +470,13 @@
 		return EINVAL;
 	}
-	
+
 	/* Prepare a buffer to hold the arguments. */
 	sysarg_t *arg_buffer = malloc(6 * sizeof(sysarg_t), 0);
-	
+
 	/* Copy to a local buffer before releasing the lock. */
 	memcpy(arg_buffer, thread->udebug.syscall_args, 6 * sizeof(sysarg_t));
-	
+
 	_thread_op_end(thread);
-	
+
 	*buffer = arg_buffer;
 	return EOK;
@@ -506,5 +506,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	istate_t *state = thread->udebug.uspace_state;
 	if (state == NULL) {
@@ -512,13 +512,13 @@
 		return EBUSY;
 	}
-	
+
 	/* Prepare a buffer to hold the data. */
 	istate_t *state_buf = malloc(sizeof(istate_t), 0);
-	
+
 	/* Copy to the allocated buffer */
 	memcpy(state_buf, state, sizeof(istate_t));
-	
+
 	_thread_op_end(thread);
-	
+
 	*buffer = (void *) state_buf;
 	return EOK;
@@ -540,12 +540,12 @@
 	/* Verify task state */
 	mutex_lock(&TASK->udebug.lock);
-	
+
 	if (TASK->udebug.dt_state != UDEBUG_TS_ACTIVE) {
 		mutex_unlock(&TASK->udebug.lock);
 		return EBUSY;
 	}
-	
+
 	void *data_buffer = malloc(n, 0);
-	
+
 	/*
 	 * NOTE: this is not strictly from a syscall... but that shouldn't
@@ -555,8 +555,8 @@
 	errno_t rc = copy_from_uspace(data_buffer, (void *) uspace_addr, n);
 	mutex_unlock(&TASK->udebug.lock);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	*buffer = data_buffer;
 	return EOK;
Index: kernel/test/atomic/atomic1.c
===================================================================
--- kernel/test/atomic/atomic1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/atomic/atomic1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,29 +35,29 @@
 {
 	atomic_t a;
-	
+
 	atomic_set(&a, 10);
 	if (atomic_get(&a) != 10)
 		return "Failed atomic_set()/atomic_get()";
-	
+
 	if (atomic_postinc(&a) != 10)
 		return "Failed atomic_postinc()";
 	if (atomic_get(&a) != 11)
 		return "Failed atomic_get() after atomic_postinc()";
-	
+
 	if (atomic_postdec(&a) != 11)
 		return "Failed atomic_postdec()";
 	if (atomic_get(&a) != 10)
 		return "Failed atomic_get() after atomic_postdec()";
-	
+
 	if (atomic_preinc(&a) != 11)
 		return "Failed atomic_preinc()";
 	if (atomic_get(&a) != 11)
 		return "Failed atomic_get() after atomic_preinc()";
-	
+
 	if (atomic_predec(&a) != 10)
 		return "Failed atomic_predec()";
 	if (atomic_get(&a) != 10)
 		return "Failed atomic_get() after atomic_predec()";
-	
+
 	return NULL;
 }
Index: kernel/test/avltree/avltree1.c
===================================================================
--- kernel/test/avltree/avltree1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/avltree/avltree1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,8 +56,8 @@
 {
 	avltree_node_t *tmp;
-	
+
 	if (!node)
 		return NULL;
-	
+
 	if (node->lft) {
 		tmp = test_tree_parents(node->lft);
@@ -81,15 +81,15 @@
 {
 	int h1, h2, diff;
-	
+
 	if (!node)
 		return 0;
-	
+
 	h1 = test_tree_balance(node->lft);
 	h2 = test_tree_balance(node->rgt);
 	diff = h2 - h1;
-	
+
 	if ((diff != node->balance) || ((diff != -1) && (diff != 0) && (diff != 1)))
 		TPRINTF("Bad balance\n");
-	
+
 	return ((h1 > h2) ? (h1 + 1) : (h2 + 1));
 }
@@ -110,12 +110,12 @@
 		return;
 	}
-	
+
 	if (node == NULL)
 		return;
-	
+
 	TPRINTF("%" PRIu64 "[%" PRIu8 "]", node->key, node->balance);
 	if (node->lft != NULL || node->rgt != NULL) {
 		TPRINTF("(");
-		
+
 		print_tree_structure_flat(node->lft, level + 1);
 		if (node->rgt != NULL) {
@@ -123,5 +123,5 @@
 			print_tree_structure_flat(node->rgt, level + 1);
 		}
-		
+
 		TPRINTF(")");
 	}
@@ -131,25 +131,25 @@
 {
 	int i;
-	
+
 	for (i = 0; i < NODE_COUNT - 1; i++)
 		avltree_nodes[i].par = &avltree_nodes[i + 1];
-	
+
 	avltree_nodes[i].par = NULL;
-	
+
 	/*
 	 * Node keys which will be used for insertion. Up to NODE_COUNT size of
 	 * array.
 	 */
-	
+
 	/* First tree node and same key */
 	avltree_nodes[0].key = 60;
 	avltree_nodes[1].key = 60;
 	avltree_nodes[2].key = 60;
-	
+
 	/* LL rotation */
 	avltree_nodes[3].key = 50;
 	avltree_nodes[4].key = 40;
 	avltree_nodes[5].key = 30;
-	
+
 	/* LR rotation */
 	avltree_nodes[6].key = 20;
@@ -157,20 +157,20 @@
 	avltree_nodes[8].key = 25;
 	avltree_nodes[9].key = 25;
-	
+
 	/* LL rotation in lower floor */
 	avltree_nodes[10].key = 35;
-	
+
 	/* RR rotation */
 	avltree_nodes[11].key = 70;
 	avltree_nodes[12].key = 80;
-	
+
 	/* RL rotation */
 	avltree_nodes[13].key = 90;
 	avltree_nodes[14].key = 85;
-	
+
 	/* Insert 0 key */
 	avltree_nodes[15].key = 0;
 	avltree_nodes[16].key = 0;
-	
+
 	/* Insert reverse */
 	avltree_nodes[17].key = 600;
@@ -178,8 +178,8 @@
 	avltree_nodes[19].key = 400;
 	avltree_nodes[20].key = 300;
-	
+
 	for (i = 21; i < NODE_COUNT; i++)
 		avltree_nodes[i].key = i * 3;
-	
+
 	first_free_node = &avltree_nodes[0];
 }
@@ -188,8 +188,8 @@
 {
 	avltree_node_t *node;
-	
+
 	node = first_free_node;
 	first_free_node = first_free_node->par;
-	
+
 	return node;
 }
@@ -199,17 +199,17 @@
 	unsigned int i;
 	avltree_node_t *newnode;
-	
+
 	avltree_create(tree);
-	
+
 	TPRINTF("Inserting %zu nodes...", node_count);
-	
+
 	for (i = 0; i < node_count; i++) {
 		newnode = alloc_avltree_node();
-		
+
 		avltree_insert(tree, newnode);
 		test_tree_parents(tree->root);
 		test_tree_balance(tree->root);
 	}
-	
+
 	TPRINTF("done.\n");
 }
@@ -220,9 +220,9 @@
 	avltree_node_t *delnode;
 	unsigned int i;
-	
+
 	switch (node_position) {
 	case 0:
 		TPRINTF("Deleting root nodes...");
-		
+
 		while (tree->root != NULL) {
 			delnode = tree->root;
@@ -234,5 +234,5 @@
 	case 1:
 		TPRINTF("Deleting nodes according to creation time...");
-		
+
 		for (i = 0; i < node_count; i++) {
 			avltree_delete(tree, &avltree_nodes[i]);
@@ -242,5 +242,5 @@
 		break;
 	}
-	
+
 	TPRINTF("done.\n");
 }
@@ -249,7 +249,7 @@
 {
 	unsigned int i = 0;
-	
+
 	TPRINTF("Deleting minimum nodes...");
-	
+
 	while (tree->root != NULL) {
 		i++;
@@ -258,8 +258,8 @@
 		test_tree_balance(tree->root);
 	}
-	
+
 	if (i != node_count)
 		TPRINTF("Bad node count. Some nodes have been lost!\n");
-	
+
 	TPRINTF("done.\n");
 }
@@ -270,13 +270,13 @@
 	test_tree_insert(&avltree, NODE_COUNT);
 	test_tree_delete(&avltree, NODE_COUNT, 0);
-	
+
 	alloc_avltree_node_prepare();
 	test_tree_insert(&avltree, NODE_COUNT);
 	test_tree_delete(&avltree, NODE_COUNT, 1);
-	
+
 	alloc_avltree_node_prepare();
 	test_tree_insert(&avltree, NODE_COUNT);
 	test_tree_delmin(&avltree, NODE_COUNT);
-	
+
 	return NULL;
 }
Index: kernel/test/btree/btree1.c
===================================================================
--- kernel/test/btree/btree1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/btree/btree1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,7 +38,7 @@
 	btree_t t;
 	int i;
-	
+
 	btree_create(&t);
-	
+
 	TPRINTF("Inserting keys.\n");
 	btree_insert(&t, 19, data, NULL);
@@ -77,8 +77,8 @@
 	for (i = 100; i >= 50; i--)
 		btree_insert(&t, i, data, NULL);
-	
+
 	if (!test_quiet)
 		btree_print(&t);
-	
+
 	TPRINTF("Removing keys.\n");
 	btree_remove(&t, 50, NULL);
@@ -156,8 +156,8 @@
 	btree_remove(&t, 35, NULL);
 	btree_remove(&t, 36, NULL);
-	
+
 	if (!test_quiet)
 		btree_print(&t);
-	
+
 	return NULL;
 }
Index: kernel/test/cht/cht1.c
===================================================================
--- kernel/test/cht/cht1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/cht/cht1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -99,32 +99,32 @@
 	if (cht_find_lazy(h, (void*)0))
 		return "Found lazy in empty table.";
-	
+
 	if (cht_find(h, (void*)0))
 		return "Found in empty table.";
-	
+
 	if (cht_remove_key(h, (void*)0))
 		return "Removed from empty table.";
-	
+
 	const int val_cnt = 6;
 	val_t *v[6] = { NULL };
-	
+
 	for (int i = 0; i < val_cnt; ++i)
 		v[i] = malloc(sizeof(val_t), 0);
-	
+
 	size_t key[] = { 1, 1, 1, 11, 12, 13 };
-	
+
 	/* First three are identical */
 	for (int i = 0; i < 3; ++i)
 		set_val(v[i], 1, key[i]);
-	
+
 	/* Same hash, different key.*/
 	set_val(v[3], 1, key[3]);
-	
+
 	/* Different hashes and keys. */
 	set_val(v[4], 2, key[4]);
 	set_val(v[5], 3, key[5]);
-	
+
 	cht_link_t *dup;
-			
+
 	if (!cht_insert_unique(h, &v[0]->link, &dup))
 		return "Duplicates in empty";
@@ -132,5 +132,5 @@
 	if (cht_insert_unique(h, &v[1]->link, &dup))
 		return "Inserted a duplicate";
-	
+
 	if (dup != &v[0]->link)
 		return "Returned wrong duplicate";
@@ -138,18 +138,18 @@
 	if (!cht_insert_unique(h, &v[3]->link, &dup))
 		return "Refused non-equal item but with a hash in table.";
-	
+
 	cht_insert(h, &v[1]->link);
 	cht_insert(h, &v[2]->link);
-	
+
 	bool ok = true;
 	ok = ok && cht_insert_unique(h, &v[4]->link, &dup);
 	ok = ok && cht_insert_unique(h, &v[5]->link, &dup);
-	
+
 	if (!ok)
 		return "Refused unique ins 4, 5.";
-	
+
 	if (cht_find(h, (void*)0))
 		return "Phantom find.";
-	
+
 	cht_link_t *item = cht_find(h, (void*)v[5]->unique_id);
 	if (!item || item != &v[5]->link)
@@ -159,5 +159,5 @@
 	if (item)
 		return "Found nonexisting duplicate 5";
-	
+
 	item = cht_find(h, (void*)v[3]->unique_id);
 	if (!item || item != &v[3]->link)
@@ -167,15 +167,15 @@
 	if (item)
 		return "Found nonexisting duplicate 3, same hash as others.";
-	
+
 	item = cht_find(h, (void*)v[0]->unique_id);
 	((val_t*)item)->mark = true;
-	
+
 	for (int k = 1; k < 3; ++k) {
 		item = cht_find_next(h, item);
 		if (!item)
 			return "Did not find an inserted duplicate";
-		
+
 		val_t *val = ((val_t*)item);
-		
+
 		if (val->unique_id != v[0]->unique_id)
 			return "Found item with a different key.";
@@ -184,9 +184,9 @@
 		val->mark = true;
 	}
-	
+
 	for (int i = 0; i < 3; ++i) {
 		if (!v[i]->mark)
 			return "Did not find all duplicates";
-		
+
 		v[i]->mark = false;
 	}
@@ -196,13 +196,13 @@
 
 	item = cht_find_next(h, cht_find(h, (void*)key[0]));
-	
+
 	((val_t*)item)->mark = true;
 	if (!cht_remove_item(h, item))
 		return "Failed to remove inserted item";
-	
+
 	item = cht_find(h, (void*)key[0]);
 	if (!item || ((val_t*)item)->mark)
 		return "Did not find proper item.";
-	
+
 	item = cht_find_next(h, item);
 	if (!item || ((val_t*)item)->mark)
@@ -212,18 +212,18 @@
 	if (item)
 		return "Found removed duplicate";
-	
+
 	if (2 != cht_remove_key(h, (void*)key[0]))
 		return "Failed to remove all duplicates";
-	
+
 	if (cht_find(h, (void*)key[0]))
 		return "Found removed key";
-	
+
 	if (!cht_find(h, (void*)key[3]))
 		return "Removed incorrect key";
-	
+
 	for (size_t k = 0; k < sizeof(v) / sizeof(v[0]); ++k) {
 		cht_remove_key(h, (void*)key[k]);
 	}
-	
+
 	for (size_t k = 0; k < sizeof(v) / sizeof(v[0]); ++k) {
 		if (cht_find(h, (void*)key[k]))
@@ -239,9 +239,9 @@
 	if (!cht_create_simple(&h, &val_ops))
 		return "Could not create the table.";
-	
+
 	rcu_read_lock();
 	const char *err = do_sanity_test(&h);
 	rcu_read_unlock();
-	
+
 	cht_destroy(&h);
 
@@ -321,12 +321,12 @@
 				goto out_of_mem;
 			}
-			
+
 			s->free = true;
 			s->key = (i << 8) + work->id;
-			
+
 			cht_insert(work->h, &s->link);
 		}
 		TPRINTF("}");
-		
+
 		thread_sleep(2);
 
@@ -334,5 +334,5 @@
 		for (size_t i = 0; i < work->wave_elems; ++i) {
 			size_t key = (i << 8) + work->id;
-			
+
 			if (1 != cht_remove_key(work->h, (void*)key)) {
 				TPRINTF("Err: Failed to remove inserted item\n");
@@ -342,5 +342,5 @@
 		TPRINTF(">");
 	}
-	
+
 	/* Request that others stop. */
 	*work->stop = 1;
@@ -365,8 +365,8 @@
 	stress_work_t *work = (stress_work_t *)arg;
 	assert(0 == *work->stop);
-	
+
 	size_t loops = 0;
 	size_t seed = work->id;
-		
+
 	while (0 == *work->stop && !work->failed) {
 		seed = next_rand(seed);
@@ -374,5 +374,5 @@
 		seed = next_rand(seed);
 		size_t elem_idx = seed % work->elem_cnt;
-		
+
 		++loops;
 		if (0 == loops % (1024 * 1024)) {
@@ -381,9 +381,9 @@
 			TPRINTF("*");
 		}
-			
+
 		if (upd) {
 			seed = next_rand(seed);
 			bool item_op = seed & 1;
-			
+
 			if (work->elem[elem_idx].inserted) {
 				if (item_op) {
@@ -401,5 +401,5 @@
 			} else if (work->elem[elem_idx].deleted) {
 				work->elem[elem_idx].deleted = false;
-				
+
 				if (item_op) {
 					rcu_read_lock();
@@ -414,5 +414,5 @@
 					cht_insert(work->h, &work->elem[elem_idx].link);
 				}
-				
+
 				work->elem[elem_idx].inserted = true;
 			}
@@ -452,5 +452,5 @@
 {
 	cht_t h;
-	
+
 	if (!cht_create_simple(&h, &stress_ops)) {
 		TPRINTF("Failed to create the table\n");
@@ -464,12 +464,12 @@
 	size_t total_thr_cnt = op_thread_cnt + resize_thread_cnt;
 	size_t items_per_thread = 1024;
-	
+
 	size_t work_cnt = op_thread_cnt + resize_thread_cnt;
 	size_t item_cnt = op_thread_cnt * items_per_thread;
-	
+
 	/* Alloc hash table items. */
 	size_t size = item_cnt * sizeof(stress_t) + work_cnt * sizeof(stress_work_t)
 		+ sizeof(int);
-		
+
 	TPRINTF("Alloc and init table items. \n");
 	void *p = malloc(size, FRAME_ATOMIC);
@@ -479,11 +479,11 @@
 		return false;
 	}
-	
+
 	stress_t *pitem = p + work_cnt * sizeof(stress_work_t);
 	stress_work_t *pwork = p;
 	int *pstop = (int*)(pitem + item_cnt);
-	
+
 	*pstop = 0;
-	
+
 	/* Init work items. */
 	for (size_t i = 0; i < op_thread_cnt; ++i) {
@@ -496,5 +496,5 @@
 		pwork[i].failed = false;
 	}
-	
+
 	for (size_t i = op_thread_cnt; i < op_thread_cnt + resize_thread_cnt; ++i) {
 		pwork[i].h = &h;
@@ -505,5 +505,5 @@
 		pwork[i].failed = false;
 	}
-	
+
 	/* Init table elements. */
 	for (size_t k = 0; k < op_thread_cnt; ++k) {
@@ -515,11 +515,11 @@
 		}
 	}
-	
+
 	TPRINTF("Running %zu ins/del/find stress threads + %zu resizers.\n",
 		op_thread_cnt, resize_thread_cnt);
-	
+
 	/* Create and run threads. */
 	thread_t *thr[max_thread_cnt + resize_thread_cnt];
-	
+
 	for (size_t i = 0; i < total_thr_cnt; ++i) {
 		if (i < op_thread_cnt)
@@ -527,12 +527,12 @@
 		else
 			thr[i] = thread_create(resize_stresser, &pwork[i], TASK, 0, "cht-resize");
-		
+
 		assert(thr[i]);
 		thread_wire(thr[i], &cpus[i % config.cpu_active]);
 		thread_ready(thr[i]);
 	}
-	
+
 	bool failed = false;
-	
+
 	/* Wait for all threads to return. */
 	TPRINTF("Joining resize stressers.\n");
@@ -542,5 +542,5 @@
 		failed = pwork[i].failed || failed;
 	}
-	
+
 	TPRINTF("Joining op stressers.\n");
 	for (int i = (int)op_thread_cnt - 1; i >= 0; --i) {
@@ -550,5 +550,5 @@
 		failed = pwork[i].failed || failed;
 	}
-	
+
 	cht_destroy(&h);
 	free(p);
@@ -566,5 +566,5 @@
 		return err;
 	printf("Basic sanity test: ok.\n");
-	
+
 	if (!do_stress())
 		return "CHT stress test failed.";
Index: kernel/test/debug/mips1.c
===================================================================
--- kernel/test/debug/mips1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/debug/mips1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,9 +40,9 @@
 {
 	TPRINTF("If kconsole is compiled in, you should enter debug mode now.\n");
-	
+
 	asm volatile (
 		"break\n"
 	);
-	
+
 	return "Back from debug mode";
 }
Index: kernel/test/fault/fault1.c
===================================================================
--- kernel/test/fault/fault1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/fault/fault1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,5 +40,5 @@
 {
 	((int *)(0))[1] = 0;
-	
+
 	return "Written to NULL";
 }
Index: kernel/test/mm/falloc1.c
===================================================================
--- kernel/test/mm/falloc1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/mm/falloc1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,19 +45,19 @@
 	if (TEST_RUNS < 2)
 		return "Test is compiled with TEST_RUNS < 2";
-	
+
 	uintptr_t *frames = (uintptr_t *)
 	    malloc(MAX_FRAMES * sizeof(uintptr_t), 0);
 	if (frames == NULL)
 		return "Unable to allocate frames";
-	
+
 	unsigned int results[MAX_FRAMES + 1];
-	
+
 	for (unsigned int run = 0; run < TEST_RUNS; run++) {
 		for (size_t count = 1; count <= MAX_FRAMES; count++) {
 			size_t bytes = FRAMES2SIZE(count);
-			
+
 			TPRINTF("Allocating %zu frames blocks (%zu bytes) ... ",
 			    count, bytes);
-			
+
 			unsigned int allocated = 0;
 			for (unsigned int i = 0; i < (MAX_FRAMES / count); i++) {
@@ -70,7 +70,7 @@
 				}
 			}
-			
+
 			TPRINTF("%d blocks allocated.\n", allocated);
-			
+
 			if (run > 0) {
 				if (results[count] != allocated)
@@ -78,16 +78,16 @@
 			} else
 				results[count] = allocated;
-			
+
 			TPRINTF("Deallocating ... ");
-			
+
 			for (unsigned int i = 0; i < allocated; i++)
 				frame_free(frames[i], count);
-			
+
 			TPRINTF("done.\n");
 		}
 	}
-	
+
 	free(frames);
-	
+
 	return NULL;
 }
Index: kernel/test/mm/falloc2.c
===================================================================
--- kernel/test/mm/falloc2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/mm/falloc2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 {
 	uint8_t val = THREAD->tid % THREADS;
-	
+
 	uintptr_t *frames = (uintptr_t *)
 	    malloc(MAX_FRAMES * sizeof(uintptr_t), FRAME_ATOMIC);
@@ -61,15 +61,15 @@
 		return;
 	}
-	
+
 	thread_detach(THREAD);
-	
+
 	for (unsigned int run = 0; run < THREAD_RUNS; run++) {
 		for (size_t count = 1; count <= MAX_FRAMES; count++) {
 			size_t bytes = FRAMES2SIZE(count);
-			
+
 			TPRINTF("Thread #%" PRIu64 " (cpu%u): "
 			    "Allocating %zu frames blocks (%zu bytes) ... \n", THREAD->tid,
 			    CPU->id, count, bytes);
-			
+
 			unsigned int allocated = 0;
 			for (unsigned int i = 0; i < (MAX_FRAMES / count); i++) {
@@ -81,5 +81,5 @@
 					break;
 			}
-			
+
 			TPRINTF("Thread #%" PRIu64 " (cpu%u): "
 			    "%u blocks allocated.\n", THREAD->tid, CPU->id,
@@ -87,5 +87,5 @@
 			TPRINTF("Thread #%" PRIu64 " (cpu%u): "
 			    "Deallocating ... \n", THREAD->tid, CPU->id);
-			
+
 			for (unsigned int i = 0; i < allocated; i++) {
 				for (size_t k = 0; k < bytes; k++) {
@@ -101,13 +101,13 @@
 				frame_free(frames[i], count);
 			}
-			
+
 			TPRINTF("Thread #%" PRIu64 " (cpu%u): "
 			    "Finished run.\n", THREAD->tid, CPU->id);
 		}
 	}
-	
+
 cleanup:
 	free(frames);
-	
+
 	TPRINTF("Thread #%" PRIu64 " (cpu%u): Exiting\n",
 	    THREAD->tid, CPU->id);
@@ -119,5 +119,5 @@
 	atomic_set(&thread_count, THREADS);
 	atomic_set(&thread_fail, 0);
-	
+
 	for (unsigned int i = 0; i < THREADS; i++) {
 		thread_t *thrd = thread_create(falloc, NULL, TASK,
@@ -129,5 +129,5 @@
 		thread_ready(thrd);
 	}
-	
+
 	while (atomic_get(&thread_count) > 0) {
 		TPRINTF("Threads left: %" PRIua "\n",
@@ -135,8 +135,8 @@
 		thread_sleep(1);
 	}
-	
+
 	if (atomic_get(&thread_fail) == 0)
 		return NULL;
-	
+
 	return "Test failed";
 }
Index: kernel/test/mm/mapping1.c
===================================================================
--- kernel/test/mm/mapping1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/mm/mapping1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,24 +42,24 @@
 {
 	uintptr_t frame = frame_alloc(1, FRAME_NONE, 0);
-	
+
 	uintptr_t page0 = km_map(frame, FRAME_SIZE,
 	    PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE);
 	TPRINTF("Virtual address %p mapped to physical address %p.\n",
 	    (void *) page0, (void *) frame);
-	
+
 	uintptr_t page1 = km_map(frame, FRAME_SIZE,
 	    PAGE_READ | PAGE_WRITE | PAGE_CACHEABLE);
 	TPRINTF("Virtual address %p mapped to physical address %p.\n",
 	    (void *) page1, (void *) frame);
-	
+
 	for (unsigned int i = 0; i < 2; i++) {
 		TPRINTF("Writing magic using the first virtual address.\n");
-		
+
 		*((uint32_t *) page0) = TEST_MAGIC;
-		
+
 		TPRINTF("Reading magic using the second virtual address.\n");
-		
+
 		uint32_t v = *((uint32_t *) page1);
-		
+
 		if (v != TEST_MAGIC) {
 			km_unmap(page0, PAGE_SIZE);
@@ -68,13 +68,13 @@
 			return "Criss-cross read does not match the value written.";
 		}
-		
+
 		TPRINTF("Writing zero using the second virtual address.\n");
-		
+
 		*((uint32_t *) page1) = 0;
-		
+
 		TPRINTF("Reading zero using the first virtual address.\n");
-		
+
 		v = *((uint32_t *) page0);
-		
+
 		if (v != 0) {
 			km_unmap(page0, PAGE_SIZE);
@@ -84,9 +84,9 @@
 		}
 	}
-	
+
 	km_unmap(page0, PAGE_SIZE);
 	km_unmap(page1, PAGE_SIZE);
 	frame_free(frame, 1);
-	
+
 	return NULL;
 }
Index: kernel/test/mm/purge1.c
===================================================================
--- kernel/test/mm/purge1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/mm/purge1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,10 +44,10 @@
 	tlb_entry_t entryi;
 	tlb_entry_t entryd;
-	
+
 	int i;
-	
+
 	entryd.word[0] = 0;
 	entryd.word[1] = 0;
-	
+
 	entryd.p = true;                 /* present */
 	entryd.ma = MA_WRITEBACK;
@@ -58,8 +58,8 @@
 	entryd.ppn = 0;
 	entryd.ps = PAGE_WIDTH;
-	
+
 	entryi.word[0] = 0;
 	entryi.word[1] = 0;
-	
+
 	entryi.p = true;                 /* present */
 	entryi.ma = MA_WRITEBACK;
@@ -70,14 +70,14 @@
 	entryi.ppn = 0;
 	entryi.ps = PAGE_WIDTH;
-	
+
 	for (i = 0; i < 100; i++) {
 		itc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 8, entryi);
 		dtc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 9, entryd);
 	}
-	
+
 	tlb_invalidate_pages(8, 0x0c000, 14);
-	
+
 	/* tlb_invalidate_all(); */
-	
+
 	return NULL;
 }
Index: kernel/test/mm/slab1.c
===================================================================
--- kernel/test/mm/slab1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/mm/slab1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,60 +42,60 @@
 	slab_cache_t *cache;
 	int i;
-	
+
 	TPRINTF("Creating cache, object size: %d.\n", size);
-	
+
 	cache = slab_cache_create("test_cache", size, 0, NULL, NULL,
 	    SLAB_CACHE_NOMAGAZINE);
-	
+
 	TPRINTF("Allocating %d items...", count);
-	
+
 	for (i = 0; i < count; i++) {
 		data[i] = slab_alloc(cache, 0);
 		memsetb(data[i], size, 0);
 	}
-	
+
 	TPRINTF("done.\n");
-	
+
 	TPRINTF("Freeing %d items...", count);
-	
+
 	for (i = 0; i < count; i++)
 		slab_free(cache, data[i]);
-	
+
 	TPRINTF("done.\n");
-	
+
 	TPRINTF("Allocating %d items...", count);
-	
+
 	for (i = 0; i < count; i++) {
 		data[i] = slab_alloc(cache, 0);
 		memsetb(data[i], size, 0);
 	}
-	
+
 	TPRINTF("done.\n");
-	
+
 	TPRINTF("Freeing %d items...", count / 2);
-	
+
 	for (i = count - 1; i >= count / 2; i--)
 		slab_free(cache, data[i]);
-	
+
 	TPRINTF("done.\n");
-	
+
 	TPRINTF("Allocating %d items...", count / 2);
-	
+
 	for (i = count / 2; i < count; i++) {
 		data[i] = slab_alloc(cache, 0);
 		memsetb(data[i], size, 0);
 	}
-	
+
 	TPRINTF("done.\n");
-	
+
 	TPRINTF("Freeing %d items...", count);
-	
+
 	for (i = 0; i < count; i++)
 		slab_free(cache, data[i]);
-	
+
 	TPRINTF("done.\n");
-	
+
 	slab_cache_destroy(cache);
-	
+
 	TPRINTF("Test complete.\n");
 }
@@ -125,9 +125,9 @@
 	int offs = (int) (sysarg_t) data;
 	int i, j;
-	
+
 	thread_detach(THREAD);
-	
+
 	TPRINTF("Starting thread #%" PRIu64 "...\n", THREAD->tid);
-	
+
 	for (j = 0; j < 10; j++) {
 		for (i = 0; i < THR_MEM_COUNT; i++)
@@ -140,7 +140,7 @@
 			slab_free(thr_cache, thr_data[offs][i]);
 	}
-	
+
 	TPRINTF("Thread #%" PRIu64 " finished\n", THREAD->tid);
-	
+
 	semaphore_up(&thr_sem);
 }
@@ -150,8 +150,8 @@
 	thread_t *t;
 	int i;
-	
+
 	thr_cache = slab_cache_create("thread_cache", THR_MEM_SIZE, 0, NULL, NULL,
 	    SLAB_CACHE_NOMAGAZINE);
-	
+
 	semaphore_initialize(&thr_sem, 0);
 	for (i = 0; i < THREADS; i++) {
@@ -164,7 +164,7 @@
 	for (i = 0; i < THREADS; i++)
 		semaphore_down(&thr_sem);
-	
+
 	slab_cache_destroy(thr_cache);
-	
+
 	TPRINTF("Test complete.\n");
 }
@@ -174,5 +174,5 @@
 	testsimple();
 	testthreads();
-	
+
 	return NULL;
 }
Index: kernel/test/mm/slab2.c
===================================================================
--- kernel/test/mm/slab2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/mm/slab2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,13 +48,13 @@
 	slab_cache_t *cache2;
 	int i;
-	
+
 	void *data1, *data2;
 	void *olddata1 = NULL, *olddata2 = NULL;
-	
+
 	cache1 = slab_cache_create("test_cache1", ITEM_SIZE, 0, NULL, NULL, 0);
 	cache2 = slab_cache_create("test_cache2", ITEM_SIZE, 0, NULL, NULL, 0);
-	
+
 	TPRINTF("Allocating...");
-	
+
 	/* Use atomic alloc, so that we find end of memory */
 	do {
@@ -75,9 +75,9 @@
 		olddata2 = data2;
 	} while (true);
-	
+
 	TPRINTF("done.\n");
-	
+
 	TPRINTF("Deallocating cache2...");
-	
+
 	/* We do not have memory - now deallocate cache2 */
 	while (olddata2) {
@@ -86,9 +86,9 @@
 		olddata2 = data2;
 	}
-	
+
 	TPRINTF("done.\n");
-	
+
 	TPRINTF("Allocating to cache1...\n");
-	
+
 	for (i = 0; i < 30; i++) {
 		data1 = slab_alloc(cache1, FRAME_ATOMIC);
@@ -109,7 +109,7 @@
 		olddata1 = data1;
 	}
-	
+
 	TPRINTF("Deallocating cache1...");
-	
+
 	while (olddata1) {
 		data1 = *((void **) olddata1);
@@ -117,10 +117,10 @@
 		olddata1 = data1;
 	}
-	
+
 	TPRINTF("done.\n");
-	
+
 	if (!test_quiet)
 		slab_print_list();
-	
+
 	slab_cache_destroy(cache1);
 	slab_cache_destroy(cache2);
@@ -137,16 +137,16 @@
 {
 	void *data = NULL, *new;
-	
+
 	thread_detach(THREAD);
-	
+
 	mutex_lock(&starter_mutex);
 	condvar_wait(&thread_starter,&starter_mutex);
 	mutex_unlock(&starter_mutex);
-	
+
 	TPRINTF("Starting thread #%" PRIu64 "...\n", THREAD->tid);
 
 	/* Alloc all */
 	TPRINTF("Thread #%" PRIu64 " allocating...\n", THREAD->tid);
-	
+
 	while (true) {
 		/* Call with atomic to detect end of memory */
@@ -157,7 +157,7 @@
 		data = new;
 	}
-	
+
 	TPRINTF("Thread #%" PRIu64 " releasing...\n", THREAD->tid);
-	
+
 	while (data) {
 		new = *((void **)data);
@@ -166,7 +166,7 @@
 		data = new;
 	}
-	
+
 	TPRINTF("Thread #%" PRIu64 " allocating...\n", THREAD->tid);
-	
+
 	while (true) {
 		/* Call with atomic to detect end of memory */
@@ -177,7 +177,7 @@
 		data = new;
 	}
-	
+
 	TPRINTF("Thread #%" PRIu64 " releasing...\n", THREAD->tid);
-	
+
 	while (data) {
 		new = *((void **)data);
@@ -186,10 +186,10 @@
 		data = new;
 	}
-	
+
 	TPRINTF("Thread #%" PRIu64 " finished\n", THREAD->tid);
-	
+
 	if (!test_quiet)
 		slab_print_list();
-	
+
 	semaphore_up(&thr_sem);
 }
@@ -202,10 +202,10 @@
 	thread_t *t;
 	int i;
-	
+
 	TPRINTF("Running stress test with size %d\n", size);
-	
+
 	condvar_initialize(&thread_starter);
 	mutex_initialize(&starter_mutex, MUTEX_PASSIVE);
-	
+
 	thr_cache = slab_cache_create("thread_cache", size, 0, NULL, NULL, 0);
 	semaphore_initialize(&thr_sem,0);
@@ -218,8 +218,8 @@
 	thread_sleep(1);
 	condvar_broadcast(&thread_starter);
-	
+
 	for (i = 0; i < THREADS; i++)
 		semaphore_down(&thr_sem);
-	
+
 	slab_cache_destroy(thr_cache);
 	TPRINTF("Stress test complete.\n");
@@ -230,14 +230,14 @@
 	TPRINTF("Running reclaim single-thread test .. pass 1\n");
 	totalmemtest();
-	
+
 	TPRINTF("Running reclaim single-thread test .. pass 2\n");
 	totalmemtest();
-	
+
 	TPRINTF("Reclaim test OK.\n");
-	
+
 	multitest(128);
 	multitest(2048);
 	multitest(8192);
-	
+
 	return NULL;
 }
Index: kernel/test/print/print1.c
===================================================================
--- kernel/test/print/print1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/print/print1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,21 +36,21 @@
 	TPRINTF("Expected output: \"  tex\"\n");
 	TPRINTF("Real output:     \"%*.*s\"\n\n", 5, 3, "text");
-	
+
 	TPRINTF("Testing printf(\"%%10.8s\", \"very long text\"):\n");
 	TPRINTF("Expected output: \"  very lon\"\n");
 	TPRINTF("Real output:     \"%10.8s\"\n\n", "very long text");
-	
+
 	TPRINTF("Testing printf(\"%%8.10s\", \"text\"):\n");
 	TPRINTF("Expected output: \"    text\"\n");
 	TPRINTF("Real output:     \"%8.10s\"\n\n", "text");
-	
+
 	TPRINTF("Testing printf(\"%%8.10s\", \"very long text\"):\n");
 	TPRINTF("Expected output: \"very long \"\n");
 	TPRINTF("Real output:     \"%8.10s\"\n\n", "very long text");
-	
+
 	TPRINTF("Testing printf(\"%%-*.*s\", 7, 7, \"text\"):\n");
 	TPRINTF("Expected output: \"text   \"\n");
 	TPRINTF("Real output:     \"%-*.*s\"\n\n", 7, 7, "text");
-	
+
 	return NULL;
 }
Index: kernel/test/print/print2.c
===================================================================
--- kernel/test/print/print2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/print/print2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,24 +36,24 @@
 	TPRINTF("Expected output: [a]\n");
 	TPRINTF("Real output:     [%c]\n\n", 'a');
-	
+
 	TPRINTF("Testing printf(\"%%d %%3.2d %%-3.2d %%2.3d %%-2.3d\", 1, 2, 3, 4, 5):\n");
 	TPRINTF("Expected output: [1] [ 02] [03 ] [004] [005]\n");
 	TPRINTF("Real output:     [%d] [%3.2d] [%-3.2d] [%2.3d] [%-2.3d]\n\n", 1, 2, 3, 4, 5);
-	
+
 	TPRINTF("Testing printf(\"%%d %%3.2d %%-3.2d %%2.3d %%-2.3d\", -1, -2, -3, -4, -5):\n");
 	TPRINTF("Expected output: [-1] [-02] [-03] [-004] [-005]\n");
 	TPRINTF("Real output:     [%d] [%3.2d] [%-3.2d] [%2.3d] [%-2.3d]\n\n", -1, -2, -3, -4, -5);
-	
+
 	TPRINTF("Testing printf(\"%%lld %%3.2lld %%-3.2lld %%2.3lld %%-2.3lld\", (long long) -1, (long long) -2, (long long) -3, (long long) -4, (long long) -5):\n");
 	TPRINTF("Expected output: [-1] [-02] [-03] [-004] [-005]\n");
 	TPRINTF("Real output:     [%lld] [%3.2lld] [%-3.2lld] [%2.3lld] [%-2.3lld]\n\n", (long long) -1, (long long) -2, (long long) -3, (long long) -4, (long long) -5);
-	
+
 	TPRINTF("Testing printf(\"%%#x %%5.3#x %%-5.3#x %%3.5#x %%-3.5#x\", 17, 18, 19, 20, 21):\n");
 	TPRINTF("Expected output: [0x11] [0x012] [0x013] [0x00014] [0x00015]\n");
 	TPRINTF("Real output:     [%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]\n\n", 17, 18, 19, 20, 21);
-	
+
 	char ch[12];
 	ptrdiff_t d, neg_d;
-	
+
 	d = &ch[0] - &ch[12];
 	neg_d = (unsigned)(-d);
@@ -61,11 +61,11 @@
 	TPRINTF("Expected output: [-12] [12] [c] [-12] [14]\n");
 	TPRINTF("Real output:     [%td] [%tu] [%tx] [%ti] [%to]\n\n", d, neg_d, neg_d, d, neg_d);
-	
+
 	sysarg_t nat = 0x12345678;
-	
+
 	TPRINTF("Testing printf(\"%%#" PRIx64 " %%#" PRIx32 " %%#" PRIx16 " %%#" PRIx8 " %%#" PRIxn " %%#" PRIx64 " %%s\", (uint64_t) UINT64_C(0x1234567887654321), (uint32_t) UINT32_C(0x12345678), (uint16_t) UINT16_C(0x1234), (uint8_t) UINT8_C(0x12), nat, (uint64_t) UINT64_C(0x1234567887654321), \"Lovely string\"):\n");
 	TPRINTF("Expected output: [0x1234567887654321] [0x12345678] [0x1234] [0x12] [0x12345678] [0x1234567887654321] \"Lovely string\"\n");
 	TPRINTF("Real output:     [%#" PRIx64 "] [%#" PRIx32 "] [%#" PRIx16 "] [%#" PRIx8 "] [%#" PRIxn "] [%#" PRIx64 "] \"%s\"\n\n", (uint64_t) UINT64_C(0x1234567887654321), (uint32_t) UINT32_C(0x12345678), (uint16_t) UINT16_C(0x1234), (uint8_t) UINT8_C(0x12), nat, (uint64_t) UINT64_C(0x1234567887654321), "Lovely string");
-	
+
 	return NULL;
 }
Index: kernel/test/print/print3.c
===================================================================
--- kernel/test/print/print3.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/print/print3.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,25 +38,25 @@
 	char buffer[BUFFER_SIZE];
 	int retval;
-	
+
 	TPRINTF("Testing snprintf(buffer, " STRING(BUFFER_SIZE) ", \"Short text without parameters.\"):\n");
 	TPRINTF("Expected result: retval=30 buffer=\"Short text without parameters.\"\n");
 	retval = snprintf(buffer, BUFFER_SIZE, "Short text without parameters.");
 	TPRINTF("Real result:     retval=%d buffer=\"%s\"\n\n", retval, buffer);
-	
+
 	TPRINTF("Testing snprintf(buffer, " STRING(BUFFER_SIZE) ", \"Very very very long text without parameters.\"):\n");
 	TPRINTF("Expected result: retval=44 buffer=\"Very very very long text withou\"\n");
 	retval = snprintf(buffer, BUFFER_SIZE, "Very very very long text without parameters.");
 	TPRINTF("Real result:     retval=%d buffer=\"%s\"\n\n", retval, buffer);
-	
+
 	TPRINTF("Testing snprintf(buffer, " STRING(BUFFER_SIZE) ", \"Short %%s.\", \"text\"):\n");
 	TPRINTF("Expected result: retval=11 buffer=\"Short text.\"\n");
 	retval = snprintf(buffer, BUFFER_SIZE, "Short %s.", "text");
 	TPRINTF("Real result:     retval=%d buffer=\"%s\"\n\n", retval, buffer);
-	
+
 	TPRINTF("Testing snprintf(buffer, " STRING(BUFFER_SIZE) ", \"Very long %%s. This text's length is more than %%d. We are interested in the result.\", \"text\", " STRING(BUFFER_SIZE) "):\n");
 	TPRINTF("Expected result: retval=84 buffer=\"Very long text. This text's len\"\n");
 	retval = snprintf(buffer, BUFFER_SIZE, "Very long %s. This text's length is more than %d. We are interested in the result.", "text", BUFFER_SIZE);
 	TPRINTF("Real result:     retval=%d buffer=\"%s\"\n\n", retval, buffer);
-	
+
 	return NULL;
 }
Index: kernel/test/print/print4.c
===================================================================
--- kernel/test/print/print4.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/print/print4.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -34,32 +34,32 @@
 {
 	TPRINTF("ASCII printable characters (32 - 127) using printf(\"%%c\") and printf(\"%%lc\"):\n");
-	
+
 	uint8_t group;
 	for (group = 1; group < 4; group++) {
 		TPRINTF("%#x: ", group << 5);
-		
+
 		uint8_t index;
 		for (index = 0; index < 32; index++)
 			TPRINTF("%c", (char) ((group << 5) + index));
-		
+
 		TPRINTF("  ");
 		for (index = 0; index < 32; index++)
 			TPRINTF("%lc", (wint_t) ((group << 5) + index));
-		
+
 		TPRINTF("\n");
 	}
-	
+
 	TPRINTF("\nExtended ASCII characters (128 - 255) using printf(\"%%lc\"):\n");
-	
+
 	for (group = 4; group < 8; group++) {
 		TPRINTF("%#x: ", group << 5);
-		
+
 		uint8_t index;
 		for (index = 0; index < 32; index++)
 			TPRINTF("%lc", (wint_t) ((group << 5) + index));
-		
+
 		TPRINTF("\n");
 	}
-	
+
 	TPRINTF("\nUTF-8 strings using printf(\"%%s\"):\n");
 	TPRINTF("English:  %s\n", "Quick brown fox jumps over the lazy dog");
@@ -70,5 +70,5 @@
 	TPRINTF("Russian:  %s\n", "Леннон познакомился с художницей-авангардисткой");
 	TPRINTF("Armenian: %s\n", "Սկսեց հրատարակվել Երուսաղեմի հայկական");
-	
+
 	TPRINTF("\nUTF-32 strings using printf(\"%%ls\"):\n");
 	TPRINTF("English:  %ls\n", L"Quick brown fox jumps over the lazy dog");
@@ -79,5 +79,5 @@
 	TPRINTF("Russian:  %ls\n", L"Леннон познакомился с художницей-авангардисткой");
 	TPRINTF("Armenian: %ls\n", L"Սկսեց հրատարակվել Երուսաղեմի հայկական");
-	
+
 	return NULL;
 }
Index: kernel/test/print/print5.c
===================================================================
--- kernel/test/print/print5.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/print/print5.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,9 +48,9 @@
 	TPRINTF("Expected output: \"(NULL)\"\n");
 	TPRINTF("Real output:     \"%s\"\n\n", (char *) NULL);
-	
+
 	TPRINTF("Testing printf(\"%%c %%3.2c %%-3.2c %%2.3c %%-2.3c\", 'a', 'b', 'c', 'd', 'e'):\n");
 	TPRINTF("Expected output: [a] [  b] [c  ] [ d] [e ]\n");
 	TPRINTF("Real output:     [%c] [%3.2c] [%-3.2c] [%2.3c] [%-2.3c]\n\n", 'a', 'b', 'c', 'd', 'e');
-	
+
 	return NULL;
 }
Index: kernel/test/smpcall/smpcall1.c
===================================================================
--- kernel/test/smpcall/smpcall1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/smpcall/smpcall1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,7 +66,7 @@
 	size_t *pcall_cnt = (size_t*)p;
 	smp_call_t call_info[MAX_CPUS];
-	
+
 	unsigned int cpu_count = min(config.cpu_active, MAX_CPUS);
-	
+
 	for (int iter = 0; iter < ITERATIONS; ++iter) {
 		/* Synchronous version. */
@@ -79,5 +79,5 @@
 			smp_call(cpu_id, inc, pcall_cnt);
 		}
-		
+
 		/*
 		 * Async calls run in parallel on different cpus, so passing the
@@ -85,10 +85,10 @@
 		 */
 		size_t local_cnt[MAX_CPUS] = {0};
-		
+
 		/* Now start asynchronous calls. */
 		for (unsigned cpu_id = 0; cpu_id < cpu_count; ++cpu_id) {
 			smp_call_async(cpu_id, inc, &local_cnt[cpu_id], &call_info[cpu_id]);
 		}
-		
+
 		/* And wait for all async calls to complete. */
 		for (unsigned cpu_id = 0; cpu_id < cpu_count; ++cpu_id) {
@@ -112,15 +112,15 @@
 	size_t call_cnt[MAX_CPUS] = {0};
 	thread_t *thread[MAX_CPUS] = { NULL };
-	
+
 	unsigned int cpu_count = min(config.cpu_active, MAX_CPUS);
 	size_t running_thread_cnt = 0;
 
 	TPRINTF("Spawning threads on %u cpus.\n", cpu_count);
-	
+
 	/* Create a wired thread on each cpu. */
 	for (unsigned int id = 0; id < cpu_count; ++id) {
 		thread[id] = thread_create(test_thread, &call_cnt[id], TASK,
 			THREAD_FLAG_NONE, "smp-call-test");
-		
+
 		if (thread[id]) {
 			thread_wire(thread[id], &cpus[id]);
@@ -133,5 +133,5 @@
 	size_t exp_calls = calc_exp_calls(running_thread_cnt);
 	size_t exp_calls_sum = exp_calls * cpu_count;
-	
+
 	TPRINTF("Running %zu wired threads. Expecting %zu calls. Be patient.\n",
 		running_thread_cnt, exp_calls_sum);
@@ -142,5 +142,5 @@
 		}
 	}
-	
+
 	/* Wait for threads to complete. */
 	for (unsigned int i = 0; i < cpu_count; ++i) {
@@ -152,8 +152,8 @@
 
 	TPRINTF("Threads finished. Checking number of smp_call()s.\n");
-	
+
 	bool ok = true;
 	size_t calls_sum = 0;
-	
+
 	for (size_t i = 0; i < cpu_count; ++i) {
 		if (thread[i] != NULL) {
@@ -164,15 +164,15 @@
 			}
 		}
-		
+
 		calls_sum += call_cnt[i];
 	}
-	
+
 	if (calls_sum != exp_calls_sum) {
 		TPRINTF("Error: total acknowledged sum: %zu instead of %zu.\n",
 			calls_sum, exp_calls_sum);
-		
+
 		ok = false;
 	}
-	
+
 	if (ok) {
 		TPRINTF("Success: number of received smp_calls is as expected (%zu).\n",
@@ -181,4 +181,4 @@
 	} else
 		return "Failed: incorrect acknowledged smp_calls.\n";
-	
+
 }
Index: kernel/test/synch/rcu1.c
===================================================================
--- kernel/test/synch/rcu1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/synch/rcu1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,5 +67,5 @@
 		TPRINTF(".");
 	}
-	
+
 	if (!p->exited) {
 		*presult = ETIMEOUT;
@@ -81,8 +81,8 @@
 {
 	assert(thread[k] == NULL);
-	
+
 	thread[k] = thread_create(func, arg, TASK, THREAD_FLAG_NONE,
 		"test-rcu-thread");
-		
+
 	if(thread[k]) {
 		/* Distribute evenly. */
@@ -95,7 +95,7 @@
 {
 	size_t thread_cnt = get_thread_cnt();
-	
+
 	one_idx = 0;
-	
+
 	for (size_t i = 0; i < thread_cnt; ++i) {
 		run_thread(i, func, NULL);
@@ -106,7 +106,7 @@
 {
 	size_t thread_cnt = get_thread_cnt();
-	
+
 	one_idx = 0;
-	
+
 	for (size_t i = 0; i < thread_cnt; ++i) {
 		if (thread[i]) {
@@ -115,10 +115,10 @@
 				errno_t ret = thread_join_timeout(thread[i], 5 * 1000 * 1000, 0);
 				joined = (ret != ETIMEOUT);
-				
+
 				if (ret == EOK) {
 					TPRINTF("%zu threads remain\n", thread_cnt - i - 1);
 				}
 			} while (!joined);
-			
+
 			thread_detach(thread[i]);
 			thread[i] = NULL;
@@ -140,5 +140,5 @@
 
 	--one_idx;
-	
+
 	if (thread[one_idx]) {
 		thread_join(thread[one_idx]);
@@ -154,12 +154,12 @@
 {
 	size_t nop_iters = (size_t)arg;
-	
+
 	TPRINTF("Enter nop-reader\n");
-	
+
 	for (size_t i = 0; i < nop_iters; ++i) {
 		rcu_read_lock();
 		rcu_read_unlock();
 	}
-	
+
 	TPRINTF("Exit nop-reader\n");
 }
@@ -169,9 +169,9 @@
 	assert(0 < steps && from <= to && 0 < to);
 	size_t inc = (to - from) / (steps - 1);
-	
+
 	for (size_t i = 0; i < steps - 1; ++i) {
 		seq[i] = i * inc + from;
 	}
-	
+
 	seq[steps - 1] = to;
 }
@@ -181,13 +181,13 @@
 	size_t seq[MAX_THREADS] = {0};
 	get_seq(100, 100000, get_thread_cnt(), seq);
-	
+
 	TPRINTF("\nRun %zu thr: repeat empty no-op reader sections\n", get_thread_cnt());
-	
+
 	for (size_t k = 0; k < get_thread_cnt(); ++k)
 		run_one(nop_reader, (void*)seq[k]);
-	
+
 	TPRINTF("\nJoining %zu no-op readers\n", get_thread_cnt());
 	join_all();
-	
+
 	return true;
 }
@@ -202,17 +202,17 @@
 	size_t nop_iters = (size_t)arg;
 	size_t outer_iters = iter_cnt / nop_iters;
-	
+
 	TPRINTF("Enter long-reader\n");
-	
+
 	for (size_t i = 0; i < outer_iters; ++i) {
 		rcu_read_lock();
-		
+
 		for (volatile size_t k = 0; k < nop_iters; ++k) {
 			/* nop, but increment volatile k */
 		}
-		
+
 		rcu_read_unlock();
 	}
-	
+
 	TPRINTF("Exit long-reader\n");
 }
@@ -222,14 +222,14 @@
 	size_t seq[MAX_THREADS] = {0};
 	get_seq(10, 1000 * 1000, get_thread_cnt(), seq);
-	
+
 	TPRINTF("\nRun %zu thr: repeat long reader sections, will preempt, no cbs.\n",
 		get_thread_cnt());
-	
+
 	for (size_t k = 0; k < get_thread_cnt(); ++k)
 		run_one(long_reader, (void*)seq[k]);
-	
+
 	TPRINTF("\nJoining %zu readers with long reader sections.\n", get_thread_cnt());
 	join_all();
-	
+
 	return true;
 }
@@ -253,5 +253,5 @@
 		rcu_item_t *a = malloc(sizeof(rcu_item_t), FRAME_ATOMIC);
 		rcu_item_t *b = malloc(sizeof(rcu_item_t), FRAME_ATOMIC);
-		
+
 		if (a && b) {
 			rcu_call(a, count_cb);
@@ -272,12 +272,12 @@
 	size_t exp_cnt = nop_updater_iters * get_thread_cnt();
 	size_t max_used_mem = sizeof(rcu_item_t) * exp_cnt;
-	
+
 	TPRINTF("\nRun %zu thr: post %zu no-op callbacks (%zu B used), no readers.\n",
 		get_thread_cnt(), exp_cnt, max_used_mem);
-	
+
 	run_all(nop_updater);
 	TPRINTF("\nJoining %zu no-op callback threads\n", get_thread_cnt());
 	join_all();
-	
+
 	size_t loop_cnt = 0, max_loops = 15;
 
@@ -287,5 +287,5 @@
 		thread_sleep(1);
 	}
-	
+
 	return loop_cnt < max_loops;
 }
@@ -312,9 +312,9 @@
 {
 	TPRINTF("Enter one-cb-reader\n");
-	
-	rcu_read_lock();
-	
+
+	rcu_read_lock();
+
 	item_w_cookie_t *item = malloc(sizeof(item_w_cookie_t), FRAME_ATOMIC);
-	
+
 	if (item) {
 		item->cookie = magic_cookie;
@@ -323,9 +323,9 @@
 		TPRINTF("\n[out-of-mem]\n");
 	}
-	
+
 	thread_sleep(1);
-	
+
 	rcu_read_unlock();
-	
+
 	TPRINTF("Exit one-cb-reader\n");
 }
@@ -334,18 +334,18 @@
 {
 	one_cb_is_done = 0;
-	
+
 	TPRINTF("\nRun a single reader that posts one callback.\n");
 	run_one(one_cb_reader, NULL);
 	join_one();
-	
+
 	TPRINTF("\nJoined one-cb reader, wait for callback.\n");
 	size_t loop_cnt = 0;
 	size_t max_loops = 4; /* 200 ms total */
-	
+
 	while (!one_cb_is_done && loop_cnt < max_loops) {
 		thread_usleep(50 * 1000);
 		++loop_cnt;
 	}
-	
+
 	return one_cb_is_done;
 }
@@ -373,9 +373,9 @@
 {
 	seq_item_t *item = member_to_inst(rcu_item, seq_item_t, rcu);
-	
+
 	/* Racy but errs to the conservative side, so it is ok. */
 	if (max_upd_done_time < item->start_time) {
 		max_upd_done_time = item->start_time;
-		
+
 		/* Make updated time visible */
 		memory_barrier();
@@ -393,5 +393,5 @@
 #ifndef KARCH_riscv64
 	seq_work_t *work = (seq_work_t*)arg;
-	
+
 	/* Alternate between reader and updater roles. */
 	for (size_t k = 0; k < work->iters; ++k) {
@@ -400,31 +400,31 @@
 			rcu_read_lock();
 			atomic_count_t start_time = atomic_postinc(&cur_time);
-			
+
 			for (volatile size_t d = 0; d < 10 * i; ++d ){
 				/* no-op */
 			}
-			
+
 			/* Get most recent max_upd_done_time. */
 			memory_barrier();
-			
+
 			if (start_time < max_upd_done_time) {
 				seq_test_result = ERACE;
 			}
-			
+
 			rcu_read_unlock();
-			
+
 			if (seq_test_result != EOK)
 				return;
 		}
-		
+
 		/* Updater */
 		for (size_t i = 0; i < work->update_cnt; ++i) {
 			seq_item_t *a = malloc(sizeof(seq_item_t), FRAME_ATOMIC);
 			seq_item_t *b = malloc(sizeof(seq_item_t), FRAME_ATOMIC);
-			
+
 			if (a && b) {
 				a->start_time = atomic_postinc(&cur_time);
 				rcu_call(&a->rcu, seq_cb);
-				
+
 				b->start_time = atomic_postinc(&cur_time);
 				rcu_call(&b->rcu, seq_cb);
@@ -437,5 +437,5 @@
 			}
 		}
-		
+
 	}
 #else
@@ -454,10 +454,10 @@
 	size_t read_cnt[MAX_THREADS] = {0};
 	seq_work_t item[MAX_THREADS];
-	
+
 	size_t total_cbs = 0;
 	size_t max_used_mem = 0;
-	
+
 	get_seq(0, total_cnt, get_thread_cnt(), read_cnt);
-	
+
 
 	for (size_t i = 0; i < get_thread_cnt(); ++i) {
@@ -465,8 +465,8 @@
 		item[i].read_cnt = read_cnt[i];
 		item[i].iters = iters;
-		
+
 		total_cbs += 2 * iters * item[i].update_cnt;
 	}
-	
+
 	max_used_mem = total_cbs * sizeof(seq_item_t);
 
@@ -474,16 +474,16 @@
 	uint64_t mem_units;
 	bin_order_suffix(max_used_mem, &mem_units, &mem_suffix, false);
-	
+
 	TPRINTF("\nRun %zu th: check callback completion time in readers. "
 		"%zu callbacks total (max %" PRIu64 " %s used). Be patient.\n",
 		get_thread_cnt(), total_cbs, mem_units, mem_suffix);
-	
+
 	for (size_t i = 0; i < get_thread_cnt(); ++i) {
 		run_one(seq_func, &item[i]);
 	}
-	
+
 	TPRINTF("\nJoining %zu seq-threads\n", get_thread_cnt());
 	join_all();
-	
+
 	if (seq_test_result == ENOMEM) {
 		TPRINTF("\nErr: out-of mem\n");
@@ -491,5 +491,5 @@
 		TPRINTF("\nERROR: race detected!!\n");
 	}
-	
+
 	return seq_test_result == EOK;
 }
@@ -510,10 +510,10 @@
 	rcu_read_lock();
 	rcu_read_unlock();
-	
+
 	rcu_call((rcu_item_t*)arg, reader_unlocked);
-	
-	rcu_read_lock();
-	rcu_read_lock();
-	
+
+	rcu_read_lock();
+	rcu_read_lock();
+
 	/* Exit without unlocking the rcu reader section. */
 }
@@ -522,5 +522,5 @@
 {
 	TPRINTF("\nReader exits thread with rcu_lock\n");
-	
+
 	exited_t *p = malloc(sizeof(exited_t), FRAME_ATOMIC);
 	if (!p) {
@@ -528,13 +528,13 @@
 		return false;
 	}
-		
+
 	p->exited = false;
-	
+
 	run_one(reader_exit, p);
 	join_one();
-	
+
 	errno_t result = EOK;
 	wait_for_cb_exit(2 /* secs */, p, &result);
-	
+
 	if (result != EOK) {
 		TPRINTF("Err: RCU locked up after exiting from within a reader\n");
@@ -543,5 +543,5 @@
 		free(p);
 	}
-	
+
 	return result == EOK;
 }
@@ -570,5 +570,5 @@
 
 	TPRINTF("reader_prev{ ");
-	
+
 	rcu_read_lock();
 	scheduler();
@@ -588,5 +588,5 @@
 	preempt_t *p = (preempt_t*)arg;
 	assert(!p->e.exited);
-	
+
 	TPRINTF("reader_inside_cur{ ");
 	/*
@@ -613,5 +613,5 @@
 	preempt_t *p = (preempt_t*)arg;
 	assert(!p->e.exited);
-	
+
 	TPRINTF("reader_cur{ ");
 	rcu_read_lock();
@@ -622,5 +622,5 @@
 	/* Preempt while cur GP detection is running */
 	thread_sleep(1);
-	
+
 	/* Err: exited before this reader completed. */
 	if (p->e.exited)
@@ -635,5 +635,5 @@
 	preempt_t *p = (preempt_t*)arg;
 	assert(!p->e.exited);
-	
+
 	TPRINTF("reader_next1{ ");
 	rcu_read_lock();
@@ -641,5 +641,5 @@
 	/* Preempt before cur GP detection starts. */
 	scheduler();
-	
+
 	/* Start GP. */
 	rcu_call(&p->e.rcu, preempted_unlocked);
@@ -657,5 +657,5 @@
 	preempt_t *p = (preempt_t*)arg;
 	assert(!p->e.exited);
-	
+
 	TPRINTF("reader_next2{ ");
 	rcu_read_lock();
@@ -663,5 +663,5 @@
 	/* Preempt before cur GP detection starts. */
 	scheduler();
-	
+
 	/* Start GP. */
 	rcu_call(&p->e.rcu, preempted_unlocked);
@@ -691,14 +691,14 @@
 		return false;
 	}
-	
+
 	p->e.exited = false;
 	p->result = EOK;
-	
+
 	run_one(f, p);
 	join_one();
-	
+
 	/* Wait at most 4 secs. */
 	wait_for_cb_exit(4, &p->e, &p->result);
-	
+
 	if (p->result == EOK) {
 		free(p);
@@ -714,20 +714,20 @@
 {
 	TPRINTF("\nReaders will be preempted.\n");
-	
+
 	bool success = true;
 	bool ok = true;
-	
+
 	ok = do_one_reader_preempt(preempted_reader_prev,
 		"Err: preempted_reader_prev()\n");
 	success = success && ok;
-	
+
 	ok = do_one_reader_preempt(preempted_reader_inside_cur,
 		"Err: preempted_reader_inside_cur()\n");
 	success = success && ok;
-	
+
 	ok = do_one_reader_preempt(preempted_reader_cur,
 		"Err: preempted_reader_cur()\n");
 	success = success && ok;
-	
+
 	ok = do_one_reader_preempt(preempted_reader_next1,
 		"Err: preempted_reader_next1()\n");
@@ -737,5 +737,5 @@
 		"Err: preempted_reader_next2()\n");
 	success = success && ok;
-	
+
 	return success;
 }
@@ -751,22 +751,22 @@
 {
 	synch_t *synch = (synch_t *) arg;
-	
+
 	rcu_read_lock();
 
 	/* Order accesses of synch after the reader section begins. */
 	memory_barrier();
-	
+
 	synch->reader_running = true;
-	
+
 	while (!synch->synch_running) {
 		/* 0.5 sec */
 		delay(500 * 1000);
 	}
-	
+
 	/* Run for 1 sec */
 	delay(1000 * 1000);
 	/* thread_join() propagates done to do_synch() */
 	synch->reader_done = true;
-	
+
 	rcu_read_unlock();
 }
@@ -776,18 +776,18 @@
 {
 	TPRINTF("\nSynchronize with long reader\n");
-	
+
 	synch_t *synch = malloc(sizeof(synch_t), FRAME_ATOMIC);
-	
+
 	if (!synch) {
 		TPRINTF("[out-of-mem]\n");
 		return false;
 	}
-	
+
 	synch->reader_done = false;
 	synch->reader_running = false;
 	synch->synch_running = false;
-	
+
 	run_one(synch_reader, synch);
-	
+
 	/* Wait for the reader to enter its critical section. */
 	scheduler();
@@ -795,11 +795,11 @@
 		thread_usleep(500 * 1000);
 	}
-	
+
 	synch->synch_running = true;
-	
+
 	rcu_synchronize();
 	join_one();
-	
-	
+
+
 	if (synch->reader_done) {
 		free(synch);
@@ -827,17 +827,17 @@
 {
 	TPRINTF("\nrcu_barrier: Wait for outstanding rcu callbacks to complete\n");
-	
+
 	barrier_t *barrier = malloc(sizeof(barrier_t), FRAME_ATOMIC);
-	
+
 	if (!barrier) {
 		TPRINTF("[out-of-mem]\n");
 		return false;
 	}
-	
+
 	atomic_set(&barrier->done, 0);
-	
+
 	rcu_call(&barrier->rcu_item, barrier_callback);
 	rcu_barrier();
-	
+
 	if (1 == atomic_get(&barrier->done)) {
 		free(barrier);
@@ -861,9 +861,9 @@
 {
 	bool *done = (bool*) arg;
-	
+
 	while (!*done) {
 		rcu_read_lock();
 		rcu_read_unlock();
-		
+
 		/*
 		 * Do some work outside of the reader section so we are not always
@@ -884,8 +884,8 @@
 {
 	stress_t *s = (stress_t *)arg;
-	
+
 	for (size_t i = 0; i < s->iters; ++i) {
 		rcu_item_t *item = malloc(sizeof(rcu_item_t), FRAME_ATOMIC);
-		
+
 		if (item) {
 			rcu_call(item, stress_cb);
@@ -894,5 +894,5 @@
 			return;
 		}
-		
+
 		/* Print a dot if we make a progress of 1% */
 		if (s->master && 0 == (i % (s->iters/100)))
@@ -907,13 +907,13 @@
 	stress_t master = { .iters = cb_per_thread, .master = true };
 	stress_t worker = { .iters = cb_per_thread, .master = false };
-	
+
 	size_t thread_cnt = min(MAX_THREADS / 2, config.cpu_active);
 	/* Each cpu has one reader and one updater. */
 	size_t reader_cnt = thread_cnt;
 	size_t updater_cnt = thread_cnt;
-	
+
 	size_t exp_upd_calls = updater_cnt * cb_per_thread;
 	size_t max_used_mem = exp_upd_calls * sizeof(rcu_item_t);
-	
+
 	const char *mem_suffix;
 	uint64_t mem_units;
@@ -923,5 +923,5 @@
 		" total (max %" PRIu64 " %s used). Be very patient.\n",
 		reader_cnt, updater_cnt, exp_upd_calls, mem_units, mem_suffix);
-	
+
 	for (size_t k = 0; k < reader_cnt; ++k) {
 		run_one(stress_reader, &done);
@@ -931,15 +931,15 @@
 		run_one(stress_updater, k > 0 ? &worker : &master);
 	}
-	
+
 	TPRINTF("\nJoining %zu stress updaters.\n", updater_cnt);
-	
+
 	for (size_t k = 0; k < updater_cnt; ++k) {
 		join_one();
 	}
-	
+
 	done = true;
 
 	TPRINTF("\nJoining %zu stress nop-readers.\n", reader_cnt);
-	
+
 	join_all();
 	return true;
@@ -957,12 +957,12 @@
 {
 	expedite_t *e = (expedite_t *)arg;
-	
+
 	if (1 < e->count_down) {
 		--e->count_down;
-		
+
 		if (0 == (e->count_down % (e->total_cnt/100))) {
 			TPRINTF("*");
 		}
-		
+
 		_rcu_call(e->expedite, &e->r, expedite_cb);
 	} else {
@@ -979,7 +979,7 @@
 	e.count_down = cnt;
 	e.expedite = exp;
-	
+
 	_rcu_call(e.expedite, &e.r, expedite_cb);
-	
+
 	while (0 < e.count_down) {
 		thread_sleep(1);
@@ -992,5 +992,5 @@
 	size_t exp_cnt = 1000 * 1000;
 	size_t normal_cnt = 1 * 1000;
-	
+
 	TPRINTF("Expedited: sequence of %zu rcu_calls\n", exp_cnt);
 	run_expedite(true, exp_cnt);
@@ -1024,10 +1024,10 @@
 		{ 0, NULL, NULL }
 	};
-	
+
 	bool success = true;
 	bool ok = true;
 	uint64_t completed_gps = rcu_completed_gps();
 	uint64_t delta_gps = 0;
-	
+
 	for (int i = 0; test_func[i].func; ++i) {
 		if (!test_func[i].include) {
@@ -1037,8 +1037,8 @@
 			TPRINTF("\nRunning subtest %s.\n", test_func[i].desc);
 		}
-		
+
 		ok = test_func[i].func();
 		success = success && ok;
-		
+
 		delta_gps = rcu_completed_gps() - completed_gps;
 		completed_gps += delta_gps;
Index: kernel/test/synch/semaphore1.c
===================================================================
--- kernel/test/synch/semaphore1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/synch/semaphore1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,7 +49,7 @@
 {
 	thread_detach(THREAD);
-	
+
 	waitq_sleep(&can_start);
-	
+
 	semaphore_down(&sem);
 	atomic_inc(&items_produced);
@@ -61,7 +61,7 @@
 {
 	thread_detach(THREAD);
-	
+
 	waitq_sleep(&can_start);
-	
+
 	semaphore_down(&sem);
 	atomic_inc(&items_consumed);
@@ -75,20 +75,20 @@
 	atomic_count_t consumers;
 	atomic_count_t producers;
-	
+
 	waitq_initialize(&can_start);
 	semaphore_initialize(&sem, AT_ONCE);
-	
+
 	for (i = 1; i <= 3; i++) {
 		thread_t *thrd;
-		
+
 		atomic_set(&items_produced, 0);
 		atomic_set(&items_consumed, 0);
-		
+
 		consumers = i * CONSUMERS;
 		producers = (4 - i) * PRODUCERS;
-		
+
 		TPRINTF("Creating %" PRIua " consumers and %" PRIua " producers...",
 		    consumers, producers);
-		
+
 		for (j = 0; j < (CONSUMERS + PRODUCERS) / 2; j++) {
 			for (k = 0; k < i; k++) {
@@ -109,10 +109,10 @@
 			}
 		}
-		
+
 		TPRINTF("ok\n");
-		
+
 		thread_sleep(1);
 		waitq_wakeup(&can_start, WAKEUP_ALL);
-		
+
 		while ((items_consumed.count != consumers) || (items_produced.count != producers)) {
 			TPRINTF("%" PRIua " consumers remaining, %" PRIua " producers remaining\n",
@@ -121,5 +121,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
Index: kernel/test/synch/semaphore2.c
===================================================================
--- kernel/test/synch/semaphore2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/synch/semaphore2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,5 +50,5 @@
 {
 	uint32_t rc;
-	
+
 	spinlock_lock(&sem_lock);
 	rc = seed % max;
@@ -62,9 +62,9 @@
 	errno_t rc;
 	int to;
-	
+
 	thread_detach(THREAD);
-	
+
 	waitq_sleep(&can_start);
-	
+
 	to = random(20000);
 	TPRINTF("cpu%u, tid %" PRIu64 " down+ (%d)\n", CPU->id, THREAD->tid, to);
@@ -74,8 +74,8 @@
 		return;
 	}
-	
+
 	TPRINTF("cpu%u, tid %" PRIu64 " down=\n", CPU->id, THREAD->tid);
 	thread_usleep(random(30000));
-	
+
 	semaphore_up(&sem);
 	TPRINTF("cpu%u, tid %" PRIu64 " up\n", CPU->id, THREAD->tid);
@@ -85,10 +85,10 @@
 {
 	uint32_t i, k;
-	
+
 	waitq_initialize(&can_start);
 	semaphore_initialize(&sem, 5);
-	
+
 	thread_t *thrd;
-	
+
 	k = random(7) + 1;
 	TPRINTF("Creating %" PRIu32 " consumers\n", k);
@@ -101,8 +101,8 @@
 			TPRINTF("Error creating thread\n");
 	}
-	
+
 	thread_usleep(20000);
 	waitq_wakeup(&can_start, WAKEUP_ALL);
-	
+
 	return NULL;
 }
Index: kernel/test/synch/workq-test-core.h
===================================================================
--- kernel/test/synch/workq-test-core.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/synch/workq-test-core.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 {
 	++work->wave;
-	
+
 	if (work->wave < WAVES) {
 		work->count_down = COUNT;
@@ -79,5 +79,5 @@
 		child->count_down = work->count_down;
 	}
-	
+
 	return child;
 }
@@ -93,9 +93,9 @@
 	/* Ensure work_item is ours for the taking. */
 	memsetb(work_item, sizeof(work_t), 0xec);
-	
+
 	test_work_t *work = (test_work_t *)work_item;
-	
+
 	atomic_inc(&call_cnt[work->wave]);
-	
+
 	if (0 < work->count_down) {
 		/* Sleep right before creating the last generation. */
@@ -108,5 +108,5 @@
 			}
 		}
-		
+
 		--work->count_down;
 
@@ -122,5 +122,5 @@
 			}
 		}
-		
+
 		if (!core_workq_enqueue(work_item, reproduce)) {
 			if (work->master)
@@ -131,5 +131,5 @@
 	} else {
 		/* We're done with this wave - only the master survives. */
-		
+
 		if (work->master && new_wave(work)) {
 			if (!core_workq_enqueue(work_item, reproduce)) {
@@ -140,5 +140,5 @@
 			if (work->master)
 				TPRINTF("\nMaster work item done.\n");
-				
+
 			free_work(work);
 		}
@@ -157,5 +157,5 @@
 	work->wave = 0;
 	work->count_down = COUNT;
-	
+
 	/*
 	 * k == COUNT_POW
@@ -166,16 +166,16 @@
 	 */
 	size_t exp_call_cnt = (COUNT_POW + 2) * (1 << (COUNT_POW - 1));
-	
+
 	TPRINTF("waves: %d, count_down: %d, total expected calls: %zu\n",
 		WAVES, COUNT, exp_call_cnt * WAVES);
-	
+
 
 	core_workq_enqueue(&work->work_item, reproduce);
-	
+
 	size_t sleep_cnt = 0;
 	/* At least 40 seconds total (or 2 sec to end while there's work). */
 	size_t max_sleep_secs = end_prematurely ? 2 : MAIN_MAX_SLEEP_SEC;
 	size_t max_sleep_cnt = (max_sleep_secs * 1000) / MAIN_POLL_SLEEP_MS;
-	
+
 	for (int i = 0; i < WAVES; ++i) {
 		while (atomic_get(&call_cnt[i]) < exp_call_cnt
@@ -186,7 +186,7 @@
 		}
 	}
-	
+
 	bool success = true;
-	
+
 	for (int i = 0; i < WAVES; ++i) {
 		if (atomic_get(&call_cnt[i]) == exp_call_cnt) {
@@ -199,6 +199,6 @@
 		}
 	}
-	
-	
+
+
 	if (success)
 		return NULL;
Index: kernel/test/synch/workqueue2.c
===================================================================
--- kernel/test/synch/workqueue2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/synch/workqueue2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 	basic_done = 0;
 	workq_global_enqueue(&basic_work, basic_test_work);
-	
+
 	while (!basic_done) {
 		TPRINTF(".");
@@ -87,14 +87,14 @@
 {
 	workq = workq_create(qname);
-	
+
 	if (!workq) {
 		return "Failed to create a work queue.\n";
 	}
-	
+
 	const char *ret = run_workq_core(stop);
-	
+
 	TPRINTF("Stopping work queue...\n");
 	workq_stop(workq);
-	
+
 	TPRINTF("Destroying work queue...\n");
 	workq_destroy(workq);
@@ -123,7 +123,7 @@
 	const char *err = NULL;
 	const char *res;
-	
+
 	basic_test();
-	
+
 	res = test_custom_workq();
 	if (res) {
@@ -131,5 +131,5 @@
 		err = res;
 	}
-	
+
 	res = test_custom_workq_stop();
 	if (res) {
@@ -137,5 +137,5 @@
 		err = res;
 	}
-	
+
 	res = test_workqueue3();
 	if (res) {
Index: kernel/test/synch/workqueue3.c
===================================================================
--- kernel/test/synch/workqueue3.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/synch/workqueue3.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 
 	TPRINTF("Done.\n");
-	
+
 	return err;
 }
Index: kernel/test/test.c
===================================================================
--- kernel/test/test.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/test.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,14 +75,14 @@
 	size_t len = str_length(input);
 	test_t **test = (test_t **) ctx;
-	
+
 	if (*test == NULL)
 		*test = tests;
-	
+
 	for (; (*test)->name; (*test)++) {
 		const char *curname = (*test)->name;
-		
+
 		if (str_length(curname) < len)
 			continue;
-		
+
 		if (str_lcmp(input, curname, len) == 0) {
 			(*test)++;
@@ -92,5 +92,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
Index: kernel/test/thread/thread1.c
===================================================================
--- kernel/test/thread/thread1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/test/thread/thread1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,5 +45,5 @@
 {
 	thread_detach(THREAD);
-	
+
 	while (atomic_get(&finish)) {
 		TPRINTF("%" PRIu64 " ", THREAD->tid);
@@ -57,8 +57,8 @@
 	unsigned int i;
 	atomic_count_t total = 0;
-	
+
 	atomic_set(&finish, 1);
 	atomic_set(&threads_finished, 0);
-	
+
 	for (i = 0; i < THREADS; i++) {
 		thread_t *t;
@@ -71,8 +71,8 @@
 		total++;
 	}
-	
+
 	TPRINTF("Running threads for 10 seconds...\n");
 	thread_sleep(10);
-	
+
 	atomic_set(&finish, 0);
 	while (atomic_get(&threads_finished) < total) {
@@ -80,5 +80,5 @@
 		thread_sleep(1);
 	}
-	
+
 	return NULL;
 }
Index: kernel/tools/amd64/decpt.py
===================================================================
--- kernel/tools/amd64/decpt.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/tools/amd64/decpt.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -9,5 +9,5 @@
         print("%s 0x..." % sys.argv[0])
         sys.exit(1)
-    
+
     address = int(sys.argv[1],16)
     offset = address & 0xfff
Index: kernel/tools/genmap.py
===================================================================
--- kernel/tools/genmap.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/tools/genmap.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,10 +47,10 @@
 def read_obdump(inp):
 	"Parse input"
-	
+
 	funcs = {}
 	data = {}
 	bss = {}
 	fname = ''
-	
+
 	for line in inp:
 		line = line.strip()
@@ -59,5 +59,5 @@
 			funcs.setdefault(fname, []).append((int(res.group(1), 16), res.group(3)))
 			continue
-		
+
 		res = bssline.match(line)
 		if (res):
@@ -66,5 +66,5 @@
 			if (end):
 				bss.setdefault(fname, []).append((start, res.group(3)))
-		
+
 		res = dataline.match(line)
 		if (res):
@@ -73,24 +73,24 @@
 			if (end):
 				data.setdefault(fname, []).append((start, res.group(3)))
-		
+
 		res = fileexp.match(line)
 		if (res):
 			fname = res.group(1)
 			continue
-	
+
 	return {'text' : funcs, 'bss' : bss, 'data' : data}
 
 def generate(kmapf, obmapf, out):
 	"Generate output file"
-	
+
 	obdump = read_obdump(obmapf)
-	
+
 	def key_sorter(x):
 		return x[0]
-	
+
 	for line in kmapf:
 		line = line.strip()
 		res = startfile.match(line)
-		
+
 		if ((res) and (res.group(3) in obdump[res.group(1)])):
 			offset = int(res.group(2), 16)
@@ -103,5 +103,5 @@
 				data = struct.pack(symtabfmt, addr + offset, value_bytes[:MAXSTRING])
 				out.write(data)
-			
+
 	out.write(struct.pack(symtabfmt, 0, b''))
 
@@ -110,11 +110,11 @@
 		print("Usage: %s <kernel.map> <nm dump> <output.bin>" % sys.argv[0])
 		return 1
-	
+
 	kmapf = open(sys.argv[1], 'r')
 	obmapf = open(sys.argv[2], 'r')
 	out = open(sys.argv[3], 'wb')
-	
+
 	generate(kmapf, obmapf, out)
-	
+
 	kmapf.close()
 	obmapf.close()
Index: kernel/tools/ia32/decpt.py
===================================================================
--- kernel/tools/ia32/decpt.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ kernel/tools/ia32/decpt.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -9,5 +9,5 @@
         print("%s 0x..." % sys.argv[0])
         sys.exit(1)
-    
+
     address = int(sys.argv[1],16)
     offset = address & 0xfff
Index: tools/autogen.py
===================================================================
--- tools/autogen.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/autogen.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -85,5 +85,5 @@
 			code = code + ("\temit_constant(%s_%s_ITEM_SIZE, sizeof(%s));\n" %
 			    (struct['name'].upper(), member['name'].upper(), member['type']))
-			
+
 	return code
 
@@ -113,5 +113,5 @@
 	""" % (generate_includes(struct), generate_struct(struct),
 	    generate_probes(struct), name.upper(), typename)
-	
+
 	return code
 
@@ -159,5 +159,5 @@
 		pairs = pairs + [res.group(1, 3)]
 	return pairs
-	
+
 
 def run():
Index: tools/autotool.py
===================================================================
--- tools/autotool.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/autotool.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -93,17 +93,17 @@
 def read_config(fname, config):
 	"Read HelenOS build configuration"
-	
+
 	inf = open(fname, 'r')
-	
+
 	for line in inf:
 		res = re.match(r'^(?:#!# )?([^#]\w*)\s*=\s*(.*?)\s*$', line)
 		if (res):
 			config[res.group(1)] = res.group(2)
-	
+
 	inf.close()
 
 def print_error(msg):
 	"Print a bold error message"
-	
+
 	sys.stderr.write("\n")
 	sys.stderr.write("######################################################################\n")
@@ -113,10 +113,10 @@
 	sys.stderr.write("######################################################################\n")
 	sys.stderr.write("\n")
-	
+
 	sys.exit(1)
 
 def print_warning(msg):
 	"Print a bold error message"
-	
+
 	sys.stderr.write("\n")
 	sys.stderr.write("######################################################################\n")
@@ -126,10 +126,10 @@
 	sys.stderr.write("######################################################################\n")
 	sys.stderr.write("\n")
-	
+
 	time.sleep(5)
 
 def sandbox_enter():
 	"Create a temporal sandbox directory for running tests"
-	
+
 	if (os.path.exists(SANDBOX)):
 		if (os.path.isdir(SANDBOX)):
@@ -141,23 +141,23 @@
 			print_error(["Please inspect and remove unexpected directory,",
 			             "entry \"%s\"." % SANDBOX])
-	
+
 	try:
 		os.mkdir(SANDBOX)
 	except:
 		print_error(["Unable to create sandbox directory \"%s\"." % SANDBOX])
-	
+
 	owd = os.getcwd()
 	os.chdir(SANDBOX)
-	
+
 	return owd
 
 def sandbox_leave(owd):
 	"Leave the temporal sandbox directory"
-	
+
 	os.chdir(owd)
 
 def check_config(config, key):
 	"Check whether the configuration key exists"
-	
+
 	if (not key in config):
 		print_error(["Build configuration of HelenOS does not contain %s." % key,
@@ -167,5 +167,5 @@
 def check_common(common, key):
 	"Check whether the common key exists"
-	
+
 	if (not key in common):
 		print_error(["Failed to determine the value %s." % key,
@@ -178,90 +178,90 @@
 	target = None
 	cc_args = []
-	
+
 	if (config['PLATFORM'] == "abs32le"):
 		check_config(config, "CROSS_TARGET")
 		platform = config['CROSS_TARGET']
-		
+
 		if (config['CROSS_TARGET'] == "arm32"):
 			gnu_target = "arm-linux-gnueabi"
 			helenos_target = "arm-helenos-gnueabi"
-		
+
 		if (config['CROSS_TARGET'] == "ia32"):
 			gnu_target = "i686-pc-linux-gnu"
 			helenos_target = "i686-pc-helenos"
-		
+
 		if (config['CROSS_TARGET'] == "mips32"):
 			cc_args.append("-mabi=32")
 			gnu_target = "mipsel-linux-gnu"
 			helenos_target = "mipsel-helenos"
-	
+
 	if (config['PLATFORM'] == "amd64"):
 		platform = config['PLATFORM']
 		gnu_target = "amd64-unknown-elf"
 		helenos_target = "amd64-helenos"
-	
+
 	if (config['PLATFORM'] == "arm32"):
 		platform = config['PLATFORM']
 		gnu_target = "arm-linux-gnueabi"
 		helenos_target = "arm-helenos-gnueabi"
-	
+
 	if (config['PLATFORM'] == "ia32"):
 		platform = config['PLATFORM']
 		gnu_target = "i686-pc-linux-gnu"
 		helenos_target = "i686-pc-helenos"
-	
+
 	if (config['PLATFORM'] == "ia64"):
 		platform = config['PLATFORM']
 		gnu_target = "ia64-pc-linux-gnu"
 		helenos_target = "ia64-pc-helenos"
-	
+
 	if (config['PLATFORM'] == "mips32"):
 		check_config(config, "MACHINE")
 		cc_args.append("-mabi=32")
-		
+
 		if ((config['MACHINE'] == "msim") or (config['MACHINE'] == "lmalta")):
 			platform = config['PLATFORM']
 			gnu_target = "mipsel-linux-gnu"
 			helenos_target = "mipsel-helenos"
-		
+
 		if ((config['MACHINE'] == "bmalta")):
 			platform = "mips32eb"
 			gnu_target = "mips-linux-gnu"
 			helenos_target = "mips-helenos"
-	
+
 	if (config['PLATFORM'] == "mips64"):
 		check_config(config, "MACHINE")
 		cc_args.append("-mabi=64")
-		
+
 		if (config['MACHINE'] == "msim"):
 			platform = config['PLATFORM']
 			gnu_target = "mips64el-linux-gnu"
 			helenos_target = "mips64el-helenos"
-	
+
 	if (config['PLATFORM'] == "ppc32"):
 		platform = config['PLATFORM']
 		gnu_target = "ppc-linux-gnu"
 		helenos_target = "ppc-helenos"
-	
+
 	if (config['PLATFORM'] == "riscv64"):
 		platform = config['PLATFORM']
 		gnu_target = "riscv64-unknown-linux-gnu"
 		helenos_target = "riscv64-helenos"
-	
+
 	if (config['PLATFORM'] == "sparc64"):
 		platform = config['PLATFORM']
 		gnu_target = "sparc64-linux-gnu"
 		helenos_target = "sparc64-helenos"
-	
+
 	if (config['COMPILER'] == "gcc_helenos"):
 		target = helenos_target
 	else:
 		target = gnu_target
-	
+
 	return (platform, cc_args, target)
 
 def check_app(args, name, details):
 	"Check whether an application can be executed"
-	
+
 	try:
 		sys.stderr.write("Checking for %s ... " % args[0])
@@ -273,18 +273,18 @@
 		             "Execution of \"%s\" has failed. Please make sure that it" % " ".join(args),
 		             "is installed in your system (%s)." % details])
-	
+
 	sys.stderr.write("ok\n")
 
 def check_app_alternatives(alts, args, name, details):
 	"Check whether an application can be executed (use several alternatives)"
-	
+
 	tried = []
 	found = None
-	
+
 	for alt in alts:
 		working = True
 		cmdline = [alt] + args
 		tried.append(" ".join(cmdline))
-		
+
 		try:
 			sys.stderr.write("Checking for %s ... " % alt)
@@ -293,10 +293,10 @@
 			sys.stderr.write("failed\n")
 			working = False
-		
+
 		if (working):
 			sys.stderr.write("ok\n")
 			found = alt
 			break
-	
+
 	if (found is None):
 		print_error(["%s is missing." % name,
@@ -306,30 +306,30 @@
 		             "",
 		             "The following alternatives were tried:"] + tried)
-	
+
 	return found
 
 def check_clang(path, prefix, common, details):
 	"Check for clang"
-	
+
 	common['CLANG'] = "%sclang" % prefix
-	
+
 	if (not path is None):
 		common['CLANG'] = "%s/%s" % (path, common['CLANG'])
-	
+
 	check_app([common['CLANG'], "--version"], "clang", details)
 
 def check_gcc(path, prefix, common, details):
 	"Check for GCC"
-	
+
 	common['GCC'] = "%sgcc" % prefix
-	
+
 	if (not path is None):
 		common['GCC'] = "%s/%s" % (path, common['GCC'])
-	
+
 	check_app([common['GCC'], "--version"], "GNU GCC", details)
 
 def check_binutils(path, prefix, common, details):
 	"Check for binutils toolchain"
-	
+
 	common['AS'] = "%sas" % prefix
 	common['LD'] = "%sld" % prefix
@@ -338,9 +338,9 @@
 	common['OBJDUMP'] = "%sobjdump" % prefix
 	common['STRIP'] = "%sstrip" % prefix
-	
+
 	if (not path is None):
 		for key in ["AS", "LD", "AR", "OBJCOPY", "OBJDUMP", "STRIP"]:
 			common[key] = "%s/%s" % (path, common[key])
-	
+
 	check_app([common['AS'], "--version"], "GNU Assembler", details)
 	check_app([common['LD'], "--version"], "GNU Linker", details)
@@ -352,5 +352,5 @@
 def check_python():
 	"Check for Python dependencies"
-	
+
 	try:
 		sys.stderr.write("Checking for PyYAML ... ")
@@ -361,29 +361,29 @@
 		             "Please make sure that it is installed in your",
 		             "system (usually part of PyYAML package)."])
-	
+
 	sys.stderr.write("ok\n")
 
 def decode_value(value):
 	"Decode integer value"
-	
+
 	base = 10
-	
+
 	if ((value.startswith('$')) or (value.startswith('#'))):
 		value = value[1:]
-	
+
 	if (value.startswith('0x')):
 		value = value[2:]
 		base = 16
-	
+
 	return int(value, base)
 
 def probe_compiler(common, typesizes):
 	"Generate, compile and parse probing source"
-	
+
 	check_common(common, "CC")
-	
+
 	outf = open(PROBE_SOURCE, 'w')
 	outf.write(PROBE_HEAD)
-	
+
 	for typedef in typesizes:
 		if 'def' in typedef:
@@ -392,11 +392,11 @@
 		if 'def' in typedef:
 			outf.write("#endif\n")
-	
+
 	outf.write(PROBE_TAIL)
 	outf.close()
-	
+
 	args = common['CC_AUTOGEN'].split(' ')
 	args.extend(["-S", "-o", PROBE_OUTPUT, PROBE_SOURCE])
-	
+
 	try:
 		sys.stderr.write("Checking compiler properties ... ")
@@ -406,5 +406,5 @@
 		print_error(["Error executing \"%s\"." % " ".join(args),
 		             "Make sure that the compiler works properly."])
-	
+
 	if (not os.path.isfile(PROBE_OUTPUT)):
 		sys.stderr.write("failed\n")
@@ -415,21 +415,21 @@
 		             output[0],
 		             output[1]])
-	
+
 	sys.stderr.write("ok\n")
-	
+
 	inf = open(PROBE_OUTPUT, 'r')
 	lines = inf.readlines()
 	inf.close()
-	
+
 	builtins = {}
-	
+
 	for j in range(len(lines)):
 		tokens = lines[j].strip().split("\t")
-		
+
 		if (len(tokens) > 0):
 			if (tokens[0] == "AUTOTOOL_DECLARE"):
 				if (len(tokens) < 8):
 					print_error(["Malformed declaration in \"%s\" on line %s." % (PROBE_OUTPUT, j), COMPILER_FAIL])
-				
+
 				category = tokens[1]
 				tag = tokens[2]
@@ -439,5 +439,5 @@
 				size = tokens[6]
 				compatible = tokens[7]
-				
+
 				try:
 					compatible_int = decode_value(compatible)
@@ -445,5 +445,5 @@
 				except:
 					print_error(["Integer value expected in \"%s\" on line %s." % (PROBE_OUTPUT, j), COMPILER_FAIL])
-				
+
 				if (compatible_int == 1):
 					builtins[tag] = {
@@ -454,5 +454,5 @@
 						'size': size_int,
 					}
-	
+
 	for typedef in typesizes:
 		if not typedef['tag'] in builtins:
@@ -461,5 +461,5 @@
 		if 'sname' in typedef:
 			builtins[typedef['tag']]['sname'] = typedef['sname']
-	
+
 	return builtins
 
@@ -490,10 +490,10 @@
 def detect_sizes(probe):
 	"Detect properties of builtin types"
-	
+
 	macros = {}
-	
+
 	for type in probe.values():
 		macros['__SIZEOF_%s__' % type['tag']] = type['size']
-		
+
 		if ('sname' in type):
 			macros['__%s_TYPE__'  % type['sname']] = type['name']
@@ -502,20 +502,20 @@
 			macros['__%s_C_SUFFIX__' % type['sname']] = get_suffix(type)
 			macros['__%s_MAX__' % type['sname']] = "%d%s" % (get_max(type), get_suffix(type))
-	
+
 	if (probe['SIZE_T']['sign'] != 'unsigned'):
 		print_error(['The type size_t is not unsigned.', COMPILER_FAIL])
-	
+
 	return macros
 
 def create_makefile(mkname, common):
 	"Create makefile output"
-	
+
 	outmk = open(mkname, 'w')
-	
+
 	outmk.write('#########################################\n')
 	outmk.write('## AUTO-GENERATED FILE, DO NOT EDIT!!! ##\n')
 	outmk.write('## Generated by: tools/autotool.py     ##\n')
 	outmk.write('#########################################\n\n')
-	
+
 	for key, value in common.items():
 		if (type(value) is list):
@@ -523,25 +523,25 @@
 		else:
 			outmk.write('%s = %s\n' % (key, value))
-	
+
 	outmk.close()
 
 def create_header(hdname, macros):
 	"Create header output"
-	
+
 	outhd = open(hdname, 'w')
-	
+
 	outhd.write('/***************************************\n')
 	outhd.write(' * AUTO-GENERATED FILE, DO NOT EDIT!!! *\n')
 	outhd.write(' * Generated by: tools/autotool.py     *\n')
 	outhd.write(' ***************************************/\n\n')
-	
+
 	outhd.write('#ifndef %s\n' % GUARD)
 	outhd.write('#define %s\n\n' % GUARD)
-	
+
 	for macro in sorted(macros):
 		outhd.write('#ifndef %s\n' % macro)
 		outhd.write('#define %s  %s\n' % (macro, macros[macro]))
 		outhd.write('#endif\n\n')
-	
+
 	outhd.write('\n#endif\n')
 	outhd.close()
@@ -550,5 +550,5 @@
 	config = {}
 	common = {}
-	
+
 	# Read and check configuration
 	if os.path.exists(CONFIG):
@@ -558,9 +558,9 @@
 		             "configuration phase of HelenOS build went OK. Try running",
 		             "\"make config\" again."])
-	
+
 	check_config(config, "PLATFORM")
 	check_config(config, "COMPILER")
 	check_config(config, "BARCH")
-	
+
 	# Cross-compiler prefix
 	if ('CROSS_PREFIX' in os.environ):
@@ -568,5 +568,5 @@
 	else:
 		cross_prefix = "/usr/local/cross"
-	
+
 	# HelenOS cross-compiler prefix
 	if ('CROSS_HELENOS_PREFIX' in os.environ):
@@ -574,5 +574,5 @@
 	else:
 		cross_helenos_prefix = "/usr/local/cross-helenos"
-	
+
 	# Prefix binutils tools on Solaris
 	if (os.uname()[0] == "SunOS"):
@@ -580,7 +580,7 @@
 	else:
 		binutils_prefix = ""
-	
+
 	owd = sandbox_enter()
-	
+
 	try:
 		# Common utilities
@@ -593,13 +593,13 @@
 		check_app(["make", "--version"], "Make utility", "preferably GNU Make")
 		check_app(["unzip"], "unzip utility", "usually part of zip/unzip utilities")
-		
+
 		platform, cc_args, target = get_target(config)
-		
+
 		if (platform is None) or (target is None):
 			print_error(["Unsupported compiler target.",
 				     "Please contact the developers of HelenOS."])
-		
+
 		path = "%s/%s/bin" % (cross_prefix, target)
-		
+
 		# Compatibility with earlier toolchain paths.
 		if not os.path.exists(path):
@@ -614,41 +614,41 @@
 					print_error(["Toolchain for target is not installed, or CROSS_PREFIX is not set correctly."])
 				path = "%s/%s/bin" % (cross_prefix, platform)
-		
+
 		common['TARGET'] = target
 		prefix = "%s-" % target
-		
+
 		# Compiler
 		if (config['COMPILER'] == "gcc_cross" or config['COMPILER'] == "gcc_helenos"):
 			check_gcc(path, prefix, common, PACKAGE_CROSS)
 			check_binutils(path, prefix, common, PACKAGE_CROSS)
-			
+
 			check_common(common, "GCC")
 			common['CC'] = " ".join([common['GCC']] + cc_args)
 			common['CC_AUTOGEN'] = common['CC']
-		
+
 		if (config['COMPILER'] == "gcc_native"):
 			check_gcc(None, "", common, PACKAGE_GCC)
 			check_binutils(None, binutils_prefix, common, PACKAGE_BINUTILS)
-			
+
 			check_common(common, "GCC")
 			common['CC'] = common['GCC']
 			common['CC_AUTOGEN'] = common['CC']
-		
+
 		if (config['COMPILER'] == "clang"):
 			check_binutils(path, prefix, common, PACKAGE_CROSS)
 			check_clang(path, prefix, common, PACKAGE_CLANG)
-			
+
 			check_common(common, "CLANG")
 			common['CC'] = " ".join([common['CLANG']] + cc_args)
 			common['CC_AUTOGEN'] = common['CC'] + " -no-integrated-as"
-			
+
 			if (config['INTEGRATED_AS'] == "yes"):
 				common['CC'] += " -integrated-as"
-			
+
 			if (config['INTEGRATED_AS'] == "no"):
 				common['CC'] += " -no-integrated-as"
-		
+
 		check_python()
-		
+
 		# Platform-specific utilities
 		if ((config['BARCH'] == "amd64") or (config['BARCH'] == "ia32") or (config['BARCH'] == "ppc32") or (config['BARCH'] == "sparc64")):
@@ -656,5 +656,5 @@
 			if common['GENISOIMAGE'] == 'xorriso':
 				common['GENISOIMAGE'] += ' -as genisoimage'
-		
+
 		probe = probe_compiler(common,
 			[
@@ -675,15 +675,15 @@
 			]
 		)
-		
+
 		macros = detect_sizes(probe)
-		
+
 	finally:
 		sandbox_leave(owd)
-	
+
 	common['AUTOGEN'] = "%s/autogen.py" % os.path.dirname(os.path.abspath(sys.argv[0]))
-	
+
 	create_makefile(MAKEFILE, common)
 	create_header(HEADER, macros)
-	
+
 	return 0
 
Index: tools/checkers/clang.py
===================================================================
--- tools/checkers/clang.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/checkers/clang.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,25 +46,25 @@
 def clang(root, job):
 	"Run Clang on a jobfile"
-	
+
 	inname = os.path.join(root, job)
-	
+
 	if (not os.path.isfile(inname)):
 		print("Unable to open %s" % inname)
 		print("Did you run \"make precheck\" on the source tree?")
 		return False
-	
+
 	inf = open(inname, "r")
 	records = inf.read().splitlines()
 	inf.close()
-	
+
 	for record in records:
 		arg = jobfile.parse_arg(record)
 		if (not arg):
 			return False
-		
+
 		if (len(arg) < 6):
 			print("Not enough jobfile record arguments")
 			return False
-		
+
 		srcfname = arg[0]
 		tgtfname = arg[1]
@@ -73,14 +73,14 @@
 		base = arg[4]
 		options = arg[5].split()
-		
+
 		srcfqname = os.path.join(base, srcfname)
 		if (not os.path.isfile(srcfqname)):
 			print("Source %s not found" % srcfqname)
 			return False
-		
+
 		# Only C files are interesting for us
 		if (tool != "cc"):
 			continue
-		
+
 		args = ['clang', '-Qunused-arguments', '--analyze',
 			'-Xanalyzer', '-analyzer-opt-analyze-headers',
@@ -88,13 +88,13 @@
 		args.extend(options)
 		args.extend(['-o', tgtfname, srcfname])
-		
+
 		cwd = os.getcwd()
 		os.chdir(base)
 		retval = subprocess.Popen(args).wait()
 		os.chdir(cwd)
-		
+
 		if (retval != 0):
 			return False
-		
+
 	return True
 
@@ -103,13 +103,13 @@
 		usage(sys.argv[0])
 		return
-	
+
 	rootdir = os.path.abspath(sys.argv[1])
 	config = os.path.join(rootdir, "HelenOS.config")
-	
+
 	if (not os.path.isfile(config)):
 		print("%s not found." % config)
 		print("Please specify the path to HelenOS build tree root as the first argument.")
 		return
-	
+
 	for job in jobs:
 		if (not clang(rootdir, job)):
@@ -117,5 +117,5 @@
 			print("Failed job: %s" % job)
 			return
-	
+
 	print
 	print("All jobs passed")
Index: tools/checkers/jobfile.py
===================================================================
--- tools/checkers/jobfile.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/checkers/jobfile.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -32,5 +32,5 @@
 def parse_arg(record):
 	"Parse jobfile line arguments"
-	
+
 	arg = []
 	i = 0
@@ -38,5 +38,5 @@
 	nil = True
 	inside = False
-	
+
 	while (i < len(record)):
 		if (inside):
@@ -56,9 +56,9 @@
 				print("Unexpected '%s'" % record[i])
 				return False
-		
+
 		i += 1
-	
+
 	if (not nil):
 		arg.append(current)
-	
+
 	return arg
Index: tools/checkers/stanse.py
===================================================================
--- tools/checkers/stanse.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/checkers/stanse.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,19 +47,19 @@
 def stanse(root, job):
 	"Run Stanse on a jobfile"
-	
+
 	# Convert generic jobfile to Stanse-specific jobfile format
-	
+
 	inname = os.path.join(root, job)
 	outname = os.path.join(root, "_%s" % os.path.basename(job))
-	
+
 	if (not os.path.isfile(inname)):
 		print("Unable to open %s" % inname)
 		print("Did you run \"make precheck\" on the source tree?")
 		return False
-	
+
 	inf = open(inname, "r")
 	records = inf.read().splitlines()
 	inf.close()
-	
+
 	output = []
 	for record in records:
@@ -67,9 +67,9 @@
 		if (not arg):
 			return False
-		
+
 		if (len(arg) < 6):
 			print("Not enough jobfile record arguments")
 			return False
-		
+
 		srcfname = arg[0]
 		tgtfname = arg[1]
@@ -78,27 +78,27 @@
 		base = arg[4]
 		options = arg[5]
-		
+
 		srcfqname = os.path.join(base, srcfname)
 		if (not os.path.isfile(srcfqname)):
 			print("Source %s not found" % srcfqname)
 			return False
-		
+
 		# Only C files are interesting for us
 		if (tool != "cc"):
 			continue
-		
+
 		output.append([srcfname, tgtfname, base, options])
-	
+
 	outf = open(outname, "w")
 	for record in output:
 		outf.write("{%s},{%s},{%s},{%s}\n" % (record[0], record[1], record[2], record[3]))
 	outf.close()
-	
+
 	# Run Stanse
-	
+
 	retval = subprocess.Popen(['stanse', '--checker', 'ReachabilityChecker', '--jobfile', outname]).wait()
-	
+
 	# Cleanup
-	
+
 	os.remove(outname)
 	for record in output:
@@ -106,8 +106,8 @@
 		if (os.path.isfile(tmpfile)):
 			os.remove(tmpfile)
-	
+
 	if (retval == 0):
 		return True
-	
+
 	return False
 
@@ -116,13 +116,13 @@
 		usage(sys.argv[0])
 		return
-	
+
 	rootdir = os.path.abspath(sys.argv[1])
 	config = os.path.join(rootdir, "HelenOS.config")
-	
+
 	if (not os.path.isfile(config)):
 		print("%s not found." % config)
 		print("Please specify the path to HelenOS build tree root as the first argument.")
 		return
-	
+
 	for job in jobs:
 		if (not stanse(rootdir, job)):
@@ -130,5 +130,5 @@
 			print("Failed job: %s" % job)
 			return
-	
+
 	print
 	print("All jobs passed")
Index: tools/checkers/vcc.py
===================================================================
--- tools/checkers/vcc.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/checkers/vcc.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,76 +53,76 @@
 def cygpath(upath):
 	"Convert Unix (Cygwin) path to Windows path"
-	
+
 	return subprocess.Popen(['cygpath', '--windows', '--absolute', upath], stdout = subprocess.PIPE).communicate()[0].strip()
 
 def preprocess(srcfname, tmpfname, base, options):
 	"Preprocess source using GCC preprocessor and compatibility tweaks"
-	
+
 	global specification
-	
+
 	args = ['gcc', '-E']
 	args.extend(options.split())
 	args.extend(['-DCONFIG_VERIFY_VCC=1', srcfname])
-	
+
 	# Change working directory
-	
+
 	cwd = os.getcwd()
 	os.chdir(base)
-	
+
 	preproc = subprocess.Popen(args, stdout = subprocess.PIPE).communicate()[0]
-	
+
 	tmpf = open(tmpfname, "w")
 	tmpf.write(specification)
-	
+
 	for line in preproc.splitlines():
-		
+
 		# Ignore preprocessor directives
-		
+
 		if (line.startswith('#')):
 			continue
-		
+
 		# Remove __attribute__((.*)) GCC extension
-		
+
 		line = re.sub(re_attribute, "", line)
-		
+
 		# Ignore unsupported __builtin_va_list type
 		# (a better solution replacing __builrin_va_list with
 		# an emulated implementation is needed)
-		
+
 		line = re.sub(re_va_list, "void *", line)
-		
+
 		tmpf.write("%s\n" % line)
-	
+
 	tmpf.close()
-	
+
 	os.chdir(cwd)
-	
+
 	return True
 
 def vcc(vcc_path, root, job):
 	"Run Vcc on a jobfile"
-	
+
 	# Parse jobfile
-	
+
 	inname = os.path.join(root, job)
-	
+
 	if (not os.path.isfile(inname)):
 		print("Unable to open %s" % inname)
 		print("Did you run \"make precheck\" on the source tree?")
 		return False
-	
+
 	inf = open(inname, "r")
 	records = inf.read().splitlines()
 	inf.close()
-	
+
 	for record in records:
 		arg = jobfile.parse_arg(record)
 		if (not arg):
 			return False
-		
+
 		if (len(arg) < 6):
 			print("Not enough jobfile record arguments")
 			return False
-		
+
 		srcfname = arg[0]
 		tgtfname = arg[1]
@@ -131,48 +131,48 @@
 		base = arg[4]
 		options = arg[5]
-		
+
 		srcfqname = os.path.join(base, srcfname)
 		if (not os.path.isfile(srcfqname)):
 			print("Source %s not found" % srcfqname)
 			return False
-		
+
 		tmpfname = "%s.preproc" % srcfname
 		tmpfqname = os.path.join(base, tmpfname)
-		
+
 		vccfname = "%s.i" % srcfname
 		vccfqname = os.path.join(base, vccfname);
-		
+
 		# Only C files are interesting for us
 		if (tool != "cc"):
 			continue
-		
+
 		# Preprocess sources
-		
+
 		if (not preprocess(srcfname, tmpfname, base, options)):
 			return False
-		
+
 		# Run Vcc
 		print(" -- %s --" % srcfname)
 		retval = subprocess.Popen([vcc_path, '/pointersize:32', '/newsyntax', cygpath(tmpfqname)]).wait()
-		
+
 		if (retval != 0):
 			return False
-		
+
 		# Cleanup, but only if verification was successful
 		# (to be able to examine the preprocessed file)
-		
+
 		if (os.path.isfile(tmpfqname)):
 			os.remove(tmpfqname)
 			os.remove(vccfqname)
-	
+
 	return True
 
 def main():
 	global specification
-	
+
 	if (len(sys.argv) < 2):
 		usage(sys.argv[0])
 		return
-	
+
 	rootdir = os.path.abspath(sys.argv[1])
 	if (len(sys.argv) > 2):
@@ -180,26 +180,26 @@
 	else:
 		vcc_path = "/cygdrive/c/Program Files (x86)/Microsoft Research/Vcc/Binaries/vcc"
-	
+
 	if (not os.path.isfile(vcc_path)):
 		print("%s is not a binary." % vcc_path)
 		print("Please supply the full Cygwin path to Vcc as the second argument.")
 		return
-	
+
 	config = os.path.join(rootdir, "HelenOS.config")
-	
+
 	if (not os.path.isfile(config)):
 		print("%s not found." % config)
 		print("Please specify the path to HelenOS build tree root as the first argument.")
 		return
-	
+
 	specpath = os.path.join(rootdir, "tools/checkers/vcc.h")
 	if (not os.path.isfile(specpath)):
 		print("%s not found." % config)
 		return
-	
+
 	specfile = file(specpath, "r")
 	specification = specfile.read()
 	specfile.close()
-	
+
 	for job in jobs:
 		if (not vcc(vcc_path, rootdir, job)):
@@ -207,5 +207,5 @@
 			print("Failed job: %s" % job)
 			return
-	
+
 	print()
 	print("All jobs passed")
Index: tools/config.py
===================================================================
--- tools/config.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/config.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,61 +49,61 @@
 def read_config(fname, config):
 	"Read saved values from last configuration run or a preset file"
-	
+
 	inf = open(fname, 'r')
-	
+
 	for line in inf:
 		res = re.match(r'^(?:#!# )?([^#]\w*)\s*=\s*(.*?)\s*$', line)
 		if res:
 			config[res.group(1)] = res.group(2)
-	
+
 	inf.close()
 
 def check_condition(text, config, rules):
 	"Check that the condition specified on input line is True (only CNF and DNF is supported)"
-	
+
 	ctype = 'cnf'
-	
+
 	if (')|' in text) or ('|(' in text):
 		ctype = 'dnf'
-	
+
 	if ctype == 'cnf':
 		conds = text.split('&')
 	else:
 		conds = text.split('|')
-	
+
 	for cond in conds:
 		if cond.startswith('(') and cond.endswith(')'):
 			cond = cond[1:-1]
-		
+
 		inside = check_inside(cond, config, ctype)
-		
+
 		if (ctype == 'cnf') and (not inside):
 			return False
-		
+
 		if (ctype == 'dnf') and inside:
 			return True
-	
+
 	if ctype == 'cnf':
 		return True
-	
+
 	return False
 
 def check_inside(text, config, ctype):
 	"Check for condition"
-	
+
 	if ctype == 'cnf':
 		conds = text.split('|')
 	else:
 		conds = text.split('&')
-	
+
 	for cond in conds:
 		res = re.match(r'^(.*?)(!?=)(.*)$', cond)
 		if not res:
 			raise RuntimeError("Invalid condition: %s" % cond)
-		
+
 		condname = res.group(1)
 		oper = res.group(2)
 		condval = res.group(3)
-		
+
 		if not condname in config:
 			varval = ''
@@ -112,9 +112,9 @@
 			if (varval == '*'):
 				varval = 'y'
-		
+
 		if ctype == 'cnf':
 			if (oper == '=') and (condval == varval):
 				return True
-		
+
 			if (oper == '!=') and (condval != varval):
 				return True
@@ -122,74 +122,74 @@
 			if (oper == '=') and (condval != varval):
 				return False
-			
+
 			if (oper == '!=') and (condval == varval):
 				return False
-	
+
 	if ctype == 'cnf':
 		return False
-	
+
 	return True
 
 def parse_rules(fname, rules):
 	"Parse rules file"
-	
+
 	inf = open(fname, 'r')
-	
+
 	name = ''
 	choices = []
-	
+
 	for line in inf:
-		
+
 		if line.startswith('!'):
 			# Ask a question
 			res = re.search(r'!\s*(?:\[(.*?)\])?\s*([^\s]+)\s*\((.*)\)\s*$', line)
-			
+
 			if not res:
 				raise RuntimeError("Weird line: %s" % line)
-			
+
 			cond = res.group(1)
 			varname = res.group(2)
 			vartype = res.group(3)
-			
+
 			rules.append((varname, vartype, name, choices, cond))
 			name = ''
 			choices = []
 			continue
-		
+
 		if line.startswith('@'):
 			# Add new line into the 'choices' array
 			res = re.match(r'@\s*(?:\[(.*?)\])?\s*"(.*?)"\s*(.*)$', line)
-			
+
 			if not res:
 				raise RuntimeError("Bad line: %s" % line)
-			
+
 			choices.append((res.group(2), res.group(3)))
 			continue
-		
+
 		if line.startswith('%'):
 			# Name of the option
 			name = line[1:].strip()
 			continue
-		
+
 		if line.startswith('#') or (line == '\n'):
 			# Comment or empty line
 			continue
-		
-		
+
+
 		raise RuntimeError("Unknown syntax: %s" % line)
-	
+
 	inf.close()
 
 def yes_no(default):
 	"Return '*' if yes, ' ' if no"
-	
+
 	if default == 'y':
 		return '*'
-	
+
 	return ' '
 
 def subchoice(screen, name, choices, default):
 	"Return choice of choices"
-	
+
 	maxkey = 0
 	for key, val in choices:
@@ -197,5 +197,5 @@
 		if (length > maxkey):
 			maxkey = length
-	
+
 	options = []
 	position = None
@@ -204,13 +204,13 @@
 		if (default) and (key == default):
 			position = cnt
-		
+
 		options.append(" %-*s  %s " % (maxkey, key, val))
 		cnt += 1
-	
+
 	(button, value) = xtui.choice_window(screen, name, 'Choose value', options, position)
-	
+
 	if button == 'cancel':
 		return None
-	
+
 	return choices[value][0]
 
@@ -228,21 +228,21 @@
 def infer_verify_choices(config, rules):
 	"Infer and verify configuration values."
-	
+
 	for rule in rules:
 		varname, vartype, name, choices, cond = rule
-		
+
 		if cond and (not check_condition(cond, config, rules)):
 			continue
-		
+
 		if not varname in config:
 			value = None
 		else:
 			value = config[varname]
-		
+
 		if not validate_rule_value(rule, value):
 			value = None
-		
+
 		default = get_default_rule(rule)
-		
+
 		#
 		# If we don't have a value but we do have
@@ -252,8 +252,8 @@
 			value = default
 			config[varname] = default
-		
+
 		if not varname in config:
 			return False
-	
+
 	return True
 
@@ -275,5 +275,5 @@
 	if start_index >= len(rules):
 		return True
-	
+
 	varname, vartype, name, choices, cond = rules[start_index]
 
@@ -282,10 +282,10 @@
 		if not check_condition(cond, config, rules):
 			return random_choices(config, rules, start_index + 1)
-	
+
 	# Remember previous choices for backtracking
 	yes_no = 0
 	choices_indexes = range(0, len(choices))
 	random.shuffle(choices_indexes)
-	
+
 	# Remember current configuration value
 	old_value = None
@@ -294,5 +294,5 @@
 	except KeyError:
 		old_value = None
-	
+
 	# For yes/no choices, we ran the loop at most 2 times, for select
 	# choices as many times as there are options.
@@ -320,13 +320,13 @@
 		else:
 			raise RuntimeError("Unknown variable type: %s" % vartype)
-	
+
 		config[varname] = value
-		
+
 		ok = random_choices(config, rules, start_index + 1)
 		if ok:
 			return True
-		
+
 		try_counter = try_counter + 1
-	
+
 	# Restore the old value and backtrack
 	# (need to delete to prevent "ghost" variables that do not exist under
@@ -335,14 +335,14 @@
 	if old_value is None:
 		del config[varname]
-	
+
 	return random_choices(config, rules, start_index + 1)
-	
+
 
 ## Get default value from a rule.
 def get_default_rule(rule):
 	varname, vartype, name, choices, cond = rule
-	
+
 	default = None
-	
+
 	if vartype == 'choice':
 		# If there is just one option, use it
@@ -359,5 +359,5 @@
 	else:
 		raise RuntimeError("Unknown variable type: %s" % vartype)
-	
+
 	return default
 
@@ -371,7 +371,7 @@
 def get_rule_option(rule, value):
 	varname, vartype, name, choices, cond = rule
-	
+
 	option = None
-	
+
 	if vartype == 'choice':
 		# If there is just one option, don't ask
@@ -391,5 +391,5 @@
 	else:
 		raise RuntimeError("Unknown variable type: %s" % vartype)
-	
+
 	return option
 
@@ -403,8 +403,8 @@
 def validate_rule_value(rule, value):
 	varname, vartype, name, choices, cond = rule
-	
+
 	if value == None:
 		return True
-	
+
 	if vartype == 'choice':
 		if not value in [choice[0] for choice in choices]:
@@ -424,20 +424,20 @@
 	else:
 		raise RuntimeError("Unknown variable type: %s" % vartype)
-	
+
 	return True
 
 def preprocess_config(config, rules):
 	"Preprocess configuration"
-	
+
 	varname_mode = 'CONFIG_BFB_MODE'
 	varname_width = 'CONFIG_BFB_WIDTH'
 	varname_height = 'CONFIG_BFB_HEIGHT'
-	
+
 	if varname_mode in config:
 		mode = config[varname_mode].partition('x')
-		
+
 		config[varname_width] = mode[0]
 		rules.append((varname_width, 'choice', 'Default framebuffer width', None, None))
-		
+
 		config[varname_height] = mode[2]
 		rules.append((varname_height, 'choice', 'Default framebuffer height', None, None))
@@ -445,8 +445,8 @@
 def create_output(mkname, mcname, config, rules):
 	"Create output configuration"
-	
+
 	varname_strip = 'CONFIG_STRIP_REVISION_INFO'
 	strip_rev_info = (varname_strip in config) and (config[varname_strip] == 'y')
-	
+
 	if strip_rev_info:
 		timestamp_unix = int(0)
@@ -454,9 +454,9 @@
 		# TODO: Use commit timestamp instead of build time.
 		timestamp_unix = int(time.time())
-	
+
 	timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(timestamp_unix))
-	
+
 	sys.stderr.write("Fetching current revision identifier ... ")
-	
+
 	try:
 		version = subprocess.Popen(['git', 'log', '-1', '--pretty=%h'], stdout = subprocess.PIPE).communicate()[0].decode().strip()
@@ -465,29 +465,29 @@
 		version = None
 		sys.stderr.write("failed\n")
-	
+
 	if (not strip_rev_info) and (version is not None):
 		revision = version
 	else:
 		revision = None
-	
+
 	outmk = open(mkname, 'w')
 	outmc = open(mcname, 'w')
-	
+
 	outmk.write('#########################################\n')
 	outmk.write('## AUTO-GENERATED FILE, DO NOT EDIT!!! ##\n')
 	outmk.write('## Generated by: tools/config.py       ##\n')
 	outmk.write('#########################################\n\n')
-	
+
 	outmc.write('/***************************************\n')
 	outmc.write(' * AUTO-GENERATED FILE, DO NOT EDIT!!! *\n')
 	outmc.write(' * Generated by: tools/config.py       *\n')
 	outmc.write(' ***************************************/\n\n')
-	
+
 	defs = 'CONFIG_DEFS ='
-	
+
 	for varname, vartype, name, choices, cond in rules:
 		if cond and (not check_condition(cond, config, rules)):
 			continue
-		
+
 		if not varname in config:
 			value = ''
@@ -496,7 +496,7 @@
 			if (value == '*'):
 				value = 'y'
-		
+
 		outmk.write('# %s\n%s = %s\n\n' % (name, varname, value))
-		
+
 		if vartype in ["y", "n", "y/n", "n/y"]:
 			if value == "y":
@@ -506,20 +506,20 @@
 			outmc.write('/* %s */\n#define %s %s\n#define %s_%s\n\n' % (name, varname, value, varname, value))
 			defs += ' -D%s=%s -D%s_%s' % (varname, value, varname, value)
-	
+
 	if revision is not None:
 		outmk.write('REVISION = %s\n' % revision)
 		outmc.write('#define REVISION %s\n' % revision)
 		defs += ' "-DREVISION=%s"' % revision
-	
+
 	outmk.write('TIMESTAMP_UNIX = %d\n' % timestamp_unix)
 	outmc.write('#define TIMESTAMP_UNIX %d\n' % timestamp_unix)
 	defs += ' "-DTIMESTAMP_UNIX=%d"\n' % timestamp_unix
-	
+
 	outmk.write('TIMESTAMP = %s\n' % timestamp)
 	outmc.write('#define TIMESTAMP %s\n' % timestamp)
 	defs += ' "-DTIMESTAMP=%s"\n' % timestamp
-	
+
 	outmk.write(defs)
-	
+
 	outmk.close()
 	outmc.close()
@@ -536,18 +536,18 @@
 	opt2path = {}
 	cnt = 0
-	
+
 	# Look for profiles
 	for name in sorted_dir(root):
 		path = os.path.join(root, name)
 		canon = os.path.join(path, fname)
-		
+
 		if os.path.isdir(path) and os.path.exists(canon) and os.path.isfile(canon):
 			subprofile = False
-			
+
 			# Look for subprofiles
 			for subname in sorted_dir(path):
 				subpath = os.path.join(path, subname)
 				subcanon = os.path.join(subpath, fname)
-				
+
 				if os.path.isdir(subpath) and os.path.exists(subcanon) and os.path.isfile(subcanon):
 					subprofile = True
@@ -555,15 +555,15 @@
 					opt2path[cnt] = [name, subname]
 					cnt += 1
-			
+
 			if not subprofile:
 				options.append(name)
 				opt2path[cnt] = [name]
 				cnt += 1
-	
+
 	(button, value) = xtui.choice_window(screen, 'Load preconfigured defaults', 'Choose configuration profile', options, None)
-	
+
 	if button == 'cancel':
 		return None
-	
+
 	return opt2path[value]
 
@@ -576,5 +576,5 @@
 	path = os.path.join(PRESETS_DIR, profile[0], MAKEFILE)
 	read_config(path, config)
-	
+
 	if len(profile) > 1:
 		path = os.path.join(PRESETS_DIR, profile[0], profile[1], MAKEFILE)
@@ -588,9 +588,9 @@
 def parse_profile_name(profile_name):
 	profile = []
-	
+
 	head, tail = os.path.split(profile_name)
 	if head != '':
 		profile.append(head)
-	
+
 	profile.append(tail)
 	return profile
@@ -600,8 +600,8 @@
 	config = {}
 	rules = []
-	
+
 	# Parse rules file
 	parse_rules(RULES_FILE, rules)
-	
+
 	# Input configuration file can be specified on command line
 	# otherwise configuration from previous run is used.
@@ -611,5 +611,5 @@
 	elif os.path.exists(MAKEFILE):
 		read_config(MAKEFILE, config)
-	
+
 	# Default mode: check values and regenerate configuration files
 	if (len(sys.argv) >= 3) and (sys.argv[2] == 'default'):
@@ -618,5 +618,5 @@
 			create_output(MAKEFILE, MACROS, config, rules)
 			return 0
-	
+
 	# Hands-off mode: check values and regenerate configuration files,
 	# but no interactive fallback
@@ -627,13 +627,13 @@
 			sys.stderr.write("Configuration error: No presets specified\n")
 			return 2
-		
+
 		if (infer_verify_choices(config, rules)):
 			preprocess_config(config, rules)
 			create_output(MAKEFILE, MACROS, config, rules)
 			return 0
-		
+
 		sys.stderr.write("Configuration error: The presets are ambiguous\n")
 		return 1
-	
+
 	# Check mode: only check configuration
 	if (len(sys.argv) >= 3) and (sys.argv[2] == 'check'):
@@ -641,5 +641,5 @@
 			return 0
 		return 1
-	
+
 	# Random mode
 	if (len(sys.argv) == 3) and (sys.argv[2] == 'random'):
@@ -653,7 +653,7 @@
 		preprocess_config(config, rules)
 		create_output(MAKEFILE, MACROS, config, rules)
-		
+
 		return 0
-	
+
 	screen = xtui.screen_init()
 	try:
@@ -661,35 +661,35 @@
 		position = None
 		while True:
-			
+
 			# Cancel out all values which have to be deduced
 			for varname, vartype, name, choices, cond in rules:
 				if (vartype == 'y') and (varname in config) and (config[varname] == '*'):
 					config[varname] = None
-			
+
 			options = []
 			opt2row = {}
 			cnt = 1
-			
+
 			options.append("  --- Load preconfigured defaults ... ")
-			
+
 			for rule in rules:
 				varname, vartype, name, choices, cond = rule
-				
+
 				if cond and (not check_condition(cond, config, rules)):
 					continue
-				
+
 				if varname == selname:
 					position = cnt
-				
+
 				if not varname in config:
 					value = None
 				else:
 					value = config[varname]
-				
+
 				if not validate_rule_value(rule, value):
 					value = None
-				
+
 				default = get_default_rule(rule)
-				
+
 				#
 				# If we don't have a value but we do have
@@ -699,5 +699,5 @@
 					value = default
 					config[varname] = default
-				
+
 				option = get_rule_option(rule, value)
 				if option != None:
@@ -705,17 +705,17 @@
 				else:
 					continue
-				
+
 				opt2row[cnt] = (varname, vartype, name, choices)
-				
+
 				cnt += 1
-			
+
 			if (position != None) and (position >= len(options)):
 				position = None
-			
+
 			(button, value) = xtui.choice_window(screen, 'HelenOS configuration', 'Choose configuration option', options, position)
-			
+
 			if button == 'cancel':
 				return 'Configuration canceled'
-			
+
 			if button == 'done':
 				if (infer_verify_choices(config, rules)):
@@ -724,5 +724,5 @@
 					xtui.error_dialog(screen, 'Error', 'Some options have still undefined values. These options are marked with the "?" sign.')
 					continue
-			
+
 			if value == 0:
 				profile = choose_profile(PRESETS_DIR, MAKEFILE, screen, config)
@@ -731,16 +731,16 @@
 				position = 1
 				continue
-			
+
 			position = None
 			if not value in opt2row:
 				raise RuntimeError("Error selecting value: %s" % value)
-			
+
 			(selname, seltype, name, choices) = opt2row[value]
-			
+
 			if not selname in config:
 				value = None
 			else:
 				value = config[selname]
-			
+
 			if seltype == 'choice':
 				config[selname] = subchoice(screen, name, choices, value)
@@ -752,5 +752,5 @@
 	finally:
 		xtui.screen_done(screen)
-	
+
 	preprocess_config(config, rules)
 	create_output(MAKEFILE, MACROS, config, rules)
Index: tools/dest_build.py
===================================================================
--- tools/dest_build.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/dest_build.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,9 +42,9 @@
 def duplicate_tree(src_path, dest_path, current):
 	"Duplicate source directory tree in the destination path"
-	
+
 	for name in os.listdir(os.path.join(src_path, current)):
 		if name in exclude_names:
 			next
-		
+
 		following = os.path.join(current, name)
 		src = os.path.join(src_path, following)
@@ -52,18 +52,18 @@
 		dest_parent = os.path.join(dest_path, current)
 		dest_stat = os.stat(src)
-		
+
 		# Create shadow directories
 		if stat.S_ISDIR(dest_stat.st_mode):
 			if not os.path.exists(dest):
 				os.mkdir(dest)
-			
+
 			if not os.path.isdir(dest):
 				raise IOError(errno.ENOTDIR, "Destination path exists, but is not a directory", dest)
-			
+
 			duplicate_tree(src_path, dest_path, following)
 		else:
 			# Compute the relative path from destination to source
 			relative = os.path.relpath(src, dest_parent)
-			
+
 			# Create symlink
 			if not os.path.exists(dest):
@@ -78,5 +78,5 @@
 		usage(sys.argv[0])
 		return 1
-	
+
 	# Source tree path
 	src_path = os.path.abspath(sys.argv[1])
@@ -84,22 +84,22 @@
 		print("<SRC_PATH> must be a directory")
 		return 2
-	
+
 	# Destination tree path
 	dest_path = os.path.abspath(sys.argv[2])
 	if not os.path.exists(dest_path):
 		os.mkdir(dest_path)
-	
+
 	if not os.path.isdir(dest_path):
 		print("<DEST_PATH> must be a directory")
 		return 3
-	
+
 	# Duplicate source directory tree
 	duplicate_tree(src_path, dest_path, "")
-	
+
 	# Run the build from the destination tree
 	os.chdir(dest_path)
 	args = ["make"]
 	args.extend(sys.argv[3:])
-	
+
 	return subprocess.Popen(args).wait()
 
Index: tools/ew.py
===================================================================
--- tools/ew.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/ew.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -76,5 +76,5 @@
 def pc_options(guest_width):
 	opts = ''
-	
+
 	# Do not enable KVM if running 64 bits HelenOS
 	# on 32 bits host
@@ -82,5 +82,5 @@
 	if guest_width <= host_width and not is_override('nokvm'):
 		opts = opts + ' -enable-kvm'
-	
+
 	# Remove the leading space
 	return opts[1:]
@@ -132,7 +132,7 @@
 	if is_override('nohdd'):
 		return ''
-	
+
 	hdisk_mk()
-	
+
 	return ' -drive file=hdisk.img,index=0,media=disk,format=raw'
 
@@ -208,5 +208,5 @@
 	if (not 'audio' in cfg.keys()) or cfg['audio']:
 		cmdline += qemu_audio_options()
-	
+
 	if cfg['image'] == 'image.iso':
 		cmdline += ' -boot d -cdrom image.iso'
@@ -328,5 +328,5 @@
 def fail(platform, machine):
 	print("Cannot start emulation for the chosen configuration. (%s/%s)" % (platform, machine))
-	
+
 
 def run():
Index: tools/imgutil.py
===================================================================
--- tools/imgutil.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/imgutil.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,21 +40,21 @@
 def align_up(size, alignment):
 	"Return size aligned up to alignment"
-	
+
 	if (size % alignment == 0):
 		return size
-	
+
 	return ((size // alignment) + 1) * alignment
 
 def count_up(size, alignment):
 	"Return units necessary to fit the size"
-	
+
 	if (size % alignment == 0):
 		return (size // alignment)
-	
+
 	return ((size // alignment) + 1)
 
 def num_of_trailing_bin_zeros(num):
 	"Return number of trailing zeros in binary representation"
-	
+
 	i = 0
 	if (num == 0): raise ValueError()
@@ -66,15 +66,15 @@
 def get_bit(number, n):
 	"Return True if n-th least-significant bit is set in the given number"
-	
+
 	return bool((number >> n) & 1)
 
 def set_bit(number, n):
 	"Return the number with n-th least-significant bit set"
-	
+
 	return number | (1 << n)
 
 class ItemToPack:
 	"Stores information about one directory item to be added to the image"
-	
+
 	def __init__(self, parent, name):
 		self.parent = parent
@@ -88,26 +88,26 @@
 def listdir_items(path):
 	"Return a list of items to be packed inside a fs image"
-	
+
 	for name in os.listdir(path):
 		if name in exclude_names:
 			continue
-		
+
 		item = ItemToPack(path, name)
-		
+
 		if not (item.is_dir or item.is_file):
 			continue
-		
+
 		yield item
 
 def chunks(item, chunk_size):
 	"Iterate contents of a file in chunks of a given size"
-	
+
 	inf = open(item.path, 'rb')
 	rd = 0
-	
+
 	while (rd < item.size):
 		data = bytes(inf.read(chunk_size))
 		yield data
 		rd += len(data)
-	
+
 	inf.close()
Index: tools/jobfile.py
===================================================================
--- tools/jobfile.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/jobfile.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,5 +44,5 @@
 		usage(sys.argv[0])
 		return
-	
+
 	jobfname = sys.argv[1]
 	ccname = sys.argv[2]
@@ -53,17 +53,17 @@
 	options = " ".join(sys.argv[6:])
 	cwd = os.getcwd()
-	
+
 	if srcfname.endswith(".c"):
 		toolname = "cc"
 		category = "core"
-	
+
 	if srcfname.endswith(".s"):
 		toolname = "as"
 		category = "asm"
-	
+
 	if srcfname.endswith(".S"):
 		toolname = "as"
 		category = "asm/preproc"
-	
+
 	jobfile = open(jobfname, "a")
 	fcntl.lockf(jobfile, fcntl.LOCK_EX)
@@ -71,5 +71,5 @@
 	fcntl.lockf(jobfile, fcntl.LOCK_UN)
 	jobfile.close()
-	
+
 	# Run the compiler proper.
 	os.execvp(ccname, sys.argv[2:])
Index: tools/mkarray.py
===================================================================
--- tools/mkarray.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/mkarray.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,5 +57,5 @@
 def main():
 	arg_check()
-	
+
 	if sys.argv[1] == "--deflate":
 		sys.argv.pop(1)
@@ -64,34 +64,34 @@
 	else:
 		compress = False
-	
+
 	dest = sys.argv[1]
 	label = sys.argv[2]
 	as_prolog = sys.argv[3]
 	section = sys.argv[4]
-	
+
 	timestamp = (1980, 1, 1, 0, 0, 0)
-	
+
 	header_ctx = []
 	desc_ctx = []
 	size_ctx = []
 	data_ctx = []
-	
+
 	src_cnt = 0
-	
+
 	archive = zipfile.ZipFile("%s.zip" % dest, "w", zipfile.ZIP_STORED)
-	
+
 	for src in sys.argv[5:]:
 		basename = os.path.basename(src)
 		plainname = os.path.splitext(basename)[0]
 		symbol = basename.replace(".", "_")
-		
+
 		print("%s -> %s" % (src, symbol))
-		
+
 		src_in = open(src, "rb")
 		src_data = src_in.read()
 		src_in.close()
-		
+
 		length = len(src_data)
-		
+
 		if compress:
 			src_data = deflate(src_data)
@@ -101,13 +101,13 @@
 		else:
 			src_fname = src
-		
+
 		if sys.version_info < (3,):
 			src_data = bytearray(src_data)
-		
+
 		length_out = len(src_data)
-		
+
 		header_ctx.append("extern uint8_t %s[];" % symbol)
 		header_ctx.append("extern size_t %s_size;" % symbol)
-		
+
 		data_ctx.append(".globl %s" % symbol)
 		data_ctx.append(".balign 8")
@@ -115,5 +115,5 @@
 		data_ctx.append("%s:" % symbol)
 		data_ctx.append("\t.incbin \"%s\"\n" % src_fname)
-		
+
 		desc_field = []
 		desc_field.append("\t{")
@@ -122,18 +122,18 @@
 		desc_field.append("\t\t.size = %u," % length_out)
 		desc_field.append("\t\t.inflated = %u," % length)
-		
+
 		if compress:
 			desc_field.append("\t\t.compressed = true")
 		else:
 			desc_field.append("\t\t.compressed = false")
-		
+
 		desc_field.append("\t}")
-		
+
 		desc_ctx.append("\n".join(desc_field))
-		
+
 		size_ctx.append("size_t %s_size = %u;" % (symbol, length_out))
-		
+
 		src_cnt += 1
-	
+
 	data = ''
 	data += '/***************************************\n'
@@ -160,5 +160,5 @@
 	zipinfo = zipfile.ZipInfo("%s.h" % dest, timestamp)
 	archive.writestr(zipinfo, data)
-	
+
 	data = ''
 	data += '/***************************************\n'
@@ -172,5 +172,5 @@
 	zipinfo = zipfile.ZipInfo("%s.s" % dest, timestamp)
 	archive.writestr(zipinfo, data)
-	
+
 	data = ''
 	data += '/***************************************\n'
@@ -187,5 +187,5 @@
 	zipinfo = zipfile.ZipInfo("%s_desc.c" % dest, timestamp)
 	archive.writestr(zipinfo, data)
-	
+
 	archive.close()
 
Index: tools/mkext2.py
===================================================================
--- tools/mkext2.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/mkext2.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,5 +77,5 @@
 	uint32_t rev_major            /* Major revision level */
 	padding[4] /* default reserved uid and gid */
-	
+
 	/* Following is for ext2 revision 1 only */
 	uint32_t first_inode
@@ -130,5 +130,5 @@
 	def __init__(self, filename, block_groups, blocks_per_group, inodes_per_group, block_size, inode_size, reserved_inode_count):
 		"Initialize the filesystem writer"
-		
+
 		outf = open(filename, "w+b")
 		# Set the correct size of the image, so that we can read arbitrary position
@@ -172,8 +172,8 @@
 		lpf_dir.add(self.root_inode.as_dirent('..'))
 		lpf_dir.finish()
-	
+
 	def init_gdt(self):
 		"Initialize block group descriptor table"
-		
+
 		self.superblock_positions = []
 		self.gdt = []
@@ -202,13 +202,13 @@
 			gde.directory_inode_count = 0
 			self.gdt.append(gde)
-	
+
 	def mark_block_cb(self, block):
 		"Called after a block has been allocated"
-		
+
 		self.gdt[block // self.blocks_per_group].free_block_count -= 1
-	
+
 	def mark_inode_cb(self, index, directory=False):
 		"Called after an inode has been allocated"
-		
+
 		index -= 1
 		gde = self.gdt[index // self.inodes_per_group]
@@ -216,15 +216,15 @@
 		if directory:
 			gde.directory_inode_count += 1
-	
+
 	def seek_to_block(self, block, offset=0):
 		"Seek to offset bytes after the start of the given block"
-		
+
 		if offset < 0 or offset > self.block_size:
 			raise Exception("Invalid in-block offset")
 		self.outf.seek(block * self.block_size + offset)
-	
+
 	def seek_to_inode(self, index):
 		"Seek to the start of the inode structure for the inode number index"
-		
+
 		index -= 1
 		if index < 0:
@@ -235,12 +235,12 @@
 		block = base_block + (offset // self.block_size)
 		self.seek_to_block(block, offset % self.block_size)
-	
+
 	def subtree_add(self, inode, parent_inode, dirpath, is_root=False):
 		"Recursively add files to the filesystem"
-		
+
 		dir_writer = DirWriter(inode)
 		dir_writer.add(inode.as_dirent('.'))
 		dir_writer.add(parent_inode.as_dirent('..'))
-		
+
 		if is_root:
 			dir_writer.add(self.lost_plus_found.as_dirent('lost+found'))
@@ -255,13 +255,13 @@
 				child_inode = Inode(self, newidx, Inode.TYPE_DIR)
 				self.subtree_add(child_inode, inode, item.path)
-		
+
 			dir_writer.add(child_inode.as_dirent(item.name))
 			self.write_inode(child_inode)
 
 		dir_writer.finish()
-	
+
 	def write_inode(self, inode):
 		"Write inode information into the inode table"
-		
+
 		self.seek_to_inode(inode.index)
 		self.outf.write(inode.pack())
@@ -269,13 +269,13 @@
 	def write_gdt(self):
 		"Write group descriptor table at the current file position"
-		
+
 		for gde in self.gdt:
 			data = bytes(gde.pack())
 			self.outf.write(data)
 			self.outf.seek(GDE_SIZE-len(data), os.SEEK_CUR)
-	
+
 	def write_superblock(self, block_group):
 		"Write superblock at the current position"
-		
+
 		sb = xstruct.create(STRUCT_SUPERBLOCK)
 		sb.total_inode_count = self.total_inode_count
@@ -312,33 +312,33 @@
 		sb.volume_name = 'HelenOS rdimage\0'
 		self.outf.write(bytes(sb.pack()))
-	
+
 	def write_all_metadata(self):
 		"Write superblocks, block group tables, block and inode bitmaps"
-		
+
 		bbpg = self.blocks_per_group // 8
 		bipg = self.inodes_per_group // 8
 		def window(arr, index, size):
 			return arr[index * size:(index + 1) * size]
-		
+
 		for bg_index in xrange(len(self.gdt)):
 			sbpos = self.superblock_positions[bg_index]
 			sbblock = (sbpos + 1023) // self.block_size
 			gde = self.gdt[bg_index]
-			
+
 			self.outf.seek(sbpos)
 			self.write_superblock(bg_index)
-			
+
 			self.seek_to_block(sbblock+1)
 			self.write_gdt()
-			
+
 			self.seek_to_block(gde.block_bitmap_block)
 			self.outf.write(window(self.block_allocator.bitmap, bg_index, bbpg))
-			
+
 			self.seek_to_block(gde.inode_bitmap_block)
 			self.outf.write(window(self.inode_allocator.bitmap, bg_index, bipg))
-	
+
 	def close(self):
 		"Write all remaining data to the filesystem and close the file"
-		
+
 		self.write_inode(self.root_inode)
 		self.write_inode(self.lost_plus_found)
@@ -354,14 +354,14 @@
 		self.bitmap = array.array('B', [0] * (count // 8))
 		self.mark_cb = None
-	
+
 	def __contains__(self, item):
 		"Check if the item is already used"
-		
+
 		bitidx = item - self.base
 		return get_bit(self.bitmap[bitidx // 8], bitidx % 8)
-	
+
 	def alloc(self, **options):
 		"Allocate a new item"
-		
+
 		while self.nextidx < self.count and (self.base + self.nextidx) in self:
 			self.nextidx += 1
@@ -372,8 +372,8 @@
 		self.mark_used(item, **options)
 		return item
-	
+
 	def mark_used(self, item, **options):
 		"Mark the specified item as used"
-		
+
 		bitidx = item - self.base
 		if item in self:
@@ -384,8 +384,8 @@
 		if self.mark_cb:
 			self.mark_cb(item, **options)
-	
+
 	def mark_used_all(self, items, **options):
 		"Mark all specified items as used"
-		
+
 		for item in items:
 			self.mark_used(item, **options)
@@ -395,5 +395,5 @@
 	TYPE_DIR = 2
 	TYPE2MODE = {TYPE_FILE: 8, TYPE_DIR: 4}
-	
+
 	def __init__(self, fs, index, typ):
 		self.fs = fs
@@ -406,34 +406,34 @@
 		self.type = typ
 		self.refcount = 0
-	
+
 	def as_dirent(self, name):
 		"Return a DirEntry corresponding to this inode"
 		self.refcount += 1
 		return DirEntry(name, self.index, self.type)
-	
+
 	def new_block(self, data=True):
 		"Get a new block index from allocator and count it here as belonging to the file"
-		
+
 		block = self.fs.block_allocator.alloc()
 		self.blocks += 1
 		return block
-	
+
 	def get_or_add_block(self, block):
 		"Get or add a real block to the file"
-		
+
 		if block < 12:
 			return self.get_or_add_block_direct(block)
 		return self.get_or_add_block_indirect(block)
-	
+
 	def get_or_add_block_direct(self, block):
 		"Get or add a real block to the file (direct blocks)"
-		
+
 		if self.direct[block] == None:
 			self.direct[block] = self.new_block()
 		return self.direct[block]
-	
+
 	def get_or_add_block_indirect(self, block):
 		"Get or add a real block to the file (indirect blocks)"
-		
+
 		# Determine the indirection level for the desired block
 		level = None
@@ -444,5 +444,5 @@
 
 		assert level != None
-	
+
 		# Compute offsets for the topmost level
 		block_offset_in_level = block - self.fs.indirect_limits[level-1];
@@ -452,14 +452,14 @@
 		current_block.block_id = self.indirect[level-1]
 		offset_in_block = block_offset_in_level // self.fs.indirect_blocks_per_level[level-1]
-	
+
 		# Navigate through other levels
 		while level > 0:
 			assert offset_in_block < self.fs.block_ids_per_block
-			
+
 			level -= 1
-			
+
 			self.fs.seek_to_block(current_block.block_id, offset_in_block*4)
 			current_block.unpack(self.fs.outf.read(4))
-			
+
 			if current_block.block_id == 0:
 				# The block does not exist, so alloc one and write it there
@@ -467,10 +467,10 @@
 				current_block.block_id = self.new_block(data=(level==0))
 				self.fs.outf.write(current_block.pack())
-		
+
 			# If we are on the last level, break here as
 			# there is no next level to visit
 			if level == 0:
 				break
-		
+
 			# Visit the next level
 			block_offset_in_level %= self.fs.indirect_blocks_per_level[level];
@@ -478,16 +478,16 @@
 
 		return current_block.block_id
-	
+
 	def do_seek(self):
 		"Perform a seek to the position indicated by self.pos"
-		
+
 		block = self.pos // self.fs.block_size
 		real_block = self.get_or_add_block(block)
 		offset = self.pos % self.fs.block_size
 		self.fs.seek_to_block(real_block, offset)
-		
+
 	def write(self, data):
 		"Write a piece of data (arbitrarily long) as the contents of the inode"
-		
+
 		data_pos = 0
 		while data_pos < len(data):
@@ -499,23 +499,23 @@
 			data_pos += bytes_to_write
 			self.size = max(self.pos, self.size)
-	
+
 	def align_size_to_block(self):
 		"Align the size of the inode up to block size"
-		
+
 		self.size = align_up(self.size, self.fs.block_size)
-	
+
 	def align_pos(self, bytes):
 		"Align the current position up to bytes boundary"
-		
+
 		self.pos = align_up(self.pos, bytes)
-	
+
 	def set_pos(self, pos):
 		"Set the current position"
-		
+
 		self.pos = pos
-	
+
 	def pack(self):
 		"Pack the inode structure and return the result"
-		
+
 		data = xstruct.create(STRUCT_INODE)
 		data.mode = (Inode.TYPE2MODE[self.type] << 12)
@@ -546,8 +546,8 @@
 		data.group_id_high = 0
 		return data.pack()
-		
+
 class DirEntry:
 	"Represents a linked list directory entry"
-	
+
 	def __init__(self, name, inode, typ):
 		self.name = name.encode('UTF-8')
@@ -555,13 +555,13 @@
 		self.skip = None
 		self.type = typ
-	
+
 	def size(self):
 		"Return size of the entry in bytes"
-		
+
 		return align_up(8 + len(self.name)+1, 4)
-	
+
 	def write(self, inode):
 		"Write the directory entry into the inode"
-		
+
 		head = xstruct.create(STRUCT_DIR_ENTRY_HEAD)
 		head.inode = self.inode
@@ -575,5 +575,5 @@
 class DirWriter:
 	"Manages writing directory entries into an inode (alignment, etc.)"
-	
+
 	def __init__(self, inode):
 		self.pos = 0
@@ -581,8 +581,8 @@
 		self.prev_entry = None
 		self.prev_pos = None
-	
+
 	def prev_write(self):
 		"Write a previously remembered entry"
-		
+
 		if self.prev_entry:
 			self.prev_entry.skip = self.pos - self.prev_pos
@@ -590,8 +590,8 @@
 				self.prev_entry.write(self.inode)
 				self.inode.set_pos(self.pos)
-	
+
 	def add(self, entry):
 		"Add a directory entry to the directory"
-		
+
 		size = entry.size()
 		block_size = self.inode.fs.block_size
@@ -602,8 +602,8 @@
 		self.prev_pos = self.pos
 		self.pos += size
-	
+
 	def finish(self):
 		"Write the last entry and finish writing the directory contents"
-		
+
 		if not self.inode:
 			return
@@ -614,9 +614,9 @@
 def subtree_stats(root, block_size):
 	"Recursively calculate statistics"
-	
+
 	blocks = 0
 	inodes = 1
 	dir_writer = DirWriter(None)
-	
+
 	for item in listdir_items(root):
 		inodes += 1
@@ -627,5 +627,5 @@
 			blocks += subtree_blocks
 			inodes += subtree_inodes
-	
+
 	dir_writer.finish()
 	blocks += count_up(dir_writer.pos, block_size)
@@ -640,16 +640,16 @@
 		usage(sys.argv[0])
 		return
-	
+
 	if (not sys.argv[1].isdigit()):
 		print("<EXTRA_BYTES> must be a number")
 		return
-	
+
 	extra_bytes = int(sys.argv[1])
-	
+
 	path = os.path.abspath(sys.argv[2])
 	if (not os.path.isdir(path)):
 		print("<PATH> must be a directory")
 		return
-	
+
 	block_size = 4096
 	inode_size = 128
@@ -657,12 +657,12 @@
 	blocks_per_group = 1024
 	inodes_per_group = 512
-	
+
 	blocks, inodes = subtree_stats(path, block_size)
 	blocks += count_up(extra_bytes, block_size)
 	inodes += reserved_inode_count
-	
+
 	inodes_per_group = align_up(inodes_per_group, 8)
 	blocks_per_group = align_up(blocks_per_group, 8)
-	
+
 	inode_table_blocks_per_group = (inodes_per_group * inode_size) // block_size
 	inode_bitmap_blocks_per_group = count_up(inodes_per_group // 8, block_size)
@@ -673,13 +673,13 @@
 	free_blocks_per_group -= block_bitmap_blocks_per_group
 	free_blocks_per_group -= 10 # one for SB and some reserve for GDT
-	
+
 	block_groups = max(count_up(inodes, inodes_per_group), count_up(blocks, free_blocks_per_group))
-	
+
 	fs = Filesystem(sys.argv[3], block_groups, blocks_per_group, inodes_per_group,
 	                        block_size, inode_size, reserved_inode_count)
-	
+
 	fs.subtree_add(fs.root_inode, fs.root_inode, path, is_root=True)
 	fs.close()
-	
+
 if __name__ == '__main__':
 	main()
Index: tools/mkfat.py
===================================================================
--- tools/mkfat.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/mkfat.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,8 +41,8 @@
 def subtree_size(root, cluster_size, dirent_size):
 	"Recursive directory walk and calculate size"
-	
+
 	size = 0
 	files = 2
-	
+
 	for item in listdir_items(root):
 		if item.is_file:
@@ -52,42 +52,42 @@
 			size += subtree_size(item.path, cluster_size, dirent_size)
 			files += 1
-	
+
 	return size + align_up(files * dirent_size, cluster_size)
 
 def root_entries(root):
 	"Return number of root directory entries"
-	
+
 	return len(os.listdir(root))
 
 def write_file(item, outf, cluster_size, data_start, fat, reserved_clusters):
 	"Store the contents of a file"
-	
+
 	prev = -1
 	first = 0
-	
+
 	for data in chunks(item, cluster_size):
 		empty_cluster = fat.index(0)
 		fat[empty_cluster] = 0xffff
-		
+
 		if (prev != -1):
 			fat[prev] = empty_cluster
 		else:
 			first = empty_cluster
-		
+
 		prev = empty_cluster
-		
+
 		outf.seek(data_start + (empty_cluster - reserved_clusters) * cluster_size)
 		outf.write(data)
-	
+
 	return first, item.size
 
 def write_directory(directory, outf, cluster_size, data_start, fat, reserved_clusters, dirent_size, empty_cluster):
 	"Store the contents of a directory"
-	
+
 	length = len(directory)
 	size = length * dirent_size
 	prev = -1
 	first = 0
-	
+
 	i = 0
 	rd = 0;
@@ -99,7 +99,7 @@
 		else:
 			first = empty_cluster
-		
+
 		prev = empty_cluster
-		
+
 		data = bytes()
 		data_len = 0
@@ -107,13 +107,13 @@
 			if (i == 0):
 				directory[i].cluster = empty_cluster
-			
+
 			data += directory[i].pack()
 			data_len += dirent_size
 			i += 1
-		
+
 		outf.seek(data_start + (empty_cluster - reserved_clusters) * cluster_size)
 		outf.write(data)
 		rd += len(data)
-	
+
 	return first, size
 
@@ -188,8 +188,8 @@
 def fat_lchars(name):
 	"Filter FAT legal characters"
-	
+
 	filtered_name = b''
 	filtered = False
-	
+
 	for char in name.encode('ascii', 'replace').upper():
 		if char in lchars:
@@ -198,37 +198,37 @@
 			filtered_name += b'_'
 			filtered = True
-	
+
 	return (filtered_name, filtered)
 
 def fat_name83(name, name83_list):
 	"Create a 8.3 name for the given name"
-	
+
 	ascii_name, lfn = fat_lchars(name)
 	# Splitting works only on strings, not on bytes
 	ascii_parts = ascii_name.decode('utf8').split('.')
-	
+
 	short_name = ''
 	short_ext = ''
-	
+
 	if len(ascii_name) > 11:
 		lfn = True
-	
+
 	if len(ascii_parts) > 0:
 		short_name = ascii_parts[0]
 		if len(short_name) > 8:
 			lfn = True
-	
+
 	if len(ascii_parts) > 1:
 		short_ext = ascii_parts[-1]
 		if len(short_ext) > 3:
 			lfn = True
-	
+
 	if len(ascii_parts) > 2:
 		lfn = True
-	
+
 	if lfn == False:
 		name83_list.append(short_name + '.' + short_ext)
 		return (short_name.ljust(8)[0:8], short_ext.ljust(3)[0:3], False)
-	
+
 	# For filenames with multiple extensions, we treat the last one
 	# as the actual extension. The rest of the filename is stripped
@@ -236,16 +236,16 @@
 	for part in ascii_parts[1:-1]:
 		short_name += part
-	
+
 	for number in range(1, 999999):
 		number_str = ('~' + str(number)).upper()
-		
+
 		if len(short_name) + len(number_str) > 8:
 			short_name = short_name[0:8 - len(number_str)]
-		
+
 		short_name += number_str;
-		
+
 		if not (short_name + '.' + short_ext) in name83_list:
 			break
-	
+
 	name83_list.append(short_name + '.' + short_ext)
 	return (short_name.ljust(8)[0:8], short_ext.ljust(3)[0:3], True)
@@ -253,46 +253,46 @@
 def create_lfn_dirent(name, seq, checksum):
 	"Create LFN directory entry"
-	
+
 	entry = xstruct.create(LFN_DIR_ENTRY)
 	name_rest = name[26:]
-	
+
 	if len(name_rest) > 0:
 		entry.seq = seq
 	else:
 		entry.seq = seq | 0x40
-	
+
 	entry.name1 = name[0:10]
 	entry.name2 = name[10:22]
 	entry.name3 = name[22:26]
-	
+
 	entry.attr = 0x0F
 	entry.rec_type = 0
 	entry.checksum = checksum
 	entry.cluster = 0
-	
+
 	return (entry, name_rest)
 
 def lfn_checksum(name):
 	"Calculate LFN checksum"
-	
+
 	checksum = 0
 	for i in range(0, 11):
 		checksum = (((checksum & 1) << 7) + (checksum >> 1) + ord(name[i])) & 0xFF
-	
+
 	return checksum
 
 def create_dirent(name, name83_list, directory, cluster, size):
 	short_name, short_ext, lfn = fat_name83(name, name83_list)
-	
+
 	dir_entry = xstruct.create(DIR_ENTRY)
-	
+
 	dir_entry.name = short_name
 	dir_entry.ext = short_ext
-	
+
 	if (directory):
 		dir_entry.attr = 0x30
 	else:
 		dir_entry.attr = 0x20
-	
+
 	dir_entry.lcase = 0x18
 	dir_entry.ctime_fine = 0 # FIXME
@@ -303,24 +303,24 @@
 	dir_entry.mdate = 0 # FIXME
 	dir_entry.cluster = cluster
-	
+
 	if (directory):
 		dir_entry.size = 0
 	else:
 		dir_entry.size = size
-	
+
 	if not lfn:
 		return [dir_entry]
-	
+
 	long_name = name.encode('utf_16_le')
 	entries = [dir_entry]
-	
+
 	seq = 1
 	checksum = lfn_checksum(dir_entry.name + dir_entry.ext)
-	
+
 	while len(long_name) > 0:
 		long_entry, long_name = create_lfn_dirent(long_name, seq, checksum)
 		entries.append(long_entry)
 		seq += 1
-	
+
 	entries.reverse()
 	return entries
@@ -328,10 +328,10 @@
 def create_dot_dirent(empty_cluster):
 	dir_entry = xstruct.create(DOT_DIR_ENTRY)
-	
+
 	dir_entry.signature = 0x2e
 	dir_entry.name = b'       '
 	dir_entry.ext = b'   '
 	dir_entry.attr = 0x10
-	
+
 	dir_entry.ctime_fine = 0 # FIXME
 	dir_entry.ctime = 0 # FIXME
@@ -342,15 +342,15 @@
 	dir_entry.cluster = empty_cluster
 	dir_entry.size = 0
-	
+
 	return dir_entry
 
 def create_dotdot_dirent(parent_cluster):
 	dir_entry = xstruct.create(DOTDOT_DIR_ENTRY)
-	
+
 	dir_entry.signature = [0x2e, 0x2e]
 	dir_entry.name = b'      '
 	dir_entry.ext = b'   '
 	dir_entry.attr = 0x10
-	
+
 	dir_entry.ctime_fine = 0 # FIXME
 	dir_entry.ctime = 0 # FIXME
@@ -361,23 +361,23 @@
 	dir_entry.cluster = parent_cluster
 	dir_entry.size = 0
-	
+
 	return dir_entry
 
 def recursion(head, root, outf, cluster_size, root_start, data_start, fat, reserved_clusters, dirent_size, parent_cluster):
 	"Recursive directory walk"
-	
+
 	directory = []
 	name83_list = []
-	
+
 	if not head:
 		# Directory cluster preallocation
 		empty_cluster = fat.index(0)
 		fat[empty_cluster] = 0xFFFF
-		
+
 		directory.append(create_dot_dirent(empty_cluster))
 		directory.append(create_dotdot_dirent(parent_cluster))
 	else:
 		empty_cluster = 0
-	
+
 	for item in listdir_items(root):
 		if item.is_file:
@@ -387,5 +387,5 @@
 			rv = recursion(False, item.path, outf, cluster_size, root_start, data_start, fat, reserved_clusters, dirent_size, empty_cluster)
 			directory.extend(create_dirent(item.name, name83_list, True, rv[0], rv[1]))
-	
+
 	if head:
 		outf.seek(root_start)
@@ -410,5 +410,5 @@
 	uint32_t hidden            /* hidden sectors */
 	uint32_t sectors_big       /* total number of sectors (if sectors == 0) */
-	
+
 	/* Extended BIOS Parameter Block */
 	uint8_t drive              /* physical drive number */
@@ -438,18 +438,18 @@
 		usage(sys.argv[0])
 		return
-	
+
 	if (not sys.argv[1].isdigit()):
 		print("<EXTRA_BYTES> must be a number")
 		return
-	
+
 	extra_bytes = int(sys.argv[1])
-	
+
 	path = os.path.abspath(sys.argv[2])
 	if (not os.path.isdir(path)):
 		print("<PATH> must be a directory")
 		return
-	
+
 	fat16_clusters = 4096
-	
+
 	sector_size = 512
 	cluster_size = 4096
@@ -458,5 +458,5 @@
 	fat_count = 2
 	reserved_clusters = 2
-	
+
 	# Make sure the filesystem is large enough for FAT16
 	size = subtree_size(path, cluster_size, dirent_size) + reserved_clusters * cluster_size + extra_bytes
@@ -467,15 +467,15 @@
 		else:
 			size = fat16_clusters * cluster_size + reserved_clusters * cluster_size
-	
+
 	root_size = align_up(root_entries(path) * dirent_size, cluster_size)
-	
+
 	fat_size = align_up(align_up(size, cluster_size) // cluster_size * fatent_size, sector_size)
-	
+
 	sectors = (cluster_size + fat_count * fat_size + root_size + size) // sector_size
 	root_start = cluster_size + fat_count * fat_size
 	data_start = root_start + root_size
-	
+
 	outf = open(sys.argv[3], "wb")
-	
+
 	boot_sector = xstruct.create(BOOT_SECTOR)
 	boot_sector.jmp = [0xEB, 0x3C, 0x90]
@@ -499,5 +499,5 @@
 	else:
 		boot_sector.sectors_big = 0
-	
+
 	boot_sector.drive = 0x80
 	boot_sector.extboot_signature = 0x29
@@ -506,32 +506,32 @@
 	boot_sector.fstype = b'FAT16   '
 	boot_sector.boot_signature = [0x55, 0xAA]
-	
+
 	outf.write(boot_sector.pack())
-	
+
 	empty_sector = xstruct.create(EMPTY_SECTOR)
-	
+
 	# Reserved sectors
 	for i in range(1, cluster_size // sector_size):
 		outf.write(empty_sector.pack())
-	
+
 	# FAT tables
 	for i in range(0, fat_count):
 		for j in range(0, fat_size // sector_size):
 			outf.write(empty_sector.pack())
-	
+
 	# Root directory
 	for i in range(0, root_size // sector_size):
 		outf.write(empty_sector.pack())
-	
+
 	# Data
 	for i in range(0, size // sector_size):
 		outf.write(empty_sector.pack())
-	
+
 	fat = array.array('L', [0] * (fat_size // fatent_size))
 	fat[0] = 0xfff8
 	fat[1] = 0xffff
-	
+
 	recursion(True, path, outf, cluster_size, root_start, data_start, fat, reserved_clusters, dirent_size, 0)
-	
+
 	# Store FAT
 	fat_entry = xstruct.create(FAT_ENTRY)
@@ -541,5 +541,5 @@
 			fat_entry.next = fat[j]
 			outf.write(fat_entry.pack())
-	
+
 	outf.close()
 
Index: tools/mktmpfs.py
===================================================================
--- tools/mktmpfs.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/mktmpfs.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,5 +69,5 @@
 def recursion(root, outf):
 	"Recursive directory walk"
-	
+
 	for item in listdir_items(root):
 		if item.is_file:
@@ -77,10 +77,10 @@
 			dentry.fname = item.name.encode('ascii')
 			dentry.flen = item.size
-			
+
 			outf.write(dentry.pack())
-			
+
 			for data in chunks(item, 4096):
 				outf.write(data)
-		
+
 		elif item.is_dir:
 			dentry = xstruct.create(DENTRY_DIRECTORY % len(item.name))
@@ -88,13 +88,13 @@
 			dentry.fname_len = len(item.name)
 			dentry.fname = item.name.encode('ascii')
-			
+
 			outf.write(dentry.pack())
-			
+
 			recursion(item.path, outf)
-			
+
 			dentry = xstruct.create(DENTRY_NONE)
 			dentry.kind = TMPFS_NONE
 			dentry.fname_len = 0
-			
+
 			outf.write(dentry.pack())
 
@@ -103,27 +103,27 @@
 		usage(sys.argv[0])
 		return
-	
+
 	path = os.path.abspath(sys.argv[1])
 	if (not os.path.isdir(path)):
 		print("<PATH> must be a directory")
 		return
-	
+
 	outf = open(sys.argv[2], "wb")
-	
+
 	header = xstruct.create(HEADER)
 	header.tag = b"TMPFS"
-	
+
 	outf.write(header.pack())
-	
+
 	recursion(path, outf)
-	
+
 	dentry = xstruct.create(DENTRY_NONE)
 	dentry.kind = TMPFS_NONE
 	dentry.fname_len = 0
-	
+
 	outf.write(dentry.pack())
-	
+
 	outf.close()
-	
+
 if __name__ == '__main__':
 	main()
Index: tools/toolchain.sh
===================================================================
--- tools/toolchain.sh	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/toolchain.sh	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -85,7 +85,7 @@
 	HEADER="$2"
 	BODY="$3"
-	
+
 	FNAME="/tmp/conftest-$$"
-	
+
 	echo "#include ${HEADER}" > "${FNAME}.c"
 	echo >> "${FNAME}.c"
@@ -95,12 +95,12 @@
 	echo "	return 0;" >> "${FNAME}.c"
 	echo "}" >> "${FNAME}.c"
-	
+
 	cc $CFLAGS -c -o "${FNAME}.o" "${FNAME}.c" 2> "${FNAME}.log"
 	RC="$?"
-	
+
 	if [ "$RC" -ne "0" ] ; then
 		if [ "${DEPENDENCY}" == "isl" ]; then
 			BUILD_ISL=true
-			
+
 			echo " isl not found. Will be downloaded and built with GCC."
 		else
@@ -134,5 +134,5 @@
 		echo
 		echo "Script failed: $2"
-		
+
 		exit 1
 	fi
@@ -142,10 +142,10 @@
 	FILE="$1"
 	SUM="$2"
-	
+
 	COMPUTED="`md5sum "${FILE}" | cut -d' ' -f1`"
 	if [ "${SUM}" != "${COMPUTED}" ] ; then
 		echo
 		echo "Checksum of ${FILE} does not match."
-		
+
 		exit 2
 	fi
@@ -193,5 +193,5 @@
 	echo "feature that is not fully supported."
 	echo
-	
+
 	exit 3
 }
@@ -203,14 +203,14 @@
 show_countdown() {
 	TM="$1"
-	
+
 	if [ "${TM}" -eq 0 ] ; then
 		echo
 		return 0
 	fi
-	
+
 	echo -n "${TM} "
 	change_title "${TM}"
 	sleep 1
-	
+
 	TM="`expr "${TM}" - 1`"
 	show_countdown "${TM}"
@@ -243,13 +243,13 @@
 	FILE="$2"
 	CHECKSUM="$3"
-	
+
 	if [ ! -f "${FILE}" ] ; then
 		change_title "Downloading ${FILE}"
 		wget -c "${SOURCE}${FILE}" -O "${FILE}".part
 		check_error $? "Error downloading ${FILE}."
-		
+
 		mv "${FILE}".part "${FILE}"
 	fi
-	
+
 	check_md5 "${FILE}" "${CHECKSUM}"
 }
@@ -257,9 +257,9 @@
 source_check() {
 	FILE="$1"
-	
+
 	if [ ! -f "${FILE}" ] ; then
 		echo
 		echo "File ${FILE} not found."
-		
+
 		exit 4
 	fi
@@ -268,5 +268,5 @@
 cleanup_dir() {
 	DIR="$1"
-	
+
 	if [ -d "${DIR}" ] ; then
 		change_title "Removing ${DIR}"
@@ -279,8 +279,8 @@
 	DIR="$1"
 	DESC="$2"
-	
+
 	change_title "Creating ${DESC}"
 	echo ">>> Creating ${DESC}"
-	
+
 	mkdir -p "${DIR}"
 	test -d "${DIR}"
@@ -292,25 +292,25 @@
 	BASE="$2"
 	ORIGINAL="`pwd`"
-	
+
 	mkdir -p "${OUTSIDE}"
-	
+
 	cd "${OUTSIDE}"
 	check_error $? "Unable to change directory to ${OUTSIDE}."
 	ABS_OUTSIDE="`pwd`"
-	
+
 	cd "${BASE}"
 	check_error $? "Unable to change directory to ${BASE}."
 	ABS_BASE="`pwd`"
-	
+
 	cd "${ORIGINAL}"
 	check_error $? "Unable to change directory to ${ORIGINAL}."
-	
+
 	BASE_LEN="${#ABS_BASE}"
 	OUTSIDE_TRIM="${ABS_OUTSIDE:0:${BASE_LEN}}"
-	
+
 	if [ "${OUTSIDE_TRIM}" == "${ABS_BASE}" ] ; then
 		echo
 		echo "CROSS_PREFIX cannot reside within the working directory."
-		
+
 		exit 5
 	fi
@@ -320,8 +320,8 @@
 	FILE="$1"
 	DESC="$2"
-	
+
 	change_title "Unpacking ${DESC}"
 	echo " >>> Unpacking ${DESC}"
-	
+
 	case "${FILE}" in
 		*.gz)
@@ -345,8 +345,8 @@
 	PATCH_STRIP="$2"
 	DESC="$3"
-	
+
 	change_title "Patching ${DESC}"
 	echo " >>> Patching ${DESC} with ${PATCH_FILE}"
-	
+
 	patch -t "-p${PATCH_STRIP}" <"$PATCH_FILE"
 	check_error $? "Error patching ${DESC}."
@@ -357,14 +357,14 @@
 	check_dependecies
 	show_countdown 10
-	
+
 	BINUTILS_SOURCE="ftp://ftp.gnu.org/gnu/binutils/"
 	GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
 	GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/"
 	ISL_SOURCE="http://isl.gforge.inria.fr/"
-	
+
 	download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "9e8340c96626b469a603c15c9d843727"
 	download_fetch "${GCC_SOURCE}" "${GCC}" "6bf56a2bca9dac9dbbf8e8d1036964a8"
 	download_fetch "${GDB_SOURCE}" "${GDB}" "06c8f40521ed65fe36ebc2be29b56942"
-	
+
 	if $BUILD_ISL ; then
 		download_fetch "${ISL_SOURCE}" "${ISL}" "11436d6b205e516635b666090b94ab32"
@@ -426,5 +426,5 @@
 build_target() {
 	PLATFORM="$1"
-	
+
 	# This sets the *_TARGET variables
 	set_target_from_platform "$PLATFORM"
@@ -434,5 +434,5 @@
 		TARGET="$LINUX_TARGET"
 	fi
-	
+
 	WORKDIR="${BASEDIR}/${TARGET}"
 	INSTALL_DIR="${WORKDIR}/PKG"
@@ -442,11 +442,11 @@
 	OBJDIR="${WORKDIR}/gcc-obj"
 	GDBDIR="${WORKDIR}/gdb-${GDB_VERSION}"
-	
+
 	if [ -z "${CROSS_PREFIX}" ] ; then
 		CROSS_PREFIX="/usr/local/cross"
 	fi
-	
+
 	PREFIX="${CROSS_PREFIX}/${TARGET}"
-	
+
 	echo ">>> Downloading tarballs"
 	source_check "${BASEDIR}/${BINUTILS}"
@@ -456,16 +456,16 @@
 		source_check "${BASEDIR}/${ISL}"
 	fi
-	
+
 	echo ">>> Removing previous content"
 	cleanup_dir "${WORKDIR}"
-	
+
 	create_dir "${OBJDIR}" "GCC object directory"
-	
+
 	check_dirs "${PREFIX}" "${WORKDIR}"
-	
+
 	echo ">>> Unpacking tarballs"
 	cd "${WORKDIR}"
 	check_error $? "Change directory failed."
-	
+
 	unpack_tarball "${BASEDIR}/${BINUTILS}" "binutils"
 	unpack_tarball "${BASEDIR}/${GCC}" "GCC"
@@ -475,5 +475,5 @@
 		mv "${ISLDIR}" "${GCCDIR}"/isl
 	fi
-	
+
 	echo ">>> Applying patches"
 	for p in $BINUTILS_PATCHES ; do
@@ -486,9 +486,9 @@
 		patch_sources "${SRCDIR}/${p}" 0 "GDB"
 	done
-	
+
 	echo ">>> Processing binutils (${PLATFORM})"
 	cd "${BINUTILSDIR}"
 	check_error $? "Change directory failed."
-	
+
 	change_title "binutils: configure (${PLATFORM})"
 	CFLAGS=-Wno-error ./configure \
@@ -498,18 +498,18 @@
 		--enable-deterministic-archives
 	check_error $? "Error configuring binutils."
-	
+
 	change_title "binutils: make (${PLATFORM})"
 	make all
 	check_error $? "Error compiling binutils."
-	
+
 	change_title "binutils: install (${PLATFORM})"
 	make install "DESTDIR=${INSTALL_DIR}"
 	check_error $? "Error installing binutils."
-	
-	
+
+
 	echo ">>> Processing GCC (${PLATFORM})"
 	cd "${OBJDIR}"
 	check_error $? "Change directory failed."
-	
+
 	change_title "GCC: configure (${PLATFORM})"
 	PATH="$PATH:${INSTALL_DIR}/${PREFIX}/bin" "${GCCDIR}/configure" \
@@ -521,14 +521,14 @@
 		--disable-shared --enable-lto --disable-werror
 	check_error $? "Error configuring GCC."
-	
+
 	change_title "GCC: make (${PLATFORM})"
 	PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make all-gcc
 	check_error $? "Error compiling GCC."
-	
+
 	change_title "GCC: install (${PLATFORM})"
 	PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install-gcc "DESTDIR=${INSTALL_DIR}"
 	check_error $? "Error installing GCC."
-	
-	
+
+
 	# No GDB support for RISC-V so far
 	if [ "$PLATFORM" != "riscv64" ] ; then
@@ -536,5 +536,5 @@
 		cd "${GDBDIR}"
 		check_error $? "Change directory failed."
-		
+
 		change_title "GDB: configure (${PLATFORM})"
 		PATH="$PATH:${INSTALL_DIR}/${PREFIX}/bin" ./configure \
@@ -543,21 +543,21 @@
 			--enable-werror=no --without-guile
 		check_error $? "Error configuring GDB."
-		
+
 		change_title "GDB: make (${PLATFORM})"
 		PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make all
 		check_error $? "Error compiling GDB."
-		
+
 		change_title "GDB: make (${PLATFORM})"
 		PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install "DESTDIR=${INSTALL_DIR}"
 		check_error $? "Error installing GDB."
 	fi
-	
+
 	# Symlink clang and lld to the install path.
 	CLANG="`which clang 2> /dev/null || echo "/usr/bin/clang"`"
 	LLD="`which ld.lld 2> /dev/null || echo "/usr/bin/ld.lld"`"
-	
+
 	ln -s $CLANG "${INSTALL_DIR}/${PREFIX}/bin/${TARGET}-clang"
 	ln -s $LLD "${INSTALL_DIR}/${PREFIX}/bin/${TARGET}-ld.lld"
-	
+
 	if $REAL_INSTALL ; then
 		echo ">>> Moving to the destination directory."
@@ -566,11 +566,11 @@
 		mv "${INSTALL_DIR}/${PREFIX}" "${PREFIX}"
 	fi
-	
+
 	cd "${BASEDIR}"
 	check_error $? "Change directory failed."
-	
+
 	echo ">>> Cleaning up"
 	cleanup_dir "${WORKDIR}"
-	
+
 	echo
 	echo ">>> Cross-compiler for ${TARGET} installed."
@@ -647,21 +647,21 @@
 		build_target "arm32" &
 		wait
-		
+
 		build_target "ia32" &
 		build_target "ia64" &
 		wait
-		
+
 		build_target "mips32" &
 		build_target "mips32eb" &
 		wait
-		
+
 		build_target "mips64" &
 		build_target "ppc32" &
 		wait
-		
+
 		build_target "riscv64" &
 		build_target "ppc64" &
 		wait
-		
+
 		build_target "sparc64" &
 		wait
Index: tools/travis.sh
===================================================================
--- tools/travis.sh	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/travis.sh	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -119,5 +119,5 @@
 elif [ "$1" = "install" ]; then
     set -x
-    
+
     # Install dependencies
     sudo apt-get -qq update || exit 1
@@ -133,5 +133,5 @@
 elif [ "$1" = "run" ]; then
     set -x
-    
+
     # Expected output filename (bootable image)
     H_OUTPUT_FILENAME=`h_get_arch_config $H_ARCH_CONFIG_OUTPUT_FILENAME`
@@ -150,9 +150,9 @@
     fi
 
-	
+
     # Build it
     make "PROFILE=$H_ARCH" HANDS_OFF=y || exit 1
     test -s "$H_OUTPUT_FILENAME" || exit 1
-    
+
     echo
     echo "HelenOS for $H_ARCH built okay."
@@ -165,5 +165,5 @@
         echo "Repository used is $H_HARBOURS_REPOSITORY."
         echo
-        
+
         H_HELENOS_HOME=`pwd`
         cd "$HOME" || exit 1
@@ -181,7 +181,7 @@
                 echo "machine =" `echo "$H_ARCH" | cut -d/ -f 2`
             ) >hsct.conf || exit 1
-            
+
             # "$HOME/helenos-harbours/hsct.sh" init "$H_HELENOS_HOME" "$H_ARCH" build >/dev/null 2>/dev/null || exit 1
-            
+
             "$HOME/helenos-harbours/hsct.sh" update || exit 1
 
@@ -196,7 +196,7 @@
                     tail -n 100 "run-$HARBOUR.log"
                 fi
-                
+
             done
-            
+
             if [ -n "$FAILED_HARBOURS" ]; then
                 echo
Index: tools/xstruct.py
===================================================================
--- tools/xstruct.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/xstruct.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,5 +72,5 @@
 	def size(self):
 		return struct.calcsize(self._format_)
-	
+
 	def pack(self):
 		args = []
@@ -90,5 +90,5 @@
 				args.append(value)
 		return struct.pack(self._format_, *args)
-	
+
 	def unpack(self, data):
 		values = struct.unpack(self._format_, data)
@@ -100,7 +100,7 @@
 def create(definition):
 	"Create structure object"
-	
+
 	tokens = definition.split(None)
-	
+
 	# Initial byte order tag
 	format = {
@@ -111,5 +111,5 @@
 	inst = Struct()
 	args = []
-	
+
 	# Member tags
 	comment = False
@@ -120,30 +120,30 @@
 				comment = False
 			continue
-		
+
 		if (token == "/*"):
 			comment = True
 			continue
-		
+
 		if (variable != None):
 			subtokens = token.split("[")
-			
+
 			length = None
 			if (len(subtokens) > 1):
 				length = int(subtokens[1].split("]")[0])
 				format += "%d" % length
-			
+
 			format += variable
-			
+
 			inst.__dict__[subtokens[0]] = None
 			args.append((subtokens[0], variable, length))
-			
+
 			variable = None
 			continue
-		
+
 		if (token[0:8] == "padding["):
 			size = token[8:].split("]")[0]
 			format += "%dx" % int(size)
 			continue
-		
+
 		variable = {
 			"char":     lambda: "s",
@@ -152,5 +152,5 @@
 			"uint32_t": lambda: "L",
 			"uint64_t": lambda: "Q",
-			
+
 			"int8_t":   lambda: "b",
 			"int16_t":  lambda: "h",
@@ -158,5 +158,5 @@
 			"int64_t":  lambda: "q"
 		}[token]()
-	
+
 	inst.__dict__['_format_'] = format
 	inst.__dict__['_args_'] = args
Index: tools/xtui.py
===================================================================
--- tools/xtui.py	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ tools/xtui.py	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,5 +35,5 @@
 def call_dlg(dlgcmd, *args, **kw):
 	"Wrapper for calling 'dialog' program"
-	
+
 	indesc, outdesc = os.pipe()
 	pid = os.fork()
@@ -41,15 +41,15 @@
 		os.dup2(outdesc, 2)
 		os.close(indesc)
-		
+
 		dlgargs = [dlgcmd]
 		for key, val in kw.items():
 			dlgargs.append('--' + key)
 			dlgargs.append(val)
-		
+
 		dlgargs += args
 		os.execlp(dlgcmd, *dlgargs)
-	
+
 	os.close(outdesc)
-	
+
 	try:
 		errout = os.fdopen(indesc, 'r')
@@ -61,14 +61,14 @@
 		os.system('reset')
 		raise
-	
+
 	if (not os.WIFEXITED(status)):
 		# Reset terminal
 		os.system('reset')
 		raise EOFError
-	
+
 	status = os.WEXITSTATUS(status)
 	if (status == 255):
 		raise EOFError
-	
+
 	return (status, data)
 
@@ -79,5 +79,5 @@
 except ImportError:
 	newt = False
-	
+
 	dlgcmd = os.environ.get('DIALOG', 'dialog')
 	if (call_dlg(dlgcmd, '--print-maxsize')[0] != 0):
@@ -91,35 +91,35 @@
 def width_fix(screen, width):
 	"Correct width to screen size"
-	
+
 	if (width + width_extra > screen.width):
 		width = screen.width - width_extra
-	
+
 	if (width <= 0):
 		width = screen.width
-	
+
 	return width
 
 def height_fix(screen, height):
 	"Correct height to screen size"
-	
+
 	if (height + height_extra > screen.height):
 		height = screen.height - height_extra
-	
+
 	if (height <= 0):
 		height = screen.height
-	
+
 	return height
 
 def screen_init():
 	"Initialize the screen"
-	
+
 	if (newt):
 		return snack.SnackScreen()
-	
+
 	return None
 
 def screen_done(screen):
 	"Cleanup the screen"
-	
+
 	if (newt):
 		screen.finish()
@@ -127,5 +127,5 @@
 def choice_window(screen, title, text, options, position):
 	"Create options menu"
-	
+
 	maxopt = 0
 	for option in options:
@@ -133,41 +133,41 @@
 		if (length > maxopt):
 			maxopt = length
-	
+
 	width = maxopt
 	height = len(options)
-	
+
 	if (newt):
 		width = width_fix(screen, width + width_extra)
 		height = height_fix(screen, height)
-		
+
 		if (height > 3):
 			large = True
 		else:
 			large = False
-		
+
 		buttonbar = snack.ButtonBar(screen, ('Done', 'Cancel'))
 		textbox = snack.TextboxReflowed(width, text)
 		listbox = snack.Listbox(height, scroll = large, returnExit = 1)
-		
+
 		cnt = 0
 		for option in options:
 			listbox.append(option, cnt)
 			cnt += 1
-		
+
 		if (position != None):
 			listbox.setCurrent(position)
-		
+
 		grid = snack.GridForm(screen, title, 1, 3)
 		grid.add(textbox, 0, 0)
 		grid.add(listbox, 0, 1, padding = (0, 1, 0, 1))
 		grid.add(buttonbar, 0, 2, growx = 1)
-		
+
 		retval = grid.runOnce()
-		
+
 		return (buttonbar.buttonPressed(retval), listbox.current())
 	elif (dialog):
 		if (width < 35):
 			width = 35
-		
+
 		args = []
 		cnt = 0
@@ -175,28 +175,28 @@
 			args.append(str(cnt + 1))
 			args.append(option)
-			
+
 			cnt += 1
-		
+
 		kw = {}
 		if (position != None):
 			kw['default-item'] = str(position + 1)
-		
+
 		status, data = call_dlg(dlgcmd, '--title', title, '--extra-button', '--extra-label', 'Done', '--menu', text, str(height + height_extra), str(width + width_extra), str(cnt), *args, **kw)
-		
+
 		if (status == 1):
 			return ('cancel', None)
-		
+
 		try:
 			choice = int(data) - 1
 		except ValueError:
 			return ('cancel', None)
-		
+
 		if (status == 0):
 			return (None, choice)
-		
+
 		return ('done', choice)
-	
+
 	sys.stdout.write("\n *** %s *** \n%s\n\n" % (title, text))
-	
+
 	maxcnt = len(str(len(options)))
 	cnt = 0
@@ -204,8 +204,8 @@
 		sys.stdout.write("%*s. %s\n" % (maxcnt, cnt + 1, option))
 		cnt += 1
-	
+
 	sys.stdout.write("\n%*s. Done\n" % (maxcnt, '0'))
 	sys.stdout.write("%*s. Quit\n\n" % (maxcnt, 'q'))
-	
+
 	while True:
 		if (position != None):
@@ -217,8 +217,8 @@
 				sys.stdout.write("Selection[0]: ")
 		inp = sys.stdin.readline()
-		
+
 		if (not inp):
 			raise EOFError
-		
+
 		if (not inp.strip()):
 			if (position != None):
@@ -229,32 +229,32 @@
 				else:
 					inp = '0'
-		
+
 		if (inp.strip() == 'q'):
 			return ('cancel', None)
-		
+
 		try:
 			choice = int(inp.strip())
 		except ValueError:
 			continue
-		
+
 		if (choice == 0):
 			return ('done', 0)
-		
+
 		if (choice < 1) or (choice > len(options)):
 			continue
-		
+
 		return (None, choice - 1)
 
 def error_dialog(screen, title, msg):
 	"Print error dialog"
-	
+
 	width = len(msg)
-	
+
 	if (newt):
 		width = width_fix(screen, width)
-		
+
 		buttonbar = snack.ButtonBar(screen, ['Ok'])
 		textbox = snack.TextboxReflowed(width, msg)
-		
+
 		grid = snack.GridForm(screen, title, 1, 2)
 		grid.add(textbox, 0, 0, padding = (0, 0, 0, 1))
Index: uspace/app/barber/barber.c
===================================================================
--- uspace/app/barber/barber.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/barber/barber.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -106,5 +106,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -120,5 +120,5 @@
 	load_t *load = stats_get_load(&count);
 	load_t load_val;
-	
+
 	if ((load != NULL) && (count > 0)) {
 		load_val = load[0];
@@ -126,5 +126,5 @@
 	} else
 		load_val = 0;
-	
+
 	return load_val;
 }
@@ -138,35 +138,35 @@
 	 * a lower threshold.
 	 */
-	
+
 	suseconds_t delta = 1000000 / fps;
 	load_t load = get_load();
-	
+
 	if ((delta >= render_time) && (load < MIN_LOAD))
 		fps++;
-	
+
 	if (fps > MAX_FPS)
 		fps = MAX_FPS;
-	
+
 	/*
 	 * If we lack behind then immediately
 	 * go to the lowest FPS.
 	 */
-	
+
 	if (delta < render_time)
 		fps = MIN_FPS;
-	
+
 	/*
 	 * Crank down the FPS if the current
 	 * load is above an upper threshold.
 	 */
-	
+
 	if (load > MAX_LOAD)
 		fps--;
-	
+
 	if (fps < MIN_FPS)
 		fps = MIN_FPS;
-	
+
 	delta = 1000000 / fps;
-	
+
 	fibril_timer_set(frame_timer, delta, frame_timer_callback, NULL);
 }
@@ -175,14 +175,14 @@
 {
 	pixel_t next_led_color = led_colors[led_color];
-	
+
 	led_color++;
 	if (led_color >= LED_COLORS)
 		led_color = 0;
-	
+
 	list_foreach(led_devs, link, led_dev_t, dev) {
 		if (dev->sess)
 			led_dev_color_set(dev->sess, next_led_color);
 	}
-	
+
 	plan_led_timer();
 }
@@ -192,14 +192,14 @@
 	struct timeval prev;
 	getuptime(&prev);
-	
+
 	frame++;
 	if (frame >= FRAMES)
 		frame = 0;
-	
+
 	update_canvas(frame_canvas, frames[frame]);
-	
+
 	struct timeval cur;
 	getuptime(&cur);
-	
+
 	plan_frame_timer(tv_sub_diff(&cur, &prev));
 }
@@ -211,5 +211,5 @@
 	if (rc != EOK)
 		return;
-	
+
 	service_id_t *svcs;
 	size_t count;
@@ -217,8 +217,8 @@
 	if (rc != EOK)
 		return;
-	
+
 	for (size_t i = 0; i < count; i++) {
 		bool known = false;
-		
+
 		/* Determine whether we already know this device. */
 		list_foreach(led_devs, link, led_dev_t, dev) {
@@ -228,20 +228,20 @@
 			}
 		}
-		
+
 		if (!known) {
 			led_dev_t *dev = (led_dev_t *) calloc(1, sizeof(led_dev_t));
 			if (!dev)
 				continue;
-			
+
 			link_initialize(&dev->link);
 			dev->svc_id = svcs[i];
 			dev->sess = loc_service_connect(svcs[i], INTERFACE_DDF, 0);
-			
+
 			list_append(&dev->link, &led_devs);
 		}
 	}
-	
+
 	// FIXME: Handle LED device removal
-	
+
 	free(svcs);
 }
@@ -253,5 +253,5 @@
 		return 1;
 	}
-	
+
 	list_initialize(&led_devs);
 	errno_t rc = loc_register_cat_change_cb(loc_callback);
@@ -260,5 +260,5 @@
 		return 1;
 	}
-	
+
 	led_timer = fibril_timer_create(NULL);
 	if (!led_timer) {
@@ -266,5 +266,5 @@
 		return 1;
 	}
-	
+
 	frame_timer = fibril_timer_create(NULL);
 	if (!frame_timer) {
@@ -272,8 +272,8 @@
 		return 1;
 	}
-	
+
 	if (!decode_frames())
 		return 1;
-	
+
 	winreg = argv[1];
 	window_t *main_window = window_open(argv[1], NULL,
@@ -283,8 +283,8 @@
 		return 1;
 	}
-	
+
 	frame_canvas = create_canvas(window_root(main_window), NULL,
 	    FRAME_WIDTH, FRAME_HEIGHT, frames[frame]);
-	
+
 	if (!frame_canvas) {
 		window_close(main_window);
@@ -292,15 +292,15 @@
 		return 1;
 	}
-	
+
 	window_resize(main_window, 0, 0, FRAME_WIDTH + 8, FRAME_HEIGHT + 28,
 	    WINDOW_PLACEMENT_RIGHT | WINDOW_PLACEMENT_BOTTOM);
 	window_exec(main_window);
-	
+
 	plan_led_timer();
 	plan_frame_timer(0);
-	
+
 	task_retval(0);
 	async_manager();
-	
+
 	return 0;
 }
Index: uspace/app/bdsh/cmds/builtin_cmds.c
===================================================================
--- uspace/app/bdsh/cmds/builtin_cmds.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/builtin_cmds.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -107,8 +107,8 @@
 
 	cmd += builtin;
-	
+
 	iostate_t *old_iostate = get_iostate();
 	set_iostate(new_iostate);
-	
+
 	if (NULL != cmd->entry) {
 		rc = ((int)cmd->entry(argv, usr));
@@ -116,5 +116,5 @@
 		rc = CL_ENOENT;
 	}
-	
+
 	set_iostate(old_iostate);
 
Index: uspace/app/bdsh/cmds/mod_cmds.c
===================================================================
--- uspace/app/bdsh/cmds/mod_cmds.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/mod_cmds.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -129,5 +129,5 @@
 
 	mod += module;
-	
+
 	iostate_t *old_iostate = get_iostate();
 	set_iostate(new_iostate);
@@ -138,5 +138,5 @@
 		rc = CL_ENOENT;
 	}
-	
+
 	set_iostate(old_iostate);
 
Index: uspace/app/bdsh/cmds/modules/cat/cat.c
===================================================================
--- uspace/app/bdsh/cmds/modules/cat/cat.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/cat/cat.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -110,9 +110,9 @@
 	console_set_pos(console, 0, console_rows-1);
 	console_set_color(console, COLOR_WHITE, COLOR_BLUE, 0);
-	
+
 	printf("ENTER/SPACE/PAGE DOWN - next page, "
 	       "ESC/Q - quit, C - continue unpaged");
 	fflush(stdout);
-	
+
 	console_set_style(console, STYLE_NORMAL);
 }
@@ -122,5 +122,5 @@
 	cons_event_t ev;
 	kbd_event_t *kev;
-	
+
 	while (true) {
 		if (!console_get_event(console, &ev)) {
@@ -129,5 +129,5 @@
 		if (ev.type == CEV_KEY && ev.ev.key.type == KEY_PRESS) {
 			kev = &ev.ev.key;
-			
+
 			if (kev->key == KC_ESCAPE || kev->key == KC_Q) {
 				should_quit = true;
@@ -190,5 +190,5 @@
 
 	bool reading_stdin = dash_represents_stdin && (str_cmp(fname, "-") == 0);
-	
+
 	if (reading_stdin) {
 		fd = fileno(stdin);
@@ -201,5 +201,5 @@
 		}
 	}
-	
+
 	if (fd < 0) {
 		printf("Unable to open %s\n", fname);
@@ -255,5 +255,5 @@
 			}
 		}
-		
+
 		rc = vfs_read(fd, &pos, buff + copied_bytes, bytes_to_read,
 		    &bytes);
@@ -283,10 +283,10 @@
 					paged_char(c);
 				}
-				
+
 			}
 			count += bytes;
 			reads++;
 		}
-		
+
 		if (reading_stdin)
 			fflush(stdout);
@@ -317,5 +317,5 @@
 	sysarg_t rows, cols;
 	errno_t rc;
-	
+
 	/*
 	 * reset global state
@@ -392,5 +392,5 @@
 	if (buffer < 4)
 		buffer = CAT_DEFAULT_BUFLEN;
-	
+
 	if (more) {
 		rc = console_get_size(console, &cols, &rows);
Index: uspace/app/bdsh/cmds/modules/cmp/cmp.c
===================================================================
--- uspace/app/bdsh/cmds/modules/cmp/cmp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/cmp/cmp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -120,5 +120,5 @@
 	unsigned int argc;
 	int c, opt_ind;
-	
+
 	argc = cli_count_args(argv);
 
Index: uspace/app/bdsh/cmds/modules/cp/cp.c
===================================================================
--- uspace/app/bdsh/cmds/modules/cp/cp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/cp/cp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -196,8 +196,8 @@
 		str_cpy(src_path, src_len + 1, src);
 		str_rtrim(src_path, '/');
-		
+
 		/* Get the last component name from the src path */
 		src_fname = get_last_path_component(src_path);
-		
+
 		/* Initialize dest_path with the dest argument */
 		str_cpy(dest_path, PATH_MAX, dest);
@@ -206,5 +206,5 @@
 			/* e.g. cp file_name /data */
 			/* e.g. cp file_name /data/ */
-			
+
 			/* dest is a directory,
 			 * append the src filename to it.
Index: uspace/app/bdsh/cmds/modules/kcon/kcon.c
===================================================================
--- uspace/app/bdsh/cmds/modules/kcon/kcon.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/kcon/kcon.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,8 +43,8 @@
 {
 	printf("`kcon' switches to the kernel debug console.\n");
-	
+
 	if (level != HELP_SHORT)
 		printf("Usage: %s\n", cmdname);
-	
+
 	return;
 }
@@ -54,5 +54,5 @@
 {
 	unsigned int argc = cli_count_args(argv);
-	
+
 	if (argc != 1) {
 		printf("%s - incorrect number of arguments. Try `%s --help'\n",
@@ -60,5 +60,5 @@
 		return CMD_FAILURE;
 	}
-	
+
 	if (console_kcon())
 		return CMD_SUCCESS;
Index: uspace/app/bdsh/cmds/modules/ls/ls.c
===================================================================
--- uspace/app/bdsh/cmds/modules/ls/ls.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/ls/ls.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -111,5 +111,5 @@
 	struct dir_elem_t const *da = a;
 	struct dir_elem_t const *db = b;
-	
+
 	if ((da->s.is_directory && db->s.is_file) ||
 	    ((da->s.is_directory == db->s.is_directory) &&
@@ -141,5 +141,5 @@
 	struct dir_elem_t *tosort;
 	struct dirent *dp;
-	
+
 	if (!dirp)
 		return -1;
@@ -150,5 +150,5 @@
 		return -1;
 	}
-	
+
 	tosort = (struct dir_elem_t *) malloc(alloc_blocks * sizeof(*tosort));
 	if (!tosort) {
@@ -157,9 +157,9 @@
 		return -1;
 	}
-	
+
 	while ((dp = readdir(dirp))) {
 		if (nbdirs + 1 > alloc_blocks) {
 			alloc_blocks += alloc_blocks;
-			
+
 			tmp = (struct dir_elem_t *) realloc(tosort,
 			    alloc_blocks * sizeof(struct dir_elem_t));
@@ -170,5 +170,5 @@
 			tosort = tmp;
 		}
-		
+
 		/* fill the name field */
 		tosort[nbdirs].name = (char *) malloc(str_size(dp->d_name) + 1);
@@ -189,8 +189,8 @@
 		}
 	}
-	
+
 	if (ls.sort)
 		qsort(&tosort[0], nbdirs, sizeof(struct dir_elem_t), ls_cmp);
-	
+
 	for (i = 0; i < nbdirs; i++)
 		ls_print(&tosort[i]);
@@ -214,5 +214,5 @@
 		}
 	}
-	
+
 out:
 	for(i = 0; i < nbdirs; i++)
@@ -239,5 +239,5 @@
 	DIR *subdirp;
 	struct dir_elem_t *dir_list;
-	
+
 	const char * const trailing_slash = "/";
 
@@ -294,5 +294,5 @@
 		}
 	}
-   
+
 	ret = CMD_SUCCESS;
 
@@ -355,5 +355,5 @@
 
 	argc = cli_count_args(argv);
-	
+
 	for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) {
 		c = getopt_long(argc, argv, "hur", long_options, &opt_ind);
Index: uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
===================================================================
--- uspace/app/bdsh/cmds/modules/mkfile/mkfile.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/mkfile/mkfile.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -171,5 +171,5 @@
 	if (create_sparse && file_size > 0) {
 		const char byte = 0x00;
-		
+
 		pos = file_size - 1;
 		rc = vfs_write(fd, &pos, &byte, sizeof(char), &nwritten);
Index: uspace/app/bdsh/cmds/modules/printf/printf.c
===================================================================
--- uspace/app/bdsh/cmds/modules/printf/printf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/printf/printf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 	}
 
-	
+
 	return;
 }
Index: uspace/app/bdsh/cmds/modules/rm/rm.c
===================================================================
--- uspace/app/bdsh/cmds/modules/rm/rm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/rm/rm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -189,5 +189,5 @@
 
 	closedir(dirp);
-	
+
 	return ret;
 }
Index: uspace/app/bdsh/cmds/modules/touch/touch.c
===================================================================
--- uspace/app/bdsh/cmds/modules/touch/touch.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/cmds/modules/touch/touch.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,5 +69,5 @@
 		    cmdname);
 	}
-	
+
 	return;
 }
@@ -85,7 +85,7 @@
 	int fd = -1;
 	char *buff = NULL;
-	
+
 	DIR *dirp;
-	
+
 	for (c = 0, optreset = 1, optind = 0, longind = 0; c != -1; ) {
 		c = getopt_long(argc, argv, "c", long_options, &longind);
@@ -96,5 +96,5 @@
 		}
 	}
-	
+
 	if (argc - optind < 1) {
 		printf("%s: Incorrect number of arguments. Try `help %s extended'\n",
@@ -102,5 +102,5 @@
 		return CMD_FAILURE;
 	}
-	
+
 	for (i = optind; argv[i] != NULL; i++) {
 		buff = str_dup(argv[i]);
@@ -110,5 +110,5 @@
 			continue;
 		}
-		
+
 		dirp = opendir(buff);
 		if (dirp) {
@@ -119,5 +119,5 @@
 			continue;
 		}
-		
+
 		/* Check whether file exists if -c (--no-create) option is given */
 		if ((!no_create) ||
@@ -128,5 +128,5 @@
 			}
 		}
-		
+
 		if (fd < 0) {
 			cli_error(CL_EFAIL, "Could not update or create `%s'", buff);
@@ -138,8 +138,8 @@
 			fd = -1;
 		}
-		
+
 		free(buff);
 	}
-	
+
 	if (ret)
 		return CMD_FAILURE;
Index: uspace/app/bdsh/compl.c
===================================================================
--- uspace/app/bdsh/compl.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/compl.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -95,5 +95,5 @@
 	char *dirname = NULL;
 	errno_t retval;
-	
+
 	token_t *tokens = calloc(WORD_MAX, sizeof(token_t));
 	if (tokens == NULL) {
@@ -101,5 +101,5 @@
 		goto error;
 	}
-	
+
 	size_t pref_size;
 	char *rpath_sep;
@@ -108,5 +108,5 @@
 	ssize_t current_token;
 	size_t tokens_length;
-	
+
 	cs = calloc(1, sizeof(compl_t));
 	if (!cs) {
@@ -114,5 +114,5 @@
 		goto error;
 	}
-	
+
 	/* Convert text buffer to string */
 	stext = wstr_to_astr(text);
@@ -121,5 +121,5 @@
 		goto error;
 	}
-	
+
 	/* Tokenize the input string */
 	retval = tok_init(&tok, stext, tokens, WORD_MAX);
@@ -127,10 +127,10 @@
 		goto error;
 	}
-	
+
 	retval = tok_tokenize(&tok, &tokens_length);
 	if (retval != EOK) {
 		goto error;
 	}
-	
+
 	/* Find the current token */
 	for (current_token = 0; current_token < (ssize_t) tokens_length;
@@ -138,5 +138,5 @@
 		token_t *t = &tokens[current_token];
 		size_t end = t->char_start + t->char_length;
-		
+
 		/*
 		 * Check if the caret lies inside the token or immediately
@@ -147,13 +147,13 @@
 		}
 	}
-	
+
 	if (tokens_length == 0)
 		current_token = -1;
-	
+
 	if ((current_token >= 0) && (tokens[current_token].type != TOKTYPE_SPACE))
 		*cstart = tokens[current_token].char_start;
 	else
 		*cstart = pos;
-	
+
 	/*
 	 * Extract the prefix being completed
@@ -183,5 +183,5 @@
 	if ((prev_token >= 0) && (tokens[prev_token].type == TOKTYPE_SPACE))
 		prev_token--;
-	
+
 	/*
 	 * It is a command if it is the first token or if it immediately
@@ -236,5 +236,5 @@
 
 	cs->prefix_len = str_length(cs->prefix);
-	
+
 	tok_fini(&tok);
 
@@ -244,5 +244,5 @@
 error:
 	/* Error cleanup */
-	
+
 	tok_fini(&tok);
 
@@ -258,17 +258,17 @@
 	if ((cs != NULL) && (cs->prefix != NULL))
 		free(cs->prefix);
-	
+
 	if (dirname != NULL)
 		free(dirname);
-	
+
 	if (prefix != NULL)
 		free(prefix);
-	
+
 	if (stext != NULL)
 		free(stext);
-	
+
 	if (cs != NULL)
 		free(cs);
-	
+
 	if (tokens != NULL)
 		free(tokens);
Index: uspace/app/bdsh/exec.c
===================================================================
--- uspace/app/bdsh/exec.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/exec.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -105,9 +105,9 @@
 	tmp = str_dup(find_command(cmd));
 	free(found);
-	
+
 	files[0] = io->stdin;
 	files[1] = io->stdout;
 	files[2] = io->stderr;
-	
+
 	for (i = 0; i < 3 && files[i] != NULL; i++) {
 		vfs_fhandle(files[i], &file_handles[i]);
@@ -123,5 +123,5 @@
 		return 1;
 	}
-	
+
 	rc = task_wait(&twait, &texit, &retval);
 	if (rc != EOK) {
Index: uspace/app/bdsh/input.c
===================================================================
--- uspace/app/bdsh/input.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/input.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,5 +71,5 @@
 		return ENOMEM;
 	token_t *tokens = tokens_buf;
-	
+
 	char *cmd[WORD_MAX];
 	errno_t rc = EOK;
@@ -89,5 +89,5 @@
 		goto finit;
 	}
-	
+
 	size_t tokens_length;
 	rc = tok_tokenize(&tok, &tokens_length);
@@ -95,14 +95,14 @@
 		goto finit;
 	}
-	
+
 	if (tokens_length > 0 && tokens[0].type == TOKTYPE_SPACE) {
 		tokens++;
 		tokens_length--;
 	}
-	
+
 	if (tokens_length > 0 && tokens[tokens_length-1].type == TOKTYPE_SPACE) {
 		tokens_length--;
 	}
-	
+
 	/* Until full support for pipes is implemented, allow for a simple case:
 	 * [from <file> |] command [| to <file>]
@@ -121,10 +121,10 @@
 		}
 	}
-	
+
 	unsigned int cmd_token_start = 0;
 	unsigned int cmd_token_end = tokens_length;
-	
+
 	processed_pipes = 0;
-	
+
 	/* Check if the first part (from <file> |) is present */
 	if (pipe_count > 0 && (pipe_pos[0] == 3 || pipe_pos[0] == 4) && str_cmp(tokens[0].text, "from") == 0) {
@@ -134,5 +134,5 @@
 		processed_pipes++;
 	}
-	
+
 	/* Check if the second part (| to <file>) is present */
 	if ((pipe_count - processed_pipes) > 0 &&
@@ -146,5 +146,5 @@
 		processed_pipes++;
 	}
-	
+
 	if (processed_pipes != pipe_count) {
 		print_pipe_usage();
@@ -152,5 +152,5 @@
 		goto finit;
 	}
-	
+
 	/* Convert tokens of the command to string array */
 	unsigned int cmd_pos = 0;
@@ -161,5 +161,5 @@
 	}
 	cmd[cmd_pos++] = NULL;
-	
+
 	if (cmd[0] == NULL) {
 		print_pipe_usage();
@@ -167,5 +167,5 @@
 		goto finit;
 	}
-	
+
 	iostate_t new_iostate = {
 		.stdin = stdin,
@@ -173,8 +173,8 @@
 		.stderr = stderr
 	};
-	
+
 	FILE *from = NULL;
 	FILE *to = NULL;
-	
+
 	if (redir_from) {
 		from = fopen(redir_from, "r");
@@ -186,6 +186,6 @@
 		new_iostate.stdin = from;
 	}
-	
-	
+
+
 	if (redir_to) {
 		to = fopen(redir_to, "w");
@@ -203,5 +203,5 @@
 		rc = EINVAL;
 	}
-	
+
 finit_with_files:
 	if (from != NULL) {
@@ -211,5 +211,5 @@
 		fclose(to);
 	}
-	
+
 finit:
 	if (NULL != usr->line) {
@@ -230,5 +230,5 @@
 	printf("from filename | command ... | to filename\n");
 	printf("command ... | to filename\n");
-	
+
 }
 
@@ -236,15 +236,15 @@
 {
 	int id = 0;
-	
+
 	/* We have rubbish */
 	if (NULL == cmd[0]) {
 		return CL_ENOENT;
 	}
-	
+
 	/* Is it a builtin command ? */
 	if ((id = (is_builtin(cmd[0]))) > -1) {
 		return run_builtin(id, cmd, usr, new_iostate);
 	}
-	
+
 	/* Is it a module ? */
 	if ((id = (is_module(cmd[0]))) > -1) {
@@ -260,5 +260,5 @@
 	char *str;
 	errno_t rc;
-	
+
 	tinput_set_prompt(tinput, usr->prompt);
 
Index: uspace/app/bdsh/scli.c
===================================================================
--- uspace/app/bdsh/scli.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/scli.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -99,5 +99,5 @@
 {
 	errno_t ret = 0;
-	
+
 	stdiostate.stdin = stdin;
 	stdiostate.stdout = stdout;
Index: uspace/app/bdsh/tok.c
===================================================================
--- uspace/app/bdsh/tok.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/tok.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,22 +59,22 @@
 	tok->in_char_offset = 0;
 	tok->last_in_char_offset = 0;
-	
+
 	tok->outtok = out_tokens;
 	tok->outtok_offset = 0;
 	tok->outtok_size = max_tokens;
-	
+
 	/* Prepare a buffer where all the token strings will be stored */
 	size_t len = str_size(input) + max_tokens + 1;
 	char *tmp = malloc(len);
-	
+
 	if (tmp == NULL) {
 		return ENOMEM;
 	}
-	
+
 	tok->outbuf = tmp;
 	tok->outbuf_offset = 0;
 	tok->outbuf_size = len;
 	tok->outbuf_last_start = 0;
-	
+
 	return EOK;
 }
@@ -93,5 +93,5 @@
 	errno_t rc;
 	wchar_t next_char;
-	
+
 	/* Read the input line char by char and append tokens */
 	while ((next_char = tok_look_char(tok)) != 0) {
@@ -113,5 +113,5 @@
 			}
 			tok_push_token(tok);
-			
+
 		}
 		else if (next_char == '|') {
@@ -125,12 +125,12 @@
 				}
 			}
-			
+
 			tok_start_token(tok, TOKTYPE_PIPE);
-			
+
 			rc = tok_push_char(tok, tok_get_char(tok));
 			if (rc != EOK) {
 				return rc;
 			}
-			
+
 			rc = tok_push_token(tok);
 			if (rc != EOK) {
@@ -163,5 +163,5 @@
 		}
 	}
-	
+
 	/* Push the last token */
 	if (tok_pending_chars(tok)) {
@@ -171,7 +171,7 @@
 		}
 	}
-	
+
 	*tokens_length = tok->outtok_offset;
-	
+
 	return EOK;
 }
@@ -182,5 +182,5 @@
 	errno_t rc;
 	wchar_t next_char;
-	
+
 	while ((next_char = tok_look_char(tok)) != 0) {
 		if (next_char == '\'') {
@@ -193,5 +193,5 @@
 					return rc;
 				}
-				
+
 				/* Swallow the additional one in the input */
 				tok_get_char(tok);
@@ -209,5 +209,5 @@
 		}
 	}
-	
+
 	/* If we are here, the string run to the end without being closed */
 	return EINVAL;
@@ -249,9 +249,9 @@
 		return EOVERFLOW;
 	}
-	
+
 	if (tok->outbuf_offset >= tok->outbuf_size) {
 		return EOVERFLOW;
 	}
-	
+
 	tok->outbuf[tok->outbuf_offset++] = 0;
 	token_t *tokinfo = &tok->outtok[tok->outtok_offset++];
@@ -263,9 +263,9 @@
 	tokinfo->char_length = tok->in_char_offset - tok->last_in_char_offset;
 	tok->outbuf_last_start = tok->outbuf_offset;
-	
+
 	/* We have consumed the first char of the next token already */
 	tok->last_in_offset = tok->in_offset;
 	tok->last_in_char_offset = tok->in_char_offset;
-	
+
 	return EOK;
 }
Index: uspace/app/bdsh/tok.h
===================================================================
--- uspace/app/bdsh/tok.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bdsh/tok.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,10 +51,10 @@
 	size_t in_char_offset;
 	size_t last_in_char_offset;
-	
+
 	char *outbuf;
 	size_t outbuf_offset;
 	size_t outbuf_size;
 	size_t outbuf_last_start;
-	
+
 	token_t *outtok;
 	token_type_t current_type;
Index: uspace/app/blkdump/blkdump.c
===================================================================
--- uspace/app/blkdump/blkdump.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/blkdump/blkdump.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,5 +72,5 @@
 	aoff64_t dev_nblocks;
 	bool toc = false;
-	
+
 	if (argc < 2) {
 		printf(NAME ": Error, argument missing.\n");
@@ -91,5 +91,5 @@
 		relative = true;
 	}
-	
+
 	if (str_cmp(*argv, "--offset") == 0) {
 		--argc; ++argv;
@@ -109,5 +109,5 @@
 		--argc; ++argv;
 	}
-	
+
 	if (str_cmp(*argv, "--count") == 0) {
 		--argc; ++argv;
@@ -241,9 +241,9 @@
 	size_t pos;
 	uint8_t b;
-	
+
 	if (length > bytes_per_row) {
 		length = bytes_per_row;
 	}
-	
+
 	/* Print hexadecimal values */
 	for (pos = 0; pos < length; pos++) {
@@ -253,5 +253,5 @@
 		printf("%02hhX ", data[pos]);
 	}
-	
+
 	/* Pad with spaces if we have less than 16 bytes */
 	for (pos = length; pos < bytes_per_row; pos++) {
@@ -261,5 +261,5 @@
 		printf("   ");
 	}
-	
+
 	/* Print printable characters */
 	for (pos = 0; pos < length; pos++) {
Index: uspace/app/bnchmark/bnchmark.c
===================================================================
--- uspace/app/bnchmark/bnchmark.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/bnchmark/bnchmark.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,5 +64,5 @@
 	struct timeval start_time;
 	gettimeofday(&start_time, NULL);
-	
+
 	errno_t rc = fn(data);
 	if (rc != EOK) {
@@ -70,8 +70,8 @@
 		return rc;
 	}
-	
+
 	struct timeval final_time;
 	gettimeofday(&final_time, NULL);
-	
+
 	/* Calculate time difference in milliseconds */
 	*result = ((final_time.tv_usec - start_time.tv_usec) / 1000) +
@@ -84,8 +84,8 @@
 	char *path = (char *) data;
 	char *buf = malloc(BUFSIZE);
-	
+
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	FILE *file = fopen(path, "r");
 	if (file == NULL) {
@@ -94,5 +94,5 @@
 		return EIO;
 	}
-	
+
 	while (!feof(file)) {
 		fread(buf, 1, BUFSIZE, file);
@@ -104,5 +104,5 @@
 		}
 	}
-	
+
 	fclose(file);
 	free(buf);
@@ -113,5 +113,5 @@
 {
 	char *path = (char *) data;
-	
+
 	DIR *dir = opendir(path);
 	if (dir == NULL) {
@@ -121,9 +121,9 @@
 
 	struct dirent *dp;
-	
+
 	while ((dp = readdir(dir))) {
 		/* Do nothing */
 	}
-	
+
 	closedir(dir);
 	return EOK;
@@ -141,5 +141,5 @@
 	char *test_type = NULL;
 	char *endptr;
-	
+
 	if (argc < 5) {
 		fprintf(stderr, NAME ": Error, argument missing.\n");
@@ -147,5 +147,5 @@
 		return 1;
 	}
-	
+
 	if (argc > 5) {
 		fprintf(stderr, NAME ": Error, too many arguments.\n");
@@ -153,5 +153,5 @@
 		return 1;
 	}
-	
+
 	// Skip program name
 	--argc; ++argv;
@@ -163,5 +163,5 @@
 		return 1;
 	}
-	
+
 	--argc; ++argv;
 	test_type = *argv;
@@ -172,5 +172,5 @@
 	--argc; ++argv;
 	path = *argv;
-	
+
 	if (str_cmp(test_type, "sequential-file-read") == 0) {
 		fn = sequential_read_file;
@@ -191,5 +191,5 @@
 			return 1;
 		}
-	
+
 		printf("%s;%s;%s;%lu;ms\n", test_type, path, log_str, milliseconds_taken);
 	}
Index: uspace/app/df/df.c
===================================================================
--- uspace/app/df/df.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/df/df.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 			display_blocks = true;
 			break;
- 
+
 		case ':':
 			fprintf(stderr, "Option -%c requires an operand\n",
Index: uspace/app/dnscfg/dnscfg.c
===================================================================
--- uspace/app/dnscfg/dnscfg.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/dnscfg/dnscfg.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 		return EINVAL;
 	}
-	
+
 	if (argc > 1) {
 		printf("%s: Too many arguments.\n", NAME);
@@ -69,15 +69,15 @@
 		return EINVAL;
 	}
-	
+
 	char *srv_addr  = argv[0];
-	
+
 	inet_addr_t addr;
 	errno_t rc = inet_addr_parse(srv_addr, &addr, NULL);
-	
+
 	if (rc != EOK) {
 		printf("%s: Invalid address format '%s'.\n", NAME, srv_addr);
 		return rc;
 	}
-	
+
 	rc = dnsr_set_srvaddr(&addr);
 	if (rc != EOK) {
@@ -86,5 +86,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -94,5 +94,5 @@
 	inet_addr_t addr;
 	inet_addr_any(&addr);
-	
+
 	errno_t rc = dnsr_set_srvaddr(&addr);
 	if (rc != EOK) {
@@ -101,5 +101,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -113,5 +113,5 @@
 		return rc;
 	}
-	
+
 	char *addr_str;
 	rc = inet_addr_format(&addr, &addr_str);
@@ -120,5 +120,5 @@
 		return rc;
 	}
-	
+
 	printf("Nameserver: %s\n", addr_str);
 	free(addr_str);
@@ -139,5 +139,5 @@
 		return 1;
 	}
-	
+
 	return 0;
 }
Index: uspace/app/dnsres/dnsres.c
===================================================================
--- uspace/app/dnsres/dnsres.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/dnsres/dnsres.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,8 +53,8 @@
 		return 1;
 	}
-	
+
 	uint16_t ver;
 	char *hname;
-	
+
 	if (str_cmp(argv[1], "-4") == 0) {
 		if (argc < 3) {
@@ -62,5 +62,5 @@
 			return 1;
 		}
-		
+
 		ver = ip_v4;
 		hname = argv[2];
@@ -70,5 +70,5 @@
 			return 1;
 		}
-		
+
 		ver = ip_v6;
 		hname = argv[2];
@@ -77,5 +77,5 @@
 		hname = argv[1];
 	}
-	
+
 	dnsr_hostinfo_t *hinfo;
 	errno_t rc = dnsr_name2host(hname, &hinfo, ver);
@@ -84,5 +84,5 @@
 		return rc;
 	}
-	
+
 	char *saddr;
 	rc = inet_addr_format(&hinfo->addr, &saddr);
@@ -92,15 +92,15 @@
 		return rc;
 	}
-	
+
 	printf("Host name: %s\n", hname);
-	
+
 	if (str_cmp(hname, hinfo->cname) != 0)
 		printf("Canonical name: %s\n", hinfo->cname);
-	
+
 	printf("Address: %s\n", saddr);
-	
+
 	dnsr_hostinfo_destroy(hinfo);
 	free(saddr);
-	
+
 	return 0;
 }
Index: uspace/app/download/main.c
===================================================================
--- uspace/app/download/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/download/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -81,7 +81,7 @@
 		goto error;
 	}
-	
+
 	i = 1;
-	
+
 	if (str_cmp(argv[i], "-o") == 0) {
 		++i;
@@ -91,5 +91,5 @@
 			goto error;
 		}
-		
+
 		ofname = argv[i++];
 		ofile = fopen(ofname, "wb");
@@ -100,5 +100,5 @@
 		}
 	}
-	
+
 	if (argc != i + 1) {
 		syntax_print();
@@ -106,5 +106,5 @@
 		goto error;
 	}
-	
+
 	uri = uri_parse(argv[i]);
 	if (uri == NULL) {
@@ -113,5 +113,5 @@
 		goto error;
 	}
-	
+
 	if (!uri_validate(uri)) {
 		fprintf(stderr, "The URI is invalid\n");
@@ -119,7 +119,7 @@
 		goto error;
 	}
-	
+
 	/* TODO uri_normalize(uri) */
-	
+
 	if (str_cmp(uri->scheme, "http") != 0) {
 		fprintf(stderr, "Only http scheme is supported at the moment\n");
@@ -127,5 +127,5 @@
 		goto error;
 	}
-	
+
 	if (uri->host == NULL) {
 		fprintf(stderr, "host not set\n");
@@ -133,5 +133,5 @@
 		goto error;
 	}
-	
+
 	uint16_t port = 80;
 	if (uri->port != NULL) {
@@ -143,5 +143,5 @@
 		}
 	}
-	
+
 	const char *path = uri->path;
 	if (path == NULL || *path == 0)
@@ -163,5 +163,5 @@
 		}
 	}
-	
+
 	http_request_t *req = http_request_create("GET", server_path);
 	free(server_path);
@@ -171,5 +171,5 @@
 		goto error;
 	}
-	
+
 	rc = http_headers_append(&req->headers, "Host", uri->host);
 	if (rc != EOK) {
@@ -177,5 +177,5 @@
 		goto error;
 	}
-	
+
 	rc = http_headers_append(&req->headers, "User-Agent", USER_AGENT);
 	if (rc != EOK) {
@@ -183,5 +183,5 @@
 		goto error;
 	}
-	
+
 	http = http_create(uri->host, port);
 	if (http == NULL) {
@@ -190,5 +190,5 @@
 		goto error;
 	}
-	
+
 	rc = http_connect(http);
 	if (rc != EOK) {
@@ -197,5 +197,5 @@
 		goto error;
 	}
-	
+
 	rc = http_send_request(http, req);
 	if (rc != EOK) {
@@ -204,5 +204,5 @@
 		goto error;
 	}
-	
+
 	http_response_t *response = NULL;
 	rc = http_receive_response(&http->recv_buffer, &response, 16 * 1024,
@@ -213,5 +213,5 @@
 		goto error;
 	}
-	
+
 	if (response->status != 200) {
 		fprintf(stderr, "Server returned status %d %s\n", response->status,
@@ -224,15 +224,15 @@
 			goto error;
 		}
-		
+
 		size_t body_size;
 		while ((rc = recv_buffer(&http->recv_buffer, buf, buf_size, &body_size)) == EOK && body_size > 0) {
 			fwrite(buf, 1, body_size, ofile != NULL ? ofile : stdout);
 		}
-		
+
 		if (rc != EOK) {
 			fprintf(stderr, "Failed receiving body: %s", str_error(rc));
 		}
 	}
-	
+
 	free(buf);
 	http_destroy(http);
Index: uspace/app/edit/edit.c
===================================================================
--- uspace/app/edit/edit.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/edit/edit.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -89,5 +89,5 @@
 	 */
 	int ideal_column;
-	
+
 	char *previous_search;
 	bool previous_search_reverse;
@@ -533,8 +533,8 @@
 		pane.rflags |= REDRAW_TEXT;
 	}
-	
+
 	if (update_ideal_column)
 		pane.ideal_column = c_new.column;
-	
+
 	caret_update();
 }
@@ -609,5 +609,5 @@
 	const char *old_fname = (doc.file_name != NULL) ? doc.file_name : "";
 	char *fname;
-	
+
 	fname = prompt("Save As", old_fname);
 	if (fname == NULL) {
@@ -816,5 +816,5 @@
 
 	/* Clear the remaining rows if file is short. */
-	
+
 	int i;
 	sysarg_t j;
@@ -906,5 +906,5 @@
 				console_flush(con);
 			}
-	
+
 			if ((csel_end.row == rbc.row) && (csel_end.column == s_column)) {
 				console_flush(con);
@@ -912,5 +912,5 @@
 				console_flush(con);
 			}
-	
+
 			c = str_decode(row_buf, &pos, size);
 			if (c != '\t') {
@@ -1218,8 +1218,8 @@
 	coord.row = row;
 	coord.column = column;
-	
+
 	spt_t pt;
 	sheet_get_cell_pt(doc.sh, &coord, align_dir, &pt);
-	
+
 	caret_move(pt, select, true);
 }
@@ -1263,5 +1263,5 @@
 {
 	char *sline;
-	
+
 	sline = prompt("Go to line", "");
 	if (sline == NULL) {
@@ -1269,5 +1269,5 @@
 		return;
 	}
-	
+
 	char *endptr;
 	int line = strtol(sline, &endptr, 10);
@@ -1278,5 +1278,5 @@
 	}
 	free(sline);
-	
+
 	caret_move_absolute(line, pane.ideal_column, dir_before, false);
 }
@@ -1337,13 +1337,13 @@
 {
 	char *pattern;
-	
+
 	const char *prompt_text = "Find next";
 	if (reverse)
 		prompt_text = "Find previous";
-	
+
 	const char *default_value = "";
 	if (pane.previous_search)
 		default_value = pane.previous_search;
-	
+
 	pattern = prompt(prompt_text, default_value);
 	if (pattern == NULL) {
@@ -1351,10 +1351,10 @@
 		return;
 	}
-	
+
 	if (pane.previous_search)
 		free(pane.previous_search);
 	pane.previous_search = pattern;
 	pane.previous_search_reverse = reverse;
-	
+
 	search(pattern, reverse);
 }
@@ -1366,5 +1366,5 @@
 		return;
 	}
-	
+
 	search(pane.previous_search, pane.previous_search_reverse);
 }
@@ -1373,8 +1373,8 @@
 {
 	status_display("Searching...");
-	
+
 	spt_t sp, producer_pos;
 	tag_get_pt(&pane.caret_pos, &sp);
-	
+
 	/* Start searching on the position before/after caret */
 	if (!reverse) {
@@ -1385,9 +1385,9 @@
 	}
 	producer_pos = sp;
-	
+
 	search_ops_t ops = search_spt_ops;
 	if (reverse)
 		ops = search_spt_reverse_ops;
-	
+
 	search_t *search = search_init(pattern, &producer_pos, ops, reverse);
 	if (search == NULL) {
@@ -1395,5 +1395,5 @@
 		return;
 	}
-	
+
 	match_t match;
 	errno_t rc = search_next_match(search, &match);
@@ -1402,5 +1402,5 @@
 		search_fini(search);
 	}
-	
+
 	if (match.end) {
 		status_display("Match found.");
@@ -1423,5 +1423,5 @@
 		status_display("Not found.");
 	}
-	
+
 	search_fini(search);
 }
@@ -1716,5 +1716,5 @@
 	console_set_pos(con, 0, scr_rows - 1);
 	console_set_style(con, STYLE_INVERTED);
-	
+
 	int pos = -(scr_columns - 3);
 	printf(" %*s ", pos, str);
Index: uspace/app/edit/search.c
===================================================================
--- uspace/app/edit/search.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/edit/search.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 	if (search == NULL)
 		return NULL;
-	
+
 	wchar_t *p = str_to_awstr(pattern);
 	if (p == NULL) {
@@ -55,7 +55,7 @@
 		return NULL;
 	}
-	
+
 	search->pattern_length = wstr_length(p);
-	
+
 	if (reverse) {
 		/* Reverse the pattern */
@@ -68,7 +68,7 @@
 		}
 	}
-	
+
 	search->pattern = p;
-	
+
 	search->client_data = client_data;
 	search->ops = ops;
@@ -79,7 +79,7 @@
 		return NULL;
 	}
-	
+
 	search->pattern_pos = 0;
-	
+
 	search->back_table[0] = -1;
 	search->back_table[1] = 0;
@@ -101,5 +101,5 @@
 		}
 	}
-	
+
 	return search;
 }
@@ -108,5 +108,5 @@
 {
 	search_equals_fn eq = s->ops.equals;
-	
+
 	wchar_t cur_char;
 	errno_t rc = EOK;
@@ -129,8 +129,8 @@
 		}
 	}
-	
+
 	match->end = NULL;
 	match->length = 0;
-	
+
 	return rc;
 }
@@ -140,5 +140,5 @@
 	free(search->pattern);
 	free(search->back_table);
-	
+
 }
 
Index: uspace/app/edit/sheet.c
===================================================================
--- uspace/app/edit/sheet.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/edit/sheet.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -263,5 +263,5 @@
 	coord.row = row;
 	coord.column = 65536;
-	
+
 	sheet_get_cell_pt(sh, &coord, dir_before, &pt);
 	spt_get_coord(&pt, &coord);
Index: uspace/app/fontviewer/fontviewer.c
===================================================================
--- uspace/app/fontviewer/fontviewer.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/fontviewer/fontviewer.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,9 +68,9 @@
 {
 	kbd_event_t *event = (kbd_event_t *) data;
-	
+
 	if (event->type == KEY_PRESS) {
 		if (event->c == 'q')
 			exit(0);
-		
+
 		if (event->key == KC_UP || event->key == KC_DOWN) {
 			uint16_t increment = (event->mods & KM_SHIFT) ? 10 : 1;
@@ -78,5 +78,5 @@
 			if (event->key == KC_UP)
 				points += increment;
-		
+
 			if (event->key == KC_DOWN) {
 				if (points <= increment) {
@@ -87,13 +87,13 @@
 				}
 			}
-			
+
 			if (points < 1)
 				points = 1;
 		}
-		
+
 		if (event->c == 'm')
 			show_metrics = !show_metrics;
 	}
-	
+
 	errno_t rc = draw();
 	if (rc != EOK) {
@@ -109,5 +109,5 @@
 		return embedded_font_create(font, points);
 	}
-	
+
 	return pcf_font_create(font, font_path, points);
 }
@@ -127,5 +127,5 @@
 	if (y2 < y1)
 		return;
-	
+
 	drawctx_set_source(drawctx, source);
 	drawctx_transfer(drawctx, x1, y1, x2 - x1 + 1, y2 - y1 + 1);
@@ -148,5 +148,5 @@
 	int ret = vasprintf(&str, fmt, args);
 	va_end(args);
-	
+
 	if (ret >= 0) {
 		drawctx_set_source(drawctx, source);
@@ -156,5 +156,5 @@
 		free(str);
 	}
-	
+
 	return ret;
 }
@@ -172,5 +172,5 @@
 	source_t leading_bg = rgb(170, 238, 255);
 	source_t leading_fg = rgb(0, 170, 212);
-	
+
 	font_t *font;
 	errno_t rc = create_font(&font, points);
@@ -179,5 +179,5 @@
 		return rc;
 	}
-	
+
 	font_t *info_font;
 	rc = embedded_font_create(&info_font, 16);
@@ -186,10 +186,10 @@
 		return rc;
 	}
-	
+
 	font_metrics_t font_metrics;
 	rc = font_get_metrics(font, &font_metrics);
 	if (rc != EOK)
 		return rc;
-	
+
 	surface_coord_t top = 50;
 	metric_t ascender_top = top;
@@ -200,9 +200,9 @@
 	drawctx_t drawctx;
 	drawctx_init(&drawctx, surface);
-	
+
 	drawctx_set_source(&drawctx, &background);
 	drawctx_transfer(&drawctx, 0, 0,
 	    width, height);
-	
+
 	if (show_metrics) {
 		horizontal_rectangle(&drawctx, 0, ascender_top, width,
@@ -210,10 +210,10 @@
 		horizontal_line(&drawctx, ascender_top, 0, width,
 		    &ascender_fg);
-		
+
 		horizontal_rectangle(&drawctx, 0, descender_top, width,
 		    leading_top - 1, &descender_bg);
 		horizontal_line(&drawctx, descender_top, 0, width,
 		    &descender_fg);
-		
+
 		horizontal_rectangle(&drawctx, 0, leading_top,
 		    width, line_bottom - 1, &leading_bg);
@@ -221,9 +221,9 @@
 		    &leading_fg);
 	}
-	
+
 	drawctx_set_source(&drawctx, &glyphs);
 	drawctx_set_font(&drawctx, font);
 	drawctx_print(&drawctx, "Čaj'_", 0, top);
-	
+
 	if (show_metrics) {
 		surface_coord_t infos_top = line_bottom + 10;
@@ -239,5 +239,5 @@
 
 	}
-	
+
 	font_release(font);
 	return EOK;
@@ -250,5 +250,5 @@
 		return 1;
 	}
-	
+
 	if (argc < 3) {
 		font_path = NULL;
@@ -257,5 +257,5 @@
 		font_path = argv[2];
 	}
-	
+
 	main_window = window_open(argv[1], NULL, WINDOW_MAIN, "fontviewer");
 	if (!main_window) {
@@ -263,5 +263,5 @@
 		return 2;
 	}
-	
+
 	surface = surface_create(WINDOW_WIDTH, WINDOW_HEIGHT, NULL,
 	    SURFACE_FLAG_NONE);
@@ -270,8 +270,8 @@
 		return 2;
 	}
-	
+
 	width = WINDOW_WIDTH;
 	height = WINDOW_HEIGHT;
-	
+
 	errno_t rc = draw();
 	if (rc != EOK) {
@@ -279,5 +279,5 @@
 		return 2;
 	}
-	
+
 	canvas = create_canvas(window_root(main_window), NULL,
 	    WINDOW_WIDTH, WINDOW_HEIGHT, surface);
@@ -287,12 +287,12 @@
 	}
 	sig_connect(&canvas->keyboard_event, NULL, on_keyboard_event);
-	
+
 	window_resize(main_window, 200, 200, WINDOW_WIDTH, WINDOW_HEIGHT,
 	    WINDOW_PLACEMENT_ABSOLUTE);
 	window_exec(main_window);
-	
+
 	task_retval(0);
 	async_manager();
-	
+
 	return 0;
 }
Index: uspace/app/getterm/getterm.c
===================================================================
--- uspace/app/getterm/getterm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/getterm/getterm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,17 +63,17 @@
 	if (fclose(*stream))
 		return;
-	
+
 	*stream = NULL;
-	
+
 	int oldfd;
 	errno_t rc = vfs_lookup_open(path, WALK_REGULAR, mode, &oldfd);
 	if (rc != EOK)
 		return;
-	
+
 	if (oldfd != fd) {
 		int newfd;
 		if (vfs_clone(oldfd, fd, false, &newfd) != EOK)
 			return;
-		
+
 		assert(newfd == fd);
 
@@ -81,5 +81,5 @@
 			return;
 	}
-	
+
 	*stream = fdopen(fd, fmode);
 }
@@ -93,16 +93,16 @@
 		return 1;
 	}
-	
+
 	char *term = *argv;
 	argv++;
 	argc--;
-	
+
 	char *locfs = *argv;
 	argv++;
 	argc--;
-	
+
 	bool print_msg = false;
 	bool wait = false;
-	
+
 	while ((argc > 0) && (str_cmp(*argv, "--") != 0)) {
 		if (str_cmp(*argv, "--msg") == 0) {
@@ -114,21 +114,21 @@
 			return 2;
 		}
-		
+
 		argv++;
 		argc--;
 	}
-	
+
 	if (argc < 1) {
 		usage();
 		return 3;
 	}
-	
+
 	/* Skip "--" */
 	argv++;
 	argc--;
-	
+
 	char *cmd = *argv;
 	char **args = argv;
-	
+
 	if (wait) {
 		/* Wait for the terminal service to be ready */
@@ -141,21 +141,21 @@
 		}
 	}
-	
+
 	char term_node[LOC_NAME_MAXLEN];
 	snprintf(term_node, LOC_NAME_MAXLEN, "%s/%s", locfs, term);
-	
+
 	reopen(&stdin, 0, term_node, MODE_READ, "r");
 	reopen(&stdout, 1, term_node, MODE_WRITE, "w");
 	reopen(&stderr, 2, term_node, MODE_WRITE, "w");
-	
+
 	if (stdin == NULL)
 		return 4;
-	
+
 	if (stdout == NULL)
 		return 5;
-	
+
 	if (stderr == NULL)
 		return 6;
-	
+
 	/*
 	 * FIXME: fdopen() should actually detect that we are opening a console
@@ -163,12 +163,12 @@
 	 */
 	setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
-	
+
 	version_print(term);
 	if (print_msg)
 		welcome_msg_print();
-	
+
 	task_id_t id;
 	task_wait_t twait;
-	
+
 	errno_t rc = task_spawnv(&id, &twait, cmd, (const char * const *) args);
 	if (rc != EOK) {
@@ -177,5 +177,5 @@
 		return rc;
 	}
-	
+
 	task_exit_t texit;
 	int retval;
@@ -186,5 +186,5 @@
 		return rc;
 	}
-	
+
 	return 0;
 }
Index: uspace/app/init/init.c
===================================================================
--- uspace/app/init/init.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/init/init.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -103,5 +103,5 @@
 		return false;
 	}
-	
+
 	return true;
 }
@@ -121,8 +121,8 @@
 {
 	const char *opts = "";
-	
+
 	if (str_cmp(fstype, "tmpfs") == 0)
 		opts = "restore";
-	
+
 	errno_t rc = vfs_mount_path(ROOT_MOUNT_POINT, fstype, ROOT_DEVICE, opts,
 	    IPC_FLAG_BLOCKING, 0);
@@ -157,11 +157,11 @@
 		return ENOENT;
 	}
-	
+
 	printf("%s: Starting %s\n", NAME, path);
-	
+
 	va_list ap;
 	const char *arg;
 	int cnt = 0;
-	
+
 	va_start(ap, path);
 	do {
@@ -170,5 +170,5 @@
 	} while (arg != NULL);
 	va_end(ap);
-	
+
 	va_start(ap, path);
 	task_id_t id;
@@ -176,5 +176,5 @@
 	errno_t rc = task_spawn(&id, &wait, path, cnt, ap);
 	va_end(ap);
-	
+
 	if (rc != EOK) {
 		printf("%s: Error spawning %s (%s)\n", NAME, path,
@@ -182,5 +182,5 @@
 		return rc;
 	}
-	
+
 	if (!id) {
 		printf("%s: Error spawning %s (invalid task id)\n", NAME,
@@ -188,5 +188,5 @@
 		return EINVAL;
 	}
-	
+
 	task_exit_t texit;
 	int retval;
@@ -197,5 +197,5 @@
 		return rc;
 	}
-	
+
 	if (texit != TASK_EXIT_NORMAL) {
 		printf("%s: Server %s failed to start (unexpectedly "
@@ -203,9 +203,9 @@
 		return EINVAL;
 	}
-	
+
 	if (retval != 0)
 		printf("%s: Server %s failed to start (exit code %d)\n", NAME,
 		    path, retval);
-	
+
 	return retval == 0 ? EOK : EPARTY;
 }
@@ -221,5 +221,5 @@
 		return rc;
 	}
-	
+
 	/* Wait for the output service to be ready */
 	rc = loc_service_get_id(osvc, &service_id, IPC_FLAG_BLOCKING);
@@ -229,5 +229,5 @@
 		return rc;
 	}
-	
+
 	return srv_start(SRV_CONSOLE, isvc, osvc);
 }
@@ -243,5 +243,5 @@
 		return rc;
 	}
-	
+
 	return srv_start(SRV_COMPOSITOR, isvc, name);
 }
@@ -251,7 +251,7 @@
 	char winreg[50];
 	snprintf(winreg, sizeof(winreg), "%s%s%s", "comp", srv_name, "/winreg");
-	
+
 	printf("%s: Spawning %s %s\n", NAME, app, winreg);
-	
+
 	task_id_t id;
 	task_wait_t wait;
@@ -262,5 +262,5 @@
 		return -1;
 	}
-	
+
 	task_exit_t texit;
 	int retval;
@@ -271,5 +271,5 @@
 		return -1;
 	}
-	
+
 	return retval;
 }
@@ -280,5 +280,5 @@
 		printf("%s: Spawning %s %s %s --msg --wait -- %s\n", NAME,
 		    APP_GETTERM, svc, LOCFS_MOUNT_POINT, app);
-		
+
 		errno_t rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,
 		    LOCFS_MOUNT_POINT, "--msg", "--wait", "--", app, NULL);
@@ -289,5 +289,5 @@
 		printf("%s: Spawning %s %s %s --wait -- %s\n", NAME,
 		    APP_GETTERM, svc, LOCFS_MOUNT_POINT, app);
-		
+
 		errno_t rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,
 		    LOCFS_MOUNT_POINT, "--wait", "--", app, NULL);
@@ -310,10 +310,10 @@
 
 	info_print();
-	
+
 	if (!mount_root(STRING(RDFMT))) {
 		printf("%s: Exiting\n", NAME);
 		return 1;
 	}
-	
+
 	/* Make sure file systems are running. */
 	if (str_cmp(STRING(RDFMT), "tmpfs") != 0)
@@ -325,23 +325,23 @@
 	srv_start("/srv/cdfs");
 	srv_start("/srv/mfs");
-	
+
 	srv_start("/srv/klog");
 	srv_start("/srv/locfs");
 	srv_start("/srv/taskmon");
-	
+
 	if (!mount_locfs()) {
 		printf("%s: Exiting\n", NAME);
 		return 2;
 	}
-	
+
 	mount_tmpfs();
-	
+
 	srv_start("/srv/devman");
 	srv_start("/srv/s3c24xx_uart");
 	srv_start("/srv/s3c24xx_ts");
-	
+
 	srv_start("/srv/vbd");
 	srv_start("/srv/volsrv");
-	
+
 	srv_start("/srv/loopip");
 	srv_start("/srv/ethip");
@@ -352,12 +352,12 @@
 	srv_start("/srv/dhcp");
 	srv_start("/srv/nconfsrv");
-	
+
 	srv_start("/srv/clipboard");
 	srv_start("/srv/remcons");
-	
+
 	srv_start("/srv/input", HID_INPUT);
 	srv_start("/srv/output", HID_OUTPUT);
 	srv_start("/srv/hound");
-	
+
 	if (!config_key_exists("console")) {
 		rc = compositor(HID_INPUT, HID_COMPOSITOR_SERVER);
@@ -368,5 +368,5 @@
 		}
 	}
-	
+
 	rc = console(HID_INPUT, HID_OUTPUT);
 	if (rc == EOK) {
@@ -378,5 +378,5 @@
 		getterm("term/vc5", "/app/bdsh", false);
 	}
-	
+
 	return 0;
 }
Index: uspace/app/killall/killall.c
===================================================================
--- uspace/app/killall/killall.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/killall/killall.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,13 +55,13 @@
 		return 1;
 	}
-	
+
 	size_t count;
 	stats_task_t *stats_tasks = stats_get_tasks(&count);
-	
+
 	if (stats_tasks == NULL) {
 		fprintf(stderr, "%s: Unable to get tasks\n", NAME);
 		return 2;
 	}
-	
+
 	size_t i;
 	for (i = 0; i < count; i++) {
@@ -76,7 +76,7 @@
 		}
 	}
-	
+
 	free(stats_tasks);
-	
+
 	return 0;
 }
Index: uspace/app/kio/kio.c
===================================================================
--- uspace/app/kio/kio.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/kio/kio.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -83,5 +83,5 @@
 	if (item == NULL)
 		return;
-	
+
 	size_t sz = sizeof(wchar_t) * length;
 	wchar_t *buf = (wchar_t *) malloc(sz);
@@ -90,7 +90,7 @@
 		return;
 	}
-	
+
 	memcpy(buf, data, sz);
-	
+
 	link_initialize(&item->link);
 	item->length = length;
@@ -116,24 +116,24 @@
 		printf("%s: Unable to create log file %s (%s)\n", NAME, LOG_FNAME,
 		    str_error(errno));
-	
+
 	while (true) {
 		link_t *link = prodcons_consume(&pc);
 		item_t *item = list_get_instance(link, item_t, link);
-		
+
 		for (size_t i = 0; i < item->length; i++)
 			putchar(item->data[i]);
-		
+
 		if (log != NULL) {
 			for (size_t i = 0; i < item->length; i++)
 				fputc(item->data[i], log);
-			
+
 			fflush(log);
 			vfs_sync(fileno(log));
 		}
-		
+
 		free(item->data);
 		free(item);
 	}
-	
+
 	fclose(log);
 	return EOK;
@@ -162,22 +162,22 @@
 	 * this possibility cannot be generally avoided.
 	 */
-	
+
 	fibril_mutex_lock(&mtx);
-	
+
 	size_t kio_start = (size_t) IPC_GET_ARG1(*call);
 	size_t kio_len = (size_t) IPC_GET_ARG2(*call);
 	size_t kio_stored = (size_t) IPC_GET_ARG3(*call);
-	
+
 	size_t offset = (kio_start + kio_len - kio_stored) % kio_length;
-	
+
 	/* Copy data from the ring buffer */
 	if (offset + kio_stored >= kio_length) {
 		size_t split = kio_length - offset;
-		
+
 		producer(split, kio + offset);
 		producer(kio_stored - split, kio);
 	} else
 		producer(kio_stored, kio + offset);
-	
+
 	async_event_unmask(EVENT_KIO);
 	fibril_mutex_unlock(&mtx);
@@ -193,5 +193,5 @@
 		return rc;
 	}
-	
+
 	uintptr_t faddr;
 	rc = sysinfo_get_value("kio.faddr", &faddr);
@@ -201,8 +201,8 @@
 		return rc;
 	}
-	
+
 	size_t size = pages * PAGE_SIZE;
 	kio_length = size / sizeof(wchar_t);
-	
+
 	rc = physmem_map(faddr, pages, AS_AREA_READ | AS_AREA_CACHEABLE,
 	    (void *) &kio);
@@ -211,5 +211,5 @@
 		return rc;
 	}
-	
+
 	prodcons_initialize(&pc);
 	rc = async_event_subscribe(EVENT_KIO, kio_notification_handler, NULL);
@@ -219,5 +219,5 @@
 		return rc;
 	}
-	
+
 	fid_t fid = fibril_create(consumer, NULL);
 	if (!fid) {
@@ -226,5 +226,5 @@
 		return ENOMEM;
 	}
-	
+
 	tinput_t *input = tinput_new();
 	if (!input) {
@@ -236,5 +236,5 @@
 	async_event_unmask(EVENT_KIO);
 	kio_update();
-	
+
 	tinput_set_prompt(input, "kio> ");
 
Index: uspace/app/loc/loc.c
===================================================================
--- uspace/app/loc/loc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/loc/loc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -81,5 +81,5 @@
 		else
 			printf("\t%s\n", svc_name);
-	
+
 		free(svc_name);
 		free(server_name);
Index: uspace/app/mkbd/main.c
===================================================================
--- uspace/app/mkbd/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/mkbd/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 	if (*report == NULL)
 		return ENOMEM;
-	
+
 	errno_t rc = usb_hid_report_init(*report);
 	if (rc != EOK) {
@@ -73,5 +73,5 @@
 		return rc;
 	}
-	
+
 	/* Get the report descriptor length from the device */
 	size_t report_desc_size;
@@ -83,5 +83,5 @@
 		return rc;
 	}
-	
+
 	if (report_desc_size == 0) {
 		usb_hid_report_deinit(*report);
@@ -90,5 +90,5 @@
 		return EINVAL;
 	}
-	
+
 	uint8_t *desc = (uint8_t *) malloc(report_desc_size);
 	if (desc == NULL) {
@@ -97,5 +97,5 @@
 		return ENOMEM;
 	}
-	
+
 	/* Get the report descriptor from the device */
 	size_t actual_size;
@@ -108,5 +108,5 @@
 		return rc;
 	}
-	
+
 	if (actual_size != report_desc_size) {
 		usb_hid_report_deinit(*report);
@@ -116,10 +116,10 @@
 		return EINVAL;
 	}
-	
+
 	/* Initialize the report parser */
-	
+
 	rc = usb_hid_parse_report_descriptor(*report, desc, report_desc_size);
 	free(desc);
-	
+
 	return rc;
 }
@@ -129,17 +129,17 @@
 	assert(buffer != NULL);
 	assert(report != NULL);
-	
+
 	uint8_t report_id;
 	errno_t rc = usb_hid_parse_report(report, buffer, size, &report_id);
 	if (rc != EOK)
 		return;
-	
+
 	usb_hid_report_path_t *path = usb_hid_report_path();
 	if (path == NULL) {
 		return;
 	}
-	
+
 	usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_CONSUMER, 0);
-	
+
 	usb_hid_report_path_set_report_id(path, report_id);
 
@@ -148,5 +148,5 @@
 	    | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
 	    USB_HID_REPORT_TYPE_INPUT);
-	
+
 	while (field != NULL) {
 		if (field->value != 0) {
@@ -155,5 +155,5 @@
 			printf("Pressed key: %s\n", key_str);
 		}
-		
+
 		field = usb_hid_report_get_sibling(
 		    report, field, path, USB_HID_PATH_COMPARE_END
@@ -161,5 +161,5 @@
 		    USB_HID_REPORT_TYPE_INPUT);
 	}
-	
+
 	usb_hid_report_path_free(path);
 }
@@ -208,14 +208,14 @@
 {
 	int act_event = -1;
-	
+
 	if (argc <= 1) {
 		print_usage(argv[0]);
 		return -1;
 	}
-	
+
 	char *devpath = argv[1];
-	
+
 	devman_handle_t dev_handle = 0;
-	
+
 	errno_t rc = usb_resolve_device_handle(devpath, &dev_handle);
 	if (rc != EOK) {
@@ -224,5 +224,5 @@
 		return rc;
 	}
-	
+
 	async_sess_t *sess = devman_device_connect(dev_handle, 0);
 	if (!sess) {
@@ -231,7 +231,7 @@
 		return errno;
 	}
-	
+
 	dev_sess = sess;
-	
+
 	char path[MAX_PATH_LENGTH];
 	rc = devman_fun_get_path(dev_handle, path, MAX_PATH_LENGTH);
@@ -241,8 +241,8 @@
 		return ENOMEM;
 	}
-	
+
 	printf("Device path: %s\n", path);
-	
-	
+
+
 	usb_hid_report_t *report = NULL;
 	rc = initialize_report_parser(dev_sess, &report);
@@ -252,7 +252,7 @@
 		return rc;
 	}
-	
+
 	assert(report != NULL);
-	
+
 	size_t size;
 	rc = usbhid_dev_get_event_length(dev_sess, &size);
@@ -261,5 +261,5 @@
 		return rc;
 	}
-	
+
 	uint8_t *event = (uint8_t *)malloc(size);
 	if (event == NULL) {
@@ -268,5 +268,5 @@
 		return ENOMEM;
 	}
-	
+
 	fid_t quit_fibril = fibril_create(wait_for_quit_fibril, NULL);
 	if (quit_fibril == 0) {
@@ -278,5 +278,5 @@
 	size_t actual_size;
 	int event_nr;
-	
+
 	while (true) {
 		/** @todo Try blocking call. */
@@ -289,13 +289,13 @@
 			break;
 		}
-		
+
 		if (event_nr > act_event) {
 			print_key(event, size, report);
 			act_event = event_nr;
 		}
-		
+
 		async_usleep(10000);
 	}
-	
+
 	return 0;
 }
Index: uspace/app/mkfat/fat_dentry.h
===================================================================
--- uspace/app/mkfat/fat_dentry.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/mkfat/fat_dentry.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 #define FAT_ATTR_LFN \
     (FAT_ATTR_RDONLY | FAT_ATTR_HIDDEN | FAT_ATTR_SYSTEM | FAT_ATTR_VOLLABEL)
-    
+
 #define FAT_LCASE_LOWER_NAME	0x08
 #define FAT_LCASE_LOWER_EXT	0x10
Index: uspace/app/nic/nic.c
===================================================================
--- uspace/app/nic/nic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/nic/nic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -124,5 +124,5 @@
 		goto error;
 	}
-	
+
 	rc = nic_get_address(sess, &info->address);
 	if (rc != EOK) {
Index: uspace/app/ping/ping.c
===================================================================
--- uspace/app/ping/ping.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/ping/ping.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -115,5 +115,5 @@
 	if (rc != EOK)
 		return ENOMEM;
-	
+
 	char *adest;
 	rc = inet_addr_format(&dest_addr, &adest);
@@ -122,10 +122,10 @@
 		return ENOMEM;
 	}
-	
+
 	printf("Received ICMP echo reply: from %s to %s, seq. no %u, "
 	    "payload size %zu\n", asrc, adest, sdu->seq_no, sdu->size);
-	
+
 	ping_signal_received(RECEIVED_SUCCESS);
-	
+
 	free(asrc);
 	free(adest);
@@ -136,5 +136,5 @@
 {
 	inetping_sdu_t sdu;
-	
+
 	sdu.src = src_addr;
 	sdu.dest = dest_addr;
@@ -142,10 +142,10 @@
 	sdu.data = (void *) "foo";
 	sdu.size = 3;
-	
+
 	errno_t rc = inetping_send(&sdu);
 	if (rc != EOK)
 		printf("Failed sending echo request: %s: %s.\n",
 		    str_error_name(rc), str_error(rc));
-	
+
 	return rc;
 }
@@ -154,12 +154,12 @@
 {
 	uint16_t seq_no = 0;
-	
+
 	while ((repeat_count--) || (repeat_forever)) {
 		fibril_mutex_lock(&received_lock);
 		received = RECEIVED_NONE;
 		fibril_mutex_unlock(&received_lock);
-		
+
 		(void) ping_send(++seq_no);
-		
+
 		fibril_mutex_lock(&received_lock);
 		errno_t rc = fibril_condvar_wait_timeout(&received_cv, &received_lock,
@@ -167,11 +167,11 @@
 		received_t recv = received;
 		fibril_mutex_unlock(&received_lock);
-		
+
 		if ((rc == ETIMEOUT) || (recv == RECEIVED_NONE))
 			printf("Echo request timed out (seq. no %u)\n", seq_no);
-		
+
 		if (recv == RECEIVED_INTERRUPT)
 			break;
-		
+
 		if ((repeat_count > 0) || (repeat_forever)) {
 			fibril_mutex_lock(&received_lock);
@@ -180,10 +180,10 @@
 			recv = received;
 			fibril_mutex_unlock(&received_lock);
-			
+
 			if (recv == RECEIVED_INTERRUPT)
 				break;
 		}
 	}
-	
+
 	ping_signal_quit();
 	return 0;
@@ -193,10 +193,10 @@
 {
 	console_ctrl_t *con = console_init(stdin, stdout);
-	
+
 	while (true) {
 		cons_event_t ev;
 		if (!console_get_event(con, &ev))
 			break;
-		
+
 		if ((ev.type == CEV_KEY) && (ev.ev.key.type == KEY_PRESS) &&
 		    ((ev.ev.key.mods & (KM_ALT | KM_SHIFT)) == 0) &&
@@ -209,5 +209,5 @@
 		}
 	}
-	
+
 	return 0;
 }
@@ -221,5 +221,5 @@
 	const char *errmsg;
 	ip_ver_t ip_ver = ip_any;
-	
+
 	errno_t rc = inetping_init(&ev_ops);
 	if (rc != EOK) {
@@ -228,5 +228,5 @@
 		goto error;
 	}
-	
+
 	int c;
 	while ((c = getopt(argc, argv, short_options)) != -1) {
@@ -255,5 +255,5 @@
 		}
 	}
-	
+
 	if (optind >= argc) {
 		printf("IP address or host name not supplied.\n");
@@ -261,7 +261,7 @@
 		goto error;
 	}
-	
+
 	host = argv[optind];
-	
+
 	/* Look up host */
 	rc = inet_host_plookup_one(host, ip_ver, &dest_addr, NULL, &errmsg);
@@ -270,5 +270,5 @@
 		goto error;
 	}
-	
+
 	/* Determine source address */
 	rc = inetping_get_srcaddr(&dest_addr, &src_addr);
@@ -277,5 +277,5 @@
 		goto error;
 	}
-	
+
 	rc = inet_addr_format(&src_addr, &asrc);
 	if (rc != EOK) {
@@ -283,5 +283,5 @@
 		goto error;
 	}
-	
+
 	rc = inet_addr_format(&dest_addr, &adest);
 	if (rc != EOK) {
@@ -289,13 +289,13 @@
 		goto error;
 	}
-	
+
 	if (asprintf(&sdest, "%s (%s)", host, adest) < 0) {
 		printf("Out of memory.\n");
 		goto error;
 	}
-	
+
 	printf("Sending ICMP echo request from %s to %s (Ctrl+Q to quit)\n",
 	    asrc, sdest);
-	
+
 	fid_t fid = fibril_create(transmit_fibril, NULL);
 	if (fid == 0) {
@@ -303,7 +303,7 @@
 		goto error;
 	}
-	
+
 	fibril_add_ready(fid);
-	
+
 	fid = fibril_create(input_fibril, NULL);
 	if (fid == 0) {
@@ -311,17 +311,17 @@
 		goto error;
 	}
-	
+
 	fibril_add_ready(fid);
-	
+
 	fibril_mutex_lock(&quit_lock);
 	while (!quit)
 		fibril_condvar_wait(&quit_cv, &quit_lock);
 	fibril_mutex_unlock(&quit_lock);
-	
+
 	free(asrc);
 	free(adest);
 	free(sdest);
 	return 0;
-	
+
 error:
 	free(asrc);
Index: uspace/app/rcubench/rcubench.c
===================================================================
--- uspace/app/rcubench/rcubench.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/rcubench/rcubench.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,5 +61,5 @@
 	size_t nthreads;
 	futex_t done_threads;
-	
+
 	futex_t bench_fut;
 } bench_t;
@@ -72,5 +72,5 @@
 	const size_t iters = bench->iters;
 	int val = 0;
-	
+
 	for (size_t i = 0; i < iters; ++i) {
 		__SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &val);
@@ -83,5 +83,5 @@
 	const size_t iters = bench->iters;
 	futex_t loc_fut = FUTEX_INITIALIZER;
-	
+
 	for (size_t i = 0; i < iters; ++i) {
 		futex_lock(&loc_fut);
@@ -96,5 +96,5 @@
 	const size_t iters = bench->iters;
 	futex_t loc_fut = FUTEX_INITIALIZER;
-	
+
 	for (size_t i = 0; i < iters; ++i) {
 		futex_down(&loc_fut);
@@ -108,7 +108,7 @@
 {
 	bench_t *bench = (bench_t*)arg;
-	
+
 	bench->func(bench);
-	
+
 	/* Signal another thread completed. */
 	futex_up(&bench->done_threads);
@@ -118,9 +118,9 @@
 {
 	assert(1 <= bench->nthreads);
-	
+
 	if (2 <= bench->nthreads) {
 		printf("Creating %zu additional threads...\n", bench->nthreads - 1);
 	}
-	
+
 	/* Create and run the first nthreads - 1 threads.*/
 	for (size_t k = 1; k < bench->nthreads; ++k) {
@@ -134,5 +134,5 @@
 		thread_detach(tid);
 	}
-	
+
 	/*
 	 * Run the last thread in place so that we create multiple threads
@@ -141,7 +141,7 @@
 	 */
 	thread_func(bench);
-	
+
 	printf("Waiting for remaining threads to complete.\n");
-	
+
 	/* Wait for threads to complete. */
 	for (size_t k = 0; k < bench->nthreads; ++k) {
@@ -168,9 +168,9 @@
 {
 	va_list args;
-	
+
 	va_start(args, fmt);
 	vfprintf(results_fd, fmt, args);
 	va_end(args);
-	
+
 	va_start(args, fmt);
 	vprintf(fmt, args);
@@ -202,5 +202,5 @@
 
 	futex_initialize(&bench->bench_fut, 1);
-	
+
 	if (0 == str_cmp(argv[1], "sys-futex")) {
 		bench->func = kernel_futex_bench;
@@ -213,7 +213,7 @@
 		return false;
 	}
-	
+
 	bench->name = argv[1];
-	
+
 	/* Determine iteration count. */
 	uint32_t iter_cnt = 0;
@@ -226,5 +226,5 @@
 		return false;
 	}
-	
+
 	/* Determine thread count. */
 	uint32_t thread_cnt = 0;
@@ -237,5 +237,5 @@
 		return false;
 	}
-	
+
 	return true;
 }
@@ -245,7 +245,7 @@
 	const char *err = "(error)";
 	bench_t bench;
-	
+
 	futex_initialize(&bench.done_threads, 0);
-	
+
 	if (!parse_cmd_line(argc, argv, &bench, &err)) {
 		printf("%s\n", err);
@@ -253,26 +253,26 @@
 		return -1;
 	}
-	
+
 	open_results();
-	
+
 	print_res("Running '%s' futex bench in '%zu' threads with '%zu' iterations.\n",
 		bench.name, bench.nthreads, bench.iters);
-	
+
 	struct timeval start, end;
 	getuptime(&start);
-	
+
 	run_threads_and_wait(&bench);
-	
+
 	getuptime(&end);
 	int64_t duration = tv_sub_diff(&end, &start);
-	
+
 	uint64_t secs = (uint64_t)duration / 1000 / 1000;
 	uint64_t total_iters = (uint64_t)bench.iters * bench.nthreads;
 	uint64_t iters_per_sec = 0;
-	
+
 	if (0 < duration) {
 		iters_per_sec = total_iters * 1000 * 1000 / duration;
 	}
-	
+
 	print_res("Completed %" PRIu64 " iterations in %" PRId64  " usecs (%" PRIu64
 		" secs); %" PRIu64 " iters/sec\n",
@@ -280,5 +280,5 @@
 
 	close_results();
-	
+
 	return 0;
 }
Index: uspace/app/rcutest/rcutest.c
===================================================================
--- uspace/app/rcutest/rcutest.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/rcutest/rcutest.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -174,10 +174,10 @@
 {
 	fid_t fid = fibril_create(func, arg);
-	
+
 	if (0 == fid) {
 		printf("Failed to create a fibril!\n");
 		return false;
 	}
-	
+
 	fibril_add_ready(fid);
 	return true;
@@ -190,12 +190,12 @@
 	size_t failed_cnt = 0;
 	size_t ok_cnt = 0;
-	
+
 	for (size_t i = 0; i < test_desc_cnt; ++i) {
 		test_desc_t *t = &test_desc[i];
-		
+
 		if (t->func && !t->aggregate && include_filter(t)) {
 			printf("Running \'%s\'...\n", t->name);
 			bool ok = test_desc[i].func(info);
-			
+
 			if (ok) {
 				++ok_cnt;
@@ -207,5 +207,5 @@
 		}
 	}
-	
+
 	printf("\n");
 
@@ -215,5 +215,5 @@
 		printf("%zu tests failed\n", failed_cnt);
 	}
-	
+
 	return 0 == failed_cnt;
 }
@@ -273,5 +273,5 @@
 	/* nop */
 	rcu_read_unlock();
-	
+
 	rcu_synchronize();
 
@@ -284,9 +284,9 @@
 	fibril_yield();
 	rcu_read_unlock();
-	
+
 	fibril_yield();
 	rcu_synchronize();
 	rcu_synchronize();
-	
+
 	rcu_read_lock();
 	/* nop */
@@ -295,5 +295,5 @@
 
 	rcu_read_unlock();
-	
+
 	return !rcu_read_locked();
 }
@@ -312,5 +312,5 @@
 {
 	rcu_register_fibril();
-	
+
 	printf("lock{");
 	rcu_read_lock();
@@ -324,14 +324,14 @@
 	++arg->done_sleeps_cnt;
 	printf("}");
-	
+
 	if (arg->synched) {
 		arg->failed = 1;
 		printf("Error: rcu_sync exited prematurely.\n");
 	}
-	
+
 	arg->exited_cs = true;
 	rcu_read_unlock();
 	printf("}");
-	
+
 	rcu_deregister_fibril();
 	return 0;
@@ -341,16 +341,16 @@
 {
 	one_reader_info_t info = { 0 };
-	
+
 	if (!create_fibril((fibril_func_t) sleeping_reader, &info))
 		return false;
-	
+
 	/* 1 sec, waits for the reader to enter its critical section and sleep. */
 	async_usleep(1 * USECS_PER_SEC);
-	
+
 	if (!info.entered_cs || info.exited_cs) {
 		printf("Error: reader is unexpectedly outside of critical section.\n");
 		return false;
 	}
-	
+
 	info.synching = true;
 	printf("sync[");
@@ -361,5 +361,5 @@
 	/* Load info.exited_cs */
 	memory_barrier();
-	
+
 	if (!info.exited_cs || info.failed) {
 		printf("Error: rcu_sync() returned before the reader exited its CS.\n");
@@ -394,9 +394,9 @@
 {
 	rcu_register_fibril();
-	
+
 	printf("old-lock{");
 	rcu_read_lock();
 	arg->old_entered_cs = true;
-	
+
 	printf("wait-for-sync{");
 	/* Wait for rcu_sync() to start waiting for us. */
@@ -405,7 +405,7 @@
 	}
 	printf(" }");
-	
+
 	/* A new reader starts while rcu_sync() is in progress. */
-	
+
 	printf("wait-for-new-R{");
 	/* Wait for the new reader to enter its reader section. */
@@ -414,17 +414,17 @@
 	}
 	printf(" }");
-	
+
 	arg->old_exited_cs = true;
-	
+
 	assert(!arg->new_exited_cs);
-	
+
 	if (arg->synched) {
 		arg->failed = 1;
 		printf("Error: rcu_sync() did not wait for preexisting reader.\n");
 	}
-	
+
 	rcu_read_unlock();
 	printf(" }");
-	
+
 	rcu_deregister_fibril();
 	return 0;
@@ -434,10 +434,10 @@
 {
 	rcu_register_fibril();
-	
+
 	/* Wait until rcu_sync() starts. */
 	while (!arg->synching) {
 		async_usleep(WAIT_STEP_US);
 	}
-	
+
 	/*
 	 * synching is set when rcu_sync() is about to be entered so wait
@@ -445,5 +445,5 @@
 	 */
 	async_usleep(WAIT_STEP_US);
-	
+
 	printf("new-lock(");
 	rcu_read_lock();
@@ -454,9 +454,9 @@
 		async_usleep(WAIT_STEP_US);
 	}
-	
+
 	arg->new_exited_cs = true;
 	/* Write new_exited_cs before exiting reader section. */
 	memory_barrier();
-	
+
 	/*
 	 * Preexisting reader should have exited by now, so rcu_synchronize()
@@ -467,5 +467,5 @@
 		printf("Error: preexisting reader should have exited by now!\n");
 	}
-	
+
 	rcu_read_unlock();
 	printf(")");
@@ -478,5 +478,5 @@
 {
 	two_reader_info_t info = { 0 };
-	
+
 	if (!create_fibril((fibril_func_t) preexisting_reader, &info))
 		return false;
@@ -484,33 +484,33 @@
 	if (!create_fibril((fibril_func_t) new_reader, &info))
 		return false;
-	
+
 	/* Waits for the preexisting_reader to enter its CS.*/
 	while (!info.old_entered_cs) {
 		async_usleep(WAIT_STEP_US);
 	}
-	
+
 	assert(!info.old_exited_cs);
 	assert(!info.new_entered_cs);
 	assert(!info.new_exited_cs);
-	
+
 	printf("sync[");
 	info.synching = true;
 	rcu_synchronize();
 	printf(" ]");
-	
+
 	/* Load info.exited_cs */
 	memory_barrier();
-	
+
 	if (!info.old_exited_cs) {
 		printf("Error: rcu_sync() returned before preexisting reader exited.\n");
 		info.failed = 1;
 	}
-	
+
 	bool new_outside_cs = !info.new_entered_cs || info.new_exited_cs;
-	
+
 	/* Test if new reader is waiting in CS before setting synched. */
 	compiler_barrier();
 	info.synched = true;
-		
+
 	if (new_outside_cs) {
 		printf("Error: new reader CS held up rcu_sync(). (4)\n");
@@ -519,13 +519,13 @@
 		/* Wait for the new reader. */
 		rcu_synchronize();
-		
+
 		if (!info.new_exited_cs) {
 			printf("Error: 2nd rcu_sync() returned before new reader exited.\n");
 			info.failed = 1;
 		}
-		
+
 		printf("\n");
 	}
-	
+
 	if (info.failed) {
 		/*
@@ -535,5 +535,5 @@
 		async_usleep(WAIT_STEP_US);
 	}
-	
+
 	return 0 == info.failed;
 }
@@ -555,5 +555,5 @@
 {
 	rcu_register_fibril();
-	
+
 	printf("old-lock{");
 	rcu_read_lock();
@@ -561,5 +561,5 @@
 	rcu_read_lock();
 	arg->entered_cs = true;
-	
+
 	printf("wait-for-sync{");
 	/* Wait for rcu_sync() to start waiting for us. */
@@ -568,5 +568,5 @@
 	}
 	printf(" }");
-	
+
 	rcu_read_unlock();
 	printf(" }");
@@ -575,5 +575,5 @@
 	/* Store exited_cs before unlocking reader section in deregister. */
 	memory_barrier();
-	
+
 	/* Deregister forcefully unlocks the reader section. */
 	rcu_deregister_fibril();
@@ -585,15 +585,15 @@
 {
 	exit_reader_info_t info = { 0 };
-	
+
 	if (!create_fibril((fibril_func_t) exiting_locked_reader, &info))
 		return false;
-	
+
 	/* Waits for the preexisting_reader to enter its CS.*/
 	while (!info.entered_cs) {
 		async_usleep(WAIT_STEP_US);
 	}
-	
+
 	assert(!info.exited_cs);
-	
+
 	printf("sync[");
 	info.synching = true;
@@ -601,13 +601,13 @@
 	info.synched = true;
 	printf(" ]\n");
-	
+
 	/* Load info.exited_cs */
 	memory_barrier();
-	
+
 	if (!info.exited_cs) {
 		printf("Error: rcu_deregister_fibril did not unlock the CS.\n");
 		return false;
 	}
-	
+
 	return true;
 }
@@ -621,5 +621,5 @@
 	atomic_t time;
 	atomic_t max_start_time_of_done_sync;
-	
+
 	size_t total_workers;
 	size_t done_reader_cnt;
@@ -630,5 +630,5 @@
 	size_t read_iters;
 	size_t upd_iters;
-	
+
 	atomic_t seed;
 	int failed;
@@ -640,9 +640,9 @@
 	fibril_mutex_lock(&arg->done_cnt_mtx);
 	++*cnt;
-	
+
 	if (arg->total_workers == arg->done_reader_cnt + arg->done_updater_cnt) {
 		fibril_condvar_signal(&arg->done_cnt_changed);
 	}
-	
+
 	fibril_mutex_unlock(&arg->done_cnt_mtx);
 }
@@ -651,8 +651,8 @@
 {
 	rcu_register_fibril();
-	
+
 	size_t seed = (size_t) atomic_preinc(&arg->seed);
 	bool first = (seed == 1);
-	
+
 	for (size_t k = 0; k < arg->read_iters; ++k) {
 		/* Print progress if the first reader fibril. */
@@ -660,16 +660,16 @@
 			printf(".");
 		}
-		
+
 		rcu_read_lock();
 		atomic_count_t start_time = atomic_preinc(&arg->time);
-		
+
 		/* Do some work. */
 		seed = next_rand(seed);
 		size_t idle_iters = seed % 8;
-		
+
 		for (size_t i = 0; i < idle_iters; ++i) {
 			fibril_yield();
 		}
-		
+
 		/*
 		 * Check if the most recently started rcu_sync of the already
@@ -681,8 +681,8 @@
 			arg->failed = 1;
 		}
-		
+
 		rcu_read_unlock();
 	}
-	
+
 	rcu_deregister_fibril();
 
@@ -694,9 +694,9 @@
 {
 	rcu_register_fibril();
-	
+
 	for (size_t k = 0; k < arg->upd_iters; ++k) {
 		atomic_count_t start_time = atomic_get(&arg->time);
 		rcu_synchronize();
-		
+
 		/* This is prone to a race but if it happens it errs to the safe side.*/
 		if (atomic_get(&arg->max_start_time_of_done_sync) < start_time) {
@@ -704,7 +704,7 @@
 		}
 	}
-	
+
 	rcu_deregister_fibril();
-	
+
 	signal_seq_fibril_done(arg, &arg->done_updater_cnt);
 	return 0;
@@ -715,5 +715,5 @@
 	size_t reader_cnt = test_info->thread_cnt;
 	size_t updater_cnt = test_info->thread_cnt;
-		
+
 	seq_test_info_t info = {
 		.time = {0},
@@ -729,10 +729,10 @@
 		.failed = 0,
 	};
-	
+
 	/* Create and start worker fibrils. */
 	for (size_t k = 0; k + k < reader_cnt + updater_cnt; ++k) {
 		bool ok = create_fibril((fibril_func_t) seq_reader, &info);
 		ok = ok && create_fibril((fibril_func_t) seq_updater, &info);
-		
+
 		if (!ok) {
 			/* Let the already created fibrils corrupt the stack. */
@@ -740,18 +740,18 @@
 		}
 	}
-	
+
 	/* Wait for all worker fibrils to complete their work. */
 	fibril_mutex_lock(&info.done_cnt_mtx);
-	
+
 	while (info.total_workers != info.done_reader_cnt + info.done_updater_cnt) {
 		fibril_condvar_wait(&info.done_cnt_changed, &info.done_cnt_mtx);
 	}
-	
+
 	fibril_mutex_unlock(&info.done_cnt_mtx);
-	
+
 	if (info.failed) {
 		printf("Error: rcu_sync() did not wait for a preexisting reader.");
 	}
-	
+
 	return 0 == info.failed;
 }
@@ -772,12 +772,12 @@
 	/* Sanity check. */
 	assert(cnt < 1024);
-	
+
 	/* Keep this mutex locked so that dummy fibrils never exit. */
 	bool success = fibril_mutex_trylock(&blocking_mtx);
 	assert(success);
-	
+
 	for (size_t k = 0; k < cnt; ++k) {
 		thread_id_t tid;
-		
+
 		errno_t ret = thread_create(dummy_fibril, NULL, "urcu-test-worker", &tid);
 		if (EOK != ret) {
@@ -786,5 +786,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -796,12 +796,12 @@
 	for (size_t k = 0; k < test_desc_cnt; ++k) {
 		test_desc_t *t = &test_desc[k];
-		
+
 		if (t->func && 0 == str_cmp(t->name, name))
 			return t;
 	}
-	
+
 	/* Try to match the test number. */
 	uint32_t test_num = 0;
-	
+
 	if (EOK == str_uint32_t(name, NULL, 0, true, &test_num)) {
 		if (test_num < test_desc_cnt && test_desc[test_num].func) {
@@ -809,5 +809,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -816,13 +816,13 @@
 {
 	printf("Available tests: \n");
-	
+
 	for (size_t i = 0; i < test_desc_cnt; ++i) {
 		test_desc_t *t = &test_desc[i];
-		
+
 		if (!t->func)
 			continue;
-		
+
 		const char *type = "";
-		
+
 		if (t->type == T_SANITY)
 			type = " (sanity)";
@@ -839,5 +839,5 @@
 	printf("Usage: rcutest [test_name|test_number] {number_of_threads}\n");
 	list_tests();
-	
+
 	printf("\nExample usage:\n");
 	printf("\trcutest *\n");
@@ -852,5 +852,5 @@
 		return false;
 	}
-	
+
 	info->desc = find_test(argv[1]);
 
@@ -860,9 +860,9 @@
 		return false;
 	}
-	
+
 	if (argc == 3) {
 		uint32_t thread_cnt = 0;
 		errno_t ret = str_uint32_t(argv[2], NULL, 0, true, &thread_cnt);
-		
+
 		if (ret == EOK && 1 <= thread_cnt && thread_cnt <= 64) {
 			info->thread_cnt = thread_cnt;
@@ -874,5 +874,5 @@
 		info->thread_cnt = 1;
 	}
-	
+
 	return true;
 }
@@ -881,14 +881,14 @@
 {
 	rcu_register_fibril();
-	
+
 	test_info_t info;
-	
+
 	bool ok = parse_cmd_line(argc, argv, &info);
 	ok = ok && create_threads(info.thread_cnt - 1);
-	
+
 	if (ok) {
 		assert(1 <= info.thread_cnt);
 		test_desc_t *t = info.desc;
-		
+
 		printf("Running '%s' (in %zu threads)...\n", t->name, info.thread_cnt);
 		ok = t->func(&info);
@@ -897,5 +897,5 @@
 
 		rcu_deregister_fibril();
-		
+
 		/* Let the kernel clean up the created background threads. */
 		return ok ? 0 : 1;
Index: uspace/app/redir/redir.c
===================================================================
--- uspace/app/redir/redir.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/redir/redir.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,17 +56,17 @@
 	if (fclose(*stream))
 		return;
-	
+
 	*stream = NULL;
-	
+
 	int oldfd;
 	errno_t rc = vfs_lookup_open(path, WALK_REGULAR | flags, mode, &oldfd);
 	if (rc != EOK)
 		return;
-	
+
 	if (oldfd != fd) {
 		int newfd;
 		if (vfs_clone(oldfd, fd, false, &newfd) != EOK)
 			return;
-		
+
 		assert(newfd == fd);
 
@@ -74,5 +74,5 @@
 			return;
 	}
-	
+
 	*stream = fdopen(fd, fmode);
 }
@@ -89,15 +89,15 @@
 		return 0;
 	}
-	
+
 	int i;
 	for (i = 0; i < argc; i++)
 		args[i] = argv[i];
-	
+
 	args[argc] = NULL;
-	
+
 	rc = task_spawnv(&id, wait, argv[0], args);
-	
+
 	free(args);
-	
+
 	if (rc != EOK) {
 		fprintf(stderr, "%s: Error spawning %s (%s)\n", NAME, argv[0],
@@ -105,5 +105,5 @@
 		return 0;
 	}
-	
+
 	return id;
 }
@@ -115,5 +115,5 @@
 		return -1;
 	}
-	
+
 	int i;
 	for (i = 1; i < argc; i++) {
@@ -146,10 +146,10 @@
 		}
 	}
-	
+
 	if (i >= argc) {
 		usage();
 		return -5;
 	}
-	
+
 	/*
 	 * FIXME: fdopen() should actually detect that we are opening a console
@@ -160,13 +160,13 @@
 	task_wait_t wait;
 	task_id_t id = spawn(&wait, argc - i, argv + i);
-	
+
 	if (id != 0) {
 		task_exit_t texit;
 		int retval;
 		task_wait(&wait, &texit, &retval);
-		
+
 		return retval;
 	}
-	
+
 	return -6;
 }
Index: uspace/app/stats/stats.c
===================================================================
--- uspace/app/stats/stats.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/stats/stats.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,13 +58,13 @@
 	size_t count;
 	stats_task_t *stats_tasks = stats_get_tasks(&count);
-	
+
 	if (stats_tasks == NULL) {
 		fprintf(stderr, "%s: Unable to get tasks\n", NAME);
 		return;
 	}
-	
+
 	printf("[taskid] [thrds] [resident] [virtual] [ucycles]"
 	    " [kcycles] [name\n");
-	
+
 	size_t i;
 	for (i = 0; i < count; i++) {
@@ -77,10 +77,10 @@
 		char usuffix;
 		char ksuffix;
-		
+
 		bin_order_suffix(stats_tasks[i].resmem, &resmem, &resmem_suffix, true);
 		bin_order_suffix(stats_tasks[i].virtmem, &virtmem, &virtmem_suffix, true);
 		order_suffix(stats_tasks[i].ucycles, &ucycles, &usuffix);
 		order_suffix(stats_tasks[i].kcycles, &kcycles, &ksuffix);
-		
+
 		printf("%-8" PRIu64 " %7zu %7" PRIu64 "%s %6" PRIu64 "%s"
 		    " %8" PRIu64 "%c %8" PRIu64 "%c %s\n",
@@ -89,5 +89,5 @@
 		    ucycles, usuffix, kcycles, ksuffix, stats_tasks[i].name);
 	}
-	
+
 	free(stats_tasks);
 }
@@ -97,12 +97,12 @@
 	size_t count;
 	stats_thread_t *stats_threads = stats_get_threads(&count);
-	
+
 	if (stats_threads == NULL) {
 		fprintf(stderr, "%s: Unable to get threads\n", NAME);
 		return;
 	}
-	
+
 	printf("[taskid] [threadid] [state ] [prio] [cpu ] [ucycles] [kcycles]\n");
-	
+
 	size_t i;
 	for (i = 0; i < count; i++) {
@@ -110,23 +110,23 @@
 			uint64_t ucycles, kcycles;
 			char usuffix, ksuffix;
-			
+
 			order_suffix(stats_threads[i].ucycles, &ucycles, &usuffix);
 			order_suffix(stats_threads[i].kcycles, &kcycles, &ksuffix);
-			
+
 			printf("%-8" PRIu64 " %-10" PRIu64 " %-8s %6d ",
 			    stats_threads[i].task_id, stats_threads[i].thread_id,
 			    thread_get_state(stats_threads[i].state),
 			    stats_threads[i].priority);
-			
+
 			if (stats_threads[i].on_cpu)
 				printf("%6u ", stats_threads[i].cpu);
 			else
 				printf("(none) ");
-			
+
 			printf("%8" PRIu64"%c %8" PRIu64"%c\n",
 			    ucycles, usuffix, kcycles, ksuffix);
 		}
 	}
-	
+
 	free(stats_threads);
 }
@@ -136,12 +136,12 @@
 	size_t count;
 	stats_cpu_t *cpus = stats_get_cpus(&count);
-	
+
 	if (cpus == NULL) {
 		fprintf(stderr, "%s: Unable to get CPU statistics\n", NAME);
 		return;
 	}
-	
+
 	printf("[id] [MHz     ] [busy cycles] [idle cycles]\n");
-	
+
 	size_t i;
 	for (i = 0; i < count; i++) {
@@ -150,8 +150,8 @@
 			uint64_t bcycles, icycles;
 			char bsuffix, isuffix;
-			
+
 			order_suffix(cpus[i].busy_cycles, &bcycles, &bsuffix);
 			order_suffix(cpus[i].idle_cycles, &icycles, &isuffix);
-			
+
 			printf("%10" PRIu16 " %12" PRIu64 "%c %12" PRIu64 "%c\n",
 			    cpus[i].frequency_mhz, bcycles, bsuffix,
@@ -160,5 +160,5 @@
 			printf("inactive\n");
 	}
-	
+
 	free(cpus);
 }
@@ -168,22 +168,22 @@
 	size_t count;
 	load_t *load = stats_get_load(&count);
-	
+
 	if (load == NULL) {
 		fprintf(stderr, "%s: Unable to get load\n", NAME);
 		return;
 	}
-	
+
 	printf("%s: Load average: ", NAME);
-	
+
 	size_t i;
 	for (i = 0; i < count; i++) {
 		if (i > 0)
 			printf(" ");
-		
+
 		stats_print_load_fragment(load[i], 2);
 	}
-	
+
 	printf("\n");
-	
+
 	free(load);
 }
@@ -193,5 +193,5 @@
 	struct timeval uptime;
 	getuptime(&uptime);
-	
+
 	printf("%s: Up %ld days, %ld hours, %ld minutes, %ld seconds\n",
 	    NAME, uptime.tv_sec / DAY, (uptime.tv_sec % DAY) / HOUR,
@@ -242,11 +242,11 @@
 	bool toggle_load = false;
 	bool toggle_uptime = false;
-	
+
 	task_id_t task_id = 0;
-	
+
 	int i;
 	for (i = 1; i < argc; i++) {
 		int off;
-		
+
 		/* Usage */
 		if ((off = arg_parse_short_long(argv[i], "-h", "--help")) != -1) {
@@ -254,5 +254,5 @@
 			return 0;
 		}
-		
+
 		/* All threads */
 		if ((off = arg_parse_short_long(argv[i], "-a", "--all")) != -1) {
@@ -262,5 +262,5 @@
 			continue;
 		}
-		
+
 		/* CPUs */
 		if ((off = arg_parse_short_long(argv[i], "-c", "--cpus")) != -1) {
@@ -269,5 +269,5 @@
 			continue;
 		}
-		
+
 		/* Threads */
 		if ((off = arg_parse_short_long(argv[i], "-t", "--task=")) != -1) {
@@ -279,12 +279,12 @@
 				return -1;
 			}
-			
+
 			task_id = tmp;
-			
+
 			toggle_tasks = false;
 			toggle_threads = true;
 			continue;
 		}
-		
+
 		/* Load */
 		if ((off = arg_parse_short_long(argv[i], "-l", "--load")) != -1) {
@@ -293,5 +293,5 @@
 			continue;
 		}
-		
+
 		/* Uptime */
 		if ((off = arg_parse_short_long(argv[i], "-u", "--uptime")) != -1) {
@@ -301,20 +301,20 @@
 		}
 	}
-	
+
 	if (toggle_tasks)
 		list_tasks();
-	
+
 	if (toggle_threads)
 		list_threads(task_id, toggle_all);
-	
+
 	if (toggle_cpus)
 		list_cpus();
-	
+
 	if (toggle_load)
 		print_load();
-	
+
 	if (toggle_uptime)
 		print_uptime();
-	
+
 	return 0;
 }
Index: uspace/app/sysinfo/sysinfo.c
===================================================================
--- uspace/app/sysinfo/sysinfo.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/sysinfo/sysinfo.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 {
 	size_t offset = 0;
-	
+
 	while (offset < size) {
 		wchar_t c = str_decode(data, &offset, size);
@@ -69,8 +69,8 @@
 		return rc;
 	}
-	
+
 	printf("%s -> %" PRIu64 " (0x%" PRIx64 ")\n", ipath,
 	    (uint64_t) value, (uint64_t) value);
-	
+
 	return EOK;
 }
@@ -84,5 +84,5 @@
 		return -1;
 	}
-	
+
 	printf("%s -> ", ipath);
 	dump_bytes_hex(data, size);
@@ -90,5 +90,5 @@
 	dump_bytes_text(data, size);
 	fputs("')\n", stdout);
-	
+
 	return EOK;
 }
@@ -103,5 +103,5 @@
 		return -1;
 	}
-	
+
 	printf("%s property %s -> ", ipath, iprop);
 	dump_bytes_hex(data, size);
@@ -109,5 +109,5 @@
 	dump_bytes_text(data, size);
 	fputs("')\n", stdout);
-	
+
 	return EOK;
 }
@@ -125,5 +125,5 @@
 	if ((keys == NULL) || (size == 0))
 		return;
-	
+
 	size_t pos = 0;
 	while (pos < size) {
@@ -132,31 +132,31 @@
 		if (keys[pos + cur_size] != 0)
 			break;
-		
+
 		size_t path_size = str_size(path) + cur_size + 2;
 		char *cur_path = (char *) malloc(path_size);
 		if (cur_path == NULL)
 			break;
-		
+
 		size_t length;
-		
+
 		if (path[0] != 0) {
 			print_spaces(spaces);
 			printf(".%s\n", keys + pos);
 			length = str_length(keys + pos) + 1;
-			
+
 			snprintf(cur_path, path_size, "%s.%s", path, keys + pos);
 		} else {
 			printf("%s\n", keys + pos);
 			length = str_length(keys + pos);
-			
+
 			snprintf(cur_path, path_size, "%s", keys + pos);
 		}
-		
+
 		print_keys(cur_path, spaces + length);
-		
+
 		free(cur_path);
 		pos += cur_size + 1;
 	}
-	
+
 	free(keys);
 }
@@ -165,5 +165,5 @@
 {
 	int rc = 0;
-	
+
 	if (argc < 2) {
 		/* Print keys */
@@ -171,10 +171,10 @@
 		return rc;
 	}
-	
+
 	char *ipath = argv[1];
-	
+
 	if (argc < 3) {
 		sysinfo_item_val_type_t tag = sysinfo_get_val_type(ipath);
-		
+
 		switch (tag) {
 		case SYSINFO_VAL_UNDEFINED:
@@ -194,8 +194,8 @@
 			break;
 		}
-		
+
 		return rc;
 	}
-	
+
 	char *iprop = argv[2];
 	rc = print_item_property(ipath, iprop);
Index: uspace/app/taskdump/taskdump.c
===================================================================
--- uspace/app/taskdump/taskdump.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/taskdump/taskdump.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -126,5 +126,5 @@
 {
 	async_sess_t *ksess = async_connect_kbox(task_id);
-	
+
 	if (!ksess) {
 		if (errno == ENOTSUP) {
@@ -135,10 +135,10 @@
 			return errno;
 		}
-		
+
 		printf("Error connecting\n");
 		printf("async_connect_kbox(%" PRIu64 ") -> %s", task_id, str_error_name(errno));
 		return errno;
 	}
-	
+
 	errno_t rc = udebug_begin(ksess);
 	if (rc != EOK) {
@@ -146,5 +146,5 @@
 		return rc;
 	}
-	
+
 	sess = ksess;
 	return 0;
Index: uspace/app/tester/console/console1.c
===================================================================
--- uspace/app/tester/console/console1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/console/console1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 	if (!test_quiet) {
 		console_ctrl_t *console = console_init(stdin, stdout);
-		
+
 		printf("Style test: ");
 		console_flush(console);
@@ -68,8 +68,8 @@
 		console_set_style(console, STYLE_NORMAL);
 		printf("\n");
-		
+
 		unsigned int i;
 		unsigned int j;
-		
+
 		printf("\nForeground color test:\n");
 		for (j = 0; j < 2; j++) {
@@ -84,5 +84,5 @@
 			putchar('\n');
 		}
-		
+
 		printf("\nBackground color test:\n");
 		for (j = 0; j < 2; j++) {
@@ -97,7 +97,7 @@
 			putchar('\n');
 		}
-		
+
 		printf("\nRGB colors test:\n");
-		
+
 		for (i = 0; i < 255; i += 16) {
 			console_flush(console);
@@ -108,5 +108,5 @@
 		console_set_color(console, COLOR_WHITE, COLOR_BLACK, 0);
 		putchar('\n');
-		
+
 		for (i = 0; i < 255; i += 16) {
 			console_flush(console);
@@ -117,5 +117,5 @@
 		console_set_color(console, COLOR_WHITE, COLOR_BLACK, 0);
 		putchar('\n');
-		
+
 		for (i = 0; i < 255; i += 16) {
 			console_flush(console);
@@ -127,5 +127,5 @@
 		putchar('\n');
 	}
-	
+
 	return NULL;
 }
Index: uspace/app/tester/fault/fault1.c
===================================================================
--- uspace/app/tester/fault/fault1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/fault/fault1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -33,5 +33,5 @@
 {
 	((int *)(0))[1] = 0;
-	
+
 	return "Survived write to NULL";
 }
Index: uspace/app/tester/fault/fault2.c
===================================================================
--- uspace/app/tester/fault/fault2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/fault/fault2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,5 +38,5 @@
 	volatile int var1 = *((aliasing_int *) (((char *) (&var)) + 1));
 	printf("Read %d\n", var1);
-	
+
 	return "Survived unaligned read";
 }
Index: uspace/app/tester/float/float1.c
===================================================================
--- uspace/app/tester/float/float1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/float/float1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,10 +52,10 @@
 		double e = 0;
 		double f = 1;
-		
+
 		for (double d = 1; e != le; d *= f, f += 1) {
 			le = e;
 			e = e + 1 / d;
 		}
-		
+
 		if ((uint32_t) (e * PRECISION) != E_10E8) {
 			atomic_inc(&threads_fault);
@@ -63,5 +63,5 @@
 		}
 	}
-	
+
 	atomic_inc(&threads_finished);
 }
@@ -70,8 +70,8 @@
 {
 	atomic_count_t total = 0;
-	
+
 	atomic_set(&threads_finished, 0);
 	atomic_set(&threads_fault, 0);
-	
+
 	TPRINTF("Creating threads");
 	for (unsigned int i = 0; i < THREADS; i++) {
@@ -80,11 +80,11 @@
 			break;
 		}
-		
+
 		TPRINTF(".");
 		total++;
 	}
-	
+
 	TPRINTF("\n");
-	
+
 	while (atomic_get(&threads_finished) < total) {
 		TPRINTF("Threads left: %" PRIua "\n",
@@ -92,8 +92,8 @@
 		thread_sleep(1);
 	}
-	
+
 	if (atomic_get(&threads_fault) == 0)
 		return NULL;
-	
+
 	return "Test failed";
 }
Index: uspace/app/tester/float/softfloat1.c
===================================================================
--- uspace/app/tester/float/softfloat1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/float/softfloat1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -100,8 +100,8 @@
 	if (a < b)
 		return -1;
-	
+
 	if (a > b)
 		return 1;
-	
+
 	return 0;
 }
@@ -111,8 +111,8 @@
 	if (a < b)
 		return -1;
-	
+
 	if (a > b)
 		return 1;
-	
+
 	return 0;
 }
@@ -122,9 +122,9 @@
 {
 	uint_to_double_op_t op = (uint_to_double_op_t) f;
-	
+
 	double c;
 	double sc;
 	op(uop_a[i], &c, &sc);
-	
+
 	*pic = (cmptype_t) (c * PRECISION);
 	*pisc = (cmptype_t) (sc * PRECISION);
@@ -135,9 +135,9 @@
 {
 	double_to_uint_op_t op = (double_to_uint_op_t) f;
-	
+
 	unsigned int c;
 	unsigned int sc;
 	op(dop_a[i], &c, &sc);
-	
+
 	*pic = (cmptype_t) c;
 	*pisc = (cmptype_t) sc;
@@ -148,9 +148,9 @@
 {
 	float_binary_op_t op = (float_binary_op_t) f;
-	
+
 	float c;
 	float sc;
 	op(fop_a[i], fop_a[j], &c, &sc);
-	
+
 	*pic = (cmptype_t) (c * PRECISION);
 	*pisc = (cmptype_t) (sc * PRECISION);
@@ -161,5 +161,5 @@
 {
 	float_cmp_op_t op = (float_cmp_op_t) f;
-	
+
 	op(dop_a[i], dop_a[j], pis, piss);
 }
@@ -169,9 +169,9 @@
 {
 	double_binary_op_t op = (double_binary_op_t) f;
-	
+
 	double c;
 	double sc;
 	op(dop_a[i], dop_a[j], &c, &sc);
-	
+
 	*pic = (cmptype_t) (c * PRECISION);
 	*pisc = (cmptype_t) (sc * PRECISION);
@@ -182,5 +182,5 @@
 {
 	double_cmp_op_t op = (double_cmp_op_t) f;
-	
+
 	op(dop_a[i], dop_a[j], pis, piss);
 }
@@ -189,12 +189,12 @@
 {
 	bool correct = true;
-	
+
 	for (unsigned int i = 0; i < OPERANDS; i++) {
 		cmptype_t ic;
 		cmptype_t isc;
-		
+
 		template(f, i, &ic, &isc);
 		cmptype_t diff = ic - isc;
-		
+
 		if (diff != 0) {
 			TPRINTF("i=%u ic=%" PRIdCMPTYPE " isc=%" PRIdCMPTYPE "\n",
@@ -203,5 +203,5 @@
 		}
 	}
-	
+
 	return correct;
 }
@@ -210,13 +210,13 @@
 {
 	bool correct = true;
-	
+
 	for (unsigned int i = 0; i < OPERANDS; i++) {
 		for (unsigned int j = 0; j < OPERANDS; j++) {
 			cmptype_t ic;
 			cmptype_t isc;
-			
+
 			template(f, i, j, &ic, &isc);
 			cmptype_t diff = ic - isc;
-			
+
 			if (diff != 0) {
 				TPRINTF("i=%u, j=%u ic=%" PRIdCMPTYPE
@@ -226,5 +226,5 @@
 		}
 	}
-	
+
 	return correct;
 }
@@ -275,5 +275,5 @@
 		return;
 	}
-	
+
 	*pc = a / b;
 	*psc = div_float(a, b);
@@ -284,5 +284,5 @@
 {
 	*pis = fcmp(a, b);
-	
+
 	if (is_float_lt(a, b) == -1)
 		*piss = -1;
@@ -320,5 +320,5 @@
 		return;
 	}
-	
+
 	*pc = a / b;
 	*psc = div_double(a, b);
@@ -329,5 +329,5 @@
 {
 	*pis = dcmp(a, b);
-	
+
 	if (is_double_lt(a, b) == -1)
 		*piss = -1;
@@ -343,55 +343,55 @@
 {
 	bool err = false;
-	
+
 	if (!test_template_binary(float_template_binary, float_add_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Float addition failed");
 	}
-	
+
 	if (!test_template_binary(float_template_binary, float_sub_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Float addition failed");
 	}
-	
+
 	if (!test_template_binary(float_template_binary, float_mul_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Float multiplication failed");
 	}
-	
+
 	if (!test_template_binary(float_template_binary, float_div_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Float division failed");
 	}
-	
+
 	if (!test_template_binary(float_compare_template, float_cmp_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Float comparison failed");
 	}
-	
+
 	if (!test_template_binary(double_template_binary, double_add_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Double addition failed");
 	}
-	
+
 	if (!test_template_binary(double_template_binary, double_sub_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Double addition failed");
 	}
-	
+
 	if (!test_template_binary(double_template_binary, double_mul_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Double multiplication failed");
 	}
-	
+
 	if (!test_template_binary(double_template_binary, double_div_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Double division failed");
 	}
-	
+
 	if (!test_template_binary(double_compare_template, double_cmp_operator)) {
 		err = true;
 		TPRINTF("%s\n", "Double comparison failed");
 	}
-	
+
 	if (!test_template_unary(uint_to_double_template,
 	    uint_to_double_operator)) {
@@ -399,5 +399,5 @@
 		TPRINTF("%s\n", "Conversion from unsigned int to double failed");
 	}
-	
+
 	if (!test_template_unary(double_to_uint_template,
 	    double_to_uint_operator)) {
@@ -405,5 +405,5 @@
 		TPRINTF("%s\n", "Conversion from double to unsigned int failed");
 	}
-	
+
 	if (!test_template_unary(double_to_uint_template,
 	    double_to_int_operator)) {
@@ -411,8 +411,8 @@
 		TPRINTF("%s\n", "Conversion from double to signed int failed");
 	}
-	
+
 	if (err)
 		return "Software floating point imprecision";
-	
+
 	return NULL;
 }
Index: uspace/app/tester/hw/serial/serial1.c
===================================================================
--- uspace/app/tester/hw/serial/serial1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/hw/serial/serial1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 	size_t nread;
 	size_t nwritten;
-	
+
 	if (test_argc < 1)
 		cnt = DEFAULT_COUNT;
@@ -73,5 +73,5 @@
 			return "Unexpected argument error";
 		}
-	
+
 	service_id_t svc_id;
 	errno_t res = loc_service_get_id("devices/\\hw\\pci0\\00:01.0\\com1\\a",
@@ -79,10 +79,10 @@
 	if (res != EOK)
 		return "Failed getting serial port service ID";
-	
+
 	async_sess_t *sess = loc_service_connect(svc_id, INTERFACE_DDF,
 	    IPC_FLAG_BLOCKING);
 	if (sess == NULL)
 		return "Failed connecting to serial device";
-	
+
 	res = chardev_open(sess, &chardev);
 	if (res != EOK) {
@@ -90,5 +90,5 @@
 		return "Failed opening serial port";
 	}
-	
+
 	res = serial_open(sess, &serial);
 	if (res != EOK) {
@@ -97,5 +97,5 @@
 		return "Failed opening serial port";
 	}
-	
+
 	char *buf = (char *) malloc(cnt + 1);
 	if (buf == NULL) {
@@ -105,10 +105,10 @@
 		return "Failed allocating input buffer";
 	}
-	
+
 	unsigned old_baud;
 	serial_parity_t old_par;
 	unsigned old_stop;
 	unsigned old_word_size;
-	
+
 	res = serial_get_comm_props(serial, &old_baud, &old_par,
 	    &old_word_size, &old_stop);
@@ -120,5 +120,5 @@
 		return "Failed to get old serial communication parameters";
 	}
-	
+
 	res = serial_set_comm_props(serial, 1200, SERIAL_NO_PARITY, 8, 1);
 	if (EOK != res) {
@@ -129,16 +129,16 @@
 		return "Failed setting serial communication parameters";
 	}
-	
+
 	TPRINTF("Trying reading %zu characters from serial device "
 	    "(svc_id=%" PRIun ")\n", cnt, svc_id);
-	
+
 	size_t total = 0;
 	while (total < cnt) {
-		
+
 		rc = chardev_read(chardev, buf, cnt - total, &nread);
 		if (rc != EOK) {
 			(void) serial_set_comm_props(serial, old_baud,
 			    old_par, old_word_size, old_stop);
-			
+
 			free(buf);
 			chardev_close(chardev);
@@ -147,9 +147,9 @@
 			return "Failed reading from serial device";
 		}
-		
+
 		if (nread > cnt - total) {
 			(void) serial_set_comm_props(serial, old_baud,
 			    old_par, old_word_size, old_stop);
-			
+
 			free(buf);
 			chardev_close(chardev);
@@ -158,9 +158,9 @@
 			return "Read more data than expected";
 		}
-		
+
 		TPRINTF("Read %zd bytes\n", nread);
-		
+
 		buf[nread] = 0;
-		
+
 		/*
 		 * Write data back to the device to test the opposite
@@ -171,5 +171,5 @@
 			(void) serial_set_comm_props(serial, old_baud,
 			    old_par, old_word_size, old_stop);
-			
+
 			free(buf);
 			chardev_close(chardev);
@@ -178,9 +178,9 @@
 			return "Failed writing to serial device";
 		}
-		
+
 		if (nwritten != nread) {
 			(void) serial_set_comm_props(serial, old_baud,
 			    old_par, old_word_size, old_stop);
-			
+
 			free(buf);
 			chardev_close(chardev);
@@ -189,30 +189,30 @@
 			return "Written less data than read from serial device";
 		}
-		
+
 		TPRINTF("Written %zd bytes\n", nwritten);
-		
+
 		total += nread;
 	}
-	
+
 	TPRINTF("Trying to write EOT banner to the serial device\n");
-	
+
 	size_t eot_size = str_size(EOT);
 	rc = chardev_write(chardev, (void *) EOT, eot_size, &nwritten);
-	
+
 	(void) serial_set_comm_props(serial, old_baud, old_par, old_word_size,
 	    old_stop);
-	
+
 	free(buf);
 	chardev_close(chardev);
 	serial_close(serial);
 	async_hangup(sess);
-	
+
 	if (rc != EOK)
 		return "Failed to write EOT banner to serial device";
-	
+
 	if (nwritten != eot_size)
 		return "Written less data than the size of the EOT banner "
 		    "to serial device";
-	
+
 	return NULL;
 }
Index: uspace/app/tester/ipc/ping_pong.c
===================================================================
--- uspace/app/tester/ipc/ping_pong.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/ipc/ping_pong.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,20 +41,20 @@
 {
 	TPRINTF("Pinging ns server for %d seconds...", DURATION_SECS);
-	
+
 	struct timeval start;
 	gettimeofday(&start, NULL);
-	
+
 	uint64_t count = 0;
 	while (true) {
 		struct timeval now;
 		gettimeofday(&now, NULL);
-		
+
 		if (tv_sub_diff(&now, &start) >= DURATION_SECS * 1000000L)
 			break;
-		
+
 		size_t i;
 		for (i = 0; i < COUNT_GRANULARITY; i++) {
 			errno_t retval = ns_ping();
-			
+
 			if (retval != EOK) {
 				TPRINTF("\n");
@@ -62,11 +62,11 @@
 			}
 		}
-		
+
 		count += COUNT_GRANULARITY;
 	}
-	
+
 	TPRINTF("OK\nCompleted %" PRIu64 " round trips in %u seconds, %" PRIu64 " rt/s.\n",
 	    count, DURATION_SECS, count / DURATION_SECS);
-	
+
 	return NULL;
 }
Index: uspace/app/tester/ipc/starve.c
===================================================================
--- uspace/app/tester/ipc/starve.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/ipc/starve.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,8 +42,8 @@
 	if (console == NULL)
 		return "Failed to init connection with console.";
-	
+
 	struct timeval start;
 	gettimeofday(&start, NULL);
-	
+
 	TPRINTF("Intensive computation shall be imagined (for %ds)...\n", DURATION_SECS);
 	TPRINTF("Press a key to terminate prematurely...\n");
@@ -51,8 +51,8 @@
 		struct timeval now;
 		gettimeofday(&now, NULL);
-		
+
 		if (tv_sub_diff(&now, &start) >= DURATION_SECS * 1000000L)
 			break;
-		
+
 		cons_event_t ev;
 		suseconds_t timeout = 0;
@@ -63,14 +63,14 @@
 		}
 	}
-	
+
 	// FIXME - unless a key was pressed, the answer leaked as no one
 	// will wait for it.
 	// We cannot use async_forget() directly, though. Something like
 	// console_forget_pending_kbd_event() shall come here.
-	
+
 	TPRINTF("Terminating...\n");
-	
+
 	console_done(console);
-	
+
 	return err;
 }
Index: uspace/app/tester/loop/loop1.c
===================================================================
--- uspace/app/tester/loop/loop1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/loop/loop1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,5 +36,5 @@
 	while (true);
 	TPRINTF("\n");
-	
+
 	return "Survived endless loop";
 }
Index: uspace/app/tester/mm/common.c
===================================================================
--- uspace/app/tester/mm/common.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/mm/common.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,10 +72,10 @@
 {
 	link_t *link;
-	
+
 	while ((link = list_first(&mem_blocks)) != NULL) {
 		mem_block_t *block = list_get_instance(link, mem_block_t, link);
 		free_block(block);
 	}
-	
+
 	while ((link = list_first(&mem_areas)) != NULL) {
 		mem_area_t *area = list_get_instance(link, mem_area_t, link);
@@ -89,13 +89,13 @@
 	uint8_t *mbeg = (uint8_t *) block;
 	uint8_t *mend = (uint8_t *) block + sizeof(mem_block_t);
-	
+
 	/* Entry block memory <bbeg, bend) */
 	uint8_t *bbeg = (uint8_t *) block->addr;
 	uint8_t *bend = (uint8_t *) block->addr + block->size;
-	
+
 	/* Data block <dbeg, dend) */
 	uint8_t *dbeg = (uint8_t *) addr;
 	uint8_t *dend = (uint8_t *) addr + size;
-	
+
 	/* Check for overlaps */
 	if (((mbeg >= dbeg) && (mbeg < dend)) ||
@@ -104,5 +104,5 @@
 	    ((bend > dbeg) && (bend <= dend)))
 		return true;
-	
+
 	return false;
 }
@@ -122,5 +122,5 @@
 {
 	bool fnd = false;
-	
+
 	list_foreach(mem_blocks, link, mem_block_t, block) {
 		if (overlap_match(block, addr, size)) {
@@ -129,5 +129,5 @@
 		}
 	}
-	
+
 	return fnd;
 }
@@ -160,5 +160,5 @@
 {
 	void *data;
-	
+
 	/* Allocate the chunk of memory */
 	data = malloc(size);
@@ -166,5 +166,5 @@
 	if (data == NULL)
 		return NULL;
-	
+
 	/* Check for overlaps with other chunks */
 	if (test_overlap(data, size)) {
@@ -174,5 +174,5 @@
 		error_flag = true;
 	}
-	
+
 	return data;
 }
@@ -197,5 +197,5 @@
 	if (mem_allocated >= MAX_ALLOC)
 		return NULL;
-	
+
 	/* Allocate the block holder */
 	mem_block_t *block =
@@ -203,7 +203,7 @@
 	if (block == NULL)
 		return NULL;
-	
+
 	link_initialize(&block->link);
-	
+
 	/* Allocate the block memory */
 	block->addr = checked_malloc(size);
@@ -213,12 +213,12 @@
 		return NULL;
 	}
-	
+
 	block->size = size;
-	
+
 	/* Register the allocated block */
 	list_append(&block->link, &mem_blocks);
 	mem_allocated += size + sizeof(mem_block_t);
 	mem_blocks_count++;
-	
+
 	return block;
 }
@@ -238,5 +238,5 @@
 	mem_allocated -= block->size + sizeof(mem_block_t);
 	mem_blocks_count--;
-	
+
 	/* Free the memory */
 	free(block->addr);
@@ -272,5 +272,5 @@
 	    pos < end; pos++)
 		*pos = block_expected_value(block, pos);
-	
+
 	check_consistency("fill_block");
 }
@@ -308,8 +308,8 @@
 	if (mem_blocks_count == 0)
 		return NULL;
-	
+
 	unsigned long idx = rand() % mem_blocks_count;
 	link_t *entry = list_nth(&mem_blocks, idx);
-	
+
 	if (entry == NULL) {
 		TPRINTF("\nError: Corrupted list of allocated memory blocks.\n");
@@ -317,5 +317,5 @@
 		error_flag = true;
 	}
-	
+
 	return list_get_instance(entry, mem_block_t, link);
 }
@@ -337,7 +337,7 @@
 	if (area == NULL)
 		return NULL;
-	
+
 	link_initialize(&area->link);
-	
+
 	area->addr = as_area_create(AS_AREA_ANY, size,
 	    AS_AREA_WRITE | AS_AREA_READ | AS_AREA_CACHEABLE,
@@ -348,10 +348,10 @@
 		return NULL;
 	}
-	
+
 	area->size = size;
-	
+
 	/* Register the allocated area */
 	list_append(&area->link, &mem_areas);
-	
+
 	return area;
 }
@@ -369,10 +369,10 @@
 	/* Unregister the area */
 	list_remove(&area->link);
-	
+
 	/* Free the memory */
 	errno_t ret = as_area_destroy(area->addr);
 	if (ret != EOK)
 		error_flag = true;
-	
+
 	free(area);
 	check_consistency("unmap_area");
@@ -405,5 +405,5 @@
 	    pos < end; pos++)
 		*pos = area_expected_value(area, pos);
-	
+
 	check_consistency("fill_area");
 }
Index: uspace/app/tester/mm/common.h
===================================================================
--- uspace/app/tester/mm/common.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/mm/common.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,8 +48,8 @@
 	/* Address of the start of the block */
 	void *addr;
-	
+
 	/* Size of the memory block */
 	size_t size;
-	
+
 	/* Link to other blocks */
 	link_t link;
@@ -59,5 +59,5 @@
 	/* Address of the start of the area */
 	void *addr;
-	
+
 	/* Size of the memory area */
 	size_t size;
Index: uspace/app/tester/mm/malloc1.c
===================================================================
--- uspace/app/tester/mm/malloc1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/mm/malloc1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -208,5 +208,5 @@
 {
 	for (unsigned int cycles = 0; /* always */; cycles++) {
-		
+
 		if ((subphase->cond.max_cycles) &&
 		    (cycles >= subphase->cond.max_cycles)) {
@@ -217,5 +217,5 @@
 			break;
 		}
-		
+
 		/*
 		 * Decide whether we alloc or free memory in this step.
@@ -229,8 +229,8 @@
 			int alloc = phase->alloc.min_block_size +
 			    (rand() % (phase->alloc.max_block_size - phase->alloc.min_block_size + 1));
-			
+
 			mem_block_t *blk = alloc_block(alloc);
 			RETURN_IF_ERROR;
-			
+
 			if (blk == NULL) {
 				TPRINTF("F(A)");
@@ -244,5 +244,5 @@
 				RETURN_IF_ERROR;
 			}
-			
+
 		} else if (rnd < subphase->prob.free) {
 			mem_block_t *blk = get_random_block();
@@ -257,5 +257,5 @@
 				check_block(blk);
 				RETURN_IF_ERROR;
-				
+
 				free_block(blk);
 				RETURN_IF_ERROR;
@@ -263,5 +263,5 @@
 		}
 	}
-	
+
 	TPRINTF("\n..  finished.\n");
 }
@@ -271,5 +271,5 @@
 	for (unsigned int subno = 0; subno < 3; subno++) {
 		subphase_t *subphase = &phase->subphases[subno];
-		
+
 		TPRINTF(".. Sub-phase %u (%s)\n", subno + 1, subphase->name);
 		do_subphase(phase, subphase);
@@ -281,23 +281,23 @@
 {
 	init_mem();
-	
+
 	for (unsigned int phaseno = 0; phaseno < sizeof_array(phases);
 	    phaseno++) {
 		phase_t *phase = &phases[phaseno];
-		
+
 		TPRINTF("Entering phase %u (%s)\n", phaseno + 1, phase->name);
-		
+
 		do_phase(phase);
 		if (error_flag)
 			break;
-		
+
 		TPRINTF("Phase finished.\n");
 	}
-	
+
 	TPRINTF("Cleaning up.\n");
 	done_mem();
 	if (error_flag)
 		return "Test failed";
-	
+
 	return NULL;
 }
Index: uspace/app/tester/mm/malloc3.c
===================================================================
--- uspace/app/tester/mm/malloc3.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/mm/malloc3.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -200,5 +200,5 @@
 {
 	for (unsigned int cycles = 0; /* always */; cycles++) {
-		
+
 		if ((subphase->cond.max_cycles) &&
 		    (cycles >= subphase->cond.max_cycles)) {
@@ -209,5 +209,5 @@
 			break;
 		}
-		
+
 		/*
 		 * Decide whether we alloc or free memory in this step.
@@ -221,8 +221,8 @@
 			int alloc = phase->alloc.min_block_size +
 			    (rand() % (phase->alloc.max_block_size - phase->alloc.min_block_size + 1));
-			
+
 			mem_block_t *blk = alloc_block(alloc);
 			RETURN_IF_ERROR;
-			
+
 			if (blk == NULL) {
 				TPRINTF("F(A)");
@@ -235,9 +235,9 @@
 				fill_block(blk);
 				RETURN_IF_ERROR;
-				
+
 				if ((mem_blocks_count % AREA_GRANULARITY) == 0) {
 					mem_area_t *area = map_area(AREA_SIZE);
 					RETURN_IF_ERROR;
-					
+
 					if (area != NULL) {
 						TPRINTF("*");
@@ -248,5 +248,5 @@
 				}
 			}
-			
+
 		} else if (rnd < subphase->prob.free) {
 			mem_block_t *blk = get_random_block();
@@ -261,5 +261,5 @@
 				check_block(blk);
 				RETURN_IF_ERROR;
-				
+
 				free_block(blk);
 				RETURN_IF_ERROR;
@@ -267,5 +267,5 @@
 		}
 	}
-	
+
 	TPRINTF("\n..  finished.\n");
 }
@@ -275,5 +275,5 @@
 	for (unsigned int subno = 0; subno < 3; subno++) {
 		subphase_t *subphase = &phase->subphases[subno];
-		
+
 		TPRINTF(".. Sub-phase %u (%s)\n", subno + 1, subphase->name);
 		do_subphase(phase, subphase);
@@ -285,23 +285,23 @@
 {
 	init_mem();
-	
+
 	for (unsigned int phaseno = 0; phaseno < sizeof_array(phases);
 	    phaseno++) {
 		phase_t *phase = &phases[phaseno];
-		
+
 		TPRINTF("Entering phase %u (%s)\n", phaseno + 1, phase->name);
-		
+
 		do_phase(phase);
 		if (error_flag)
 			break;
-		
+
 		TPRINTF("Phase finished.\n");
 	}
-	
+
 	TPRINTF("Cleaning up.\n");
 	done_mem();
 	if (error_flag)
 		return "Test failed";
-	
+
 	return NULL;
 }
Index: uspace/app/tester/mm/mapping1.c
===================================================================
--- uspace/app/tester/mm/mapping1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/mm/mapping1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,10 +41,10 @@
 {
 	TPRINTF("Creating AS area...\n");
-	
+
 	void *result = as_area_create(AS_AREA_ANY, size,
 	    AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE, AS_AREA_UNPAGED);
 	if (result == AS_MAP_FAILED)
 		return NULL;
-	
+
 	return result;
 }
@@ -53,7 +53,7 @@
 {
 	TPRINTF("Touching (faulting-in) AS area...\n");
-	
+
 	char *ptr = (char *)area;
-	
+
 	while (size > 0) {
 		*ptr = 0;
@@ -86,5 +86,5 @@
 {
 	errno_t rc;
-	
+
 	size_t buffer1_len = BUFFER1_PAGES * PAGE_SIZE;
 	size_t buffer2_len = BUFFER2_PAGES * PAGE_SIZE;
@@ -94,8 +94,8 @@
 		return "Cannot allocate memory";
 	}
-	
+
 	touch_area(buffer1, buffer1_len);
 	touch_area(buffer2, buffer2_len);
-	
+
 	/* Now verify that mapping to physical frames exist. */
 	if (!VERIFY_MAPPING(buffer1, BUFFER1_PAGES, EOK)) {
@@ -105,5 +105,5 @@
 		return "Failed to find mapping (buffer2)";
 	}
-	
+
 	/* Let's destroy the buffer1 area and access it again. */
 	rc = as_area_destroy(buffer1);
@@ -114,5 +114,5 @@
 		return "Mapping of destroyed area still exists";
 	}
-	
+
 	/* clean-up */
 	rc = as_area_destroy(buffer2);
@@ -120,5 +120,5 @@
 		return "Failed to destroy AS area";
 	}
-	
+
 	return NULL;
 }
Index: uspace/app/tester/mm/pager1.c
===================================================================
--- uspace/app/tester/mm/pager1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/mm/pager1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,7 +71,7 @@
 		return NULL;
 	}
-	
+
 	TPRINTF("Creating AS area...\n");
-	
+
 	void *result = async_as_area_create(AS_AREA_ANY, size,
 	    AS_AREA_READ | AS_AREA_CACHEABLE, vfs_pager_sess, fd, 0, 0);
@@ -80,5 +80,5 @@
 		return NULL;
 	}
-	
+
 	return result;
 }
@@ -87,7 +87,7 @@
 {
 	TPRINTF("Touching (faulting-in) AS area...\n");
-	
+
 	volatile char *ptr = (char *) area;
-	
+
 	char ch;
 	while ((ch = *ptr++))
@@ -101,10 +101,10 @@
 	if (!buffer)
 		return "Cannot allocate memory";
-	
+
 	touch_area(buffer, buffer_len);
 
 	as_area_destroy(buffer);
 	vfs_put(fd);
-	
+
 	return NULL;
 }
Index: uspace/app/tester/print/print1.c
===================================================================
--- uspace/app/tester/print/print1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/print/print1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,21 +36,21 @@
 	TPRINTF("Expected output: \"  tex\"\n");
 	TPRINTF("Real output:     \"%*.*s\"\n\n", 5, 3, "text");
-	
+
 	TPRINTF("Testing printf(\"%%10.8s\", \"very long text\"):\n");
 	TPRINTF("Expected output: \"  very lon\"\n");
 	TPRINTF("Real output:     \"%10.8s\"\n\n", "very long text");
-	
+
 	TPRINTF("Testing printf(\"%%8.10s\", \"text\"):\n");
 	TPRINTF("Expected output: \"    text\"\n");
 	TPRINTF("Real output:     \"%8.10s\"\n\n", "text");
-	
+
 	TPRINTF("Testing printf(\"%%8.10s\", \"very long text\"):\n");
 	TPRINTF("Expected output: \"very long \"\n");
 	TPRINTF("Real output:     \"%8.10s\"\n\n", "very long text");
-	
+
 	TPRINTF("Testing printf(\"%%-*.*s\", 7, 7, \"text\"):\n");
 	TPRINTF("Expected output: \"text   \"\n");
 	TPRINTF("Real output:     \"%-*.*s\"\n\n", 7, 7, "text");
-	
+
 	return NULL;
 }
Index: uspace/app/tester/print/print2.c
===================================================================
--- uspace/app/tester/print/print2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/print/print2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,24 +36,24 @@
 	TPRINTF("Expected output: [a]\n");
 	TPRINTF("Real output:     [%c]\n\n", 'a');
-	
+
 	TPRINTF("Testing printf(\"%%d %%3.2d %%-3.2d %%2.3d %%-2.3d\", 1, 2, 3, 4, 5):\n");
 	TPRINTF("Expected output: [1] [ 02] [03 ] [004] [005]\n");
 	TPRINTF("Real output:     [%d] [%3.2d] [%-3.2d] [%2.3d] [%-2.3d]\n\n", 1, 2, 3, 4, 5);
-	
+
 	TPRINTF("Testing printf(\"%%d %%3.2d %%-3.2d %%2.3d %%-2.3d\", -1, -2, -3, -4, -5):\n");
 	TPRINTF("Expected output: [-1] [-02] [-03] [-004] [-005]\n");
 	TPRINTF("Real output:     [%d] [%3.2d] [%-3.2d] [%2.3d] [%-2.3d]\n\n", -1, -2, -3, -4, -5);
-	
+
 	TPRINTF("Testing printf(\"%%lld %%3.2lld %%-3.2lld %%2.3lld %%-2.3lld\", (long long) -1, (long long) -2, (long long) -3, (long long) -4, (long long) -5):\n");
 	TPRINTF("Expected output: [-1] [-02] [-03] [-004] [-005]\n");
 	TPRINTF("Real output:     [%lld] [%3.2lld] [%-3.2lld] [%2.3lld] [%-2.3lld]\n\n", (long long) -1, (long long) -2, (long long) -3, (long long) -4, (long long) -5);
-	
+
 	TPRINTF("Testing printf(\"%%#x %%5.3#x %%-5.3#x %%3.5#x %%-3.5#x\", 17, 18, 19, 20, 21):\n");
 	TPRINTF("Expected output: [0x11] [0x012] [0x013] [0x00014] [0x00015]\n");
 	TPRINTF("Real output:     [%#x] [%#5.3x] [%#-5.3x] [%#3.5x] [%#-3.5x]\n\n", 17, 18, 19, 20, 21);
-	
+
 	char ch[12];
 	ptrdiff_t d, neg_d;
-	
+
 	d = &ch[0] - &ch[12];
 	neg_d = (unsigned)(-d);
@@ -61,5 +61,5 @@
 	TPRINTF("Expected output: [-12] [12] [c] [-12] [14]\n");
 	TPRINTF("Real output:     [%td] [%tu] [%tx] [%ti] [%to]\n\n", d, neg_d, neg_d, d, neg_d);
-	
+
 	return NULL;
 }
Index: uspace/app/tester/print/print3.c
===================================================================
--- uspace/app/tester/print/print3.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/print/print3.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,25 +38,25 @@
 	char buffer[BUFFER_SIZE];
 	int retval;
-	
+
 	TPRINTF("Testing snprintf(buffer, " STRING(BUFFER_SIZE) ", \"Short text without parameters.\"):\n");
 	TPRINTF("Expected result: retval=30 buffer=\"Short text without parameters.\"\n");
 	retval = snprintf(buffer, BUFFER_SIZE, "Short text without parameters.");
 	TPRINTF("Real result:     retval=%d buffer=\"%s\"\n\n", retval, buffer);
-	
+
 	TPRINTF("Testing snprintf(buffer, " STRING(BUFFER_SIZE) ", \"Very very very long text without parameters.\"):\n");
 	TPRINTF("Expected result: retval=44 buffer=\"Very very very long text withou\"\n");
 	retval = snprintf(buffer, BUFFER_SIZE, "Very very very long text without parameters.");
 	TPRINTF("Real result:     retval=%d buffer=\"%s\"\n\n", retval, buffer);
-	
+
 	TPRINTF("Testing snprintf(buffer, " STRING(BUFFER_SIZE) ", \"Short %%s.\", \"text\"):\n");
 	TPRINTF("Expected result: retval=11 buffer=\"Short text.\"\n");
 	retval = snprintf(buffer, BUFFER_SIZE, "Short %s.", "text");
 	TPRINTF("Real result:     retval=%d buffer=\"%s\"\n\n", retval, buffer);
-	
+
 	TPRINTF("Testing snprintf(buffer, " STRING(BUFFER_SIZE) ", \"Very long %%s. This text's length is more than %%d. We are interested in the result.\", \"text\", " STRING(BUFFER_SIZE) "):\n");
 	TPRINTF("Expected result: retval=84 buffer=\"Very long text. This text's len\"\n");
 	retval = snprintf(buffer, BUFFER_SIZE, "Very long %s. This text's length is more than %d. We are interested in the result.", "text", BUFFER_SIZE);
 	TPRINTF("Real result:     retval=%d buffer=\"%s\"\n\n", retval, buffer);
-	
+
 	return NULL;
 }
Index: uspace/app/tester/print/print4.c
===================================================================
--- uspace/app/tester/print/print4.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/print/print4.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,32 +35,32 @@
 {
 	TPRINTF("ASCII printable characters (32 - 127) using printf(\"%%c\") and printf(\"%%lc\"):\n");
-	
+
 	uint8_t group;
 	for (group = 1; group < 4; group++) {
 		TPRINTF("%#x: ", group << 5);
-		
+
 		uint8_t index;
 		for (index = 0; index < 32; index++)
 			TPRINTF("%c", (char) ((group << 5) + index));
-		
+
 		TPRINTF("  ");
 		for (index = 0; index < 32; index++)
 			TPRINTF("%lc", (wint_t) ((group << 5) + index));
-		
+
 		TPRINTF("\n");
 	}
-	
+
 	TPRINTF("\nExtended ASCII characters (128 - 255) using printf(\"%%lc\"):\n");
-	
+
 	for (group = 4; group < 8; group++) {
 		TPRINTF("%#x: ", group << 5);
-		
+
 		uint8_t index;
 		for (index = 0; index < 32; index++)
 			TPRINTF("%lc", (wint_t) ((group << 5) + index));
-		
+
 		TPRINTF("\n");
 	}
-	
+
 	TPRINTF("\nUTF-8 strings using printf(\"%%s\"):\n");
 	TPRINTF("English:  %s\n", "Quick brown fox jumps over the lazy dog");
@@ -71,5 +71,5 @@
 	TPRINTF("Russian:  %s\n", "Леннон познакомился с художницей-авангардисткой");
 	TPRINTF("Armenian: %s\n", "Սկսեց հրատարակվել Երուսաղեմի հայկական");
-	
+
 	TPRINTF("\nUTF-32 strings using printf(\"%%ls\"):\n");
 	TPRINTF("English:  %ls\n", L"Quick brown fox jumps over the lazy dog");
@@ -80,5 +80,5 @@
 	TPRINTF("Russian:  %ls\n", L"Леннон познакомился с художницей-авангардисткой");
 	TPRINTF("Armenian: %ls\n", L"Սկսեց հրատարակվել Երուսաղեմի հայկական");
-	
+
 	return NULL;
 }
Index: uspace/app/tester/print/print5.c
===================================================================
--- uspace/app/tester/print/print5.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/print/print5.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,9 +48,9 @@
 	TPRINTF("Expected output: \"(NULL)\"\n");
 	TPRINTF("Real output:     \"%s\"\n\n", (char *) NULL);
-	
+
 	TPRINTF("Testing printf(\"%%c %%3.2c %%-3.2c %%2.3c %%-2.3c\", 'a', 'b', 'c', 'd', 'e'):\n");
 	TPRINTF("Expected output: [a] [  b] [c  ] [ d] [e ]\n");
 	TPRINTF("Real output:     [%c] [%3.2c] [%-3.2c] [%2.3c] [%-2.3c]\n\n", 'a', 'b', 'c', 'd', 'e');
-	
+
 	return NULL;
 }
Index: uspace/app/tester/print/print6.c
===================================================================
--- uspace/app/tester/print/print6.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/print/print6.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -126,5 +126,5 @@
 		/* __PRINTF_FLAG_DECIMALPT */
 		{ -1.23450067995e+231, "%#10.10e",  "-1.2345006800e+231", 0 },
-			
+
 		/* special */
 
@@ -139,5 +139,5 @@
 		 * Fixed
 		 */
-		 
+
 		/* padding */
 
@@ -181,12 +181,12 @@
 	const int buf_size = 256;
 	char buf[256 + 1] = { 0 };
-	
+
 	TPRINTF("Test printing of floating point numbers via "
 	    "printf(\"%%f\"):\n");
-	
+
 	for (int i = 0; i < patterns_len; ++i) {
-		
+
 		snprintf(buf, buf_size, pat[i].fmt, pat[i].val);
-		
+
 		if (!str_cmp(buf, pat[i].exp_str)) {
 			TPRINTF("ok:  %s |%s| == |%s|\n",
@@ -203,5 +203,5 @@
 		}
 	}
-	
+
 	if (failed) {
 		return "Unexpectedly misprinted floating point numbers.";
Index: uspace/app/tester/stdio/stdio1.c
===================================================================
--- uspace/app/tester/stdio/stdio1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/stdio/stdio1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
 	FILE *file;
 	const char *file_name = "/textdemo";
-	
+
 	TPRINTF("Open file \"%s\"...", file_name);
 	errno = 0;
@@ -51,5 +51,5 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	TPRINTF("Read file...");
 	size_t cnt = fread(buf, 1, BUF_SIZE, file);
@@ -60,8 +60,8 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	buf[cnt] = '\0';
 	TPRINTF("Read %zu bytes, string \"%s\"\n", cnt, buf);
-	
+
 	TPRINTF("Seek to beginning...");
 	if (fseek(file, 0, SEEK_SET) != 0) {
@@ -71,5 +71,5 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	TPRINTF("Read using fgetc()...");
 	while (true) {
@@ -77,9 +77,9 @@
 		if (c == EOF)
 			break;
-		
+
 		TPRINTF(".");
 	}
 	TPRINTF("[EOF]\n");
-	
+
 	TPRINTF("Close...");
 	if (fclose(file) != 0) {
@@ -88,5 +88,5 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	return NULL;
 }
Index: uspace/app/tester/stdio/stdio2.c
===================================================================
--- uspace/app/tester/stdio/stdio2.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/stdio/stdio2.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,5 +38,5 @@
 	FILE *file;
 	const char *file_name = "/test";
-	
+
 	TPRINTF("Open file \"%s\" for writing...", file_name);
 	errno = 0;
@@ -47,9 +47,9 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	TPRINTF("Write to file...");
 	fprintf(file, "integer: %u, string: \"%s\"", 42, "Hello!");
 	TPRINTF("OK\n");
-	
+
 	TPRINTF("Close...");
 	if (fclose(file) != 0) {
@@ -58,5 +58,5 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	TPRINTF("Open file \"%s\" for reading...", file_name);
 	file = fopen(file_name, "rt");
@@ -66,5 +66,5 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	TPRINTF("File contains:\n");
 	while (true) {
@@ -74,5 +74,5 @@
 		TPRINTF("%c", c);
 	}
-	
+
 	TPRINTF("\nClose...");
 	if (fclose(file) != 0) {
@@ -81,5 +81,5 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	return NULL;
 }
Index: uspace/app/tester/tester.c
===================================================================
--- uspace/app/tester/tester.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/tester.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -84,10 +84,10 @@
 	/* Execute the test */
 	const char *ret = test->entry();
-	
+
 	if (ret == NULL) {
 		printf("\nTest passed\n");
 		return true;
 	}
-	
+
 	printf("\n%s\n", ret);
 	return false;
@@ -99,7 +99,7 @@
 	unsigned int i = 0;
 	unsigned int n = 0;
-	
+
 	printf("\n*** Running all safe tests ***\n\n");
-	
+
 	for (test = tests; test->name != NULL; test++) {
 		if (test->safe) {
@@ -111,5 +111,5 @@
 		}
 	}
-	
+
 	printf("\nCompleted, %u tests run, %u passed.\n", i + n, i);
 }
@@ -123,5 +123,5 @@
 			len = str_length(test->name);
 	}
-	
+
 	unsigned int _len = (unsigned int) len;
 	if ((_len != len) || (((int) _len) < 0)) {
@@ -129,9 +129,9 @@
 		return;
 	}
-	
+
 	for (test = tests; test->name != NULL; test++)
 		printf("%-*s %s%s\n", _len, test->name, test->desc,
 		    (test->safe ? "" : " (unsafe)"));
-	
+
 	printf("%-*s Run all safe tests\n", _len, "*");
 }
@@ -145,5 +145,5 @@
 		return 0;
 	}
-	
+
 	log_init("tester");
 
@@ -151,10 +151,10 @@
 	test_argc = argc - 2;
 	test_argv = argv + 2;
-	
+
 	if (str_cmp(argv[1], "*") == 0) {
 		run_safe_tests();
 		return 0;
 	}
-	
+
 	test_t *test;
 	for (test = tests; test->name != NULL; test++) {
@@ -163,5 +163,5 @@
 		}
 	}
-	
+
 	printf("Unknown test \"%s\"\n", argv[1]);
 	return -2;
Index: uspace/app/tester/thread/setjmp1.c
===================================================================
--- uspace/app/tester/thread/setjmp1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/thread/setjmp1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,7 +64,7 @@
 {
 	counter = 0;
-	
+
 	const char *err_msg = test_it();
-	
+
 	return err_msg;
 }
Index: uspace/app/tester/thread/thread1.c
===================================================================
--- uspace/app/tester/thread/thread1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/thread/thread1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,8 +45,8 @@
 {
 	thread_detach(thread_get_id());
-	
+
 	while (atomic_get(&finish))
 		thread_usleep(100000);
-	
+
 	atomic_inc(&threads_finished);
 }
@@ -56,8 +56,8 @@
 	unsigned int i;
 	atomic_count_t total = 0;
-	
+
 	atomic_set(&finish, 1);
 	atomic_set(&threads_finished, 0);
-	
+
 	TPRINTF("Creating threads");
 	for (i = 0; i < THREADS; i++) {
@@ -69,9 +69,9 @@
 		total++;
 	}
-	
+
 	TPRINTF("\nRunning threads for %u seconds...", DELAY);
 	thread_sleep(DELAY);
 	TPRINTF("\n");
-	
+
 	atomic_set(&finish, 0);
 	while (atomic_get(&threads_finished) < total) {
@@ -80,5 +80,5 @@
 		thread_sleep(1);
 	}
-	
+
 	return NULL;
 }
Index: uspace/app/tester/vfs/vfs1.c
===================================================================
--- uspace/app/tester/vfs/vfs1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tester/vfs/vfs1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,5 +50,5 @@
 {
 	TPRINTF("Opening the root directory...");
-	
+
 	DIR *dirp = opendir("/");
 	if (!dirp) {
@@ -57,10 +57,10 @@
 	} else
 		TPRINTF("OK\n");
-	
+
 	struct dirent *dp;
 	while ((dp = readdir(dirp)))
 		TPRINTF(" node \"%s\"\n", dp->d_name);
 	closedir(dirp);
-	
+
 	return NULL;
 }
@@ -77,5 +77,5 @@
 	}
 	TPRINTF("Created directory %s\n", TEST_DIRECTORY);
-	
+
 	int fd0;
 	rc = vfs_lookup_open(TEST_FILE, WALK_REGULAR | WALK_MAY_CREATE,
@@ -84,5 +84,5 @@
 		return "vfs_lookup_open() failed";
 	TPRINTF("Created file %s (fd=%d)\n", TEST_FILE, fd0);
-	
+
 	size_t size = sizeof(text);
 	size_t cnt;
@@ -93,5 +93,5 @@
 
 	pos = 0;
-	
+
 	char buf[BUF_SIZE];
 	TPRINTF("read..\n");
@@ -100,5 +100,5 @@
 		if (rc != EOK)
 			return "read() failed";
-		
+
 		int icnt = (int) cnt;
 		if ((size_t) icnt != cnt) {
@@ -109,27 +109,27 @@
 		}
 	}
-	
+
 	vfs_put(fd0);
-	
+
 	const char *rv = read_root();
 	if (rv != NULL)
 		return rv;
-	
+
 	if (vfs_rename_path(TEST_FILE, TEST_FILE2) != EOK)
 		return "vfs_rename_path() failed";
 	TPRINTF("Renamed %s to %s\n", TEST_FILE, TEST_FILE2);
-	
+
 	if (vfs_unlink_path(TEST_FILE2) != EOK)
 		return "vfs_unlink_path() failed";
 	TPRINTF("Unlinked %s\n", TEST_FILE2);
-	
+
 	if (vfs_unlink_path(TEST_DIRECTORY) != EOK)
 		return "vfs_unlink_path() failed";
 	TPRINTF("Removed directory %s\n", TEST_DIRECTORY);
-	
+
 	rv = read_root();
 	if (rv != NULL)
 		return rv;
-	
+
 	return NULL;
 }
Index: uspace/app/testread/testread.c
===================================================================
--- uspace/app/testread/testread.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/testread/testread.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 	bool check_enabled = true;
 	bool progress = true;
-	
+
 	if (argc < 2) {
 		printf(NAME ": Error, argument missing.\n");
@@ -85,18 +85,18 @@
 		return 1;
 	}
-	
+
 	/* Skip program name */
 	--argc; ++argv;
-	
+
 	if (argc > 0 && str_cmp(*argv, "--no-check") == 0) {
 		check_enabled = false;
 		--argc; ++argv;
 	}
-	
+
 	if (argc > 0 && str_cmp(*argv, "--no-progress") == 0) {
 		progress = false;
 		--argc; ++argv;
 	}
-	
+
 	if (argc != 1) {
 		printf(NAME ": Error, unexpected argument.\n");
@@ -104,7 +104,7 @@
 		return 1;
 	}
-	
+
 	file_name = *argv;
-	
+
 	buf = calloc(BUFELEMS, sizeof(uint64_t));
 	if (buf == NULL) {
@@ -112,5 +112,5 @@
 		return 1;
 	}
-	
+
 	file = fopen(file_name, "r");
 	if (file == NULL) {
@@ -118,5 +118,5 @@
 		return 1;
 	}
-	
+
 	expected = 0;
 	offset = 0;
@@ -127,5 +127,5 @@
 	gettimeofday(&start_time, NULL);
 	prev_time = start_time;
-	
+
 	while (!feof(file)) {
 		size_t elems = fread(buf, sizeof(uint64_t), BUFELEMS, file);
@@ -136,5 +136,5 @@
 			return 1;
 		}
-		
+
 		for (i = 0; i < elems; i++) {
 			if (check_enabled && uint64_t_le2host(buf[i]) != expected) {
@@ -147,9 +147,9 @@
 			offset += sizeof(uint64_t);
 		}
-		
+
 		if (progress && offset >= next_mark) {
 			struct timeval cur_time;
 			gettimeofday(&cur_time, NULL);
-			
+
 			uint32_t last_run = cur_time.tv_sec - prev_time.tv_sec;
 			uint32_t total_time = cur_time.tv_sec - start_time.tv_sec;
@@ -166,8 +166,8 @@
 		}
 	}
-	
+
 	struct timeval final_time;
 	gettimeofday(&final_time, NULL);
-	
+
 	uint32_t total_run_time = final_time.tv_sec - start_time.tv_sec;
 	if (total_run_time > 0) {
@@ -178,5 +178,5 @@
 		    offset/total_run_time);
 	}
-	
+
 	fclose(file);
 	free(buf);
Index: uspace/app/testwrit/testwrit.c
===================================================================
--- uspace/app/testwrit/testwrit.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/testwrit/testwrit.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,17 +43,17 @@
 	FILE *file;
 	char *file_name;
-	
+
 	/* Prepare some example data */
 	memset(buffer, 0xcafebabe, BUF_SIZE);
-	
+
 	if (argc != 3) {
 		printf("syntax: testwrit <iterations> <target file>\n");
 		return 1;
 	}
-	
+
 	char *end;
 	iterations = strtoul(argv[1], &end, 10);
 	file_name = argv[2];
-	
+
 	/* Open target file */
 	file = fopen(file_name, "a");
@@ -62,12 +62,12 @@
 		return 1;
 	}
-	
+
 	/* Writing loop */
 	for (i = 0; i < iterations; ++i) {
 		fwrite(buffer, 1, BUF_SIZE, file);
 	}
-	
+
 	fclose(file);
-	
+
 	return 0;
 }
Index: uspace/app/tetris/scores.c
===================================================================
--- uspace/app/tetris/scores.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tetris/scores.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -98,14 +98,14 @@
 {
 	int i;
-	
+
 	clear_screen();
 	moveto(10, 0);
 	printf("\tRank \tLevel \tName\t                     points\n");
 	printf("\t========================================================\n");
-	
+
 	for (i = 0; i < NUMSPOTS - 1; i++)
 		printf("\t%6d %6d %-16s %20d\n",
 		    i + 1, scores[i].hs_level, scores[i].hs_name, scores[i].hs_score);
-	
+
 	if (!firstgame) {
 		printf("\t========================================================\n");
@@ -113,5 +113,5 @@
 		    scores[NUMSPOTS - 1].hs_level, scores[NUMSPOTS - 1].hs_name, scores[NUMSPOTS - 1].hs_score);
 	}
-	
+
 	printf("\n\n\n\n\tPress any key to return to main menu.");
 	getchar();
@@ -125,5 +125,5 @@
 	cons_event_t ev;
 	kbd_event_t *kev;
-	
+
 	clear_screen();
 	moveto(10, 10);
@@ -133,26 +133,26 @@
 	i = 6;
 	off = 6;
-	
+
 	moveto(10 , 28);
 	printf("%s%.*s", scores[NUMSPOTS - 1].hs_name, MAXLOGNAME-i,
 	    "........................................");
-	
+
 	while (1) {
 		console_flush(console);
 		if (!console_get_event(console, &ev))
 			exit(1);
-		
+
 		if (ev.type != CEV_KEY || ev.ev.key.type == KEY_RELEASE)
 			continue;
-		
+
 		kev = &ev.ev.key;
-		
+
 		if (kev->key == KC_ENTER || kev->key == KC_NENTER)
 			break;
-		
+
 		if (kev->key == KC_BACKSPACE) {
 			if (i > 0) {
 				wchar_t uc;
-				
+
 				--i;
 				while (off > 0) {
@@ -164,5 +164,5 @@
 						break;
 				}
-				
+
 				scores[NUMSPOTS - 1].hs_name[off] = '\0';
 			}
@@ -176,20 +176,20 @@
 			}
 		}
-		
+
 		moveto(10, 28);
 		printf("%s%.*s", scores[NUMSPOTS - 1].hs_name, MAXLOGNAME - i,
 		    "........................................");
 	}
-	
+
 	scores[NUMSPOTS - 1].hs_score = score;
 	scores[NUMSPOTS - 1].hs_level = level;
-	
+
 	i = NUMSPOTS - 1;
 	while ((i > 0) && (scores[i - 1].hs_score < score))
 		i--;
-	
+
 	for (j = NUMSPOTS - 2; j > i; j--)
 		copyhiscore(j, j-1);
-	
+
 	copyhiscore(i, NUMSPOTS - 1);
 }
@@ -235,5 +235,5 @@
 		return;
 	}
-	
+
 	cnt = fwrite(scores, sizeof(struct highscore), NUMSPOTS, f);
 	rc = fclose(f);
Index: uspace/app/tetris/screen.c
===================================================================
--- uspace/app/tetris/screen.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tetris/screen.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -147,8 +147,8 @@
 	sysarg_t ccap;
 	errno_t rc = console_get_color_cap(console, &ccap);
-	
+
 	if (rc != EOK)
 		return false;
-	
+
 	return ((ccap & CONSOLE_CAP_RGB) == CONSOLE_CAP_RGB);
 }
@@ -160,8 +160,8 @@
 {
 	winsize_t ws;
-	
+
 	Rows = 0;
 	Cols = 0;
-	
+
 	if (get_display_size(&ws) == 0) {
 		Rows = ws.ws_row;
@@ -170,8 +170,8 @@
 
 	use_color = get_display_color_sup();
-	
+
 	if ((Rows < MINROWS) || (Cols < MINCOLS)) {
 		char smallscr[55];
-		
+
 		snprintf(smallscr, sizeof(smallscr),
 		    "the screen is too small (must be at least %dx%d)",
@@ -180,5 +180,5 @@
 	}
 	isset = 1;
-	
+
 	scr_clear();
 }
@@ -196,5 +196,5 @@
 	if (isset)
 		scr_end();
-	
+
 	fprintf(stderr, "aborting: %s", why);
 	abort();
@@ -213,8 +213,8 @@
 	int j;
 	int ccol;
-	
+
 	/* Always leave cursor after last displayed point */
 	curscreen[D_LAST * B_COLS - 1] = -1;
-	
+
 	if (score != curscore) {
 		moveto(0, 0);
@@ -222,5 +222,5 @@
 		curscore = score;
 	}
-	
+
 	/* Draw preview of next pattern */
 	if ((showpreview) && (nextshape != lastshape)) {
@@ -228,7 +228,7 @@
 		static int r = 5, c = 2;
 		int tr, tc, t;
-		
+
 		lastshape = nextshape;
-		
+
 		/* Clean */
 		resume_normal();
@@ -241,8 +241,8 @@
 		moveto(r + 2, c - 1);
 		putstr("          ");
-		
+
 		moveto(r - 3, c - 2);
 		putstr("Next shape:");
-		
+
 		/* Draw */
 		start_standout(nextshape->color);
@@ -252,8 +252,8 @@
 			t = c + r * B_COLS;
 			t += nextshape->off[i];
-			
+
 			tr = t / B_COLS;
 			tc = t % B_COLS;
-			
+
 			moveto(tr, 2*tc);
 			putstr("  ");
@@ -261,5 +261,5 @@
 		resume_normal();
 	}
-	
+
 	bp = &board[D_FIRST * B_COLS];
 	sp = &curscreen[D_FIRST * B_COLS];
@@ -269,5 +269,5 @@
 			if (*sp == (so = *bp))
 				continue;
-			
+
 			*sp = so;
 			if (i != ccol) {
@@ -278,5 +278,5 @@
 				moveto(RTOD(j), CTOD(i));
 			}
-			
+
 			if (so != cur_so) {
 				if (so)
@@ -287,5 +287,5 @@
 			}
 			putstr("  ");
-			
+
 			ccol = i + 1;
 			/*
@@ -297,8 +297,8 @@
 			 * the next cell is a different color.
 			 */
-			
+
 			if ((i > STOP) || (sp[1] != bp[1]) || (so != bp[1]))
 				continue;
-			
+
 			if (sp[2] != bp[2])
 				sp[1] = -1;
@@ -309,8 +309,8 @@
 		}
 	}
-	
+
 	if (cur_so)
 		resume_normal();
-	
+
 	console_flush(console);
 }
@@ -323,7 +323,7 @@
 {
 	int l = str_size(s);
-	
+
 	moveto(Rows - 2, ((Cols - l) >> 1) - 1);
-	
+
 	if (set)
 		putstr(s);
@@ -341,8 +341,8 @@
 {
 	suseconds_t timeout = fallrate;
-	
+
 	while (timeout > 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event_timeout(console, &event, &timeout))
 			break;
@@ -359,10 +359,10 @@
 	 * and increase speed.
 	 */
-	
+
 	if (timeleft <= 0) {
 		faster();
 		timeleft = fallrate;
 	}
-	
+
 	/*
 	 * Wait to see if there is any input. If so, take it and
@@ -371,19 +371,19 @@
 	 * make timeleft zero and return -1.
 	 */
-	
+
 	wchar_t c = 0;
-	
+
 	while (c == 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event_timeout(console, &event, &timeleft)) {
 			timeleft = 0;
 			return -1;
 		}
-		
+
 		if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
 			c = event.ev.key.c;
 	}
-	
+
 	return (int) c;
 }
@@ -395,15 +395,15 @@
 {
 	wchar_t c = 0;
-	
+
 	while (c == 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event(console, &event))
 			return -1;
-		
+
 		if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
 			c = event.ev.key.c;
 	}
-	
+
 	return (int) c;
 }
Index: uspace/app/tetris/shapes.c
===================================================================
--- uspace/app/tetris/shapes.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tetris/shapes.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -96,9 +96,9 @@
 {
 	const int *o = shape->off;
-	
+
 	if ((board[pos]) || (board[pos + *o++]) || (board[pos + *o++]) ||
 	    (board[pos + *o]))
 		return 0;
-	
+
 	return 1;
 }
@@ -111,5 +111,5 @@
 {
 	const int *o = shape->off;
-	
+
 	board[pos] = onoff ? shape->color : 0x000000;
 	board[pos + *o++] = onoff ? shape->color : 0x000000;
Index: uspace/app/tetris/tetris.c
===================================================================
--- uspace/app/tetris/tetris.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/tetris/tetris.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -97,5 +97,5 @@
 	int i;
 	cell *p = board;
-	
+
 	for (i = B_SIZE; i; i--)
 		*p++ = (i <= (2 * B_COLS) || (i % B_COLS) < 2) ? 0x0000ff : 0x000000;
@@ -112,5 +112,5 @@
 	int base;
 	cell *p;
-	
+
 	for (i = A_FIRST; i < A_LAST; i++) {
 		base = i * B_COLS + 1;
@@ -121,19 +121,19 @@
 				rows++;
 				memset(&board[base], 0, sizeof(cell) * (B_COLS - 2));
-				
+
 				scr_update();
 				tsleep();
-				
+
 				while (--base != 0)
 					board[base + B_COLS] = board[base];
-				
+
 				scr_update();
 				tsleep();
-				
+
 				break;
 			}
 		}
 	}
-	
+
 	switch (rows) {
 	case 1:
@@ -159,8 +159,8 @@
 	int i;
 	int j = rand() % 4;
-	
+
 	for (i = 0; i < j; i++)
 		tmp = &shapes[classic ? tmp->rotc : tmp->rot];
-	
+
 	return (tmp);
 }
@@ -169,5 +169,5 @@
 {
 	struct timeval tv;
-	
+
 	gettimeofday(&tv, NULL);
 	srand(tv.tv_sec + tv.tv_usec / 100000);
@@ -179,5 +179,5 @@
 	moveto(5, 10);
 	puts("Tetris\n\n");
-	
+
 	moveto(8, 10);
 	printf("Level = %d (press keys 1 - 9 to change)", level);
@@ -201,5 +201,5 @@
 	while (1) {
 		int i = getchar();
-		
+
 		switch(i) {
 			case 'p':
@@ -248,12 +248,12 @@
 	int j;
 	int ch;
-	
+
 	console = console_init(stdin, stdout);
-	
+
 	keys = "jkl pq";
-	
+
 	classic = 0;
 	showpreview = 1;
-	
+
 	while ((ch = getopt(argc, argv, "ck:ps")) != -1)
 		switch(ch) {
@@ -279,11 +279,11 @@
 			usage();
 		}
-	
+
 	argc -= optind;
 	argv += optind;
-	
+
 	if (argc)
 		usage();
-	
+
 	for (i = 0; i <= 5; i++) {
 		for (j = i + 1; j <= 5; j++) {
@@ -293,5 +293,5 @@
 			}
 		}
-		
+
 		if (keys[i] == ' ')
 			str_cpy(key_write[i], sizeof(key_write[i]), "<space>");
@@ -301,10 +301,10 @@
 		}
 	}
-	
+
 	snprintf(key_msg, sizeof(key_msg),
 	    "%s - left   %s - rotate   %s - right   %s - drop   %s - pause   %s - quit",
 	    key_write[0], key_write[1], key_write[2], key_write[3],
 	    key_write[4], key_write[5]);
-	
+
 	scr_init();
 	if (loadscores() != EOK)
@@ -313,17 +313,17 @@
 	while (tetris_menu(&level)) {
 		fallrate = 1000000 / level;
-		
+
 		scr_clear();
 		setup_board();
-		
+
 		srandomdev();
 		scr_set();
-		
+
 		pos = A_FIRST * B_COLS + (B_COLS / 2) - 1;
 		nextshape = randshape();
 		curshape = randshape();
-		
+
 		scr_msg(key_msg, 1);
-		
+
 		while (1) {
 			place(curshape, pos, 1);
@@ -339,5 +339,5 @@
 					continue;
 				}
-				
+
 				/*
 				 * Put up the current shape `permanently',
@@ -347,5 +347,5 @@
 				score++;
 				elide();
-				
+
 				/*
 				 * Choose a new shape.  If it does not fit,
@@ -355,11 +355,11 @@
 				nextshape = randshape();
 				pos = A_FIRST * B_COLS + (B_COLS / 2) - 1;
-				
+
 				if (!fits_in(curshape, pos))
 					break;
-				
-				continue;
-			}
-			
+
+				continue;
+			}
+
 			/*
 			 * Handle command keys.
@@ -369,9 +369,9 @@
 				break;
 			}
-			
+
 			if (c == keys[4]) {
 				static char msg[] =
 				    "paused - press RETURN to continue";
-				
+
 				place(curshape, pos, 1);
 				do {
@@ -381,5 +381,5 @@
 					console_flush(console);
 				} while (!twait());
-				
+
 				scr_msg(msg, 0);
 				scr_msg(key_msg, 1);
@@ -387,5 +387,5 @@
 				continue;
 			}
-			
+
 			if (c == keys[0]) {
 				/* move left */
@@ -394,15 +394,15 @@
 				continue;
 			}
-			
+
 			if (c == keys[1]) {
 				/* turn */
 				const struct shape *new =
 				    &shapes[classic ? curshape->rotc : curshape->rot];
-				
+
 				if (fits_in(new, pos))
 					curshape = new;
 				continue;
 			}
-			
+
 			if (c == keys[2]) {
 				/* move right */
@@ -411,5 +411,5 @@
 				continue;
 			}
-			
+
 			if (c == keys[3]) {
 				/* move to bottom */
@@ -420,5 +420,5 @@
 				continue;
 			}
-			
+
 			if (c == '\f') {
 				scr_clear();
@@ -426,5 +426,5 @@
 			}
 		}
-		
+
 		scr_clear();
 		loadscores();
@@ -433,9 +433,9 @@
 		score = 0;
 	}
-	
+
 	scr_clear();
 	printf("\nGame over.\n");
 	scr_end();
-	
+
 	return 0;
 }
Index: uspace/app/top/screen.c
===================================================================
--- uspace/app/top/screen.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/top/screen.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -99,10 +99,10 @@
 {
 	screen_style_normal();
-	
+
 	if (clear) {
 		console_flush(console);
 		console_clear(console);
 	}
-	
+
 	screen_moveto(0, 0);
 }
@@ -113,13 +113,13 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
+
 	sysarg_t c;
 	sysarg_t r;
 	screen_get_pos(&c, &r);
-	
+
 	sysarg_t i;
 	for (i = c + 1; i < cols; i++)
 		puts(" ");
-	
+
 	if (r + 1 < rows)
 		puts("\n");
@@ -129,8 +129,8 @@
 {
 	console = console_init(stdin, stdout);
-	
+
 	console_flush(console);
 	console_cursor_visibility(console, false);
-	
+
 	screen_restart(true);
 }
@@ -142,5 +142,5 @@
 
 	screen_restart(true);
-	
+
 	console_flush(console);
 	console_cursor_visibility(console, true);
@@ -150,5 +150,5 @@
 {
 	printf("%3" PRIu64 ".", ffloat.upper / ffloat.lower);
-	
+
 	unsigned int i;
 	uint64_t rest = (ffloat.upper % ffloat.lower) * 10;
@@ -157,5 +157,5 @@
 		rest = (rest % ffloat.lower) * 10;
 	}
-	
+
 	printf("%%");
 }
@@ -166,9 +166,9 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
+
 	sysarg_t c;
 	sysarg_t r;
 	screen_get_pos(&c, &r);
-	
+
 	if (c < cols) {
 		int pos = cols - c - 1;
@@ -184,5 +184,5 @@
 	    data->hours, data->minutes, data->seconds,
 	    data->udays, data->uhours, data->uminutes, data->useconds);
-	
+
 	size_t i;
 	for (i = 0; i < data->load_count; i++) {
@@ -190,5 +190,5 @@
 		stats_print_load_fragment(data->load[i], 2);
 	}
-	
+
 	screen_newline();
 }
@@ -209,9 +209,9 @@
 	size_t other = 0;
 	size_t invalid = 0;
-	
+
 	size_t i;
 	for (i = 0; i < data->threads_count; i++) {
 		total++;
-		
+
 		switch (data->threads[i].state) {
 		case Running:
@@ -235,5 +235,5 @@
 		}
 	}
-	
+
 	printf("threads: %zu total, %zu running, %zu ready, "
 	    "%zu sleeping, %zu lingering, %zu other, %zu invalid",
@@ -251,8 +251,8 @@
 			char busy_suffix;
 			char idle_suffix;
-			
+
 			order_suffix(data->cpus[i].busy_cycles, &busy, &busy_suffix);
 			order_suffix(data->cpus[i].idle_cycles, &idle, &idle_suffix);
-			
+
 			printf("cpu%u (%4" PRIu16 " MHz): busy cycles: "
 			    "%" PRIu64 "%c, idle cycles: %" PRIu64 "%c",
@@ -265,5 +265,5 @@
 		} else
 			printf("cpu%u inactive", data->cpus[i].id);
-		
+
 		screen_newline();
 	}
@@ -280,10 +280,10 @@
 	const char *used_suffix;
 	const char *free_suffix;
-	
+
 	bin_order_suffix(data->physmem->total, &total, &total_suffix, false);
 	bin_order_suffix(data->physmem->unavail, &unavail, &unavail_suffix, false);
 	bin_order_suffix(data->physmem->used, &used, &used_suffix, false);
 	bin_order_suffix(data->physmem->free, &free, &free_suffix, false);
-	
+
 	printf("memory: %" PRIu64 "%s total, %" PRIu64 "%s unavail, %"
 	    PRIu64 "%s used, %" PRIu64 "%s free", total, total_suffix,
@@ -305,19 +305,19 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
-	screen_newline();
-	
+
+	screen_newline();
+
 	printf("Operation modes:");
 	screen_newline();
-	
+
 	printf(" t .. tasks statistics");
 	screen_newline();
-	
+
 	printf(" i .. IPC statistics");
 	screen_newline();
-	
+
 	printf(" e .. exceptions statistics");
 	screen_newline();
-	
+
 	printf("      a .. toggle display of all/hot exceptions");
 	screen_newline();
@@ -330,18 +330,18 @@
 	printf("Other keys:");
 	screen_newline();
-	
+
 	printf(" s .. choose column to sort by");
 	screen_newline();
-	
+
 	printf(" r .. toggle reversed sorting");
 	screen_newline();
-	
+
 	printf(" q .. quit");
 	screen_newline();
-	
+
 	sysarg_t col;
 	sysarg_t row;
 	screen_get_pos(&col, &row);
-	
+
 	while (row < rows) {
 		screen_newline();
@@ -380,9 +380,9 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
+
 	sysarg_t col;
 	sysarg_t row;
 	screen_get_pos(&col, &row);
-	
+
 	size_t i;
 	for (i = 0; (i < table->num_fields) && (row < rows); i++) {
@@ -441,5 +441,5 @@
 		}
 	}
-	
+
 	while (row < rows) {
 		screen_newline();
@@ -453,5 +453,5 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
+
 	sysarg_t col;
 	sysarg_t row;
@@ -464,5 +464,5 @@
 		row++;
 	}
-	
+
 	while (row < rows) {
 		screen_newline();
@@ -494,5 +494,5 @@
 	print_physmem_info(data);
 	print_warning();
-	
+
 	switch (screen_mode) {
 	case SCREEN_TABLE:
@@ -507,5 +507,5 @@
 		print_help();
 	}
-	
+
 	console_flush(console);
 }
@@ -527,5 +527,5 @@
 	vsnprintf(warning_text, warning_text_size, fmt, args);
 	va_end(args);
-	
+
 	warning_timeleft = 2 * USEC_COUNT;
 
@@ -543,8 +543,8 @@
 	 * Reset timeleft whenever it is not positive.
 	 */
-	
+
 	if (timeleft <= 0)
 		timeleft = sec * USEC_COUNT;
-	
+
 	/*
 	 * Wait to see if there is any input. If so, take it and
@@ -553,10 +553,10 @@
 	 * make timeleft zero and return -1.
 	 */
-	
+
 	wchar_t c = 0;
-	
+
 	while (c == 0) {
 		cons_event_t event;
-		
+
 		warning_timeleft -= timeleft;
 		if (!console_get_event_timeout(console, &event, &timeleft)) {
@@ -565,9 +565,9 @@
 		}
 		warning_timeleft += timeleft;
-		
+
 		if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
 			c = event.ev.key.c;
 	}
-	
+
 	return (int) c;
 }
Index: uspace/app/top/top.c
===================================================================
--- uspace/app/top/top.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/top/top.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -153,72 +153,72 @@
 	target->table.num_fields = 0;
 	target->table.fields = NULL;
-	
+
 	/* Get current time */
 	struct timeval time;
 	gettimeofday(&time, NULL);
-	
+
 	target->hours = (time.tv_sec % DAY) / HOUR;
 	target->minutes = (time.tv_sec % HOUR) / MINUTE;
 	target->seconds = time.tv_sec % MINUTE;
-	
+
 	/* Get uptime */
 	struct timeval uptime;
 	getuptime(&uptime);
-	
+
 	target->udays = uptime.tv_sec / DAY;
 	target->uhours = (uptime.tv_sec % DAY) / HOUR;
 	target->uminutes = (uptime.tv_sec % HOUR) / MINUTE;
 	target->useconds = uptime.tv_sec % MINUTE;
-	
+
 	/* Get load */
 	target->load = stats_get_load(&(target->load_count));
 	if (target->load == NULL)
 		return "Cannot get system load";
-	
+
 	/* Get CPUs */
 	target->cpus = stats_get_cpus(&(target->cpus_count));
 	if (target->cpus == NULL)
 		return "Cannot get CPUs";
-	
+
 	target->cpus_perc =
 	    (perc_cpu_t *) calloc(target->cpus_count, sizeof(perc_cpu_t));
 	if (target->cpus_perc == NULL)
 		return "Not enough memory for CPU utilization";
-	
+
 	/* Get tasks */
 	target->tasks = stats_get_tasks(&(target->tasks_count));
 	if (target->tasks == NULL)
 		return "Cannot get tasks";
-	
+
 	target->tasks_perc =
 	    (perc_task_t *) calloc(target->tasks_count, sizeof(perc_task_t));
 	if (target->tasks_perc == NULL)
 		return "Not enough memory for task utilization";
-	
+
 	/* Get threads */
 	target->threads = stats_get_threads(&(target->threads_count));
 	if (target->threads == NULL)
 		return "Cannot get threads";
-	
+
 	/* Get Exceptions */
 	target->exceptions = stats_get_exceptions(&(target->exceptions_count));
 	if (target->exceptions == NULL)
 		return "Cannot get exceptions";
-	
+
 	target->exceptions_perc =
 	    (perc_exc_t *) calloc(target->exceptions_count, sizeof(perc_exc_t));
 	if (target->exceptions_perc == NULL)
 		return "Not enough memory for exception utilization";
-	
+
 	/* Get physical memory */
 	target->physmem = stats_get_physmem();
 	if (target->physmem == NULL)
 		return "Cannot get physical memory";
-	
+
 	target->ucycles_diff = calloc(target->tasks_count,
 	    sizeof(uint64_t));
 	if (target->ucycles_diff == NULL)
 		return "Not enough memory for user utilization";
-	
+
 	/* Allocate memory for computed values */
 	target->kcycles_diff = calloc(target->tasks_count,
@@ -226,15 +226,15 @@
 	if (target->kcycles_diff == NULL)
 		return "Not enough memory for kernel utilization";
-	
+
 	target->ecycles_diff = calloc(target->exceptions_count,
 	    sizeof(uint64_t));
 	if (target->ecycles_diff == NULL)
 		return "Not enough memory for exception cycles utilization";
-	
+
 	target->ecount_diff = calloc(target->exceptions_count,
 	    sizeof(uint64_t));
 	if (target->ecount_diff == NULL)
 		return "Not enough memory for exception count utilization";
-	
+
 	return NULL;
 }
@@ -250,5 +250,5 @@
 	/* For each CPU: Compute total cycles and divide it between
 	   user and kernel */
-	
+
 	size_t i;
 	for (i = 0; i < new_data->cpus_count; i++) {
@@ -258,19 +258,19 @@
 		    new_data->cpus[i].busy_cycles - old_data->cpus[i].busy_cycles;
 		uint64_t sum = idle + busy;
-		
+
 		FRACTION_TO_FLOAT(new_data->cpus_perc[i].idle, idle * 100, sum);
 		FRACTION_TO_FLOAT(new_data->cpus_perc[i].busy, busy * 100, sum);
 	}
-	
+
 	/* For all tasks compute sum and differencies of all cycles */
-	
+
 	uint64_t virtmem_total = 0;
 	uint64_t resmem_total = 0;
 	uint64_t ucycles_total = 0;
 	uint64_t kcycles_total = 0;
-	
+
 	for (i = 0; i < new_data->tasks_count; i++) {
 		/* Match task with the previous instance */
-		
+
 		bool found = false;
 		size_t j;
@@ -281,5 +281,5 @@
 			}
 		}
-		
+
 		if (!found) {
 			/* This is newly borned task, ignore it */
@@ -288,10 +288,10 @@
 			continue;
 		}
-		
+
 		new_data->ucycles_diff[i] =
 		    new_data->tasks[i].ucycles - old_data->tasks[j].ucycles;
 		new_data->kcycles_diff[i] =
 		    new_data->tasks[i].kcycles - old_data->tasks[j].kcycles;
-		
+
 		virtmem_total += new_data->tasks[i].virtmem;
 		resmem_total += new_data->tasks[i].resmem;
@@ -299,7 +299,7 @@
 		kcycles_total += new_data->kcycles_diff[i];
 	}
-	
+
 	/* For each task compute percential change */
-	
+
 	for (i = 0; i < new_data->tasks_count; i++) {
 		FRACTION_TO_FLOAT(new_data->tasks_perc[i].virtmem,
@@ -312,10 +312,10 @@
 		    new_data->kcycles_diff[i] * 100, kcycles_total);
 	}
-	
+
 	/* For all exceptions compute sum and differencies of cycles */
-	
+
 	uint64_t ecycles_total = 0;
 	uint64_t ecount_total = 0;
-	
+
 	for (i = 0; i < new_data->exceptions_count; i++) {
 		/*
@@ -324,5 +324,5 @@
 		 * usually disappear, but it does not hurt.
 		 */
-		
+
 		bool found = false;
 		size_t j;
@@ -333,5 +333,5 @@
 			}
 		}
-		
+
 		if (!found) {
 			/* This is a new exception, ignore it */
@@ -340,16 +340,16 @@
 			continue;
 		}
-		
+
 		new_data->ecycles_diff[i] =
 		    new_data->exceptions[i].cycles - old_data->exceptions[j].cycles;
 		new_data->ecount_diff[i] =
 		    new_data->exceptions[i].count - old_data->exceptions[i].count;
-		
+
 		ecycles_total += new_data->ecycles_diff[i];
 		ecount_total += new_data->ecount_diff[i];
 	}
-	
+
 	/* For each exception compute percential change */
-	
+
 	for (i = 0; i < new_data->exceptions_count; i++) {
 		FRACTION_TO_FLOAT(new_data->exceptions_perc[i].cycles,
@@ -364,5 +364,5 @@
 	field_t *fa = (field_t *)a + sort_column;
 	field_t *fb = (field_t *)b + sort_column;
-	
+
 	if (fa->type > fb->type)
 		return 1 * sort_reverse;
@@ -536,38 +536,38 @@
 	if (target->load != NULL)
 		free(target->load);
-	
+
 	if (target->cpus != NULL)
 		free(target->cpus);
-	
+
 	if (target->cpus_perc != NULL)
 		free(target->cpus_perc);
-	
+
 	if (target->tasks != NULL)
 		free(target->tasks);
-	
+
 	if (target->tasks_perc != NULL)
 		free(target->tasks_perc);
-	
+
 	if (target->threads != NULL)
 		free(target->threads);
-	
+
 	if (target->exceptions != NULL)
 		free(target->exceptions);
-	
+
 	if (target->exceptions_perc != NULL)
 		free(target->exceptions_perc);
-	
+
 	if (target->physmem != NULL)
 		free(target->physmem);
-	
+
 	if (target->ucycles_diff != NULL)
 		free(target->ucycles_diff);
-	
+
 	if (target->kcycles_diff != NULL)
 		free(target->kcycles_diff);
-	
+
 	if (target->ecycles_diff != NULL)
 		free(target->ecycles_diff);
-	
+
 	if (target->ecount_diff != NULL)
 		free(target->ecount_diff);
@@ -582,14 +582,14 @@
 	data_t data_prev;
 	const char *ret = NULL;
-	
+
 	screen_init();
 	printf("Reading initial data...\n");
-	
+
 	if ((ret = read_data(&data)) != NULL)
 		goto out;
-	
+
 	/* Compute some rubbish to have initialised values */
 	compute_percentages(&data, &data);
-	
+
 	/* And paint screen until death */
 	while (true) {
@@ -602,5 +602,5 @@
 				goto out;
 			}
-			
+
 			compute_percentages(&data_prev, &data);
 			free_data(&data_prev);
@@ -672,14 +672,14 @@
 		print_data(&data);
 	}
-	
+
 out:
 	screen_done();
 	free_data(&data);
-	
+
 	if (ret != NULL) {
 		fprintf(stderr, "%s: %s\n", NAME, ret);
 		return 1;
 	}
-	
+
 	return 0;
 }
Index: uspace/app/top/top.h
===================================================================
--- uspace/app/top/top.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/top/top.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -112,30 +112,30 @@
 	time_t minutes;
 	time_t seconds;
-	
+
 	sysarg_t udays;
 	sysarg_t uhours;
 	sysarg_t uminutes;
 	sysarg_t useconds;
-	
+
 	size_t load_count;
 	load_t *load;
-	
+
 	size_t cpus_count;
 	stats_cpu_t *cpus;
 	perc_cpu_t *cpus_perc;
-	
+
 	size_t tasks_count;
 	stats_task_t *tasks;
 	perc_task_t *tasks_perc;
-	
+
 	size_t threads_count;
 	stats_thread_t *threads;
-	
+
 	size_t exceptions_count;
 	stats_exc_t *exceptions;
 	perc_exc_t *exceptions_perc;
-	
+
 	stats_physmem_t *physmem;
-	
+
 	uint64_t *ucycles_diff;
 	uint64_t *kcycles_diff;
Index: uspace/app/trace/ipcp.c
===================================================================
--- uspace/app/trace/ipcp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/trace/ipcp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -253,15 +253,15 @@
 	proto_t *proto;
 	int cphone;
-	
+
 	sysarg_t *resp;
 	oper_t *oper;
 	int i;
-	
+
 	phone = pcall->phone_hash;
 	method = IPC_GET_IMETHOD(pcall->question);
 	retval = IPC_GET_RETVAL(*answer);
-	
+
 	resp = answer->args;
-	
+
 	if ((display_mask & DM_IPC) != 0) {
 		printf("Response to %d: retval=%s, args = (%" PRIun ", "
@@ -271,17 +271,17 @@
 		    IPC_GET_ARG4(*answer), IPC_GET_ARG5(*answer));
 	}
-	
+
 	if ((display_mask & DM_USER) != 0) {
 		oper = pcall->oper;
-		
+
 		if ((oper != NULL) &&
 		    ((oper->rv_type != V_VOID) || (oper->respc > 0))) {
 			printf("->");
-			
+
 			if (oper->rv_type != V_VOID) {
 				putchar(' ');
 				val_print((sysarg_t) retval, oper->rv_type);
 			}
-			
+
 			if (oper->respc > 0) {
 				putchar(' ');
@@ -294,9 +294,9 @@
 				putchar(')');
 			}
-			
+
 			putchar('\n');
 		}
 	}
-	
+
 	if ((phone == PHONE_NS) && (method == IPC_M_CONNECT_ME_TO) &&
 	    (retval == 0)) {
@@ -306,5 +306,5 @@
 		if (proto == NULL)
 			proto = proto_unknown;
-		
+
 		cphone = IPC_GET_ARG5(*answer);
 		if ((display_mask & DM_SYSTEM) != 0) {
@@ -312,5 +312,5 @@
 		    proto->name);
 		}
-		
+
 		ipcp_connection_set(cphone, 0, proto);
 	}
@@ -321,5 +321,5 @@
 	ht_link_t *item;
 	pending_call_t *pcall;
-	
+
 	if ((call->flags & IPC_CALL_ANSWERED) == 0) {
 		/* Not a response */
@@ -329,16 +329,16 @@
 		return;
 	}
-	
+
 	item = hash_table_find(&pending_calls, &hash);
 	if (item == NULL)
 		return; /* No matching question found */
-	
+
 	/*
 	 * Response matched to question.
 	 */
-	
+
 	pcall = hash_table_get_inst(item, pending_call_t, link);
 	hash_table_remove(&pending_calls, &hash);
-	
+
 	parse_answer(hash, pcall, call);
 	free(pcall);
Index: uspace/app/trace/proto.h
===================================================================
--- uspace/app/trace/proto.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/trace/proto.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,10 +44,10 @@
 typedef struct {
 	const char *name;
-	
+
 	int argc;
 	val_type_t arg_type[OPER_MAX_ARGS];
-	
+
 	val_type_t rv_type;
-	
+
 	int respc;
 	val_type_t resp_type[OPER_MAX_ARGS];
@@ -57,5 +57,5 @@
 	/** Protocol name */
 	const char *name;
-	
+
 	/** Maps method number to operation */
 	hash_table_t method_oper;
Index: uspace/app/trace/trace.c
===================================================================
--- uspace/app/trace/trace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/trace/trace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -146,5 +146,5 @@
 {
 	async_sess_t *ksess = async_connect_kbox(task_id);
-	
+
 	if (!ksess) {
 		if (errno == ENOTSUP) {
@@ -155,10 +155,10 @@
 			return errno;
 		}
-		
+
 		printf("Error connecting\n");
 		printf("ipc_connect_task(%" PRIu64 ") -> %s ", task_id, str_error_name(errno));
 		return errno;
 	}
-	
+
 	errno_t rc = udebug_begin(ksess);
 	if (rc != EOK) {
@@ -166,5 +166,5 @@
 		return rc;
 	}
-	
+
 	rc = udebug_set_evmask(ksess, UDEBUG_EM_ALL);
 	if (rc != EOK) {
@@ -172,5 +172,5 @@
 		return rc;
 	}
-	
+
 	sess = ksess;
 	return 0;
@@ -283,5 +283,5 @@
 	ipc_call_t call;
 	sysarg_t phoneid;
-	
+
 	if (sc_rc != EOK)
 		return;
@@ -324,5 +324,5 @@
 	memset(&call, 0, sizeof(call));
 	rc = udebug_mem_read(sess, &call, sc_args[0], sizeof(call));
-	
+
 	if (rc == EOK)
 		ipcp_call_in(&call, sc_rc);
@@ -525,5 +525,5 @@
 	int fd_stdout;
 	int fd_stderr;
-	
+
 	fd_root = vfs_root();
 	if (fd_root >= 0) {
@@ -533,5 +533,5 @@
 			goto error;
 	}
-	
+
 	if ((stdin != NULL) && (vfs_fhandle(stdin, &fd_stdin) == EOK)) {
 		rc = loader_add_inbox(ldr, "stdin", fd_stdin);
@@ -539,5 +539,5 @@
 			goto error;
 	}
-	
+
 	if ((stdout != NULL) && (vfs_fhandle(stdout, &fd_stdout) == EOK)) {
 		rc = loader_add_inbox(ldr, "stdout", fd_stdout);
@@ -545,5 +545,5 @@
 			goto error;
 	}
-	
+
 	if ((stderr != NULL) && (vfs_fhandle(stderr, &fd_stderr) == EOK)) {
 		rc = loader_add_inbox(ldr, "stderr", fd_stderr);
@@ -551,5 +551,5 @@
 			goto error;
 	}
-	
+
 	/* Load the program. */
 	rc = loader_load_program(ldr);
@@ -571,7 +571,7 @@
 
 	(void) arg;
-	
+
 	console_ctrl_t *console = console_init(stdin, stdout);
-	
+
 	while (true) {
 		fibril_mutex_lock(&state_lock);
@@ -579,8 +579,8 @@
 			fibril_condvar_wait(&state_cv, &state_lock);
 		fibril_mutex_unlock(&state_lock);
-		
+
 		if (!console_get_event(console, &event))
 			return EINVAL;
-		
+
 		if (event.type == CEV_KEY) {
 			fibril_mutex_lock(&state_lock);
@@ -750,5 +750,5 @@
 	display_mask_t dm = 0;
 	const char *c = text;
-	
+
 	while (*c) {
 		switch (*c) {
@@ -769,8 +769,8 @@
 			exit(1);
 		}
-		
+
 		++c;
 	}
-	
+
 	return dm;
 }
@@ -810,5 +810,5 @@
 			break;
 		}
-		
+
 		--argc;
 		++argv;
@@ -831,9 +831,9 @@
 	/* Preload the specified program file. */
 	printf("Spawning '%s' with arguments:\n", *argv);
-	
+
 	char **cp = argv;
 	while (*cp)
 		printf("'%s'\n", *cp++);
-	
+
 	task_ldr = preload_task(*argv, argv, &task_id);
 	task_wait_for = true;
Index: uspace/app/trace/trace.h
===================================================================
--- uspace/app/trace/trace.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/trace/trace.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
  */
 typedef enum {
-	
+
 	DM_THREAD	= 1,	/**< Thread creation and termination events */
 	DM_SYSCALL	= 2,	/**< System calls */
Index: uspace/app/usbinfo/list.c
===================================================================
--- uspace/app/usbinfo/list.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/usbinfo/list.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -112,5 +112,5 @@
 		return;
 	}
-	
+
 	devman_handle_t *fhs = 0;
 	size_t count;
Index: uspace/app/vcalc/vcalc.c
===================================================================
--- uspace/app/vcalc/vcalc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/vcalc/vcalc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -85,5 +85,5 @@
 typedef struct {
 	link_t link;
-	
+
 	stack_item_type_t type;
 	union {
@@ -104,5 +104,5 @@
 {
 	assert(is_digit(c));
-	
+
 	return (c - '0');
 }
@@ -149,15 +149,15 @@
 	if (!item)
 		return false;
-	
+
 	link_initialize(&item->link);
 	item->type = ITEM_VALUE;
-	
+
 	if (value_neg)
 		item->data.value = -value;
 	else
 		item->data.value = value;
-	
+
 	list_prepend(&item->link, stack);
-	
+
 	return true;
 }
@@ -168,10 +168,10 @@
 	if (!item)
 		return false;
-	
+
 	link_initialize(&item->link);
 	item->type = ITEM_OPERATOR;
 	item->data.operator = operator;
 	list_prepend(&item->link, stack);
-	
+
 	return true;
 }
@@ -182,14 +182,14 @@
 	if (!link)
 		return false;
-	
+
 	stack_item_t *item = list_get_instance(link, stack_item_t, link);
 	if (item->type != ITEM_VALUE)
 		return false;
-	
+
 	*value = item->data.value;
-	
+
 	list_remove(link);
 	free(item);
-	
+
 	return true;
 }
@@ -200,14 +200,14 @@
 	if (!link)
 		return false;
-	
+
 	stack_item_t *item = list_get_instance(link, stack_item_t, link);
 	if (item->type != ITEM_OPERATOR)
 		return false;
-	
+
 	*operator = item->data.operator;
-	
+
 	list_remove(link);
 	free(item);
-	
+
 	return true;
 }
@@ -220,5 +220,5 @@
 			stack_item_t *item = list_get_instance(link, stack_item_t,
 			    link);
-			
+
 			list_remove(link);
 			free(item);
@@ -242,5 +242,5 @@
 		if (b == 0)
 			return false;
-		
+
 		*value = a / b;
 		break;
@@ -248,5 +248,5 @@
 		return false;
 	}
-	
+
 	return true;
 }
@@ -277,5 +277,5 @@
 			break;
 		}
-		
+
 		if (!list_empty(stack)) {
 			operator_t operator;
@@ -285,5 +285,5 @@
 				break;
 			}
-			
+
 			int64_t value_a;
 			if (!stack_pop_value(stack, &value_a)) {
@@ -292,5 +292,5 @@
 				break;
 			}
-			
+
 			if (!compute(value_a, operator, *value, value)) {
 				*state = STATE_ERROR;
@@ -298,5 +298,5 @@
 				break;
 			}
-			
+
 			if (!stack_push_value(stack, *value, false)) {
 				*state = STATE_ERROR;
@@ -322,5 +322,5 @@
 		expr = NULL;
 	}
-	
+
 	switch (error_type) {
 	case ERROR_SYNTAX:
@@ -338,8 +338,8 @@
 {
 	const char *subexpr = (const char *) widget_get_data(widget);
-	
+
 	if (expr != NULL) {
 		char *new_expr;
-		
+
 		asprintf(&new_expr, "%s%s", expr, subexpr);
 		free(expr);
@@ -347,5 +347,5 @@
 	} else
 		expr = str_dup(subexpr);
-	
+
 	display_update();
 }
@@ -357,5 +357,5 @@
 		expr = NULL;
 	}
-	
+
 	display_update();
 }
@@ -365,8 +365,8 @@
 	if (expr == NULL)
 		return;
-	
+
 	list_t stack;
 	list_initialize(&stack);
-	
+
 	error_type_t error_type = ERROR_SYNTAX;
 	size_t i = 0;
@@ -375,5 +375,5 @@
 	bool value_neg = false;
 	operator_t last_operator = OPERATOR_NONE;
-	
+
 	while ((state != STATE_FINISH) && (state != STATE_ERROR)) {
 		switch (state) {
@@ -394,5 +394,5 @@
 				state = STATE_ERROR;
 			break;
-		
+
 		case STATE_DIGIT:
 			if (is_digit(expr[i])) {
@@ -403,5 +403,5 @@
 				state = STATE_ERROR;
 			break;
-		
+
 		case STATE_VALUE:
 			if (is_digit(expr[i])) {
@@ -414,15 +414,15 @@
 					break;
 				}
-				
+
 				value = 0;
 				value_neg = false;
-				
+
 				operator_t operator = get_operator(expr[i]);
-				
+
 				if (get_priority(operator) <= get_priority(last_operator)) {
 					evaluate(&stack, &value, &state, &error_type);
 					if (state == STATE_ERROR)
 						break;
-					
+
 					if (!stack_push_value(&stack, value, value_neg)) {
 						state = STATE_ERROR;
@@ -430,10 +430,10 @@
 					}
 				}
-				
+
 				if (!stack_push_operator(&stack, operator)) {
 					state = STATE_ERROR;
 					break;
 				}
-				
+
 				last_operator = operator;
 				i++;
@@ -444,23 +444,23 @@
 					break;
 				}
-				
+
 				state = STATE_FINISH;
 			} else
 				state = STATE_ERROR;
 			break;
-		
+
 		default:
 			state = STATE_ERROR;
 		}
 	}
-	
+
 	evaluate(&stack, &value, &state, &error_type);
 	stack_cleanup(&stack);
-	
+
 	if (state == STATE_ERROR) {
 		display_error(error_type);
 		return;
 	}
-	
+
 	free(expr);
 	asprintf(&expr, "%" PRId64, value);
@@ -474,5 +474,5 @@
 		return 1;
 	}
-	
+
 	window_t *main_window = window_open(argv[1], NULL,
 	    WINDOW_MAIN | WINDOW_DECORATED | WINDOW_RESIZEABLE, NAME);
@@ -481,17 +481,17 @@
 		return 2;
 	}
-	
+
 	pixel_t grd_bg = PIXEL(255, 240, 240, 240);
-	
+
 	pixel_t btn_bg = PIXEL(255, 0, 0, 0);
 	pixel_t btn_fg = PIXEL(200, 200, 200, 200);
-	
+
 	pixel_t lbl_bg = PIXEL(255, 240, 240, 240);
 	pixel_t lbl_fg = PIXEL(255, 0, 0, 0);
-	
+
 	grid_t *grid = create_grid(window_root(main_window), NULL, 4, 5, grd_bg);
-	
+
 	display = create_label(NULL, NULL, NULL_DISPLAY, 16, lbl_bg, lbl_fg);
-	
+
 	button_t *btn_1 = create_button(NULL, "1", "1", 16, btn_bg, btn_fg,
 	    lbl_fg);
@@ -514,5 +514,5 @@
 	button_t *btn_0 = create_button(NULL, "0", "0", 16, btn_bg, btn_fg,
 	    lbl_fg);
-	
+
 	button_t *btn_add = create_button(NULL, "+", "+", 16, btn_bg, btn_fg,
 	    lbl_fg);
@@ -523,10 +523,10 @@
 	button_t *btn_div = create_button(NULL, "/", "/", 16, btn_bg, btn_fg,
 	    lbl_fg);
-	
+
 	button_t *btn_eval = create_button(NULL, NULL, "=", 16, btn_bg, btn_fg,
 	    lbl_fg);
 	button_t *btn_c = create_button(NULL, NULL, "C", 16, btn_bg, btn_fg,
 	    lbl_fg);
-	
+
 	if ((!grid) || (!display) || (!btn_1) || (!btn_2) || (!btn_3) ||
 	    (!btn_4) || (!btn_5) || (!btn_6) || (!btn_7) || (!btn_8) ||
@@ -537,5 +537,5 @@
 		return 3;
 	}
-	
+
 	sig_connect(&btn_1->clicked, &btn_1->widget, on_btn_click);
 	sig_connect(&btn_2->clicked, &btn_2->widget, on_btn_click);
@@ -548,41 +548,41 @@
 	sig_connect(&btn_9->clicked, &btn_9->widget, on_btn_click);
 	sig_connect(&btn_0->clicked, &btn_0->widget, on_btn_click);
-	
+
 	sig_connect(&btn_add->clicked, &btn_add->widget, on_btn_click);
 	sig_connect(&btn_sub->clicked, &btn_sub->widget, on_btn_click);
 	sig_connect(&btn_div->clicked, &btn_div->widget, on_btn_click);
 	sig_connect(&btn_mul->clicked, &btn_mul->widget, on_btn_click);
-	
+
 	sig_connect(&btn_eval->clicked, &btn_eval->widget, on_eval_click);
 	sig_connect(&btn_c->clicked, &btn_c->widget, on_c_click);
-	
+
 	grid->add(grid, &display->widget, 0, 0, 4, 1);
-	
+
 	grid->add(grid, &btn_1->widget, 0, 1, 1, 1);
 	grid->add(grid, &btn_2->widget, 1, 1, 1, 1);
 	grid->add(grid, &btn_3->widget, 2, 1, 1, 1);
 	grid->add(grid, &btn_add->widget, 3, 1, 1, 1);
-	
+
 	grid->add(grid, &btn_4->widget, 0, 2, 1, 1);
 	grid->add(grid, &btn_5->widget, 1, 2, 1, 1);
 	grid->add(grid, &btn_6->widget, 2, 2, 1, 1);
 	grid->add(grid, &btn_sub->widget, 3, 2, 1, 1);
-	
+
 	grid->add(grid, &btn_7->widget, 0, 3, 1, 1);
 	grid->add(grid, &btn_8->widget, 1, 3, 1, 1);
 	grid->add(grid, &btn_9->widget, 2, 3, 1, 1);
 	grid->add(grid, &btn_mul->widget, 3, 3, 1, 1);
-	
+
 	grid->add(grid, &btn_c->widget, 0, 4, 1, 1);
 	grid->add(grid, &btn_0->widget, 1, 4, 1, 1);
 	grid->add(grid, &btn_eval->widget, 2, 4, 1, 1);
 	grid->add(grid, &btn_div->widget, 3, 4, 1, 1);
-	
+
 	window_resize(main_window, 0, 0, 400, 400, WINDOW_PLACEMENT_ANY);
 	window_exec(main_window);
-	
+
 	task_retval(0);
 	async_manager();
-	
+
 	return 0;
 }
Index: uspace/app/vdemo/vdemo.c
===================================================================
--- uspace/app/vdemo/vdemo.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/vdemo/vdemo.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -118,9 +118,9 @@
 
 		pixel_t grd_bg = PIXEL(255, 240, 240, 240);
-		
+
 		pixel_t btn_bg = PIXEL(255, 240, 240, 240);
 		pixel_t btn_fg = PIXEL(255, 186, 186, 186);
 		pixel_t btn_text = PIXEL(255, 0, 0, 0);
-		
+
 		pixel_t lbl_bg = PIXEL(255, 240, 240, 240);
 		pixel_t lbl_text = PIXEL(255, 0, 0, 0);
Index: uspace/app/viewer/viewer.c
===================================================================
--- uspace/app/viewer/viewer.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/viewer/viewer.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,8 +72,8 @@
 	kbd_event_t *event = (kbd_event_t *) data;
 	bool update = false;
-	
+
 	if ((event->type == KEY_PRESS) && (event->c == 'q'))
 		exit(0);
-	
+
 	if ((event->type == KEY_PRESS) && (event->key == KC_PAGE_DOWN)) {
 		if (imgs_current == imgs_count - 1)
@@ -81,8 +81,8 @@
 		else
 			imgs_current++;
-		
+
 		update = true;
 	}
-	
+
 	if ((event->type == KEY_PRESS) && (event->key == KC_PAGE_UP)) {
 		if (imgs_current == 0)
@@ -90,8 +90,8 @@
 		else
 			imgs_current--;
-		
+
 		update = true;
 	}
-	
+
 	if (update) {
 		surface_t *lsface;
@@ -114,5 +114,5 @@
 	if (rc != EOK)
 		return false;
-	
+
 	vfs_stat_t stat;
 	rc = vfs_stat(fd, &stat);
@@ -121,5 +121,5 @@
 		return false;
 	}
-	
+
 	void *tga = malloc(stat.size);
 	if (tga == NULL) {
@@ -135,7 +135,7 @@
 		return false;
 	}
-	
+
 	vfs_put(fd);
-	
+
 	*p_local_surface = decode_tga(tga, stat.size, 0);
 	if (*p_local_surface == NULL) {
@@ -143,9 +143,9 @@
 		return false;
 	}
-	
+
 	free(tga);
 
 	surface_get_resolution(*p_local_surface, &img_width, &img_height);
-	
+
 	return true;
 }
@@ -165,11 +165,11 @@
 			return false;
 		}
-		
+
 		sig_connect(&canvas->keyboard_event, NULL, on_keyboard_event);
 	}
-	
+
 	if (surface != NULL)
 		surface_destroy(surface);
-	
+
 	surface = local_surface;
 	return true;
@@ -188,5 +188,5 @@
 		return 1;
 	}
-	
+
 	if (argc < 3) {
 		printf("No image files specified.\n");
@@ -200,5 +200,5 @@
 		return 2;
 	}
-	
+
 	for (int i = 0; i < argc - 2; i++) {
 		imgs[i] = str_dup(argv[i + 2]);
@@ -226,6 +226,6 @@
 		return 5;
 	}
-	
-	
+
+
 	if (!img_setup(lsface)) {
 		printf("Cannot setup image \"%s\".\n", imgs[imgs_current]);
@@ -244,8 +244,8 @@
 	    img_height + dheight, WINDOW_PLACEMENT_ANY);
 	window_exec(main_window);
-	
+
 	task_retval(0);
 	async_manager();
-	
+
 	return 0;
 }
Index: uspace/app/vlaunch/vlaunch.c
===================================================================
--- uspace/app/vlaunch/vlaunch.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/vlaunch/vlaunch.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 {
 	printf("%s: Spawning %s %s \n", NAME, app, winreg);
-	
+
 	task_id_t id;
 	task_wait_t wait;
@@ -72,5 +72,5 @@
 		return -1;
 	}
-	
+
 	task_exit_t texit;
 	int retval;
@@ -81,5 +81,5 @@
 		return -1;
 	}
-	
+
 	return retval;
 }
@@ -97,5 +97,5 @@
 		return 1;
 	}
-	
+
 	surface_t *logo = decode_tga((void *) helenos_tga, helenos_tga_size, 0);
 	if (!logo) {
@@ -103,5 +103,5 @@
 		return 1;
 	}
-	
+
 	winreg = argv[1];
 	window_t *main_window = window_open(argv[1], NULL,
@@ -111,14 +111,14 @@
 		return 1;
 	}
-	
+
 	pixel_t grd_bg = PIXEL(255, 255, 255, 255);
-	
+
 	pixel_t btn_bg = PIXEL(255, 255, 255, 255);
 	pixel_t btn_fg = PIXEL(255, 186, 186, 186);
 	pixel_t btn_text = PIXEL(255, 0, 0, 0);
-	
+
 	pixel_t lbl_bg = PIXEL(255, 255, 255, 255);
 	pixel_t lbl_text = PIXEL(255, 0, 0, 0);
-	
+
 	canvas_t *logo_canvas = create_canvas(NULL, NULL, LOGO_WIDTH, LOGO_HEIGHT,
 	    logo);
@@ -134,5 +134,5 @@
 	    16, btn_bg, btn_fg, btn_text);
 	grid_t *grid = create_grid(window_root(main_window), NULL, 1, 6, grd_bg);
-	
+
 	if ((!logo_canvas) || (!lbl_caption) || (!btn_vterm) ||
 	    (!btn_vcalc) || (!btn_vdemo) || (!btn_vlaunch) || (!grid)) {
@@ -141,10 +141,10 @@
 		return 1;
 	}
-	
+
 	sig_connect(&btn_vterm->clicked, &btn_vterm->widget, on_btn_click);
 	sig_connect(&btn_vcalc->clicked, &btn_vcalc->widget, on_btn_click);
 	sig_connect(&btn_vdemo->clicked, &btn_vdemo->widget, on_btn_click);
 	sig_connect(&btn_vlaunch->clicked, &btn_vlaunch->widget, on_btn_click);
-	
+
 	grid->add(grid, &logo_canvas->widget, 0, 0, 1, 1);
 	grid->add(grid, &lbl_caption->widget, 0, 1, 1, 1);
@@ -153,12 +153,12 @@
 	grid->add(grid, &btn_vdemo->widget, 0, 4, 1, 1);
 	grid->add(grid, &btn_vlaunch->widget, 0, 5, 1, 1);
-	
+
 	window_resize(main_window, 0, 0, 210, 164 + LOGO_HEIGHT,
 	    WINDOW_PLACEMENT_RIGHT | WINDOW_PLACEMENT_TOP);
 	window_exec(main_window);
-	
+
 	task_retval(0);
 	async_manager();
-	
+
 	return 0;
 }
Index: uspace/app/vterm/vterm.c
===================================================================
--- uspace/app/vterm/vterm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/vterm/vterm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 		return 1;
 	}
-	
+
 	window_t *main_window = window_open(argv[1], NULL,
 	    WINDOW_MAIN | WINDOW_DECORATED, "vterm");
@@ -55,5 +55,5 @@
 		return 2;
 	}
-	
+
 	window_resize(main_window, 0, 0, 648, 508, WINDOW_PLACEMENT_ANY);
 	terminal_t *terminal_widget =
@@ -64,9 +64,9 @@
 		return 3;
 	}
-	
+
 	window_exec(main_window);
 	task_retval(0);
 	async_manager();
-	
+
 	return 0;
 }
Index: uspace/app/vuhid/main.c
===================================================================
--- uspace/app/vuhid/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/vuhid/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -240,11 +240,11 @@
 		return rc;
 	}
-	
+
 	printf("Connected to VHCD `%s'...\n", controller);
 
 	wait_for_interfaces_death(&hid_dev);
-	
+
 	printf("Terminating...\n");
-	
+
 	usbvirt_device_unplug(&hid_dev);
 
Index: uspace/app/vuhid/report.h
===================================================================
--- uspace/app/vuhid/report.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/vuhid/report.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,8 +57,8 @@
 #define USAGE_MINIMUM1(value) \
 	ITEM_CREATE1(ITEM_LOCAL, TAG_USAGE_MINIMUM, value)
-	
+
 #define USAGE_MAXIMUM1(value) \
 	ITEM_CREATE1(ITEM_LOCAL, TAG_USAGE_MAXIMUM, value)
-	
+
 #define LOGICAL_MINIMUM1(value) \
 	ITEM_CREATE1(ITEM_GLOBAL, TAG_LOGICAL_MINIMUM, value)
@@ -72,5 +72,5 @@
 #define REPORT_COUNT1(count) \
 	ITEM_CREATE1(ITEM_GLOBAL, TAG_REPORT_COUNT, count)
-	
+
 #define INPUT(modifiers) \
 	ITEM_CREATE1(ITEM_MAIN, TAG_INPUT, modifiers)
Index: uspace/app/vuhid/stdreq.c
===================================================================
--- uspace/app/vuhid/stdreq.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/vuhid/stdreq.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 		}
 	}
-	
+
 	/* Let the framework handle all the rest. */
 	return EFORWARD;
Index: uspace/app/websrv/websrv.c
===================================================================
--- uspace/app/websrv/websrv.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/websrv/websrv.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -137,14 +137,14 @@
 {
 	recv_t *recv;
-	
+
 	recv = calloc(1, sizeof(recv_t));
 	if (recv == NULL)
 		return ENOMEM;
-	
+
 	recv->conn = conn;
 	recv->rbuf_out = 0;
 	recv->rbuf_in = 0;
 	recv->lbuf_used = 0;
-	
+
 	*rrecv = recv;
 	return EOK;
@@ -161,9 +161,9 @@
 	size_t nrecv;
 	errno_t rc;
-	
+
 	if (recv->rbuf_out == recv->rbuf_in) {
 		recv->rbuf_out = 0;
 		recv->rbuf_in = 0;
-		
+
 		rc = tcp_conn_recv_wait(recv->conn, recv->rbuf, BUFFER_SIZE, &nrecv);
 		if (rc != EOK) {
@@ -171,8 +171,8 @@
 			return rc;
 		}
-		
+
 		recv->rbuf_in = nrecv;
 	}
-	
+
 	*c = recv->rbuf[recv->rbuf_out++];
 	return EOK;
@@ -184,23 +184,23 @@
 	char *bp = recv->lbuf;
 	char c = '\0';
-	
+
 	while (bp < recv->lbuf + BUFFER_SIZE) {
 		char prev = c;
 		errno_t rc = recv_char(recv, &c);
-		
+
 		if (rc != EOK)
 			return rc;
-		
+
 		*bp++ = c;
 		if ((prev == '\r') && (c == '\n'))
 			break;
 	}
-	
+
 	recv->lbuf_used = bp - recv->lbuf;
 	*bp = '\0';
-	
+
 	if (bp == recv->lbuf + BUFFER_SIZE)
 		return ELIMIT;
-	
+
 	*rbuf = recv->lbuf;
 	return EOK;
@@ -211,10 +211,10 @@
 	if (uri[0] != '/')
 		return false;
-	
+
 	if (uri[1] == '.')
 		return false;
-	
+
 	char *cp = uri + 1;
-	
+
 	while (*cp != '\0') {
 		char c = *cp++;
@@ -222,5 +222,5 @@
 			return false;
 	}
-	
+
 	return true;
 }
@@ -229,8 +229,8 @@
 {
 	size_t response_size = str_size(msg);
-	
+
 	if (verbose)
 	    fprintf(stderr, "Sending response\n");
-	
+
 	errno_t rc = tcp_conn_send(conn, (void *) msg, response_size);
 	if (rc != EOK) {
@@ -238,5 +238,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -249,5 +249,5 @@
 	size_t nr;
 	int fd = -1;
-	
+
 	fbuf = calloc(BUFFER_SIZE, 1);
 	if (fbuf == NULL) {
@@ -255,13 +255,13 @@
 		goto out;
 	}
-	
+
 	if (str_cmp(uri, "/") == 0)
 		uri = "/index.html";
-	
+
 	if (asprintf(&fname, "%s%s", WEB_ROOT, uri) < 0) {
 		rc = ENOMEM;
 		goto out;
 	}
-	
+
 	rc = vfs_lookup_open(fname, WALK_REGULAR, MODE_READ, &fd);
 	if (rc != EOK) {
@@ -269,12 +269,12 @@
 		goto out;
 	}
-	
+
 	free(fname);
 	fname = NULL;
-	
+
 	rc = send_response(conn, msg_ok);
 	if (rc != EOK)
 		goto out;
-	
+
 	aoff64_t pos = 0;
 	while (true) {
@@ -282,8 +282,8 @@
 		if (rc != EOK)
 			goto out;
-		
+
 		if (nr == 0)
 			break;
-		
+
 		rc = tcp_conn_send(conn, fbuf, nr);
 		if (rc != EOK) {
@@ -292,5 +292,5 @@
 		}
 	}
-	
+
 	rc = EOK;
 out:
@@ -311,13 +311,13 @@
 		return rc;
 	}
-	
+
 	if (verbose)
 		fprintf(stderr, "Request: %s", reqline);
-	
+
 	if (str_lcmp(reqline, "GET ", 4) != 0) {
 		rc = send_response(conn, msg_not_implemented);
 		return rc;
 	}
-	
+
 	char *uri = reqline + 4;
 	char *end_uri = str_chr(uri, ' ');
@@ -326,14 +326,14 @@
 		assert(*end_uri == '\r');
 	}
-	
+
 	*end_uri = '\0';
 	if (verbose)
 		fprintf(stderr, "Requested URI: %s\n", uri);
-	
+
 	if (!uri_is_valid(uri)) {
 		rc = send_response(conn, msg_bad_request);
 		return rc;
 	}
-	
+
 	return uri_get(uri, conn);
 }
@@ -359,5 +359,5 @@
 	int value;
 	errno_t rc;
-	
+
 	switch (argv[*index][1]) {
 	case 'h':
@@ -369,5 +369,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		port = (uint16_t) value;
 		break;
@@ -384,5 +384,5 @@
 			if (rc != EOK)
 				return rc;
-			
+
 			port = (uint16_t) value;
 		} else if (str_cmp(argv[*index] +2, "verbose") == 0) {
@@ -397,5 +397,5 @@
 		return EINVAL;
 	}
-	
+
 	return EOK;
 }
@@ -405,8 +405,8 @@
 	errno_t rc;
 	recv_t *recv = NULL;
-	
+
 	if (verbose)
 		fprintf(stderr, "New connection, waiting for request\n");
-	
+
 	rc = recv_create(conn, &recv);
 	if (rc != EOK) {
@@ -414,5 +414,5 @@
 		goto error;
 	}
-	
+
 	rc = req_process(conn, recv);
 	if (rc != EOK) {
@@ -421,5 +421,5 @@
 		goto error;
 	}
-	
+
 	rc = tcp_conn_send_fin(conn);
 	if (rc != EOK) {
@@ -434,5 +434,5 @@
 	if (rc != EOK)
 		fprintf(stderr, "Error resetting connection.\n");
-	
+
 	recv_destroy(recv);
 }
@@ -444,5 +444,5 @@
 	tcp_t *tcp;
 	errno_t rc;
-	
+
 	/* Parse command line arguments */
 	for (int i = 1; i < argc; i++) {
@@ -456,10 +456,10 @@
 		}
 	}
-	
+
 	printf("%s: HelenOS web server\n", NAME);
 
 	if (verbose)
 		fprintf(stderr, "Creating listener\n");
-	
+
 	inet_ep_init(&ep);
 	ep.port = port;
@@ -477,5 +477,5 @@
 		return 2;
 	}
-	
+
 	fprintf(stderr, "%s: Listening for connections at port %" PRIu16 "\n",
 	    NAME, port);
@@ -483,5 +483,5 @@
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
Index: uspace/app/wifi_supplicant/wifi_supplicant.c
===================================================================
--- uspace/app/wifi_supplicant/wifi_supplicant.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/app/wifi_supplicant/wifi_supplicant.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -81,8 +81,8 @@
 	    addr->address[0], addr->address[1], addr->address[2],
 	    addr->address[3], addr->address[4], addr->address[5]);
-	
+
 	if (rc < 0)
 		return NULL;
-	
+
 	return str;
 }
@@ -96,5 +96,5 @@
 		return rc;
 	}
-	
+
 	rc = loc_category_get_svcs(wifi_cat, wifis, count);
 	if (rc != EOK) {
@@ -102,5 +102,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -110,5 +110,5 @@
 	service_id_t *wifis = NULL;
 	size_t count;
-	
+
 	errno_t rc = get_wifi_list(&wifis, &count);
 	if (rc != EOK) {
@@ -116,5 +116,5 @@
 		return NULL;
 	}
-	
+
 	if (i >= count) {
 		printf("Invalid wifi index.\n");
@@ -122,5 +122,5 @@
 		return NULL;
 	}
-	
+
 	async_sess_t *sess =
 	    loc_service_connect(wifis[i], INTERFACE_DDF, 0);
@@ -130,5 +130,5 @@
 		return NULL;
 	}
-	
+
 	return sess;
 }
@@ -138,5 +138,5 @@
 	service_id_t *wifis = NULL;
 	size_t count;
-	
+
 	errno_t rc = get_wifi_list(&wifis, &count);
 	if (rc != EOK) {
@@ -144,5 +144,5 @@
 		return EINVAL;
 	}
-	
+
 	printf("[Index]: [Service Name]\n");
 	for (size_t i = 0; i < count; i++) {
@@ -154,10 +154,10 @@
 			return rc;
 		}
-		
+
 		printf("%zu: %s\n", i, svc_name);
-		
+
 		free(svc_name);
 	}
-	
+
 	return EOK;
 }
@@ -166,5 +166,5 @@
 {
 	assert(ssid_start);
-	
+
 	async_sess_t *sess = get_wifi_by_index(index);
 	if (sess == NULL) {
@@ -173,5 +173,5 @@
 		return EINVAL;
 	}
-	
+
 	errno_t rc = ieee80211_disconnect(sess);
 	if(rc != EOK) {
@@ -181,8 +181,8 @@
 			printf("Error when disconnecting device: %s\n",
 			    str_error(rc));
-		
-		return rc;
-	}
-	
+
+		return rc;
+	}
+
 	rc = ieee80211_connect(sess, ssid_start, password);
 	if(rc != EOK) {
@@ -196,12 +196,12 @@
 			printf("Error when connecting to network: %s\n",
 			    str_error(rc));
-		
-		return rc;
-	}
-	
+
+		return rc;
+	}
+
 	// TODO: Wait for DHCP address?
-	
+
 	printf("Successfully connected to network!\n");
-	
+
 	return EOK;
 }
@@ -215,5 +215,5 @@
 		return EINVAL;
 	}
-	
+
 	errno_t rc = ieee80211_disconnect(sess);
 	if (rc != EOK) {
@@ -225,10 +225,10 @@
 			printf("Error when disconnecting from network: %s\n",
 			    str_error(rc));
-		
-		return rc;
-	}
-	
+
+		return rc;
+	}
+
 	printf("Successfully disconnected.\n");
-	
+
 	return EOK;
 }
@@ -242,5 +242,5 @@
 		return EINVAL;
 	}
-	
+
 	ieee80211_scan_results_t scan_results;
 	errno_t rc = ieee80211_get_scan_results(sess, &scan_results, now);
@@ -251,17 +251,17 @@
 			printf("Failed to fetch scan results: %s\n",
 			    str_error(rc));
-		
-		return rc;
-	}
-	
+
+		return rc;
+	}
+
 	if (scan_results.length == 0)
 		return EOK;
-	
+
 	printf("%16.16s %17s %4s %5s %5s %7s %7s\n",
 	    "SSID", "MAC", "CHAN", "TYPE", "AUTH", "UNI-ALG", "GRP-ALG");
-	
+
 	for (uint8_t i = 0; i < scan_results.length; i++) {
 		ieee80211_scan_result_t result = scan_results.results[i];
-		
+
 		printf("%16.16s %17s %4d %5s %5s %7s %7s\n",
 		    result.ssid, nic_addr_format(&result.bssid),
@@ -272,5 +272,5 @@
 		    enum_name(ieee80211_security_alg_strs, result.security.group_alg));
 	}
-	
+
 	return EOK;
 }
@@ -284,5 +284,5 @@
 		return 1;
 	}
-	
+
 	rc = dhcp_init();
 	if (rc != EOK) {
@@ -291,5 +291,5 @@
 		return 1;
 	}
-	
+
 	if (argc == 2) {
 		if (!str_cmp(argv[1], "list"))
@@ -303,5 +303,5 @@
 			return EINVAL;
 		}
-		
+
 		if (!str_cmp(argv[1], "scan")) {
 			bool now = false;
@@ -309,5 +309,5 @@
 				if (!str_cmp(argv[3], "-n"))
 					now = true;
-			
+
 			return wifi_scan(index, now);
 		} else if (!str_cmp(argv[1], "connect")) {
@@ -316,5 +316,5 @@
 				if (argc > 4)
 					pass = argv[4];
-				
+
 				return wifi_connect(index, argv[3], pass);
 			}
@@ -322,7 +322,7 @@
 			return wifi_disconnect(index);
 	}
-	
+
 	print_syntax();
-	
+
 	return EOK;
 }
Index: uspace/dist/src/c/demos/edit/edit.c
===================================================================
--- uspace/dist/src/c/demos/edit/edit.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/edit/edit.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -88,5 +88,5 @@
 	 */
 	int ideal_column;
-	
+
 	char *previous_search;
 	bool previous_search_reverse;
@@ -532,8 +532,8 @@
 		pane.rflags |= REDRAW_TEXT;
 	}
-	
+
 	if (update_ideal_column)
 		pane.ideal_column = c_new.column;
-	
+
 	caret_update();
 }
@@ -608,5 +608,5 @@
 	const char *old_fname = (doc.file_name != NULL) ? doc.file_name : "";
 	char *fname;
-	
+
 	fname = prompt("Save As", old_fname);
 	if (fname == NULL) {
@@ -815,5 +815,5 @@
 
 	/* Clear the remaining rows if file is short. */
-	
+
 	int i;
 	sysarg_t j;
@@ -905,5 +905,5 @@
 				console_flush(con);
 			}
-	
+
 			if ((csel_end.row == rbc.row) && (csel_end.column == s_column)) {
 				console_flush(con);
@@ -911,5 +911,5 @@
 				console_flush(con);
 			}
-	
+
 			c = str_decode(row_buf, &pos, size);
 			if (c != '\t') {
@@ -966,5 +966,5 @@
 	int n = printf(" %d, %d (%d): File '%s'. Ctrl-Q Quit  Ctrl-S Save  "
 	    "Ctrl-E Save As", coord.row, coord.column, last_row, fname);
-	
+
 	int pos = scr_columns - 1 - n;
 	printf("%*s", pos, "");
@@ -1151,8 +1151,8 @@
 	coord.row = row;
 	coord.column = column;
-	
+
 	spt_t pt;
 	sheet_get_cell_pt(doc.sh, &coord, align_dir, &pt);
-	
+
 	caret_move(pt, select, true);
 }
@@ -1196,5 +1196,5 @@
 {
 	char *sline;
-	
+
 	sline = prompt("Go to line", "");
 	if (sline == NULL) {
@@ -1202,5 +1202,5 @@
 		return;
 	}
-	
+
 	char *endptr;
 	int line = strtol(sline, &endptr, 10);
@@ -1211,5 +1211,5 @@
 	}
 	free(sline);
-	
+
 	caret_move_absolute(line, pane.ideal_column, dir_before, false);
 }
@@ -1270,13 +1270,13 @@
 {
 	char *pattern;
-	
+
 	const char *prompt_text = "Find next";
 	if (reverse)
 		prompt_text = "Find previous";
-	
+
 	const char *default_value = "";
 	if (pane.previous_search)
 		default_value = pane.previous_search;
-	
+
 	pattern = prompt(prompt_text, default_value);
 	if (pattern == NULL) {
@@ -1284,10 +1284,10 @@
 		return;
 	}
-	
+
 	if (pane.previous_search)
 		free(pane.previous_search);
 	pane.previous_search = pattern;
 	pane.previous_search_reverse = reverse;
-	
+
 	search(pattern, reverse);
 }
@@ -1299,5 +1299,5 @@
 		return;
 	}
-	
+
 	search(pane.previous_search, pane.previous_search_reverse);
 }
@@ -1306,8 +1306,8 @@
 {
 	status_display("Searching...");
-	
+
 	spt_t sp, producer_pos;
 	tag_get_pt(&pane.caret_pos, &sp);
-	
+
 	/* Start searching on the position before/after caret */
 	if (!reverse) {
@@ -1318,9 +1318,9 @@
 	}
 	producer_pos = sp;
-	
+
 	search_ops_t ops = search_spt_ops;
 	if (reverse)
 		ops = search_spt_reverse_ops;
-	
+
 	search_t *search = search_init(pattern, &producer_pos, ops, reverse);
 	if (search == NULL) {
@@ -1328,5 +1328,5 @@
 		return;
 	}
-	
+
 	match_t match;
 	errno_t rc = search_next_match(search, &match);
@@ -1335,5 +1335,5 @@
 		search_fini(search);
 	}
-	
+
 	if (match.end) {
 		status_display("Match found.");
@@ -1356,5 +1356,5 @@
 		status_display("Not found.");
 	}
-	
+
 	search_fini(search);
 }
@@ -1649,5 +1649,5 @@
 	console_set_pos(con, 0, scr_rows - 1);
 	console_set_style(con, STYLE_INVERTED);
-	
+
 	int pos = -(scr_columns - 3);
 	printf(" %*s ", pos, str);
Index: uspace/dist/src/c/demos/edit/search.c
===================================================================
--- uspace/dist/src/c/demos/edit/search.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/edit/search.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 	if (search == NULL)
 		return NULL;
-	
+
 	wchar_t *p = str_to_awstr(pattern);
 	if (p == NULL) {
@@ -54,7 +54,7 @@
 		return NULL;
 	}
-	
+
 	search->pattern_length = wstr_length(p);
-	
+
 	if (reverse) {
 		/* Reverse the pattern */
@@ -67,7 +67,7 @@
 		}
 	}
-	
+
 	search->pattern = p;
-	
+
 	search->client_data = client_data;
 	search->ops = ops;
@@ -78,7 +78,7 @@
 		return NULL;
 	}
-	
+
 	search->pattern_pos = 0;
-	
+
 	search->back_table[0] = -1;
 	search->back_table[1] = 0;
@@ -100,5 +100,5 @@
 		}
 	}
-	
+
 	return search;
 }
@@ -107,5 +107,5 @@
 {
 	search_equals_fn eq = s->ops.equals;
-	
+
 	wchar_t cur_char;
 	errno_t rc = EOK;
@@ -128,8 +128,8 @@
 		}
 	}
-	
+
 	match->end = NULL;
 	match->length = 0;
-	
+
 	return rc;
 }
@@ -139,5 +139,5 @@
 	free(search->pattern);
 	free(search->back_table);
-	
+
 }
 
Index: uspace/dist/src/c/demos/edit/sheet.c
===================================================================
--- uspace/dist/src/c/demos/edit/sheet.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/edit/sheet.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -263,5 +263,5 @@
 	coord.row = row;
 	coord.column = 65536;
-	
+
 	sheet_get_cell_pt(sh, &coord, dir_before, &pt);
 	spt_get_coord(&pt, &coord);
Index: uspace/dist/src/c/demos/tetris/scores.c
===================================================================
--- uspace/dist/src/c/demos/tetris/scores.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/tetris/scores.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -99,14 +99,14 @@
 {
 	int i;
-	
+
 	clear_screen();
 	moveto(10, 0);
 	printf("\tRank \tLevel \tName\t                     points\n");
 	printf("\t========================================================\n");
-	
+
 	for (i = 0; i < NUMSPOTS - 1; i++)
 		printf("\t%6d %6d %-16s %20d\n",
 		    i + 1, scores[i].hs_level, scores[i].hs_name, scores[i].hs_score);
-	
+
 	if (!firstgame) {
 		printf("\t========================================================\n");
@@ -114,5 +114,5 @@
 		    scores[NUMSPOTS - 1].hs_level, scores[NUMSPOTS - 1].hs_name, scores[NUMSPOTS - 1].hs_score);
 	}
-	
+
 	printf("\n\n\n\n\tPress any key to return to main menu.");
 	getchar();
@@ -126,5 +126,5 @@
 	cons_event_t ev;
 	kbd_event_t *kev;
-	
+
 	clear_screen();
 	moveto(10, 10);
@@ -134,26 +134,26 @@
 	i = 6;
 	off = 6;
-	
+
 	moveto(10 , 28);
 	printf("%s%.*s", scores[NUMSPOTS - 1].hs_name, MAXLOGNAME-i,
 	    "........................................");
-	
+
 	while (1) {
 		console_flush(console);
 		if (!console_get_event(console, &ev))
 			exit(1);
-		
+
 		if (ev.type != CEV_KEY || ev.ev.key.type == KEY_RELEASE)
 			continue;
-		
+
 		kev = &ev.ev.key;
-		
+
 		if (kev->key == KC_ENTER || kev->key == KC_NENTER)
 			break;
-		
+
 		if (kev->key == KC_BACKSPACE) {
 			if (i > 0) {
 				wchar_t uc;
-				
+
 				--i;
 				while (off > 0) {
@@ -165,5 +165,5 @@
 						break;
 				}
-				
+
 				scores[NUMSPOTS - 1].hs_name[off] = '\0';
 			}
@@ -177,20 +177,20 @@
 			}
 		}
-		
+
 		moveto(10, 28);
 		printf("%s%.*s", scores[NUMSPOTS - 1].hs_name, MAXLOGNAME - i,
 		    "........................................");
 	}
-	
+
 	scores[NUMSPOTS - 1].hs_score = score;
 	scores[NUMSPOTS - 1].hs_level = level;
-	
+
 	i = NUMSPOTS - 1;
 	while ((i > 0) && (scores[i - 1].hs_score < score))
 		i--;
-	
+
 	for (j = NUMSPOTS - 2; j > i; j--)
 		copyhiscore(j, j-1);
-	
+
 	copyhiscore(i, NUMSPOTS - 1);
 }
@@ -236,5 +236,5 @@
 		return;
 	}
-	
+
 	cnt = fwrite(scores, sizeof(struct highscore), NUMSPOTS, f);
 	rc = fclose(f);
Index: uspace/dist/src/c/demos/tetris/screen.c
===================================================================
--- uspace/dist/src/c/demos/tetris/screen.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/tetris/screen.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -148,8 +148,8 @@
 	sysarg_t ccap;
 	errno_t rc = console_get_color_cap(console, &ccap);
-	
+
 	if (rc != EOK)
 		return false;
-	
+
 	return ((ccap & CONSOLE_CAP_RGB) == CONSOLE_CAP_RGB);
 }
@@ -161,8 +161,8 @@
 {
 	winsize_t ws;
-	
+
 	Rows = 0;
 	Cols = 0;
-	
+
 	if (get_display_size(&ws) == 0) {
 		Rows = ws.ws_row;
@@ -171,8 +171,8 @@
 
 	use_color = get_display_color_sup();
-	
+
 	if ((Rows < MINROWS) || (Cols < MINCOLS)) {
 		char smallscr[55];
-		
+
 		snprintf(smallscr, sizeof(smallscr),
 		    "the screen is too small (must be at least %dx%d)",
@@ -181,5 +181,5 @@
 	}
 	isset = 1;
-	
+
 	scr_clear();
 }
@@ -197,5 +197,5 @@
 	if (isset)
 		scr_end();
-	
+
 	errx(1, "aborting: %s", why);
 }
@@ -213,8 +213,8 @@
 	int j;
 	int ccol;
-	
+
 	/* Always leave cursor after last displayed point */
 	curscreen[D_LAST * B_COLS - 1] = -1;
-	
+
 	if (score != curscore) {
 		moveto(0, 0);
@@ -222,5 +222,5 @@
 		curscore = score;
 	}
-	
+
 	/* Draw preview of next pattern */
 	if ((showpreview) && (nextshape != lastshape)) {
@@ -228,7 +228,7 @@
 		static int r = 5, c = 2;
 		int tr, tc, t;
-		
+
 		lastshape = nextshape;
-		
+
 		/* Clean */
 		resume_normal();
@@ -241,8 +241,8 @@
 		moveto(r + 2, c - 1);
 		putstr("          ");
-		
+
 		moveto(r - 3, c - 2);
 		putstr("Next shape:");
-		
+
 		/* Draw */
 		start_standout(nextshape->color);
@@ -252,8 +252,8 @@
 			t = c + r * B_COLS;
 			t += nextshape->off[i];
-			
+
 			tr = t / B_COLS;
 			tc = t % B_COLS;
-			
+
 			moveto(tr, 2*tc);
 			putstr("  ");
@@ -261,5 +261,5 @@
 		resume_normal();
 	}
-	
+
 	bp = &board[D_FIRST * B_COLS];
 	sp = &curscreen[D_FIRST * B_COLS];
@@ -269,5 +269,5 @@
 			if (*sp == (so = *bp))
 				continue;
-			
+
 			*sp = so;
 			if (i != ccol) {
@@ -278,5 +278,5 @@
 				moveto(RTOD(j), CTOD(i));
 			}
-			
+
 			if (so != cur_so) {
 				if (so)
@@ -287,5 +287,5 @@
 			}
 			putstr("  ");
-			
+
 			ccol = i + 1;
 			/*
@@ -297,8 +297,8 @@
 			 * the next cell is a different color.
 			 */
-			
+
 			if ((i > STOP) || (sp[1] != bp[1]) || (so != bp[1]))
 				continue;
-			
+
 			if (sp[2] != bp[2])
 				sp[1] = -1;
@@ -309,8 +309,8 @@
 		}
 	}
-	
+
 	if (cur_so)
 		resume_normal();
-	
+
 	console_flush(console);
 }
@@ -323,7 +323,7 @@
 {
 	int l = str_size(s);
-	
+
 	moveto(Rows - 2, ((Cols - l) >> 1) - 1);
-	
+
 	if (set)
 		putstr(s);
@@ -341,8 +341,8 @@
 {
 	suseconds_t timeout = fallrate;
-	
+
 	while (timeout > 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event_timeout(console, &event, &timeout))
 			break;
@@ -359,10 +359,10 @@
 	 * and increase speed.
 	 */
-	
+
 	if (timeleft <= 0) {
 		faster();
 		timeleft = fallrate;
 	}
-	
+
 	/*
 	 * Wait to see if there is any input. If so, take it and
@@ -371,19 +371,19 @@
 	 * make timeleft zero and return -1.
 	 */
-	
+
 	wchar_t c = 0;
-	
+
 	while (c == 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event_timeout(console, &event, &timeleft)) {
 			timeleft = 0;
 			return -1;
 		}
-		
+
 		if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
 			c = event.ev.key.c;
 	}
-	
+
 	return (int) c;
 }
@@ -395,15 +395,15 @@
 {
 	wchar_t c = 0;
-	
+
 	while (c == 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event(console, &event))
 			return -1;
-		
+
 		if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
 			c = event.ev.key.c;
 	}
-	
+
 	return (int) c;
 }
Index: uspace/dist/src/c/demos/tetris/shapes.c
===================================================================
--- uspace/dist/src/c/demos/tetris/shapes.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/tetris/shapes.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -96,9 +96,9 @@
 {
 	const int *o = shape->off;
-	
+
 	if ((board[pos]) || (board[pos + *o++]) || (board[pos + *o++]) ||
 	    (board[pos + *o]))
 		return 0;
-	
+
 	return 1;
 }
@@ -111,5 +111,5 @@
 {
 	const int *o = shape->off;
-	
+
 	board[pos] = onoff ? shape->color : 0x000000;
 	board[pos + *o++] = onoff ? shape->color : 0x000000;
Index: uspace/dist/src/c/demos/tetris/tetris.c
===================================================================
--- uspace/dist/src/c/demos/tetris/tetris.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/tetris/tetris.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -98,5 +98,5 @@
 	int i;
 	cell *p = board;
-	
+
 	for (i = B_SIZE; i; i--)
 		*p++ = (i <= (2 * B_COLS) || (i % B_COLS) < 2) ? 0x0000ff : 0x000000;
@@ -113,5 +113,5 @@
 	int base;
 	cell *p;
-	
+
 	for (i = A_FIRST; i < A_LAST; i++) {
 		base = i * B_COLS + 1;
@@ -122,19 +122,19 @@
 				rows++;
 				memset(&board[base], 0, sizeof(cell) * (B_COLS - 2));
-				
+
 				scr_update();
 				tsleep();
-				
+
 				while (--base != 0)
 					board[base + B_COLS] = board[base];
-				
+
 				scr_update();
 				tsleep();
-				
+
 				break;
 			}
 		}
 	}
-	
+
 	switch (rows) {
 	case 1:
@@ -160,8 +160,8 @@
 	int i;
 	int j = rand() % 4;
-	
+
 	for (i = 0; i < j; i++)
 		tmp = &shapes[classic ? tmp->rotc : tmp->rot];
-	
+
 	return (tmp);
 }
@@ -170,5 +170,5 @@
 {
 	struct timeval tv;
-	
+
 	gettimeofday(&tv, NULL);
 	srand(tv.tv_sec + tv.tv_usec / 100000);
@@ -180,5 +180,5 @@
 	moveto(5, 10);
 	puts("Tetris\n\n");
-	
+
 	moveto(8, 10);
 	printf("Level = %d (press keys 1 - 9 to change)", level);
@@ -202,5 +202,5 @@
 	while (1) {
 		int i = getchar();
-		
+
 		switch(i) {
 			case 'p':
@@ -249,12 +249,12 @@
 	int j;
 	int ch;
-	
+
 	console = console_init(stdin, stdout);
-	
+
 	keys = "jkl pq";
-	
+
 	classic = 0;
 	showpreview = 1;
-	
+
 	while ((ch = getopt(argc, argv, "ck:ps")) != -1)
 		switch(ch) {
@@ -280,11 +280,11 @@
 			usage();
 		}
-	
+
 	argc -= optind;
 	argv += optind;
-	
+
 	if (argc)
 		usage();
-	
+
 	for (i = 0; i <= 5; i++) {
 		for (j = i + 1; j <= 5; j++) {
@@ -292,5 +292,5 @@
 				errx(1, "%s", "duplicate command keys specified.");
 		}
-		
+
 		if (keys[i] == ' ')
 			str_cpy(key_write[i], sizeof(key_write[i]), "<space>");
@@ -300,10 +300,10 @@
 		}
 	}
-	
+
 	snprintf(key_msg, sizeof(key_msg),
 	    "%s - left   %s - rotate   %s - right   %s - drop   %s - pause   %s - quit",
 	    key_write[0], key_write[1], key_write[2], key_write[3],
 	    key_write[4], key_write[5]);
-	
+
 	scr_init();
 	if (loadscores() != EOK)
@@ -312,17 +312,17 @@
 	while (tetris_menu(&level)) {
 		fallrate = 1000000 / level;
-		
+
 		scr_clear();
 		setup_board();
-		
+
 		srandomdev();
 		scr_set();
-		
+
 		pos = A_FIRST * B_COLS + (B_COLS / 2) - 1;
 		nextshape = randshape();
 		curshape = randshape();
-		
+
 		scr_msg(key_msg, 1);
-		
+
 		while (1) {
 			place(curshape, pos, 1);
@@ -338,5 +338,5 @@
 					continue;
 				}
-				
+
 				/*
 				 * Put up the current shape `permanently',
@@ -346,5 +346,5 @@
 				score++;
 				elide();
-				
+
 				/*
 				 * Choose a new shape.  If it does not fit,
@@ -354,11 +354,11 @@
 				nextshape = randshape();
 				pos = A_FIRST * B_COLS + (B_COLS / 2) - 1;
-				
+
 				if (!fits_in(curshape, pos))
 					break;
-				
-				continue;
-			}
-			
+
+				continue;
+			}
+
 			/*
 			 * Handle command keys.
@@ -368,9 +368,9 @@
 				break;
 			}
-			
+
 			if (c == keys[4]) {
 				static char msg[] =
 				    "paused - press RETURN to continue";
-				
+
 				place(curshape, pos, 1);
 				do {
@@ -380,5 +380,5 @@
 					console_flush(console);
 				} while (!twait());
-				
+
 				scr_msg(msg, 0);
 				scr_msg(key_msg, 1);
@@ -386,5 +386,5 @@
 				continue;
 			}
-			
+
 			if (c == keys[0]) {
 				/* move left */
@@ -393,15 +393,15 @@
 				continue;
 			}
-			
+
 			if (c == keys[1]) {
 				/* turn */
 				const struct shape *new =
 				    &shapes[classic ? curshape->rotc : curshape->rot];
-				
+
 				if (fits_in(new, pos))
 					curshape = new;
 				continue;
 			}
-			
+
 			if (c == keys[2]) {
 				/* move right */
@@ -410,5 +410,5 @@
 				continue;
 			}
-			
+
 			if (c == keys[3]) {
 				/* move to bottom */
@@ -419,5 +419,5 @@
 				continue;
 			}
-			
+
 			if (c == '\f') {
 				scr_clear();
@@ -425,5 +425,5 @@
 			}
 		}
-		
+
 		scr_clear();
 		loadscores();
@@ -432,9 +432,9 @@
 		score = 0;
 	}
-	
+
 	scr_clear();
 	printf("\nGame over.\n");
 	scr_end();
-	
+
 	return 0;
 }
Index: uspace/dist/src/c/demos/top/screen.c
===================================================================
--- uspace/dist/src/c/demos/top/screen.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/top/screen.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -98,10 +98,10 @@
 {
 	screen_style_normal();
-	
+
 	if (clear) {
 		console_flush(console);
 		console_clear(console);
 	}
-	
+
 	screen_moveto(0, 0);
 }
@@ -112,13 +112,13 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
+
 	sysarg_t c;
 	sysarg_t r;
 	screen_get_pos(&c, &r);
-	
+
 	sysarg_t i;
 	for (i = c + 1; i < cols; i++)
 		puts(" ");
-	
+
 	if (r + 1 < rows)
 		puts("\n");
@@ -128,8 +128,8 @@
 {
 	console = console_init(stdin, stdout);
-	
+
 	console_flush(console);
 	console_cursor_visibility(console, false);
-	
+
 	screen_restart(true);
 }
@@ -141,5 +141,5 @@
 
 	screen_restart(true);
-	
+
 	console_flush(console);
 	console_cursor_visibility(console, true);
@@ -149,5 +149,5 @@
 {
 	printf("%3" PRIu64 ".", ffloat.upper / ffloat.lower);
-	
+
 	unsigned int i;
 	uint64_t rest = (ffloat.upper % ffloat.lower) * 10;
@@ -156,5 +156,5 @@
 		rest = (rest % ffloat.lower) * 10;
 	}
-	
+
 	printf("%%");
 }
@@ -165,9 +165,9 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
+
 	sysarg_t c;
 	sysarg_t r;
 	screen_get_pos(&c, &r);
-	
+
 	if (c < cols) {
 		int pos = cols - c - 1;
@@ -183,5 +183,5 @@
 	    data->hours, data->minutes, data->seconds,
 	    data->udays, data->uhours, data->uminutes, data->useconds);
-	
+
 	size_t i;
 	for (i = 0; i < data->load_count; i++) {
@@ -189,5 +189,5 @@
 		stats_print_load_fragment(data->load[i], 2);
 	}
-	
+
 	screen_newline();
 }
@@ -208,9 +208,9 @@
 	size_t other = 0;
 	size_t invalid = 0;
-	
+
 	size_t i;
 	for (i = 0; i < data->threads_count; i++) {
 		total++;
-		
+
 		switch (data->threads[i].state) {
 		case Running:
@@ -234,5 +234,5 @@
 		}
 	}
-	
+
 	printf("threads: %zu total, %zu running, %zu ready, "
 	    "%zu sleeping, %zu lingering, %zu other, %zu invalid",
@@ -250,8 +250,8 @@
 			char busy_suffix;
 			char idle_suffix;
-			
+
 			order_suffix(data->cpus[i].busy_cycles, &busy, &busy_suffix);
 			order_suffix(data->cpus[i].idle_cycles, &idle, &idle_suffix);
-			
+
 			printf("cpu%u (%4" PRIu16 " MHz): busy cycles: "
 			    "%" PRIu64 "%c, idle cycles: %" PRIu64 "%c",
@@ -264,5 +264,5 @@
 		} else
 			printf("cpu%u inactive", data->cpus[i].id);
-		
+
 		screen_newline();
 	}
@@ -279,10 +279,10 @@
 	const char *used_suffix;
 	const char *free_suffix;
-	
+
 	bin_order_suffix(data->physmem->total, &total, &total_suffix, false);
 	bin_order_suffix(data->physmem->unavail, &unavail, &unavail_suffix, false);
 	bin_order_suffix(data->physmem->used, &used, &used_suffix, false);
 	bin_order_suffix(data->physmem->free, &free, &free_suffix, false);
-	
+
 	printf("memory: %" PRIu64 "%s total, %" PRIu64 "%s unavail, %"
 	    PRIu64 "%s used, %" PRIu64 "%s free", total, total_suffix,
@@ -304,19 +304,19 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
-	screen_newline();
-	
+
+	screen_newline();
+
 	printf("Operation modes:");
 	screen_newline();
-	
+
 	printf(" t .. tasks statistics");
 	screen_newline();
-	
+
 	printf(" i .. IPC statistics");
 	screen_newline();
-	
+
 	printf(" e .. exceptions statistics");
 	screen_newline();
-	
+
 	printf("      a .. toggle display of all/hot exceptions");
 	screen_newline();
@@ -329,18 +329,18 @@
 	printf("Other keys:");
 	screen_newline();
-	
+
 	printf(" s .. choose column to sort by");
 	screen_newline();
-	
+
 	printf(" r .. toggle reversed sorting");
 	screen_newline();
-	
+
 	printf(" q .. quit");
 	screen_newline();
-	
+
 	sysarg_t col;
 	sysarg_t row;
 	screen_get_pos(&col, &row);
-	
+
 	while (row < rows) {
 		screen_newline();
@@ -379,9 +379,9 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
+
 	sysarg_t col;
 	sysarg_t row;
 	screen_get_pos(&col, &row);
-	
+
 	size_t i;
 	for (i = 0; (i < table->num_fields) && (row < rows); i++) {
@@ -440,5 +440,5 @@
 		}
 	}
-	
+
 	while (row < rows) {
 		screen_newline();
@@ -452,5 +452,5 @@
 	sysarg_t rows;
 	screen_get_size(&cols, &rows);
-	
+
 	sysarg_t col;
 	sysarg_t row;
@@ -463,5 +463,5 @@
 		row++;
 	}
-	
+
 	while (row < rows) {
 		screen_newline();
@@ -493,5 +493,5 @@
 	print_physmem_info(data);
 	print_warning();
-	
+
 	switch (screen_mode) {
 	case SCREEN_TABLE:
@@ -506,5 +506,5 @@
 		print_help();
 	}
-	
+
 	console_flush(console);
 }
@@ -526,5 +526,5 @@
 	vsnprintf(warning_text, warning_text_size, fmt, args);
 	va_end(args);
-	
+
 	warning_timeleft = 2 * USEC_COUNT;
 
@@ -542,8 +542,8 @@
 	 * Reset timeleft whenever it is not positive.
 	 */
-	
+
 	if (timeleft <= 0)
 		timeleft = sec * USEC_COUNT;
-	
+
 	/*
 	 * Wait to see if there is any input. If so, take it and
@@ -552,10 +552,10 @@
 	 * make timeleft zero and return -1.
 	 */
-	
+
 	wchar_t c = 0;
-	
+
 	while (c == 0) {
 		cons_event_t event;
-		
+
 		warning_timeleft -= timeleft;
 		if (!console_get_event_timeout(console, &event, &timeleft)) {
@@ -564,9 +564,9 @@
 		}
 		warning_timeleft += timeleft;
-		
+
 		if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
 			c = event.ev.key.c;
 	}
-	
+
 	return (int) c;
 }
Index: uspace/dist/src/c/demos/top/top.c
===================================================================
--- uspace/dist/src/c/demos/top/top.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/top/top.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -152,72 +152,72 @@
 	target->table.num_fields = 0;
 	target->table.fields = NULL;
-	
+
 	/* Get current time */
 	struct timeval time;
 	gettimeofday(&time, NULL);
-	
+
 	target->hours = (time.tv_sec % DAY) / HOUR;
 	target->minutes = (time.tv_sec % HOUR) / MINUTE;
 	target->seconds = time.tv_sec % MINUTE;
-	
+
 	/* Get uptime */
 	struct timeval uptime;
 	getuptime(&uptime);
-	
+
 	target->udays = uptime.tv_sec / DAY;
 	target->uhours = (uptime.tv_sec % DAY) / HOUR;
 	target->uminutes = (uptime.tv_sec % HOUR) / MINUTE;
 	target->useconds = uptime.tv_sec % MINUTE;
-	
+
 	/* Get load */
 	target->load = stats_get_load(&(target->load_count));
 	if (target->load == NULL)
 		return "Cannot get system load";
-	
+
 	/* Get CPUs */
 	target->cpus = stats_get_cpus(&(target->cpus_count));
 	if (target->cpus == NULL)
 		return "Cannot get CPUs";
-	
+
 	target->cpus_perc =
 	    (perc_cpu_t *) calloc(target->cpus_count, sizeof(perc_cpu_t));
 	if (target->cpus_perc == NULL)
 		return "Not enough memory for CPU utilization";
-	
+
 	/* Get tasks */
 	target->tasks = stats_get_tasks(&(target->tasks_count));
 	if (target->tasks == NULL)
 		return "Cannot get tasks";
-	
+
 	target->tasks_perc =
 	    (perc_task_t *) calloc(target->tasks_count, sizeof(perc_task_t));
 	if (target->tasks_perc == NULL)
 		return "Not enough memory for task utilization";
-	
+
 	/* Get threads */
 	target->threads = stats_get_threads(&(target->threads_count));
 	if (target->threads == NULL)
 		return "Cannot get threads";
-	
+
 	/* Get Exceptions */
 	target->exceptions = stats_get_exceptions(&(target->exceptions_count));
 	if (target->exceptions == NULL)
 		return "Cannot get exceptions";
-	
+
 	target->exceptions_perc =
 	    (perc_exc_t *) calloc(target->exceptions_count, sizeof(perc_exc_t));
 	if (target->exceptions_perc == NULL)
 		return "Not enough memory for exception utilization";
-	
+
 	/* Get physical memory */
 	target->physmem = stats_get_physmem();
 	if (target->physmem == NULL)
 		return "Cannot get physical memory";
-	
+
 	target->ucycles_diff = calloc(target->tasks_count,
 	    sizeof(uint64_t));
 	if (target->ucycles_diff == NULL)
 		return "Not enough memory for user utilization";
-	
+
 	/* Allocate memory for computed values */
 	target->kcycles_diff = calloc(target->tasks_count,
@@ -225,15 +225,15 @@
 	if (target->kcycles_diff == NULL)
 		return "Not enough memory for kernel utilization";
-	
+
 	target->ecycles_diff = calloc(target->exceptions_count,
 	    sizeof(uint64_t));
 	if (target->ecycles_diff == NULL)
 		return "Not enough memory for exception cycles utilization";
-	
+
 	target->ecount_diff = calloc(target->exceptions_count,
 	    sizeof(uint64_t));
 	if (target->ecount_diff == NULL)
 		return "Not enough memory for exception count utilization";
-	
+
 	return NULL;
 }
@@ -249,5 +249,5 @@
 	/* For each CPU: Compute total cycles and divide it between
 	   user and kernel */
-	
+
 	size_t i;
 	for (i = 0; i < new_data->cpus_count; i++) {
@@ -257,19 +257,19 @@
 		    new_data->cpus[i].busy_cycles - old_data->cpus[i].busy_cycles;
 		uint64_t sum = idle + busy;
-		
+
 		FRACTION_TO_FLOAT(new_data->cpus_perc[i].idle, idle * 100, sum);
 		FRACTION_TO_FLOAT(new_data->cpus_perc[i].busy, busy * 100, sum);
 	}
-	
+
 	/* For all tasks compute sum and differencies of all cycles */
-	
+
 	uint64_t virtmem_total = 0;
 	uint64_t resmem_total = 0;
 	uint64_t ucycles_total = 0;
 	uint64_t kcycles_total = 0;
-	
+
 	for (i = 0; i < new_data->tasks_count; i++) {
 		/* Match task with the previous instance */
-		
+
 		bool found = false;
 		size_t j;
@@ -280,5 +280,5 @@
 			}
 		}
-		
+
 		if (!found) {
 			/* This is newly borned task, ignore it */
@@ -287,10 +287,10 @@
 			continue;
 		}
-		
+
 		new_data->ucycles_diff[i] =
 		    new_data->tasks[i].ucycles - old_data->tasks[j].ucycles;
 		new_data->kcycles_diff[i] =
 		    new_data->tasks[i].kcycles - old_data->tasks[j].kcycles;
-		
+
 		virtmem_total += new_data->tasks[i].virtmem;
 		resmem_total += new_data->tasks[i].resmem;
@@ -298,7 +298,7 @@
 		kcycles_total += new_data->kcycles_diff[i];
 	}
-	
+
 	/* For each task compute percential change */
-	
+
 	for (i = 0; i < new_data->tasks_count; i++) {
 		FRACTION_TO_FLOAT(new_data->tasks_perc[i].virtmem,
@@ -311,10 +311,10 @@
 		    new_data->kcycles_diff[i] * 100, kcycles_total);
 	}
-	
+
 	/* For all exceptions compute sum and differencies of cycles */
-	
+
 	uint64_t ecycles_total = 0;
 	uint64_t ecount_total = 0;
-	
+
 	for (i = 0; i < new_data->exceptions_count; i++) {
 		/*
@@ -323,5 +323,5 @@
 		 * usually disappear, but it does not hurt.
 		 */
-		
+
 		bool found = false;
 		size_t j;
@@ -332,5 +332,5 @@
 			}
 		}
-		
+
 		if (!found) {
 			/* This is a new exception, ignore it */
@@ -339,16 +339,16 @@
 			continue;
 		}
-		
+
 		new_data->ecycles_diff[i] =
 		    new_data->exceptions[i].cycles - old_data->exceptions[j].cycles;
 		new_data->ecount_diff[i] =
 		    new_data->exceptions[i].count - old_data->exceptions[i].count;
-		
+
 		ecycles_total += new_data->ecycles_diff[i];
 		ecount_total += new_data->ecount_diff[i];
 	}
-	
+
 	/* For each exception compute percential change */
-	
+
 	for (i = 0; i < new_data->exceptions_count; i++) {
 		FRACTION_TO_FLOAT(new_data->exceptions_perc[i].cycles,
@@ -363,5 +363,5 @@
 	field_t *fa = (field_t *)a + sort_column;
 	field_t *fb = (field_t *)b + sort_column;
-	
+
 	if (fa->type > fb->type)
 		return 1 * sort_reverse;
@@ -535,38 +535,38 @@
 	if (target->load != NULL)
 		free(target->load);
-	
+
 	if (target->cpus != NULL)
 		free(target->cpus);
-	
+
 	if (target->cpus_perc != NULL)
 		free(target->cpus_perc);
-	
+
 	if (target->tasks != NULL)
 		free(target->tasks);
-	
+
 	if (target->tasks_perc != NULL)
 		free(target->tasks_perc);
-	
+
 	if (target->threads != NULL)
 		free(target->threads);
-	
+
 	if (target->exceptions != NULL)
 		free(target->exceptions);
-	
+
 	if (target->exceptions_perc != NULL)
 		free(target->exceptions_perc);
-	
+
 	if (target->physmem != NULL)
 		free(target->physmem);
-	
+
 	if (target->ucycles_diff != NULL)
 		free(target->ucycles_diff);
-	
+
 	if (target->kcycles_diff != NULL)
 		free(target->kcycles_diff);
-	
+
 	if (target->ecycles_diff != NULL)
 		free(target->ecycles_diff);
-	
+
 	if (target->ecount_diff != NULL)
 		free(target->ecount_diff);
@@ -581,14 +581,14 @@
 	data_t data_prev;
 	const char *ret = NULL;
-	
+
 	screen_init();
 	printf("Reading initial data...\n");
-	
+
 	if ((ret = read_data(&data)) != NULL)
 		goto out;
-	
+
 	/* Compute some rubbish to have initialised values */
 	compute_percentages(&data, &data);
-	
+
 	/* And paint screen until death */
 	while (true) {
@@ -601,5 +601,5 @@
 				goto out;
 			}
-			
+
 			compute_percentages(&data_prev, &data);
 			free_data(&data_prev);
@@ -671,14 +671,14 @@
 		print_data(&data);
 	}
-	
+
 out:
 	screen_done();
 	free_data(&data);
-	
+
 	if (ret != NULL) {
 		fprintf(stderr, "%s: %s\n", NAME, ret);
 		return 1;
 	}
-	
+
 	return 0;
 }
Index: uspace/dist/src/c/demos/top/top.h
===================================================================
--- uspace/dist/src/c/demos/top/top.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/dist/src/c/demos/top/top.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -112,30 +112,30 @@
 	time_t minutes;
 	time_t seconds;
-	
+
 	sysarg_t udays;
 	sysarg_t uhours;
 	sysarg_t uminutes;
 	sysarg_t useconds;
-	
+
 	size_t load_count;
 	load_t *load;
-	
+
 	size_t cpus_count;
 	stats_cpu_t *cpus;
 	perc_cpu_t *cpus_perc;
-	
+
 	size_t tasks_count;
 	stats_task_t *tasks;
 	perc_task_t *tasks_perc;
-	
+
 	size_t threads_count;
 	stats_thread_t *threads;
-	
+
 	size_t exceptions_count;
 	stats_exc_t *exceptions;
 	perc_exc_t *exceptions_perc;
-	
+
 	stats_physmem_t *physmem;
-	
+
 	uint64_t *ucycles_diff;
 	uint64_t *kcycles_diff;
Index: uspace/doc/doxygroups.h
===================================================================
--- uspace/doc/doxygroups.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/doc/doxygroups.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -21,5 +21,5 @@
 	 * @ingroup srvcs
 	 */
-	 
+
 	/**
 	 * @defgroup console Console Service
@@ -143,5 +143,5 @@
 	 * @endcond
 	 */
-	
+
 	/**
 	 * @cond ia32
@@ -150,15 +150,15 @@
 	 * @endcond
 	 */
-	
+
 /**
  * @defgroup emul Emulation Libraries
  * @ingroup uspace
  */
-	
+
  	/**
 	 * @defgroup sfl Softloat
 	 * @ingroup emul
 	 */
-	
+
 	/**
 	 * @defgroup softint Softint
Index: uspace/drv/audio/sb16/dsp.c
===================================================================
--- uspace/drv/audio/sb16/dsp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/audio/sb16/dsp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -171,11 +171,11 @@
 {
 	assert(dsp);
-	
+
 	if ((size > MAX_BUFFER_SIZE) || (size == 0) || ((size % 2) == 1))
 		size = MAX_BUFFER_SIZE;
-	
+
 	uintptr_t pa = 0;
 	void *buffer = AS_AREA_ANY;
-	
+
 	errno_t ret = dmamem_map_anonymous(size, DMAMEM_16MiB | 0x0000ffff,
 	    AS_AREA_WRITE | AS_AREA_READ, 0, &pa, &buffer);
@@ -184,8 +184,8 @@
 		return ENOMEM;
 	}
-	
+
 	ddf_log_verbose("Setup DMA buffer at %p (%zu) %zu.", buffer, pa, size);
 	assert(pa < (1 << 24));
-	
+
 	/* Setup 16 bit channel */
 	ret = setup_dma(dsp, pa, size);
@@ -198,5 +198,5 @@
 		dmamem_unmap_anonymous(buffer);
 	}
-	
+
 	return ret;
 }
Index: uspace/drv/block/ahci/ahci.c
===================================================================
--- uspace/drv/block/ahci/ahci.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/block/ahci/ahci.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -229,5 +229,5 @@
 {
 	sata_dev_t *sata = fun_sata_dev(fun);
-	
+
 	uintptr_t phys;
 	void *ibuf = AS_AREA_ANY;
@@ -238,21 +238,21 @@
 		return rc;
 	}
-	
+
 	memset(buf, 0, sata->block_size);
-	
+
 	fibril_mutex_lock(&sata->lock);
-	
+
 	for (size_t cur = 0; cur < count; cur++) {
 		rc = ahci_rb_fpdma(sata, phys, blocknum + cur);
 		if (rc != EOK)
 			break;
-		
+
 		memcpy((void *) (((uint8_t *) buf) + (sata->block_size * cur)),
 		    ibuf, sata->block_size);
 	}
-	
+
 	fibril_mutex_unlock(&sata->lock);
 	dmamem_unmap_anonymous(ibuf);
-	
+
 	return rc;
 }
@@ -272,5 +272,5 @@
 {
 	sata_dev_t *sata = fun_sata_dev(fun);
-	
+
 	uintptr_t phys;
 	void *ibuf = AS_AREA_ANY;
@@ -281,7 +281,7 @@
 		return rc;
 	}
-	
+
 	fibril_mutex_lock(&sata->lock);
-	
+
 	for (size_t cur = 0; cur < count; cur++) {
 		memcpy(ibuf, (void *) (((uint8_t *) buf) + (sata->block_size * cur)),
@@ -291,8 +291,8 @@
 			break;
 	}
-	
+
 	fibril_mutex_unlock(&sata->lock);
 	dmamem_unmap_anonymous(ibuf);
-	
+
 	return rc;
 }
@@ -312,16 +312,16 @@
 {
 	fibril_mutex_lock(&sata->event_lock);
-	
+
 	sata->event_pxis = 0;
 	while (sata->event_pxis == 0)
 		fibril_condvar_wait(&sata->event_condvar, &sata->event_lock);
-	
+
 	ahci_port_is_t pxis = sata->event_pxis;
-	
+
 	if (ahci_port_is_permanent_error(pxis))
 		sata->is_invalid_device = true;
-	
+
 	fibril_mutex_unlock(&sata->event_lock);
-	
+
 	return pxis;
 }
@@ -337,5 +337,5 @@
 	volatile sata_std_command_frame_t *cmd =
 	    (sata_std_command_frame_t *) sata->cmd_table;
-	
+
 	cmd->fis_type = SATA_CMD_FIS_TYPE;
 	cmd->c = SATA_CMD_FIS_COMMAND_INDICATOR;
@@ -350,8 +350,8 @@
 	cmd->control = 0;
 	cmd->reserved2 = 0;
-	
+
 	volatile ahci_cmd_prdt_t *prdt =
 	    (ahci_cmd_prdt_t *) (&sata->cmd_table[0x20]);
-	
+
 	prdt->data_address_low = LO(phys);
 	prdt->data_address_upper = HI(phys);
@@ -360,5 +360,5 @@
 	prdt->reserved2 = 0;
 	prdt->ioc = 0;
-	
+
 	sata->cmd_header->prdtl = 1;
 	sata->cmd_header->flags =
@@ -366,5 +366,5 @@
 	    AHCI_CMDHDR_FLAGS_2DWCMD;
 	sata->cmd_header->bytesprocessed = 0;
-	
+
 	/* Run command. */
 	sata->port->pxsact |= 1;
@@ -382,5 +382,5 @@
 	volatile sata_std_command_frame_t *cmd =
 	    (sata_std_command_frame_t *) sata->cmd_table;
-	
+
 	cmd->fis_type = SATA_CMD_FIS_TYPE;
 	cmd->c = SATA_CMD_FIS_COMMAND_INDICATOR;
@@ -395,8 +395,8 @@
 	cmd->control = 0;
 	cmd->reserved2 = 0;
-	
+
 	volatile ahci_cmd_prdt_t *prdt =
 	    (ahci_cmd_prdt_t *) (&sata->cmd_table[0x20]);
-	
+
 	prdt->data_address_low = LO(phys);
 	prdt->data_address_upper = HI(phys);
@@ -405,5 +405,5 @@
 	prdt->reserved2 = 0;
 	prdt->ioc = 0;
-	
+
 	sata->cmd_header->prdtl = 1;
 	sata->cmd_header->flags =
@@ -411,5 +411,5 @@
 	    AHCI_CMDHDR_FLAGS_2DWCMD;
 	sata->cmd_header->bytesprocessed = 0;
-	
+
 	/* Run command. */
 	sata->port->pxsact |= 1;
@@ -431,5 +431,5 @@
 		return EINTR;
 	}
-	
+
 	uintptr_t phys;
 	sata_identify_data_t *idata = AS_AREA_ANY;
@@ -441,12 +441,12 @@
 		return rc;
 	}
-	
+
 	memset(idata, 0, SATA_IDENTIFY_DEVICE_BUFFER_LENGTH);
-	
+
 	fibril_mutex_lock(&sata->lock);
-	
+
 	ahci_identify_device_cmd(sata, phys);
 	ahci_port_is_t pxis = ahci_wait_event(sata);
-	
+
 	if (sata->is_invalid_device) {
 		ddf_msg(LVL_ERROR,
@@ -454,9 +454,9 @@
 		goto error;
 	}
-	
+
 	if (ahci_port_is_tfes(pxis)) {
 		ahci_identify_packet_device_cmd(sata, phys);
 		pxis = ahci_wait_event(sata);
-		
+
 		if ((sata->is_invalid_device) || (ahci_port_is_error(pxis))) {
 			ddf_msg(LVL_ERROR,
@@ -464,10 +464,10 @@
 			goto error;
 		}
-		
+
 		sata->is_packet_device = true;
 	}
-	
+
 	ahci_get_model_name(idata->model_name, sata->model);
-	
+
 	/*
 	 * Due to QEMU limitation (as of 2012-06-22),
@@ -478,5 +478,5 @@
 		goto error;
 	}
-	
+
 	uint16_t logsec = idata->physical_logic_sector_size;
 	if ((logsec & 0xc000) == 0x4000) {
@@ -489,5 +489,5 @@
 			goto error;
 		}
-		
+
 		if ((logsec & 0x0200) && ((logsec & 0x000f) != 0)) {
 			/* Physical sectors per logical sector is greather than 1 */
@@ -498,5 +498,5 @@
 		}
 	}
-	
+
 	if (sata->is_packet_device) {
 		/*
@@ -509,5 +509,5 @@
 	} else {
 		sata->block_size = SATA_DEFAULT_SECTOR_SIZE;
-		
+
 		if ((idata->caps & sata_rd_cap_lba) == 0) {
 			ddf_msg(LVL_ERROR, "%s: LBA for NCQ must be supported",
@@ -525,5 +525,5 @@
 		}
 	}
-	
+
 	uint8_t udma_mask = idata->udma & 0x007f;
 	sata->highest_udma_mode = (uint8_t) -1;
@@ -539,14 +539,14 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&sata->lock);
 	dmamem_unmap_anonymous(idata);
-	
+
 	return EOK;
-	
+
 error:
 	fibril_mutex_unlock(&sata->lock);
 	dmamem_unmap_anonymous(idata);
-	
+
 	return EINTR;
 }
@@ -563,5 +563,5 @@
 	volatile sata_std_command_frame_t *cmd =
 	    (sata_std_command_frame_t *) sata->cmd_table;
-	
+
 	cmd->fis_type = SATA_CMD_FIS_TYPE;
 	cmd->c = SATA_CMD_FIS_COMMAND_INDICATOR;
@@ -576,8 +576,8 @@
 	cmd->control = 0;
 	cmd->reserved2 = 0;
-	
+
 	volatile ahci_cmd_prdt_t *prdt =
 	    (ahci_cmd_prdt_t *) (&sata->cmd_table[0x20]);
-	
+
 	prdt->data_address_low = LO(phys);
 	prdt->data_address_upper = HI(phys);
@@ -586,5 +586,5 @@
 	prdt->reserved2 = 0;
 	prdt->ioc = 0;
-	
+
 	sata->cmd_header->prdtl = 1;
 	sata->cmd_header->flags =
@@ -592,5 +592,5 @@
 	    AHCI_CMDHDR_FLAGS_2DWCMD;
 	sata->cmd_header->bytesprocessed = 0;
-	
+
 	/* Run command. */
 	sata->port->pxsact |= 1;
@@ -613,5 +613,5 @@
 		return EINTR;
 	}
-	
+
 	if (sata->highest_udma_mode == (uint8_t) -1) {
 		ddf_msg(LVL_ERROR,
@@ -619,5 +619,5 @@
 		return EINTR;
 	}
-	
+
 	if (sata->highest_udma_mode > 6) {
 		ddf_msg(LVL_ERROR,
@@ -625,5 +625,5 @@
 		return EINTR;
 	}
-	
+
 	uintptr_t phys;
 	sata_identify_data_t *idata = AS_AREA_ANY;
@@ -635,13 +635,13 @@
 		return rc;
 	}
-	
+
 	memset(idata, 0, SATA_SET_FEATURE_BUFFER_LENGTH);
-	
+
 	fibril_mutex_lock(&sata->lock);
-	
+
 	uint8_t mode = 0x40 | (sata->highest_udma_mode & 0x07);
 	ahci_set_mode_cmd(sata, phys, mode);
 	ahci_port_is_t pxis = ahci_wait_event(sata);
-	
+
 	if (sata->is_invalid_device) {
 		ddf_msg(LVL_ERROR,
@@ -650,5 +650,5 @@
 		goto error;
 	}
-	
+
 	if (ahci_port_is_error(pxis)) {
 		ddf_msg(LVL_ERROR,
@@ -656,14 +656,14 @@
 		goto error;
 	}
-	
+
 	fibril_mutex_unlock(&sata->lock);
 	dmamem_unmap_anonymous(idata);
-	
+
 	return EOK;
-	
+
 error:
 	fibril_mutex_unlock(&sata->lock);
 	dmamem_unmap_anonymous(idata);
-	
+
 	return EINTR;
 }
@@ -681,5 +681,5 @@
 	volatile sata_ncq_command_frame_t *cmd =
 	    (sata_ncq_command_frame_t *) sata->cmd_table;
-	
+
 	cmd->fis_type = SATA_CMD_FIS_TYPE;
 	cmd->c = SATA_CMD_FIS_COMMAND_INDICATOR;
@@ -687,5 +687,5 @@
 	cmd->tag = 0;
 	cmd->control = 0;
-	
+
 	cmd->reserved1 = 0;
 	cmd->reserved2 = 0;
@@ -694,8 +694,8 @@
 	cmd->reserved5 = 0;
 	cmd->reserved6 = 0;
-	
+
 	cmd->sector_count_low = 1;
 	cmd->sector_count_high = 0;
-	
+
 	cmd->lba0 = blocknum & 0xff;
 	cmd->lba1 = (blocknum >> 8) & 0xff;
@@ -704,8 +704,8 @@
 	cmd->lba4 = (blocknum >> 32) & 0xff;
 	cmd->lba5 = (blocknum >> 40) & 0xff;
-	
+
 	volatile ahci_cmd_prdt_t *prdt =
 	    (ahci_cmd_prdt_t *) (&sata->cmd_table[0x20]);
-	
+
 	prdt->data_address_low = LO(phys);
 	prdt->data_address_upper = HI(phys);
@@ -714,5 +714,5 @@
 	prdt->reserved2 = 0;
 	prdt->ioc = 0;
-	
+
 	sata->cmd_header->prdtl = 1;
 	sata->cmd_header->flags =
@@ -720,5 +720,5 @@
 	    AHCI_CMDHDR_FLAGS_5DWCMD;
 	sata->cmd_header->bytesprocessed = 0;
-	
+
 	sata->port->pxsact |= 1;
 	sata->port->pxci |= 1;
@@ -741,8 +741,8 @@
 		return EINTR;
 	}
-	
+
 	ahci_rb_fpdma_cmd(sata, phys, blocknum);
 	ahci_port_is_t pxis = ahci_wait_event(sata);
-	
+
 	if ((sata->is_invalid_device) || (ahci_port_is_error(pxis))) {
 		ddf_msg(LVL_ERROR,
@@ -750,5 +750,5 @@
 		return EINTR;
 	}
-	
+
 	return EOK;
 }
@@ -768,5 +768,5 @@
 	volatile sata_ncq_command_frame_t *cmd =
 	    (sata_ncq_command_frame_t *) sata->cmd_table;
-	
+
 	cmd->fis_type = SATA_CMD_FIS_TYPE;
 	cmd->c = SATA_CMD_FIS_COMMAND_INDICATOR;
@@ -774,5 +774,5 @@
 	cmd->tag = 0;
 	cmd->control = 0;
-	
+
 	cmd->reserved1 = 0;
 	cmd->reserved2 = 0;
@@ -781,8 +781,8 @@
 	cmd->reserved5 = 0;
 	cmd->reserved6 = 0;
-	
+
 	cmd->sector_count_low = 1;
 	cmd->sector_count_high = 0;
-	
+
 	cmd->lba0 = blocknum & 0xff;
 	cmd->lba1 = (blocknum >> 8) & 0xff;
@@ -791,8 +791,8 @@
 	cmd->lba4 = (blocknum >> 32) & 0xff;
 	cmd->lba5 = (blocknum >> 40) & 0xff;
-	
+
 	volatile ahci_cmd_prdt_t *prdt =
 	    (ahci_cmd_prdt_t *) (&sata->cmd_table[0x20]);
-	
+
 	prdt->data_address_low = LO(phys);
 	prdt->data_address_upper = HI(phys);
@@ -801,5 +801,5 @@
 	prdt->reserved2 = 0;
 	prdt->ioc = 0;
-	
+
 	sata->cmd_header->prdtl = 1;
 	sata->cmd_header->flags =
@@ -808,5 +808,5 @@
 	    AHCI_CMDHDR_FLAGS_5DWCMD;
 	sata->cmd_header->bytesprocessed = 0;
-	
+
 	sata->port->pxsact |= 1;
 	sata->port->pxci |= 1;
@@ -829,8 +829,8 @@
 		return EINTR;
 	}
-	
+
 	ahci_wb_fpdma_cmd(sata, phys, blocknum);
 	ahci_port_is_t pxis = ahci_wait_event(sata);
-	
+
 	if ((sata->is_invalid_device) || (ahci_port_is_error(pxis))) {
 		ddf_msg(LVL_ERROR,
@@ -838,5 +838,5 @@
 		return EINTR;
 	}
-	
+
 	return EOK;
 }
@@ -899,20 +899,20 @@
 	unsigned int port = IPC_GET_ARG1(*icall);
 	ahci_port_is_t pxis = IPC_GET_ARG2(*icall);
-	
+
 	if (port >= AHCI_MAX_PORTS)
 		return;
-	
+
 	sata_dev_t *sata = (sata_dev_t *) ahci->sata_devs[port];
 	if (sata == NULL)
 		return;
-	
+
 	/* Evaluate port event */
 	if ((ahci_port_is_end_of_operation(pxis)) ||
 	    (ahci_port_is_error(pxis))) {
 		fibril_mutex_lock(&sata->event_lock);
-		
+
 		sata->event_pxis = pxis;
 		fibril_condvar_signal(&sata->event_condvar);
-		
+
 		fibril_mutex_unlock(&sata->event_lock);
 	}
@@ -938,14 +938,14 @@
 	void *virt_table = AS_AREA_ANY;
 	ddf_fun_t *fun;
-	
+
 	fun = ddf_fun_create(ahci->dev, fun_exposed, NULL);
-	
+
 	sata_dev_t *sata = ddf_fun_data_alloc(fun, sizeof(sata_dev_t));
 	if (sata == NULL)
 		return NULL;
-	
+
 	sata->fun = fun;
 	sata->port = port;
-	
+
 	/* Allocate and init retfis structure. */
 	errno_t rc = dmamem_map_anonymous(size, DMAMEM_4GiB,
@@ -953,9 +953,9 @@
 	if (rc != EOK)
 		goto error_retfis;
-	
+
 	memset(virt_fb, 0, size);
 	sata->port->pxfbu = HI(phys);
 	sata->port->pxfb = LO(phys);
-	
+
 	/* Allocate and init command header structure. */
 	rc = dmamem_map_anonymous(size, DMAMEM_4GiB,
@@ -963,10 +963,10 @@
 	if (rc != EOK)
 		goto error_cmd;
-	
+
 	memset(virt_cmd, 0, size);
 	sata->port->pxclbu = HI(phys);
 	sata->port->pxclb = LO(phys);
 	sata->cmd_header = (ahci_cmdhdr_t *) virt_cmd;
-	
+
 	/* Allocate and init command table structure. */
 	rc = dmamem_map_anonymous(size, DMAMEM_4GiB,
@@ -974,12 +974,12 @@
 	if (rc != EOK)
 		goto error_table;
-	
+
 	memset(virt_table, 0, size);
 	sata->cmd_header->cmdtableu = HI(phys);
 	sata->cmd_header->cmdtable = LO(phys);
 	sata->cmd_table = (uint32_t*) virt_table;
-	
+
 	return sata;
-	
+
 error_table:
 	dmamem_unmap(virt_cmd, size);
@@ -999,30 +999,30 @@
 {
 	ahci_port_cmd_t pxcmd;
-	
+
 	pxcmd.u32 = sata->port->pxcmd;
-	
+
 	/* Frame receiver disabled. */
 	pxcmd.fre = 0;
-	
+
 	/* Disable process the command list. */
 	pxcmd.st = 0;
-	
+
 	sata->port->pxcmd = pxcmd.u32;
-	
+
 	/* Clear interrupt status. */
 	sata->port->pxis = 0xffffffff;
-	
+
 	/* Clear error status. */
 	sata->port->pxserr = 0xffffffff;
-	
+
 	/* Enable all interrupts. */
 	sata->port->pxie = 0xffffffff;
-	
+
 	/* Frame receiver enabled. */
 	pxcmd.fre = 1;
-	
+
 	/* Enable process the command list. */
 	pxcmd.st = 1;
-	
+
 	sata->port->pxcmd = pxcmd.u32;
 }
@@ -1043,37 +1043,37 @@
 	ddf_fun_t *fun = NULL;
 	errno_t rc;
-	
+
 	sata_dev_t *sata = ahci_sata_allocate(ahci, port);
 	if (sata == NULL)
 		return EINTR;
-	
+
 	/* Set pointers between SATA and AHCI structures. */
 	sata->ahci = ahci;
 	sata->port_num = port_num;
 	ahci->sata_devs[port_num] = sata;
-	
+
 	/* Initialize synchronization structures */
 	fibril_mutex_initialize(&sata->lock);
 	fibril_mutex_initialize(&sata->event_lock);
 	fibril_condvar_initialize(&sata->event_condvar);
-	
+
 	ahci_sata_hw_start(sata);
-	
+
 	/* Identify device. */
 	if (ahci_identify_device(sata) != EOK)
 		goto error;
-	
+
 	/* Set required UDMA mode */
 	if (ahci_set_highest_ultra_dma_mode(sata) != EOK)
 		goto error;
-	
+
 	/* Add device to the system */
 	char sata_dev_name[16];
 	snprintf(sata_dev_name, 16, "ahci_%u", sata_devices_count);
-	
+
 	fibril_mutex_lock(&sata_devices_count_lock);
 	sata_devices_count++;
 	fibril_mutex_unlock(&sata_devices_count_lock);
-	
+
 	rc= ddf_fun_set_name(sata->fun, sata_dev_name);
 	if (rc != EOK) {
@@ -1081,7 +1081,7 @@
 		goto error;
 	}
-	
+
 	ddf_fun_set_ops(fun, &ahci_ops);
-	
+
 	rc = ddf_fun_bind(fun);
 	if (rc != EOK) {
@@ -1089,12 +1089,12 @@
 		goto error;
 	}
-	
+
 	return EOK;
-	
+
 error:
 	sata->is_invalid_device = true;
 	if (fun != NULL)
 		ddf_fun_destroy(fun);
-	
+
 	return EINTR;
 }
@@ -1112,7 +1112,7 @@
 		if (!(ahci->memregs->ghc.pi & (1 << port_num)))
 			continue;
-		
+
 		volatile ahci_port_t *port = ahci->memregs->ports + port_num;
-		
+
 		/* Active devices only */
 		ahci_port_ssts_t pxssts;
@@ -1120,5 +1120,5 @@
 		if (pxssts.det != AHCI_PORT_SSTS_DET_ACTIVE)
 			continue;
-		
+
 		ahci_sata_create(ahci, dev, port, port_num);
 	}
@@ -1137,20 +1137,20 @@
 	if (!ahci)
 		return NULL;
-	
+
 	/* Connect to parent device */
 	ahci->parent_sess = ddf_dev_parent_sess_get(dev);
 	if (ahci->parent_sess == NULL)
 		return NULL;
-	
+
 	ahci->dev = dev;
-	
+
 	hw_res_list_parsed_t hw_res_parsed;
 	hw_res_list_parsed_init(&hw_res_parsed);
 	if (hw_res_get_list_parsed(ahci->parent_sess, &hw_res_parsed, 0) != EOK)
 		goto error_get_res_parsed;
-	
+
 	/* Map AHCI registers. */
 	ahci->memregs = AS_AREA_ANY;
-	
+
 	physmem_map(RNGABS(hw_res_parsed.mem_ranges.ranges[0]),
 	    AHCI_MEMREGS_PAGES_COUNT, AS_AREA_READ | AS_AREA_WRITE,
@@ -1158,12 +1158,12 @@
 	if (ahci->memregs == NULL)
 		goto error_map_registers;
-	
+
 	/* Register interrupt handler */
 	ahci_ranges[0].base = RNGABS(hw_res_parsed.mem_ranges.ranges[0]);
 	ahci_ranges[0].size = sizeof(ahci_memregs_t);
-	
+
 	for (unsigned int port = 0; port < AHCI_MAX_PORTS; port++) {
 		size_t base = port * 7;
-		
+
 		ahci_cmds[base].addr =
 		    ((uint32_t *) RNGABSPTR(hw_res_parsed.mem_ranges.ranges[0])) +
@@ -1171,5 +1171,5 @@
 		    AHCI_PORT_IS_REGISTER_OFFSET;
 		ahci_cmds[base + 2].addr = ahci_cmds[base].addr;
-		
+
 		ahci_cmds[base + 3].addr =
 		    ((uint32_t *) RNGABSPTR(hw_res_parsed.mem_ranges.ranges[0])) +
@@ -1177,5 +1177,5 @@
 		ahci_cmds[base + 4].addr = ahci_cmds[base + 3].addr;
 	}
-	
+
 	irq_code_t ct;
 	ct.cmdcount = sizeof(ahci_cmds) / sizeof(irq_cmd_t);
@@ -1183,5 +1183,5 @@
 	ct.rangecount = sizeof(ahci_ranges) / sizeof(irq_pio_range_t);
 	ct.ranges = ahci_ranges;
-	
+
 	int irq_cap;
 	errno_t rc = register_interrupt_handler(dev,
@@ -1191,5 +1191,5 @@
 		goto error_register_interrupt_handler;
 	}
-	
+
 	rc = hw_res_enable_interrupt(ahci->parent_sess,
 	    hw_res_parsed.irqs.irqs[0]);
@@ -1198,17 +1198,17 @@
 		goto error_enable_interrupt;
 	}
-	
+
 	hw_res_list_parsed_clean(&hw_res_parsed);
 	return ahci;
-	
+
 error_enable_interrupt:
 	unregister_interrupt_handler(dev, irq_cap);
-	
+
 error_register_interrupt_handler:
 	// FIXME: unmap physical memory
-	
+
 error_map_registers:
 	hw_res_list_parsed_clean(&hw_res_parsed);
-	
+
 error_get_res_parsed:
 	free(ahci);
@@ -1225,20 +1225,20 @@
 	/* Disable command completion coalescing feature */
 	ahci_ghc_ccc_ctl_t ccc;
-	
+
 	ccc.u32 = ahci->memregs->ghc.ccc_ctl;
 	ccc.en = 0;
 	ahci->memregs->ghc.ccc_ctl = ccc.u32;
-	
+
 	/* Set master latency timer. */
 	pci_config_space_write_8(ahci->parent_sess, AHCI_PCI_MLT, 32);
-	
+
 	/* Enable PCI interrupt and bus mastering */
 	ahci_pcireg_cmd_t cmd;
-	
+
 	pci_config_space_read_16(ahci->parent_sess, AHCI_PCI_CMD, &cmd.u16);
 	cmd.id = 0;
 	cmd.bme = 1;
 	pci_config_space_write_16(ahci->parent_sess, AHCI_PCI_CMD, cmd.u16);
-	
+
 	/* Enable AHCI and interrupt. */
 	ahci->memregs->ghc.ghc = AHCI_GHC_GHC_AE | AHCI_GHC_GHC_IE;
@@ -1260,13 +1260,13 @@
 	if (ahci == NULL)
 		goto error;
-	
+
 	/* Start AHCI hardware. */
 	ahci_ahci_hw_start(ahci);
-	
+
 	/* Create device structures for sata devices attached to AHCI. */
 	ahci_sata_devices_create(ahci, dev);
-	
+
 	return EOK;
-	
+
 error:
 	return EINTR;
@@ -1290,5 +1290,5 @@
 	uint8_t model[40];
 	memset(model, 0, 40);
-	
+
 	for (unsigned int i = 0; i < 20; i++) {
 		uint16_t w = src[i];
@@ -1296,9 +1296,9 @@
 		model[2 * i + 1] = w & 0x00ff;
 	}
-	
+
 	uint32_t len = 40;
 	while ((len > 0) && (model[len - 1] == 0x20))
 		len--;
-	
+
 	size_t pos = 0;
 	for (unsigned int i = 0; i < len; i++) {
@@ -1306,8 +1306,8 @@
 		if (c >= 0x80)
 			c = '?';
-		
+
 		chr_encode(c, dst, &pos, 40);
 	}
-	
+
 	dst[pos] = '\0';
 }
Index: uspace/drv/block/ahci/ahci.h
===================================================================
--- uspace/drv/block/ahci/ahci.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/block/ahci/ahci.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,8 +45,8 @@
 	/** Pointer to ddf device. */
 	ddf_dev_t *dev;
-	
+
 	/** Pointer to AHCI memory registers. */
 	volatile ahci_memregs_t *memregs;
-	
+
 	/** Pointers to sata devices. */
 	void *sata_devs[AHCI_MAX_PORTS];
@@ -60,47 +60,47 @@
 	/** Pointer to AHCI device. */
 	ahci_dev_t *ahci;
-	
+
 	/** Pointer to ddf function. */
 	ddf_fun_t *fun;
-	
+
 	/** SATA port number (0-31). */
 	uint8_t port_num;
-	
+
 	/** Device in invalid state (disconnected and so on). */
 	bool is_invalid_device;
-	
+
 	/** Pointer to SATA port. */
 	volatile ahci_port_t *port;
-	
+
 	/** Pointer to command header. */
 	volatile ahci_cmdhdr_t *cmd_header;
-	
+
 	/** Pointer to command table. */
 	volatile uint32_t *cmd_table;
-	
+
 	/** Mutex for single operation on device. */
 	fibril_mutex_t lock;
-	
+
 	/** Mutex for event signaling condition variable. */
 	fibril_mutex_t event_lock;
-	
+
 	/** Event signaling condition variable. */
 	fibril_condvar_t event_condvar;
-	
+
 	/** Event interrupt state. */
 	ahci_port_is_t event_pxis;
-	
+
 	/** Number of device data blocks. */
 	uint64_t blocks;
-	
+
 	/** Size of device data blocks. */
 	size_t block_size;
-	
+
 	/** Name of SATA device. */
 	char model[STR_BOUNDS(40) + 1];
-	
+
 	/** Device in invalid state (disconnected and so on). */
 	bool is_packet_device;
-	
+
 	/** Highest UDMA mode supported. */
 	uint8_t highest_udma_mode;
Index: uspace/drv/block/ahci/ahci_sata.h
===================================================================
--- uspace/drv/block/ahci/ahci_sata.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/block/ahci/ahci_sata.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -146,5 +146,5 @@
 	uint16_t _vs8;
 	uint16_t _vs9;
-	
+
 	uint16_t serial_number[10];
 	uint16_t _vs20;
@@ -153,5 +153,5 @@
 	uint16_t firmware_rev[4];
 	uint16_t model_name[20];
-	
+
 	uint16_t max_rw_multiple;
 	uint16_t reserved48;
@@ -161,5 +161,5 @@
 	uint16_t pio_timing;
 	uint16_t dma_timing;
-	
+
 	uint16_t validity;
 	uint16_t cur_cyl;
@@ -178,5 +178,5 @@
 	uint16_t min_raw_pio_cycle;
 	uint16_t min_iordy_pio_cycle;
-	
+
 	uint16_t reserved69;
 	uint16_t reserved70;
@@ -185,5 +185,5 @@
 	uint16_t reserved73;
 	uint16_t reserved74;
-	
+
 	uint16_t queue_depth;
 	/** SATA capatibilities - different meaning for packet device. */
@@ -201,7 +201,7 @@
 	uint16_t csf_default;
 	uint16_t udma;
-	
+
 	uint16_t reserved89[1 + 99 - 89];
-	
+
 	/* Total number of blocks in LBA-48 addressing. */
 	uint16_t total_lba48_0;
@@ -209,5 +209,5 @@
 	uint16_t total_lba48_2;
 	uint16_t total_lba48_3;
-	
+
 	uint16_t reserved104[1 + 105 - 104];
 	uint16_t physical_logic_sector_size;
@@ -248,8 +248,8 @@
 	/** Supports recepits of host-initiated interface power management. */
 	sata_np_cap_host_pmngmnt = 0x0200,
-	
+
 	/** Supports NCQ. */
 	sata_np_cap_ncq = 0x0100,
-	
+
 	/** Supports SATA 3. */
 	sata_np_cap_sata_3 = 0x0008,
@@ -272,5 +272,5 @@
 	/** Supports recepits of host-initiated interface power management. */
 	sata_pt_cap_host_pmngmnt = 0x0200,
-	
+
 	/** Supports SATA 3. */
 	sata_pt_cap_sat_3 = 0x0008,
Index: uspace/drv/block/ddisk/ddisk.c
===================================================================
--- uspace/drv/block/ddisk/ddisk.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/block/ddisk/ddisk.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -182,5 +182,5 @@
 
 	ddisk_t *ddisk = (ddisk_t *) ddf_dev_data_get(dev);
-	
+
 	fibril_mutex_lock(&ddisk->lock);
 	fibril_condvar_broadcast(&ddisk->io_cv);
@@ -216,5 +216,5 @@
 	if (!read)
 		memcpy(ddisk->dma_buffer, buf, DDISK_BLOCK_SIZE);
-	
+
 	pio_write_32(&ddisk->ddisk_regs->dma_buffer,
 	    ddisk->dma_buffer_phys);
@@ -546,5 +546,5 @@
 
 	unregister_interrupt_handler(ddisk->dev, ddisk->irq_cap);
-	
+
 	rc = pio_disable(ddisk->ddisk_regs, sizeof(ddisk_regs_t));
 	if (rc != EOK) {
Index: uspace/drv/bus/isa/i8237.c
===================================================================
--- uspace/drv/bus/isa/i8237.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/isa/i8237.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -99,7 +99,7 @@
 	uint8_t channel_start3;
 	uint8_t channel_count3;
-	
+
 	uint8_t command_status;
-	
+
 	/** Memory to memory transfers, NOT implemented on PCs */
 	uint8_t request;
@@ -107,5 +107,5 @@
 	uint8_t mode;
 	uint8_t flip_flop;
-	
+
 	/*
 	 * Master reset sets Flip-Flop low, clears status,
@@ -136,5 +136,5 @@
 	uint8_t reserved6;
 	uint8_t channel_count7;
-	
+
 	uint8_t command_status;
 	uint8_t reserved8;
@@ -230,5 +230,5 @@
 			.flip_flop_address = (uint8_t *) 0x0c,
 		},
-		
+
 		/* The second chip 16-bit */
 		{ /* Channel 4 - Unusable */
@@ -265,5 +265,5 @@
 		},
 	},
-	
+
 	.page_table = NULL,
 	.first = NULL,
@@ -286,21 +286,21 @@
 	if (ret != EOK)
 		return EIO;
-	
+
 	ret = pio_enable(DMA_CONTROLLER_FIRST_BASE,
 	    sizeof(dma_controller_regs_first_t), (void **) &controller->first);
 	if (ret != EOK)
 		return EIO;
-	
+
 	ret = pio_enable(DMA_CONTROLLER_SECOND_BASE,
 		sizeof(dma_controller_regs_second_t), (void **) &controller->second);
 	if (ret != EOK)
 		return EIO;
-	
+
 	controller->initialized = true;
-	
+
 	/* Reset the controller */
 	pio_write_8(&controller->second->master_reset, 0xff);
 	pio_write_8(&controller->first->master_reset, 0xff);
-	
+
 	return EOK;
 }
@@ -347,9 +347,9 @@
 	if ((channel == 0) || (channel == 4))
 		return ENOTSUP;
-	
+
 	/* DMA is limited to 24bit addresses. */
 	if (pa >= (1 << 24))
 		return EINVAL;
-	
+
 	/* 8 bit channels use only 4 bits from the page register. */
 	if (is_dma8(channel) && (pa >= (1 << 20)))
@@ -359,15 +359,15 @@
 	if ((pa & 0xffff0000) != ((pa + size - 1) & 0xffff0000))
 		return EINVAL;
-	
+
 	fibril_mutex_lock(&guard);
-	
+
 	if (!controller_8237.initialized)
 		dma_controller_init(&controller_8237);
-	
+
 	if (!controller_8237.initialized) {
 		fibril_mutex_unlock(&guard);
 		return EIO;
 	}
-	
+
 	/* 16 bit transfers are a bit special */
 	ddf_msg(LVL_DEBUG, "Unspoiled address %#" PRIx32 " (size %" PRIu32 ")",
@@ -384,15 +384,15 @@
 		pa = ((pa & 0xffff) >> 1) | (pa & 0xff0000);
 	}
-	
+
 	const dma_channel_t dma_channel = controller_8237.channels[channel];
-	
+
 	ddf_msg(LVL_DEBUG, "Setting channel %u to address %#" PRIx32 " "
 	    "(size %" PRIu32 "), mode %hhx.", channel, pa, size, mode);
-	
+
 	/* Mask DMA request */
 	uint8_t value = DMA_SINGLE_MASK_CHAN_TO_REG(channel) |
 	    DMA_SINGLE_MASK_MASKED_FLAG;
 	pio_write_8(dma_channel.single_mask_address, value);
-	
+
 	/* Set mode */
 	value = DMA_MODE_CHAN_TO_REG(channel) | mode;
@@ -400,8 +400,8 @@
 	    dma_channel.mode_address, value);
 	pio_write_8(dma_channel.mode_address, value);
-	
+
 	/* Set address - reset flip-flop */
 	pio_write_8(dma_channel.flip_flop_address, 0);
-	
+
 	/* Low byte */
 	value = pa & 0xff;
@@ -409,5 +409,5 @@
 	    dma_channel.offset_reg_address, value);
 	pio_write_8(dma_channel.offset_reg_address, value);
-	
+
 	/* High byte */
 	value = (pa >> 8) & 0xff;
@@ -415,5 +415,5 @@
 	    dma_channel.offset_reg_address, value);
 	pio_write_8(dma_channel.offset_reg_address, value);
-	
+
 	/* Page address - third byte */
 	value = (pa >> 16) & 0xff;
@@ -421,8 +421,8 @@
 	    dma_channel.page_reg_address, value);
 	pio_write_8(dma_channel.page_reg_address, value);
-	
+
 	/* Set size - reset flip-flop */
 	pio_write_8(dma_channel.flip_flop_address, 0);
-	
+
 	/* Low byte */
 	value = (size - 1) & 0xff;
@@ -430,5 +430,5 @@
 	    dma_channel.size_reg_address, value);
 	pio_write_8(dma_channel.size_reg_address, value);
-	
+
 	/* High byte */
 	value = ((size - 1) >> 8) & 0xff;
@@ -436,11 +436,11 @@
 	    dma_channel.size_reg_address, value);
 	pio_write_8(dma_channel.size_reg_address, value);
-	
+
 	/* Unmask DMA request */
 	value = DMA_SINGLE_MASK_CHAN_TO_REG(channel);
 	pio_write_8(dma_channel.single_mask_address, value);
-	
+
 	fibril_mutex_unlock(&guard);
-	
+
 	return EOK;
 }
@@ -459,8 +459,8 @@
 	if (!is_dma8(channel) && !is_dma16(channel))
 		return ENOENT;
-	
+
 	if ((channel == 0) || (channel == 4))
 		return ENOTSUP;
-	
+
 	fibril_mutex_lock(&guard);
 	if (!controller_8237.initialized) {
@@ -472,10 +472,10 @@
 	/* Get size - reset flip-flop */
 	pio_write_8(dma_channel.flip_flop_address, 0);
-	
+
 	/* Low byte */
 	const uint8_t value_low = pio_read_8(dma_channel.size_reg_address);
 	ddf_msg(LVL_DEBUG2, "Read size low byte: %p:%x.",
 	    dma_channel.size_reg_address, value_low);
-	
+
 	/* High byte */
 	const uint8_t value_high = pio_read_8(dma_channel.size_reg_address);
Index: uspace/drv/bus/isa/isa.c
===================================================================
--- uspace/drv/bus/isa/isa.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/isa/isa.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -402,14 +402,14 @@
 	size_t count = fun->hw_resources.count;
 	hw_resource_t *resources = fun->hw_resources.resources;
-	
+
 	if (count < ISA_MAX_HW_RES) {
 		if ((dma > 0) && (dma < 4)) {
 			resources[count].type = DMA_CHANNEL_8;
 			resources[count].res.dma_channel.dma8 = dma;
-			
+
 			fun->hw_resources.count++;
 			ddf_msg(LVL_NOTE, "Added dma 0x%x to function %s", dma,
 			    ddf_fun_get_name(fun->fnode));
-			
+
 			return;
 		}
@@ -418,12 +418,12 @@
 			resources[count].type = DMA_CHANNEL_16;
 			resources[count].res.dma_channel.dma16 = dma;
-			
+
 			fun->hw_resources.count++;
 			ddf_msg(LVL_NOTE, "Added dma 0x%x to function %s", dma,
 			    ddf_fun_get_name(fun->fnode));
-			
+
 			return;
 		}
-		
+
 		ddf_msg(LVL_WARN, "Skipped dma 0x%x for function %s", dma,
 		    ddf_fun_get_name(fun->fnode));
@@ -492,8 +492,8 @@
 {
 	char *end = NULL;
-	
+
 	val = skip_spaces(val);
 	const int dma = strtol(val, &end, 10);
-	
+
 	if (val != end)
 		isa_fun_add_dma(fun, dma);
@@ -733,5 +733,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = pio_window_get(sess, &isa->pio_win);
 	if (rc != EOK) {
Index: uspace/drv/bus/pci/pciintel/pci.c
===================================================================
--- uspace/drv/bus/pci/pciintel/pci.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/pci/pciintel/pci.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -93,5 +93,5 @@
 {
 	pci_fun_t *fun = pci_fun(fnode);
-	
+
 	if (fun == NULL)
 		return NULL;
@@ -103,5 +103,5 @@
 	size_t i;
 	hw_resource_list_t *res = &fun->hw_resources;
-	
+
 	for (i = 0; i < res->count; i++) {
 		if (res->resources[i].type == INTERRUPT &&
@@ -110,5 +110,5 @@
 		}
 	}
-	
+
 	return false;
 }
@@ -117,5 +117,5 @@
 {
 	pci_fun_t *fun = pci_fun(fnode);
-	
+
 	if (!pciintel_fun_owns_interrupt(fun, irq))
 		return EINVAL;
@@ -127,5 +127,5 @@
 {
 	pci_fun_t *fun = pci_fun(fnode);
-	
+
 	if (!pciintel_fun_owns_interrupt(fun, irq))
 		return EINVAL;
@@ -137,5 +137,5 @@
 {
 	pci_fun_t *fun = pci_fun(fnode);
-	
+
 	if (!pciintel_fun_owns_interrupt(fun, irq))
 		return EINVAL;
@@ -147,5 +147,5 @@
 {
 	pci_fun_t *fun = pci_fun(fnode);
-	
+
 	if (fun == NULL)
 		return NULL;
@@ -256,5 +256,5 @@
 	pci_bus_t *bus = pci_bus_from_fun(fun);
 	uint32_t val;
-	
+
 	fibril_mutex_lock(&bus->conf_mutex);
 
@@ -285,5 +285,5 @@
 		break;
 	}
-	
+
 	fibril_mutex_unlock(&bus->conf_mutex);
 }
@@ -294,5 +294,5 @@
 	pci_bus_t *bus = pci_bus_from_fun(fun);
 	uint32_t val = 0;
-	
+
 	fibril_mutex_lock(&bus->conf_mutex);
 
@@ -317,5 +317,5 @@
 		}
 	}
-	
+
 	switch (len) {
 	case 1:
@@ -340,5 +340,5 @@
 		    host2uint32_t_le(val));
 	}
-	
+
 	fibril_mutex_unlock(&bus->conf_mutex);
 }
@@ -458,8 +458,8 @@
 	hw_resource_t *hw_resources =  hw_res_list->resources;
 	size_t count = hw_res_list->count;
-	
+
 	assert(hw_resources != NULL);
 	assert(count < PCI_MAX_HW_RES);
-	
+
 	if (io) {
 		hw_resources[count].type = IO_RANGE;
@@ -475,5 +475,5 @@
 		hw_resources[count].res.mem_range.endianness = LITTLE_ENDIAN;
 	}
-	
+
 	hw_res_list->count++;
 }
@@ -498,10 +498,10 @@
 	/* 64-bit wide address */
 	bool addrw64;
-	
+
 	/* Size of the io or memory range specified by the BAR */
 	size_t range_size;
 	/* Beginning of the io or memory range specified by the BAR */
 	uint64_t range_addr;
-	
+
 	/* Get the value of the BAR. */
 	val = pci_conf_read_32(fun, addr);
@@ -509,5 +509,5 @@
 #define IO_MASK  (~0x3)
 #define MEM_MASK (~0xf)
-	
+
 	io = (val & 1) != 0;
 	if (io) {
@@ -528,5 +528,5 @@
 		}
 	}
-	
+
 	/* Get the address mask. */
 	pci_conf_write_32(fun, addr, 0xffffffff);
@@ -544,7 +544,7 @@
 	pci_conf_write_32(fun, addr, val);
 	val = pci_conf_read_32(fun, addr);
-	
+
 	range_size = pci_bar_mask_to_size(mask);
-	
+
 	if (addrw64) {
 		range_addr = ((uint64_t)pci_conf_read_32(fun, addr + 4) << 32) |
@@ -553,5 +553,5 @@
 		range_addr = (val & 0xfffffff0);
 	}
-	
+
 	if (range_addr != 0) {
 		ddf_msg(LVL_DEBUG, "Function %s : address = %" PRIx64
@@ -559,10 +559,10 @@
 		    (unsigned int) range_size);
 	}
-	
+
 	pci_add_range(fun, range_addr, range_size, io);
-	
+
 	if (addrw64)
 		return addr + 8;
-	
+
 	return addr + 4;
 }
@@ -573,13 +573,13 @@
 	hw_resource_t *hw_resources = hw_res_list->resources;
 	size_t count = hw_res_list->count;
-	
+
 	assert(NULL != hw_resources);
 	assert(count < PCI_MAX_HW_RES);
-	
+
 	hw_resources[count].type = INTERRUPT;
 	hw_resources[count].res.interrupt.irq = irq;
-	
+
 	hw_res_list->count++;
-	
+
 	ddf_msg(LVL_NOTE, "Function %s uses irq %x.", ddf_fun_get_name(fun->fnode), irq);
 }
@@ -603,15 +603,15 @@
 	pci_fun_t *fun;
 	errno_t rc;
-	
+
 	int child_bus = 0;
 	int dnum, fnum;
 	bool multi;
 	uint8_t header_type;
-	
+
 	for (dnum = 0; dnum < 32; dnum++) {
 		multi = true;
 		for (fnum = 0; multi && fnum < 8; fnum++) {
 			fun = pci_fun_new(bus);
-			
+
 			pci_fun_init(fun, bus_num, dnum, fnum);
 			if (fun->vendor_id == 0xffff) {
@@ -626,5 +626,5 @@
 					continue;
 			}
-			
+
 			header_type = pci_conf_read_8(fun, PCI_HEADER_TYPE);
 			if (fnum == 0) {
@@ -634,5 +634,5 @@
 			/* Clear the multifunction bit. */
 			header_type = header_type & 0x7F;
-			
+
 			char *fun_name = pci_fun_create_name(fun);
 			if (fun_name == NULL) {
@@ -641,5 +641,5 @@
 				return;
 			}
-			
+
 			rc = ddf_fun_set_name(fun->fnode, fun_name);
 			free(fun_name);
@@ -649,5 +649,5 @@
 				return;
 			}
-			
+
 			pci_alloc_resource_list(fun);
 			pci_read_bars(fun);
@@ -656,12 +656,12 @@
 			/* Propagate the PIO window to the function. */
 			fun->pio_window = bus->pio_win;
-			
+
 			ddf_fun_set_ops(fun->fnode, &pci_fun_ops);
-			
+
 			ddf_msg(LVL_DEBUG, "Adding new function %s.",
 			    ddf_fun_get_name(fun->fnode));
 
 			pci_fun_create_match_ids(fun);
-			
+
 			if (ddf_fun_bind(fun->fnode) != EOK) {
 				pci_clean_resource_list(fun);
@@ -669,5 +669,5 @@
 				continue;
 			}
-			
+
 			if (header_type == PCI_HEADER_TYPE_BRIDGE ||
 			    header_type == PCI_HEADER_TYPE_CARDBUS) {
@@ -692,7 +692,7 @@
 	async_sess_t *sess;
 	errno_t rc;
-	
+
 	ddf_msg(LVL_DEBUG, "pci_dev_add");
-	
+
 	bus = ddf_dev_data_alloc(dnode, sizeof(pci_bus_t));
 	if (bus == NULL) {
@@ -704,5 +704,5 @@
 
 	bus->dnode = dnode;
-	
+
 	sess = ddf_dev_parent_sess_get(dnode);
 	if (sess == NULL) {
@@ -719,5 +719,5 @@
 		goto fail;
 	}
-	
+
 	rc = hw_res_get_resource_list(sess, &hw_resources);
 	if (rc != EOK) {
@@ -727,6 +727,6 @@
 	}
 	got_res = true;
-	
-	
+
+
 	assert(hw_resources.count >= 1);
 
@@ -745,17 +745,17 @@
 			goto fail;
 		}
-		
+
 	} else {
 		assert(hw_resources.resources[0].type == IO_RANGE);
 		assert(hw_resources.resources[0].res.io_range.size >= 4);
-	
+
 		assert(hw_resources.resources[1].type == IO_RANGE);
 		assert(hw_resources.resources[1].res.io_range.size >= 4);
-	
+
 		ddf_msg(LVL_DEBUG, "conf_addr = %" PRIx64 ".",
 		    hw_resources.resources[0].res.io_range.address);
 		ddf_msg(LVL_DEBUG, "data_addr = %" PRIx64 ".",
 		    hw_resources.resources[1].res.io_range.address);
-	
+
 		if (pio_enable_resource(&bus->pio_win,
 		    &hw_resources.resources[0],
@@ -775,8 +775,8 @@
 		}
 	}
-	
+
 	/* Make the bus device more visible. It has no use yet. */
 	ddf_msg(LVL_DEBUG, "Adding a 'ctl' function");
-	
+
 	ctl = ddf_fun_create(bus->dnode, fun_exposed, "ctl");
 	if (ctl == NULL) {
@@ -785,5 +785,5 @@
 		goto fail;
 	}
-	
+
 	rc = ddf_fun_bind(ctl);
 	if (rc != EOK) {
@@ -791,20 +791,20 @@
 		goto fail;
 	}
-	
+
 	/* Enumerate functions. */
 	ddf_msg(LVL_DEBUG, "Scanning the bus");
 	pci_bus_scan(bus, 0);
-	
+
 	hw_res_clean_resource_list(&hw_resources);
-	
+
 	return EOK;
-	
+
 fail:
 	if (got_res)
 		hw_res_clean_resource_list(&hw_resources);
-	
+
 	if (ctl != NULL)
 		ddf_fun_destroy(ctl);
-	
+
 	return rc;
 }
@@ -831,5 +831,5 @@
 	pci_fun_t *fun;
 	ddf_fun_t *fnode;
-	
+
 	fnode = ddf_fun_create(bus->dnode, fun_inner, NULL);
 	if (fnode == NULL)
@@ -852,10 +852,10 @@
 	fun->vendor_id = pci_conf_read_16(fun, PCI_VENDOR_ID);
 	fun->device_id = pci_conf_read_16(fun, PCI_DEVICE_ID);
-	
+
 	/* Explicitly enable PCI bus mastering */
 	fun->command = pci_conf_read_16(fun, PCI_COMMAND) |
 	    PCI_COMMAND_MASTER;
 	pci_conf_write_16(fun, PCI_COMMAND, fun->command);
-	
+
 	fun->class_code = pci_conf_read_8(fun, PCI_BASE_CLASS);
 	fun->subclass_code = pci_conf_read_8(fun, PCI_SUB_CLASS);
@@ -874,5 +874,5 @@
 {
 	char *name = NULL;
-	
+
 	asprintf(&name, "%02x:%02x.%01x", fun->bus, fun->dev,
 	    fun->fn);
@@ -903,5 +903,5 @@
 	 */
 	int addr = PCI_BASE_ADDR_0;
-	
+
 	while (addr <= PCI_BASE_ADDR_5)
 		addr = pci_read_bar(fun, addr);
Index: uspace/drv/bus/usb/ehci/ehci_bus.h
===================================================================
--- uspace/drv/bus/usb/ehci/ehci_bus.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/ehci/ehci_bus.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 	/** EHCI endpoint descriptor, backed by dma_buffer */
 	qh_t *qh;
-	
+
 	dma_buffer_t dma_buffer;
 
Index: uspace/drv/bus/usb/ohci/hc.h
===================================================================
--- uspace/drv/bus/usb/ohci/hc.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/ohci/hc.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,5 +64,5 @@
 	/** Memory mapped I/O registers area */
 	ohci_regs_t *registers;
-	
+
 	/** Host controller communication area structure */
 	hcca_t *hcca;
Index: uspace/drv/bus/usb/ohci/ohci_rh.c
===================================================================
--- uspace/drv/bus/usb/ohci/ohci_rh.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/ohci/ohci_rh.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -409,14 +409,14 @@
 	TEST_SIZE_INIT(0, port, hub);
 	const unsigned feature = uint16_usb2host(setup_packet->value);
-	
+
 	switch (feature) {
 	case USB_HUB_FEATURE_PORT_POWER:   /*8*/
 		{
 			const uint32_t rhda = OHCI_RD(hub->registers->rh_desc_a);
-			
+
 			/* No power switching */
 			if (rhda & RHDA_NPS_FLAG)
 				return EOK;
-			
+
 			/* Ganged power switching, one port powers all */
 			if (!(rhda & RHDA_PSM_FLAG)) {
Index: uspace/drv/bus/usb/usbhub/port.c
===================================================================
--- uspace/drv/bus/usb/usbhub/port.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/usbhub/port.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -87,5 +87,5 @@
 		return;
 	}
-	
+
 	const errno_t err = usbhc_device_remove(exch, port->port_number);
 	if (err)
Index: uspace/drv/bus/usb/usbmid/explore.c
===================================================================
--- uspace/drv/bus/usb/usbmid/explore.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/usbmid/explore.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -164,5 +164,5 @@
 		return rc;
 	}
-	
+
 	/* Create driver soft-state. */
 	usb_mid_t *usb_mid = usb_device_data_alloc(dev, sizeof(usb_mid_t));
Index: uspace/drv/bus/usb/vhc/conndev.c
===================================================================
--- uspace/drv/bus/usb/vhc/conndev.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/vhc/conndev.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,5 +57,5 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	aid_t opening_request = async_send_0(exch, IPC_M_USBVIRT_GET_NAME, NULL);
 	if (opening_request == 0) {
@@ -63,24 +63,24 @@
 		return;
 	}
-	
+
 	ipc_call_t data_request_call;
 	aid_t data_request = async_data_read(exch, plugged_device_name,
 	     PLUGGED_DEVICE_NAME_MAXLEN, &data_request_call);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (data_request == 0) {
 		async_forget(opening_request);
 		return;
 	}
-	
+
 	errno_t data_request_rc;
 	errno_t opening_request_rc;
 	async_wait_for(data_request, &data_request_rc);
 	async_wait_for(opening_request, &opening_request_rc);
-	
+
 	if ((data_request_rc != EOK) || (opening_request_rc != EOK))
 		return;
-	
+
 	size_t len = IPC_GET_ARG2(data_request_call);
 	plugged_device_name[len] = 0;
@@ -97,8 +97,8 @@
 {
 	vhc_data_t *vhc = ddf_fun_data_get(fun);
-	
+
 	async_sess_t *callback =
 	    async_callback_receive_start(EXCHANGE_SERIALIZE, icall);
-	
+
 	if (callback) {
 		errno_t rc = vhc_virtdev_plug(vhc, callback, &plugged_device_handle);
@@ -108,9 +108,9 @@
 			return;
 		}
-		
+
 		async_answer_0(icallid, EOK);
-		
+
 		receive_device_name(callback);
-		
+
 		usb_log_info("New virtual device `%s' (id: %" PRIxn ").",
 		    plugged_device_name, plugged_device_handle);
Index: uspace/drv/bus/usb/vhc/hub/virthubops.c
===================================================================
--- uspace/drv/bus/usb/vhc/hub/virthubops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/vhc/hub/virthubops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -73,5 +73,5 @@
 		return ESTALL;
 	}
-	
+
 	hub_t *hub = dev->device_data;
 
@@ -94,5 +94,5 @@
 		*actual_size = 0;
 	}
-	
+
 	hub->signal_changes = false;
 
Index: uspace/drv/bus/usb/vhc/transfer.c
===================================================================
--- uspace/drv/bus/usb/vhc/transfer.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/vhc/transfer.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -228,5 +228,5 @@
 
 	fibril_mutex_unlock(&vhc->guard);
-	
+
 	if (targets > 1)
 		usb_log_warning("Transfer would be accepted by more devices!");
Index: uspace/drv/bus/usb/xhci/debug.c
===================================================================
--- uspace/drv/bus/usb/xhci/debug.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/xhci/debug.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -301,5 +301,5 @@
 	static const char speed_exp [] = " KMG";
 	static const char *psi_types [] = { "", " rsvd", " RX", " TX" };
-	
+
 	usb_log_debug("Speed %u%s: %5u %cb/s, %s",
 	    XHCI_REG_RD(psi, XHCI_PSI_PSIV),
Index: uspace/drv/bus/usb/xhci/rh.c
===================================================================
--- uspace/drv/bus/usb/xhci/rh.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/bus/usb/xhci/rh.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -273,5 +273,5 @@
 		if (status != 0)
 			usb_log_debug("RH port %u change not handled: 0x%x", port_id, status);
-		
+
 		/* Make sure that PSCEG is 0 before exiting the loop. */
 		status = XHCI_REG_RD_FIELD(&port->regs->portsc, 32);
Index: uspace/drv/char/i8042/i8042.c
===================================================================
--- uspace/drv/char/i8042/i8042.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/char/i8042/i8042.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -130,13 +130,13 @@
 	i8042_t *controller = ddf_dev_data_get(dev);
 	errno_t rc;
-	
+
 	const uint8_t status = IPC_GET_ARG1(*call);
 	const uint8_t data = IPC_GET_ARG2(*call);
-	
+
 	i8042_port_t *port = (status & i8042_AUX_DATA) ?
 	    controller->aux : controller->kbd;
-	
+
 	fibril_mutex_lock(&port->buf_lock);
-	
+
 	rc = circ_buf_push(&port->cbuf, &data);
 	if (rc != EOK)
@@ -169,19 +169,19 @@
 	ddf_fun_t *aux_fun;
 	i8042_regs_t *ar;
-	
+
 	errno_t rc;
 	bool kbd_bound = false;
 	bool aux_bound = false;
-	
+
 	if (regs->size < sizeof(i8042_regs_t)) {
 		rc = EINVAL;
 		goto error;
 	}
-	
+
 	if (pio_enable_range(regs, (void **) &dev->regs) != 0) {
 		rc = EIO;
 		goto error;
 	}
-	
+
 	kbd_fun = ddf_fun_create(ddf_dev, fun_inner, "ps2a");
 	if (kbd_fun == NULL) {
@@ -189,5 +189,5 @@
 		goto error;
 	};
-	
+
 	dev->kbd = ddf_fun_data_alloc(kbd_fun, sizeof(i8042_port_t));
 	if (dev->kbd == NULL) {
@@ -195,5 +195,5 @@
 		goto error;
 	}
-	
+
 	dev->kbd->fun = kbd_fun;
 	dev->kbd->ctl = dev;
@@ -203,9 +203,9 @@
 	fibril_mutex_initialize(&dev->kbd->buf_lock);
 	fibril_condvar_initialize(&dev->kbd->buf_cv);
-	
+
 	rc = ddf_fun_add_match_id(dev->kbd->fun, "char/xtkbd", 90);
 	if (rc != EOK)
 		goto error;
-	
+
 	aux_fun = ddf_fun_create(ddf_dev, fun_inner, "ps2b");
 	if (aux_fun == NULL) {
@@ -213,5 +213,5 @@
 		goto error;
 	}
-	
+
 	dev->aux = ddf_fun_data_alloc(aux_fun, sizeof(i8042_port_t));
 	if (dev->aux == NULL) {
@@ -219,5 +219,5 @@
 		goto error;
 	}
-	
+
 	dev->aux->fun = aux_fun;
 	dev->aux->ctl = dev;
@@ -227,16 +227,16 @@
 	fibril_mutex_initialize(&dev->aux->buf_lock);
 	fibril_condvar_initialize(&dev->aux->buf_cv);
-	
+
 	rc = ddf_fun_add_match_id(dev->aux->fun, "char/ps2mouse", 90);
 	if (rc != EOK)
 		goto error;
-	
+
 	ddf_fun_set_conn_handler(dev->kbd->fun, i8042_char_conn);
 	ddf_fun_set_conn_handler(dev->aux->fun, i8042_char_conn);
-	
+
 	circ_buf_init(&dev->kbd->cbuf, dev->kbd->buf_data, BUFFER_SIZE, 1);
 	circ_buf_init(&dev->aux->cbuf, dev->aux->buf_data, BUFFER_SIZE, 1);
 	fibril_mutex_initialize(&dev->write_guard);
-	
+
 	rc = ddf_fun_bind(dev->kbd->fun);
 	if (rc != EOK) {
@@ -246,5 +246,5 @@
 	}
 	kbd_bound = true;
-	
+
 	rc = ddf_fun_bind(dev->aux->fun);
 	if (rc != EOK) {
@@ -254,5 +254,5 @@
 	}
 	aux_bound = true;
-	
+
 	/* Disable kbd and aux */
 	wait_ready(dev);
@@ -260,5 +260,5 @@
 	wait_ready(dev);
 	pio_write_8(&dev->regs->data, i8042_KBD_DISABLE | i8042_AUX_DISABLE);
-	
+
 	/* Flush all current IO */
 	while (pio_read_8(&dev->regs->status) & i8042_OUTPUT_FULL)
@@ -280,5 +280,5 @@
 		.cmds = cmds
 	};
-	
+
 	int irq_kbd_cap;
 	rc = register_interrupt_handler(ddf_dev, irq_kbd,
@@ -289,5 +289,5 @@
 		goto error;
 	}
-	
+
 	int irq_mouse_cap;
 	rc = register_interrupt_handler(ddf_dev, irq_mouse,
@@ -298,9 +298,9 @@
 		goto error;
 	}
-	
+
 	/* Enable interrupts */
 	async_sess_t *parent_sess = ddf_dev_parent_sess_get(ddf_dev);
 	assert(parent_sess != NULL);
-	
+
 	rc = hw_res_enable_interrupt(parent_sess, irq_kbd);
 	if (rc != EOK) {
@@ -318,5 +318,5 @@
 		goto error;
 	}
-	
+
 	/* Enable port interrupts. */
 	wait_ready(dev);
@@ -325,5 +325,5 @@
 	pio_write_8(&dev->regs->data, i8042_KBD_IE | i8042_KBD_TRANSLATE |
 	    i8042_AUX_IE);
-	
+
 	return EOK;
 error:
@@ -356,7 +356,7 @@
 	i8042_t *i8042 = port->ctl;
 	const char *dp = (const char *)data;
-	
+
 	fibril_mutex_lock(&i8042->write_guard);
-	
+
 	for (size_t i = 0; i < size; ++i) {
 		if (port == i8042->aux) {
@@ -365,9 +365,9 @@
 			    i8042_CMD_WRITE_AUX);
 		}
-		
+
 		wait_ready(i8042);
 		pio_write_8(&i8042->regs->data, dp[i]);
 	}
-	
+
 	fibril_mutex_unlock(&i8042->write_guard);
 	*nwr = size;
@@ -392,7 +392,7 @@
 	uint8_t *destp = (uint8_t *)dest;
 	errno_t rc;
-	
+
 	fibril_mutex_lock(&port->buf_lock);
-	
+
 	while (circ_buf_nused(&port->cbuf) == 0)
 		fibril_condvar_wait(&port->buf_cv, &port->buf_lock);
Index: uspace/drv/char/i8042/main.c
===================================================================
--- uspace/drv/char/i8042/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/char/i8042/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,9 +59,9 @@
 {
 	assert(dev);
-	
+
 	async_sess_t *parent_sess = ddf_dev_parent_sess_get(dev);
 	if (parent_sess == NULL)
 		return ENOMEM;
-	
+
 	hw_res_list_parsed_t hw_resources;
 	hw_res_list_parsed_init(&hw_resources);
@@ -69,5 +69,5 @@
 	if (ret != EOK)
 		return ret;
-	
+
 	if ((hw_resources.irqs.count != 2) ||
 	    (hw_resources.io_ranges.count != 1)) {
@@ -75,14 +75,14 @@
 		return EINVAL;
 	}
-	
+
 	if (p_io_reg)
 		*p_io_reg = hw_resources.io_ranges.ranges[0];
-	
+
 	if (kbd_irq)
 		*kbd_irq = hw_resources.irqs.irqs[0];
-	
+
 	if (mouse_irq)
 		*mouse_irq = hw_resources.irqs.irqs[1];
-	
+
 	hw_res_list_parsed_clean(&hw_resources);
 	return EOK;
@@ -102,8 +102,8 @@
 	int mouse = 0;
 	errno_t rc;
-	
+
 	if (!device)
 		return EINVAL;
-	
+
 	rc = get_my_registers(device, &io_regs, &kbd, &mouse);
 	if (rc != EOK) {
@@ -112,9 +112,9 @@
 		return rc;
 	}
-	
+
 	ddf_msg(LVL_DEBUG,
 	    "I/O regs at %p (size %zuB), IRQ kbd %d, IRQ mouse %d.",
 	    RNGABSPTR(io_regs), RNGSZ(io_regs), kbd, mouse);
-	
+
 	i8042_t *i8042 = ddf_dev_data_alloc(device, sizeof(i8042_t));
 	if (i8042 == NULL) {
@@ -122,5 +122,5 @@
 		return ENOMEM;
 	}
-	
+
 	rc = i8042_init(i8042, &io_regs, kbd, mouse, device);
 	if (rc != EOK) {
@@ -129,5 +129,5 @@
 		return rc;
 	}
-	
+
 	ddf_msg(LVL_NOTE, "Controlling '%s' (%" PRIun ").",
 	    ddf_dev_get_name(device), ddf_dev_get_handle(device));
@@ -150,5 +150,5 @@
 	printf("%s: HelenOS PS/2 driver.\n", NAME);
 	ddf_log_init(NAME);
-	
+
 	return ddf_driver_main(&i8042_driver);
 }
Index: uspace/drv/char/ns8250/cyclic_buffer.h
===================================================================
--- uspace/drv/char/ns8250/cyclic_buffer.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/char/ns8250/cyclic_buffer.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 {
 	assert(!buf_is_empty(buf));
-	
+
 	uint8_t res = buf->buf[buf->start];
 	buf->start = (buf->start + 1) % BUF_LEN;
Index: uspace/drv/char/ns8250/ns8250.c
===================================================================
--- uspace/drv/char/ns8250/ns8250.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/char/ns8250/ns8250.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -238,5 +238,5 @@
 	while (!is_transmit_empty(regs))
 		;
-	
+
 	pio_write_8(&regs->data, c);
 }
@@ -256,10 +256,10 @@
 	char *bp = (char *) buf;
 	size_t pos = 0;
-	
+
 	if (count == 0) {
 		*nread = 0;
 		return EOK;
 	}
-	
+
 	fibril_mutex_lock(&ns->mutex);
 	while (buf_is_empty(&ns->input_buffer))
@@ -270,5 +270,5 @@
 	}
 	fibril_mutex_unlock(&ns->mutex);
-	
+
 	*nread = pos;
 	return EOK;
@@ -301,8 +301,8 @@
 	size_t idx;
 	uint8_t *bp = (uint8_t *) buf;
-	
+
 	for (idx = 0; idx < count; idx++)
 		ns8250_putchar(ns, bp[idx]);
-	
+
 	*nwritten = count;
 	return EOK;
@@ -355,5 +355,5 @@
 {
 	ddf_msg(LVL_DEBUG, "ns8250_pio_enable %s", ddf_dev_get_name(ns->dev));
-	
+
 	/* Gain control over port's registers. */
 	if (pio_enable((void *) ns->io_addr, REG_COUNT,
@@ -365,5 +365,5 @@
 
 	ns->regs = (ns8250_regs_t *)ns->port;
-	
+
 	return true;
 }
@@ -377,26 +377,26 @@
 {
 	ddf_msg(LVL_DEBUG, "ns8250_dev_probe %s", ddf_dev_get_name(ns->dev));
-	
+
 	bool res = true;
 	uint8_t olddata;
-	
+
 	olddata = pio_read_8(&ns->regs->mcr);
-	
+
 	pio_write_8(&ns->regs->mcr, NS8250_MCR_LOOPBACK);
 	if (pio_read_8(&ns->regs->msr) & NS8250_MSR_SIGNALS)
 		res = false;
-	
+
 	pio_write_8(&ns->regs->mcr, NS8250_MCR_ALL);
 	if ((pio_read_8(&ns->regs->msr) & NS8250_MSR_SIGNALS)
 	    != NS8250_MSR_SIGNALS)
 		res = false;
-	
+
 	pio_write_8(&ns->regs->mcr, olddata);
-	
+
 	if (!res) {
 		ddf_msg(LVL_DEBUG, "Device %s is not present.",
 		    ddf_dev_get_name(ns->dev));
 	}
-	
+
 	return res;
 }
@@ -410,10 +410,10 @@
 {
 	errno_t ret = EOK;
-	
+
 	ddf_msg(LVL_DEBUG, "ns8250_dev_initialize %s", ddf_dev_get_name(ns->dev));
-	
+
 	hw_resource_list_t hw_resources;
 	memset(&hw_resources, 0, sizeof(hw_resource_list_t));
-	
+
 	/* Get hw resources. */
 	ret = hw_res_get_resource_list(ns->parent_sess, &hw_resources);
@@ -423,10 +423,10 @@
 		goto failed;
 	}
-	
+
 	size_t i;
 	hw_resource_t *res;
 	bool irq = false;
 	bool ioport = false;
-	
+
 	for (i = 0; i < hw_resources.count; i++) {
 		res = &hw_resources.resources[i];
@@ -438,5 +438,5 @@
 			    ddf_dev_get_name(ns->dev), ns->irq);
 			break;
-			
+
 		case IO_RANGE:
 			ns->io_addr = res->res.io_range.address;
@@ -451,10 +451,10 @@
 			    "0x%#" PRIxn ".", ddf_dev_get_name(ns->dev), ns->io_addr);
     			break;
-			
+
 		default:
 			break;
 		}
 	}
-	
+
 	if (!irq || !ioport) {
 		ddf_msg(LVL_ERROR, "Missing HW resource(s) for device %s.",
@@ -463,8 +463,8 @@
 		goto failed;
 	}
-	
+
 	hw_res_clean_resource_list(&hw_resources);
 	return ret;
-	
+
 failed:
 	ns8250_dev_cleanup(ns);
@@ -507,11 +507,11 @@
 	if (rc != EOK)
 		return EIO;
-	
+
 	/* Read LSR to clear possible previous LSR interrupt */
 	pio_read_8(&ns->regs->lsr);
-	
+
 	/* Enable interrupt on the serial port. */
 	ns8250_port_interrupts_enable(ns->regs);
-	
+
 	return EOK;
 }
@@ -551,5 +551,5 @@
 	uint16_t divisor;
 	uint8_t div_low, div_high;
-	
+
 	if (baud_rate < 50 || MAX_BAUD_RATE % baud_rate != 0) {
 		ddf_msg(LVL_ERROR, "Invalid baud rate %d requested.",
@@ -557,19 +557,19 @@
 		return EINVAL;
 	}
-	
+
 	divisor = MAX_BAUD_RATE / baud_rate;
 	div_low = (uint8_t)divisor;
 	div_high = (uint8_t)(divisor >> 8);
-	
+
 	/* Enable DLAB to be able to access baud rate divisor. */
 	enable_dlab(regs);
-	
+
 	/* Set divisor low byte. */
 	pio_write_8(&regs->data, div_low);
 	/* Set divisor high byte. */
 	pio_write_8(&regs->ier, div_high);
-	
+
 	clear_dlab(regs);
-	
+
 	return EOK;
 }
@@ -584,15 +584,15 @@
 	uint16_t divisor;
 	uint8_t div_low, div_high;
-	
+
 	/* Enable DLAB to be able to access baud rate divisor. */
 	enable_dlab(regs);
-	
+
 	/* Get divisor low byte. */
 	div_low = pio_read_8(&regs->data);
 	/* Get divisor high byte. */
 	div_high = pio_read_8(&regs->ier);
-	
+
 	clear_dlab(regs);
-	
+
 	divisor = (div_high << 8) | div_low;
 	return MAX_BAUD_RATE / divisor;
@@ -610,8 +610,8 @@
 {
 	uint8_t val;
-	
+
 	val = pio_read_8(&regs->lcr);
 	*parity = ((val >> NS8250_LCR_PARITY) & 7);
-	
+
 	/* Silence warnings */
 	*word_length = 0;
@@ -631,5 +631,5 @@
 		break;
 	}
-	
+
 	if ((val >> NS8250_LCR_STOPBITS) & 1)
 		*stop_bits = 2;
@@ -650,5 +650,5 @@
 {
 	uint8_t val;
-	
+
 	switch (word_length) {
 	case 5:
@@ -667,5 +667,5 @@
 		return EINVAL;
 	}
-	
+
 	switch (stop_bits) {
 	case 1:
@@ -678,5 +678,5 @@
 		return EINVAL;
 	}
-	
+
 	switch (parity) {
 	case SERIAL_NO_PARITY:
@@ -690,7 +690,7 @@
 		return EINVAL;
 	}
-	
+
 	pio_write_8(&regs->lcr, val);
-	
+
 	return EOK;
 }
@@ -748,5 +748,5 @@
 	ns8250_regs_t *regs = ns->regs;
 	bool cont = true;
-	
+
 	fibril_mutex_lock(&ns->mutex);
 	while (cont) {
@@ -754,5 +754,5 @@
 		if (cont) {
 			uint8_t val = ns8250_read_8(regs);
-			
+
 			if (ns->client_connections > 0) {
 				bool buf_was_empty = buf_is_empty(&ns->input_buffer);
@@ -794,5 +794,5 @@
 		}
 	}
-	
+
 	ns8250_read_from_device(ns);
 	hw_res_clear_interrupt(ns->parent_sess, ns->irq);
@@ -832,8 +832,8 @@
 	bool need_unreg_intr_handler = false;
 	errno_t rc;
-	
+
 	ddf_msg(LVL_DEBUG, "ns8250_dev_add %s (handle = %d)",
 	    ddf_dev_get_name(dev), (int) ddf_dev_get_handle(dev));
-	
+
 	/* Allocate soft-state for the device */
 	ns = ddf_dev_data_alloc(dev, sizeof(ns8250_t));
@@ -842,9 +842,9 @@
 		goto fail;
 	}
-	
+
 	fibril_mutex_initialize(&ns->mutex);
 	fibril_condvar_initialize(&ns->input_buffer_available);
 	ns->dev = dev;
-	
+
 	ns->parent_sess = ddf_dev_parent_sess_get(ns->dev);
 	if (ns->parent_sess == NULL) {
@@ -854,16 +854,16 @@
 		goto fail;
 	}
-	
+
 	rc = ns8250_dev_initialize(ns);
 	if (rc != EOK)
 		goto fail;
-	
+
 	need_cleanup = true;
-	
+
 	if (!ns8250_pio_enable(ns)) {
 		rc = EADDRNOTAVAIL;
 		goto fail;
 	}
-	
+
 	/* Find out whether the device is present. */
 	if (!ns8250_dev_probe(ns)) {
@@ -871,8 +871,8 @@
 		goto fail;
 	}
-	
+
 	/* Serial port initialization (baud rate etc.). */
 	ns8250_initialize_port(ns);
-	
+
 	/* Register interrupt handler. */
 	rc = ns8250_register_interrupt_handler(ns, &ns->irq_cap);
@@ -891,5 +891,5 @@
 		goto fail;
 	}
-	
+
 	fun = ddf_fun_create(dev, fun_exposed, "a");
 	if (fun == NULL) {
@@ -897,11 +897,11 @@
 		goto fail;
 	}
-	
+
 	ddf_fun_set_conn_handler(fun, ns8250_char_conn);
-	
+
 	chardev_srvs_init(&ns->cds);
 	ns->cds.ops = &ns8250_chardev_ops;
 	ns->cds.sarg = ns;
-	
+
 	rc = ddf_fun_bind(fun);
 	if (rc != EOK) {
@@ -911,10 +911,10 @@
 
 	ns->fun = fun;
-	
+
 	ddf_fun_add_to_category(fun, "serial");
-	
+
 	ddf_msg(LVL_NOTE, "Device %s successfully initialized.",
 	    ddf_dev_get_name(dev));
-	
+
 	return EOK;
 fail:
@@ -932,5 +932,5 @@
 	ns8250_t *ns = dev_ns8250(dev);
 	errno_t rc;
-	
+
 	fibril_mutex_lock(&ns->mutex);
 	if (ns->client_connections > 0) {
@@ -940,5 +940,5 @@
 	ns->removed = true;
 	fibril_mutex_unlock(&ns->mutex);
-	
+
 	rc = ddf_fun_unbind(ns->fun);
 	if (rc != EOK) {
@@ -946,7 +946,7 @@
 		return rc;
 	}
-	
+
 	ddf_fun_destroy(ns->fun);
-	
+
 	ns8250_port_cleanup(ns);
 	ns8250_unregister_interrupt_handler(ns);
@@ -967,5 +967,5 @@
 	ns8250_t *ns = srv_ns8250(srv);
 	errno_t res;
-	
+
 	fibril_mutex_lock(&ns->mutex);
 	if (ns->removed) {
@@ -976,5 +976,5 @@
 	}
 	fibril_mutex_unlock(&ns->mutex);
-	
+
 	return res;
 }
@@ -990,14 +990,14 @@
 {
 	ns8250_t *data = srv_ns8250(srv);
-	
+
 	fibril_mutex_lock(&data->mutex);
-	
+
 	assert(data->client_connections > 0);
-	
+
 	if (!(--data->client_connections))
 		buf_clear(&data->input_buffer);
-	
+
 	fibril_mutex_unlock(&data->mutex);
-	
+
 	return EOK;
 }
@@ -1018,5 +1018,5 @@
 	ns8250_t *data = dev_ns8250(dev);
 	ns8250_regs_t *regs = data->regs;
-	
+
 	fibril_mutex_lock(&data->mutex);
 	ns8250_port_interrupts_disable(regs);
@@ -1025,5 +1025,5 @@
 	ns8250_port_interrupts_enable(regs);
 	fibril_mutex_unlock(&data->mutex);
-	
+
 	ddf_msg(LVL_DEBUG, "ns8250_get_props: baud rate %d, parity 0x%x, word "
 	    "length %d, stop bits %d", *baud_rate, *parity, *word_length,
@@ -1046,9 +1046,9 @@
 	    "length %d, stop bits %d", baud_rate, parity, word_length,
 	    stop_bits);
-	
+
 	ns8250_t *data = dev_ns8250(dev);
 	ns8250_regs_t *regs = data->regs;
 	errno_t ret;
-	
+
 	fibril_mutex_lock(&data->mutex);
 	ns8250_port_interrupts_disable(regs);
@@ -1058,5 +1058,5 @@
 	ns8250_port_interrupts_enable(regs);
 	fibril_mutex_unlock(&data->mutex);
-	
+
 	return ret;
 }
@@ -1074,5 +1074,5 @@
 	errno_t ret;
 	unsigned int baud_rate, parity, word_length, stop_bits;
-	
+
 	switch (method) {
 	case SERIAL_GET_COM_PROPS:
@@ -1082,5 +1082,5 @@
 		    stop_bits);
 		break;
-		
+
 	case SERIAL_SET_COM_PROPS:
  		baud_rate = IPC_GET_ARG1(*call);
@@ -1092,5 +1092,5 @@
 		async_answer_0(callid, ret);
 		break;
-		
+
 	default:
 		async_answer_0(callid, ENOTSUP);
Index: uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c
===================================================================
--- uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -284,5 +284,5 @@
 	if (dispc->fb_data)
 		dmamem_unmap_anonymous(dispc->fb_data);
-	
+
 	dispc->fb_data = buffer;
 	amdm37x_dispc_setup_fb(dispc->regs, x, y, bpp *8, (uint32_t)pa);
Index: uspace/drv/fb/kfb/port.c
===================================================================
--- uspace/drv/fb/kfb/port.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/fb/kfb/port.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,10 +72,10 @@
 	size_t scanline;
 	visual_t visual;
-	
+
 	pixel2visual_t pixel2visual;
 	visual2pixel_t visual2pixel;
 	visual_mask_t visual_mask;
 	size_t pixel_bytes;
-	
+
 	size_t size;
 	uint8_t *addr;
@@ -186,10 +186,10 @@
 	if (!present)
 		return ENOENT;
-	
+
 	sysarg_t kind;
 	rc = sysinfo_get_value("fb.kind", &kind);
 	if (rc != EOK)
 		kind = (sysarg_t) -1;
-	
+
 	if (kind != 1)
 		return EINVAL;
@@ -199,30 +199,30 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t offset;
 	rc = sysinfo_get_value("fb.offset", &offset);
 	if (rc != EOK)
 		offset = 0;
-	
+
 	sysarg_t width;
 	rc = sysinfo_get_value("fb.width", &width);
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t height;
 	rc = sysinfo_get_value("fb.height", &height);
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t scanline;
 	rc = sysinfo_get_value("fb.scanline", &scanline);
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t visual;
 	rc = sysinfo_get_value("fb.visual", &visual);
 	if (rc != EOK)
 		return rc;
-	
+
 	kfb.width = width;
 	kfb.height = height;
@@ -302,8 +302,8 @@
 		return EINVAL;
 	}
-	
+
 	kfb.size = scanline * height;
 	kfb.addr = AS_AREA_ANY;
-	
+
 	ddf_fun_t *fun_vs = ddf_fun_create(dev, fun_exposed, "vsl0");
 	if (fun_vs == NULL) {
Index: uspace/drv/hid/atkbd/atkbd.c
===================================================================
--- uspace/drv/hid/atkbd/atkbd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/hid/atkbd/atkbd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -205,5 +205,5 @@
 	size_t nwr;
 	errno_t rc;
-	
+
 	while (true) {
 		uint8_t code = 0;
@@ -211,12 +211,12 @@
 		if (rc != EOK)
 			return EIO;
-		
+
 		const unsigned int *map;
 		size_t map_size;
-		
+
 		if (code == KBD_SCANCODE_SET_EXTENDED) {
 			map = scanmap_e0;
 			map_size = sizeof(scanmap_e0) / sizeof(unsigned int);
-			
+
 			rc = chardev_read(kbd->chardev, &code, 1, &nwr);
 			if (rc != EOK)
@@ -270,5 +270,5 @@
 			map_size = sizeof(scanmap_simple) / sizeof(unsigned int);
 		}
-		
+
 		kbd_event_type_t type;
 		if (code == KBD_SCANCODE_KEY_RELEASE) {
@@ -280,7 +280,7 @@
 			type = KEY_PRESS;
 		}
-		
+
 		const unsigned int key = (code < map_size) ? map[code] : 0;
-		
+
 		if (key != 0)
 			push_event(kbd->client_sess, type, key);
@@ -315,5 +315,5 @@
 		async_sess_t *sess =
 		    async_callback_receive_start(EXCHANGE_SERIALIZE, icall);
-		
+
 		/* Probably ENOMEM error, try again. */
 		if (sess == NULL) {
@@ -323,5 +323,5 @@
 			break;
 		}
-		
+
 		if (kbd->client_sess == NULL) {
 			kbd->client_sess = sess;
@@ -332,5 +332,5 @@
 			async_answer_0(icallid, ELIMIT);
 		}
-		
+
 		break;
 	}
@@ -359,8 +359,8 @@
 	async_sess_t *parent_sess;
 	errno_t rc;
-	
+
 	assert(kbd);
 	assert(dev);
-	
+
 	kbd->client_sess = NULL;
 	parent_sess = ddf_dev_parent_sess_get(dev);
@@ -370,5 +370,5 @@
 		goto error;
 	}
-	
+
 	rc = chardev_open(parent_sess, &kbd->chardev);
 	if (rc != EOK) {
@@ -376,5 +376,5 @@
 		return EIO;
 	}
-	
+
 	kbd->kbd_fun = ddf_fun_create(dev, fun_exposed, "kbd");
 	if (!kbd->kbd_fun) {
@@ -382,7 +382,7 @@
 		return ENOMEM;
 	}
-	
+
 	ddf_fun_set_ops(kbd->kbd_fun, &kbd_ops);
-	
+
 	errno_t ret = ddf_fun_bind(kbd->kbd_fun);
 	if (ret != EOK) {
@@ -391,5 +391,5 @@
 		return EEXIST;
 	}
-	
+
 	ret = ddf_fun_add_to_category(kbd->kbd_fun, "keyboard");
 	if (ret != EOK) {
@@ -400,5 +400,5 @@
 		return ENOMEM;
 	}
-	
+
 	kbd->polling_fibril = fibril_create(polling, kbd);
 	if (!kbd->polling_fibril) {
@@ -408,5 +408,5 @@
 		return ENOMEM;
 	}
-	
+
 	fibril_add_ready(kbd->polling_fibril);
 	return EOK;
Index: uspace/drv/hid/usbhid/blink1/blink1.c
===================================================================
--- uspace/drv/hid/usbhid/blink1/blink1.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/hid/usbhid/blink1/blink1.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,7 +67,7 @@
 		return EINVAL;
 	}
-	
+
 	blink1_report_t report;
-	
+
 	report.id = BLINK1_REPORT_ID;
 	report.command = BLINK1_COMMAND_SET;
@@ -78,5 +78,5 @@
 	report.arg4 = 0;
 	report.arg5 = 0;
-	
+
 	return usbhid_req_set_report(
 	    usb_device_get_default_pipe(blink1_dev->hid_dev->usb_dev),
@@ -100,5 +100,5 @@
 		return EINVAL;
 	}
-	
+
 	/* Create the exposed function. */
 	ddf_fun_t *fun = usb_device_ddf_fun_create(hid_dev->usb_dev,
@@ -109,5 +109,5 @@
 		return ENOMEM;
 	}
-	
+
 	usb_blink1_t *blink1_dev = (usb_blink1_t *)
 	    ddf_fun_data_alloc(fun, sizeof(usb_blink1_t));
@@ -118,7 +118,7 @@
 		return ENOMEM;
 	}
-	
+
 	ddf_fun_set_ops(fun, &blink1_ops);
-	
+
 	errno_t rc = ddf_fun_bind(fun);
 	if (rc != EOK) {
@@ -128,10 +128,10 @@
 		return rc;
 	}
-	
+
 	rc = ddf_fun_add_to_category(fun, HID_BLINK1_CATEGORY);
 	if (rc != EOK) {
 		usb_log_error("Could not add DDF function to category %s: %s.",
 		    HID_BLINK1_CATEGORY, str_error(rc));
-		
+
 		rc = ddf_fun_unbind(fun);
 		if (rc != EOK) {
@@ -140,13 +140,13 @@
 			return rc;
 		}
-		
+
 		ddf_fun_destroy(fun);
 		return rc;
 	}
-	
+
 	blink1_dev->fun = fun;
 	blink1_dev->hid_dev = hid_dev;
 	*data = blink1_dev;
-	
+
 	return EOK;
 }
@@ -156,7 +156,7 @@
 	if (data == NULL)
 		return;
-	
+
 	usb_blink1_t *blink1_dev = (usb_blink1_t *) data;
-	
+
 	errno_t rc = ddf_fun_unbind(blink1_dev->fun);
 	if (rc != EOK) {
@@ -165,5 +165,5 @@
 		return;
 	}
-	
+
 	ddf_fun_destroy(blink1_dev->fun);
 }
Index: uspace/drv/hid/usbhid/blink1/blink1.h
===================================================================
--- uspace/drv/hid/usbhid/blink1/blink1.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/hid/usbhid/blink1/blink1.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,5 +44,5 @@
 	/** DDF blink(1) function */
 	ddf_fun_t *fun;
-	
+
 	/** USB HID device */
 	usb_hid_dev_t *hid_dev;
Index: uspace/drv/hid/usbhid/kbd/kbddev.h
===================================================================
--- uspace/drv/hid/usbhid/kbd/kbddev.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/hid/usbhid/kbd/kbddev.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 	/** Link to HID device structure */
 	usb_hid_dev_t *hid_dev;
-	
+
 	/** Previously pressed keys (not translated to key codes). */
 	int32_t *keys_old;
@@ -72,30 +72,30 @@
 	/** Currently pressed modifiers (bitmap). */
 	uint8_t modifiers;
-	
+
 	/** Currently active modifiers including locks. Sent to the console. */
 	unsigned int mods;
-	
+
 	/** Currently active lock keys. */
 	unsigned int lock_keys;
-	
+
 	/** IPC session to client (for sending key events). */
 	async_sess_t *client_sess;
-	
+
 	/** Information for auto-repeat of keys. */
 	usb_kbd_repeat_t repeat;
-	
+
 	/** Mutex for accessing the information about auto-repeat. */
 	fibril_mutex_t repeat_mtx;
-	
+
 	uint8_t *output_buffer;
-	
+
 	size_t output_size;
-	
+
 	size_t led_output_size;
-	
+
 	usb_hid_report_path_t *led_path;
-	
+
 	int32_t *led_data;
-	
+
 	/** State of the structure (for checking before use).
 	 *
@@ -105,5 +105,5 @@
 	 */
 	int initialized;
-	
+
 	/** DDF function */
 	ddf_fun_t *fun;
Index: uspace/drv/hid/usbhid/mouse/mousedev.h
===================================================================
--- uspace/drv/hid/usbhid/mouse/mousedev.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/hid/usbhid/mouse/mousedev.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,9 +45,9 @@
 	/** IPC session to consumer. */
 	async_sess_t *mouse_sess;
-	
+
 	/** Mouse buttons statuses. */
 	int32_t *buttons;
 	size_t buttons_count;
-	
+
 	/** DDF mouse function */
 	ddf_fun_t *mouse_fun;
Index: uspace/drv/hid/usbhid/multimedia/keymap.c
===================================================================
--- uspace/drv/hid/usbhid/multimedia/keymap.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/hid/usbhid/multimedia/keymap.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -86,5 +86,5 @@
 	/*! @todo What if the usage is not in the table? */
 	key = map[usage];
-	
+
 	return key;
 }
Index: uspace/drv/hid/usbhid/subdrivers.h
===================================================================
--- uspace/drv/hid/usbhid/subdrivers.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/hid/usbhid/subdrivers.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,17 +61,17 @@
 	 */
 	const usb_hid_subdriver_usage_t *usage_path;
-	
+
 	/** Report ID for which the path should apply. */
 	int report_id;
-	
+
 	/** Compare type for the usage path. */
 	int compare;
-	
+
 	/** Vendor ID (set to -1 if not specified). */
 	int vendor_id;
-	
+
 	/** Product ID (set to -1 if not specified). */
 	int product_id;
-	
+
 	/** Subdriver for controlling this device. */
 	const usb_hid_subdriver_t subdriver;
Index: uspace/drv/hid/xtkbd/xtkbd.c
===================================================================
--- uspace/drv/hid/xtkbd/xtkbd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/hid/xtkbd/xtkbd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,5 +47,5 @@
 static const unsigned int scanmap_simple[] = {
 	[0x29] = KC_BACKTICK,
-	
+
 	[0x02] = KC_1,
 	[0x03] = KC_2,
@@ -58,11 +58,11 @@
 	[0x0a] = KC_9,
 	[0x0b] = KC_0,
-	
+
 	[0x0c] = KC_MINUS,
 	[0x0d] = KC_EQUALS,
 	[0x0e] = KC_BACKSPACE,
-	
+
 	[0x0f] = KC_TAB,
-	
+
 	[0x10] = KC_Q,
 	[0x11] = KC_W,
@@ -75,10 +75,10 @@
 	[0x18] = KC_O,
 	[0x19] = KC_P,
-	
+
 	[0x1a] = KC_LBRACKET,
 	[0x1b] = KC_RBRACKET,
-	
+
 	[0x3a] = KC_CAPS_LOCK,
-	
+
 	[0x1e] = KC_A,
 	[0x1f] = KC_S,
@@ -90,11 +90,11 @@
 	[0x25] = KC_K,
 	[0x26] = KC_L,
-	
+
 	[0x27] = KC_SEMICOLON,
 	[0x28] = KC_QUOTE,
 	[0x2b] = KC_BACKSLASH,
-	
+
 	[0x2a] = KC_LSHIFT,
-	
+
 	[0x2c] = KC_Z,
 	[0x2d] = KC_X,
@@ -104,17 +104,17 @@
 	[0x31] = KC_N,
 	[0x32] = KC_M,
-	
+
 	[0x33] = KC_COMMA,
 	[0x34] = KC_PERIOD,
 	[0x35] = KC_SLASH,
-	
+
 	[0x36] = KC_RSHIFT,
-	
+
 	[0x1d] = KC_LCTRL,
 	[0x38] = KC_LALT,
 	[0x39] = KC_SPACE,
-	
+
 	[0x01] = KC_ESCAPE,
-	
+
 	[0x3b] = KC_F1,
 	[0x3c] = KC_F2,
@@ -124,16 +124,16 @@
 	[0x40] = KC_F6,
 	[0x41] = KC_F7,
-	
+
 	[0x42] = KC_F8,
 	[0x43] = KC_F9,
 	[0x44] = KC_F10,
-	
+
 	[0x57] = KC_F11,
 	[0x58] = KC_F12,
-	
+
 	[0x46] = KC_SCROLL_LOCK,
-	
+
 	[0x1c] = KC_ENTER,
-	
+
 	[0x45] = KC_NUM_LOCK,
 	[0x37] = KC_NTIMES,
@@ -162,20 +162,20 @@
 	[0x38] = KC_RALT,
 	[0x1d] = KC_RCTRL,
-	
+
 	[0x37] = KC_SYSREQ,
-	
+
 	[0x52] = KC_INSERT,
 	[0x47] = KC_HOME,
 	[0x49] = KC_PAGE_UP,
-	
+
 	[0x53] = KC_DELETE,
 	[0x4f] = KC_END,
 	[0x51] = KC_PAGE_DOWN,
-	
+
 	[0x48] = KC_UP,
 	[0x4b] = KC_LEFT,
 	[0x50] = KC_DOWN,
 	[0x4d] = KC_RIGHT,
-	
+
 	[0x35] = KC_NSLASH,
 	[0x1c] = KC_NENTER
@@ -210,66 +210,66 @@
 	size_t nread;
 	errno_t rc;
-	
+
 	while (true) {
 		const unsigned int *map = scanmap_simple;
 		size_t map_size = sizeof(scanmap_simple) / sizeof(unsigned int);
-		
+
 		uint8_t code = 0;
 		rc = chardev_read(kbd->chardev, &code, 1, &nread);
 		if (rc != EOK)
 			return EIO;
-		
+
 		/* Ignore AT command reply */
 		if ((code == KBD_ACK) || (code == KBD_RESEND))
 			continue;
-		
+
 		/* Extended set */
 		if (code == KBD_SCANCODE_SET_EXTENDED) {
 			map = scanmap_e0;
 			map_size = sizeof(scanmap_e0) / sizeof(unsigned int);
-			
-			rc = chardev_read(kbd->chardev, &code, 1, &nread);
-			if (rc != EOK)
-				return EIO;
-			
+
+			rc = chardev_read(kbd->chardev, &code, 1, &nread);
+			if (rc != EOK)
+				return EIO;
+
 			/* Handle really special keys */
-			
+
 			if (code == 0x2a) {  /* Print Screen */
 				rc = chardev_read(kbd->chardev, &code, 1, &nread);
 				if (rc != EOK)
 					return EIO;
-				
+
 				if (code != 0xe0)
 					continue;
-				
+
 				rc = chardev_read(kbd->chardev, &code, 1, &nread);
 				if (rc != EOK)
 					return EIO;
-				
+
 				if (code == 0x37)
 					push_event(kbd->client_sess, KEY_PRESS, KC_PRTSCR);
-				
+
 				continue;
 			}
-			
+
 			if (code == 0x46) {  /* Break */
 				rc = chardev_read(kbd->chardev, &code, 1, &nread);
 				if (rc != EOK)
 					return EIO;
-				
+
 				if (code != 0xe0)
 					continue;
-				
+
 				rc = chardev_read(kbd->chardev, &code, 1, &nread);
 				if (rc != EOK)
 					return EIO;
-				
+
 				if (code == 0xc6)
 					push_event(kbd->client_sess, KEY_PRESS, KC_BREAK);
-				
+
 				continue;
 			}
 		}
-		
+
 		/* Extended special set */
 		if (code == KBD_SCANCODE_SET_EXTENDED_SPECIAL) {
@@ -277,46 +277,46 @@
 			if (rc != EOK)
 				return EIO;
-			
+
 			if (code != 0x1d)
 				continue;
-			
-			rc = chardev_read(kbd->chardev, &code, 1, &nread);
-			if (rc != EOK)
-				return EIO;
-			
+
+			rc = chardev_read(kbd->chardev, &code, 1, &nread);
+			if (rc != EOK)
+				return EIO;
+
 			if (code != 0x45)
 				continue;
-			
-			rc = chardev_read(kbd->chardev, &code, 1, &nread);
-			if (rc != EOK)
-				return EIO;
-			
+
+			rc = chardev_read(kbd->chardev, &code, 1, &nread);
+			if (rc != EOK)
+				return EIO;
+
 			if (code != 0xe1)
 				continue;
-			
-			rc = chardev_read(kbd->chardev, &code, 1, &nread);
-			if (rc != EOK)
-				return EIO;
-			
+
+			rc = chardev_read(kbd->chardev, &code, 1, &nread);
+			if (rc != EOK)
+				return EIO;
+
 			if (code != 0x9d)
 				continue;
-			
-			rc = chardev_read(kbd->chardev, &code, 1, &nread);
-			if (rc != EOK)
-				return EIO;
-			
+
+			rc = chardev_read(kbd->chardev, &code, 1, &nread);
+			if (rc != EOK)
+				return EIO;
+
 			if (code == 0xc5)
 				push_event(kbd->client_sess, KEY_PRESS, KC_PAUSE);
-			
+
 			continue;
 		}
-		
+
 		/* Bit 7 indicates press/release */
 		const kbd_event_type_t type =
 		    (code & 0x80) ? KEY_RELEASE : KEY_PRESS;
 		code &= ~0x80;
-		
+
 		const unsigned int key = (code < map_size) ? map[code] : 0;
-		
+
 		if (key != 0)
 			push_event(kbd->client_sess, type, key);
@@ -351,5 +351,5 @@
 		    ((mods & KM_SCROLL_LOCK) ? LI_SCROLL : 0);
 		uint8_t cmds[] = { KBD_CMD_SET_LEDS, status };
-		
+
 		size_t nwr;
 		errno_t rc = chardev_write(kbd->chardev, &cmds[0], 1, &nwr);
@@ -370,5 +370,5 @@
 		async_sess_t *sess =
 		    async_callback_receive_start(EXCHANGE_SERIALIZE, icall);
-		
+
 		/* Probably ENOMEM error, try again. */
 		if (sess == NULL) {
@@ -378,5 +378,5 @@
 			break;
 		}
-		
+
 		if (kbd->client_sess == NULL) {
 			kbd->client_sess = sess;
@@ -387,5 +387,5 @@
 			async_answer_0(icallid, ELIMIT);
 		}
-		
+
 		break;
 	}
@@ -415,7 +415,7 @@
 	bool bound = false;
 	errno_t rc;
-	
+
 	kbd->client_sess = NULL;
-	
+
 	parent_sess = ddf_dev_parent_sess_get(dev);
 	if (parent_sess == NULL) {
@@ -424,5 +424,5 @@
 		goto error;
 	}
-	
+
 	rc = chardev_open(parent_sess, &kbd->chardev);
 	if (rc != EOK) {
@@ -430,5 +430,5 @@
 		goto error;
 	}
-	
+
 	kbd->kbd_fun = ddf_fun_create(dev, fun_exposed, "kbd");
 	if (kbd->kbd_fun == NULL) {
@@ -437,7 +437,7 @@
 		goto error;
 	}
-	
+
 	ddf_fun_set_ops(kbd->kbd_fun, &kbd_ops);
-	
+
 	rc = ddf_fun_bind(kbd->kbd_fun);
 	if (rc != EOK) {
@@ -445,5 +445,5 @@
 		goto error;
 	}
-	
+
 	rc = ddf_fun_add_to_category(kbd->kbd_fun, "keyboard");
 	if (rc != EOK) {
@@ -452,5 +452,5 @@
 		goto error;
 	}
-	
+
 	kbd->polling_fibril = fibril_create(polling, kbd);
 	if (kbd->polling_fibril == 0) {
@@ -459,5 +459,5 @@
 		goto error;
 	}
-	
+
 	fibril_add_ready(kbd->polling_fibril);
 	return EOK;
Index: uspace/drv/intctl/apic/apic.c
===================================================================
--- uspace/drv/intctl/apic/apic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/intctl/apic/apic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -169,15 +169,15 @@
 	ipc_call_t call;
 	apic_t *apic;
-	
+
 	/*
 	 * Answer the first IPC_M_CONNECT_ME_TO call.
 	 */
 	async_answer_0(iid, EOK);
-	
+
 	apic = (apic_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));
-	
+
 	while (true) {
 		callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			/* The other side has hung up. */
@@ -185,5 +185,5 @@
 			return;
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case IRC_ENABLE_INTERRUPT:
@@ -213,10 +213,10 @@
 	void *regs;
 	errno_t rc;
-	
+
 	if ((sysinfo_get_value("apic", &have_apic) != EOK) || (!have_apic)) {
 		printf("%s: No APIC found\n", NAME);
 		return ENOTSUP;
 	}
-	
+
 	rc = pio_enable((void *) res->base, IO_APIC_SIZE, &regs);
 	if (rc != EOK) {
Index: uspace/drv/intctl/i8259/i8259.c
===================================================================
--- uspace/drv/intctl/i8259/i8259.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/intctl/i8259/i8259.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,8 +68,8 @@
 	if (irq > PIC_MAX_IRQ)
 		return ENOENT;
-	
+
 	uint16_t irqmask = 1 << irq;
 	uint8_t val;
-	
+
 	if (irqmask & 0xff) {
 		val = pio_read_8(i8259->regs0 + PIC_PIC0PORT2);
@@ -77,5 +77,5 @@
 		    (uint8_t) (val & (~(irqmask & 0xff))));
 	}
-	
+
 	if (irqmask >> 8) {
 		val = pio_read_8(i8259->regs1 + PIC_PIC1PORT2);
@@ -83,5 +83,5 @@
 		    (uint8_t) (val & (~(irqmask >> 8))));
 	}
-	
+
 	return EOK;
 }
@@ -98,15 +98,15 @@
 	ipc_call_t call;
 	i8259_t *i8259 = NULL /* XXX */;
-	
+
 	/*
 	 * Answer the first IPC_M_CONNECT_ME_TO call.
 	 */
 	async_answer_0(iid, EOK);
-	
+
 	i8259 = (i8259_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));
-	
+
 	while (true) {
 		callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			/* The other side has hung up. */
@@ -114,5 +114,5 @@
 			return;
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case IRC_ENABLE_INTERRUPT:
@@ -143,10 +143,10 @@
 	ddf_fun_t *fun_a = NULL;
 	errno_t rc;
-	
+
 	if ((sysinfo_get_value("i8259", &have_i8259) != EOK) || (!have_i8259)) {
 		printf("%s: No i8259 found\n", NAME);
 		return ENOTSUP;
 	}
-	
+
 	if ((pio_enable((void *) res->base0, IO_RANGE0_SIZE,
 	    (void **) &regs0) != EOK) ||
@@ -156,8 +156,8 @@
 		return EIO;
 	}
-	
+
 	i8259->regs0 = regs0;
 	i8259->regs1 = regs1;
-	
+
 	fun_a = ddf_fun_create(i8259->dev, fun_exposed, "a");
 	if (fun_a == NULL) {
@@ -166,7 +166,7 @@
 		goto error;
 	}
-	
+
 	ddf_fun_set_conn_handler(fun_a, i8259_connection);
-	
+
 	rc = ddf_fun_bind(fun_a);
 	if (rc != EOK) {
@@ -174,9 +174,9 @@
 		goto error;
 	}
-	
+
 	rc = ddf_fun_add_to_category(fun_a, "irc");
 	if (rc != EOK)
 		goto error;
-	
+
 	return EOK;
 error:
Index: uspace/drv/nic/ar9271/ar9271.c
===================================================================
--- uspace/drv/nic/ar9271/ar9271.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/ar9271.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -148,7 +148,7 @@
 	assert(dev);
 	assert(info);
-	
+
 	memset(info, 0, sizeof(nic_device_info_t));
-	
+
 	info->vendor_id = 0x0cf3;
 	info->device_id = 0x9271;
@@ -157,5 +157,5 @@
 	str_cpy(info->model_name, NIC_MODEL_MAX_LENGTH,
 	    "AR9271");
-	
+
 	return EOK;
 }
@@ -167,5 +167,5 @@
 {
 	*state = NIC_CS_PLUGGED;
-	
+
 	return EOK;
 }
@@ -180,5 +180,5 @@
 	*speed = 10;
 	*role = NIC_ROLE_UNKNOWN;
-	
+
 	return EOK;
 }
@@ -203,5 +203,5 @@
 		return ENOTSUP;
 	}
-	
+
 	return EOK;
 }
@@ -229,5 +229,5 @@
 		return ENOTSUP;
 	}
-	
+
 	return EOK;
 }
@@ -249,5 +249,5 @@
 		return ENOTSUP;
 	}
-	
+
 	return EOK;
 }
@@ -261,10 +261,10 @@
 {
 	assert(arg);
-	
+
 	ar9271_t *ar9271 = (ar9271_t *) arg;
-	
+
 	size_t buffer_size = ar9271->ath_device->data_response_length;
 	void *buffer = malloc(buffer_size);
-	
+
 	while (true) {
 		size_t transferred_size;
@@ -275,34 +275,34 @@
 			    sizeof(htc_frame_header_t) +
 			    sizeof(htc_rx_status_t);
-			
+
 			if (transferred_size < strip_length)
 				continue;
-			
+
 			ath_usb_data_header_t *data_header =
 			    (ath_usb_data_header_t *) buffer;
-			
+
 			/* Invalid packet. */
 			if (data_header->tag != uint16_t_le2host(RX_TAG))
 				continue;
-			
+
 			htc_rx_status_t *rx_status =
 			    (htc_rx_status_t *) ((void *) buffer +
 			    sizeof(ath_usb_data_header_t) +
 			    sizeof(htc_frame_header_t));
-			
+
 			uint16_t data_length =
 			    uint16_t_be2host(rx_status->data_length);
-			
+
 			int16_t payload_length =
 			    transferred_size - strip_length;
-			
+
 			if (payload_length - data_length < 0)
 				continue;
-			
+
 			if (ar9271_rx_status_error(rx_status->status))
 				continue;
-			
+
 			void *strip_buffer = buffer + strip_length;
-			
+
 			ieee80211_rx_handler(ar9271->ieee80211_dev,
 			    strip_buffer,
@@ -310,7 +310,7 @@
 		}
 	}
-	
+
 	free(buffer);
-	
+
 	return EOK;
 }
@@ -323,11 +323,11 @@
 {
 	assert(ieee80211_dev);
-	
+
 	ar9271_t *ar9271 = (ar9271_t *) ieee80211_get_specific(ieee80211_dev);
-	
+
 	wmi_send_command(ar9271->htc_device, WMI_DISABLE_INTR, NULL, 0, NULL);
 	wmi_send_command(ar9271->htc_device, WMI_DRAIN_TXQ_ALL, NULL, 0, NULL);
 	wmi_send_command(ar9271->htc_device, WMI_STOP_RECV, NULL, 0, NULL);
-	
+
 	errno_t rc = hw_freq_switch(ar9271, freq);
 	if (rc != EOK) {
@@ -335,7 +335,7 @@
 		return rc;
 	}
-	
+
 	wmi_send_command(ar9271->htc_device, WMI_START_RECV, NULL, 0, NULL);
-	
+
 	rc = hw_rx_init(ar9271);
 	if (rc != EOK) {
@@ -343,10 +343,10 @@
 		return rc;
 	}
-	
+
 	uint16_t htc_mode = host2uint16_t_be(1);
 	wmi_send_command(ar9271->htc_device, WMI_SET_MODE,
 	    (uint8_t *) &htc_mode, sizeof(htc_mode), NULL);
 	wmi_send_command(ar9271->htc_device, WMI_ENABLE_INTR, NULL, 0, NULL);
-	
+
 	return EOK;
 }
@@ -356,11 +356,11 @@
 {
 	assert(ieee80211_dev);
-	
+
 	ar9271_t *ar9271 = (ar9271_t *) ieee80211_get_specific(ieee80211_dev);
-	
+
 	if (connected) {
 		nic_address_t bssid;
 		ieee80211_query_bssid(ieee80211_dev, &bssid);
-		
+
 		htc_sta_msg_t sta_msg;
 		memset(&sta_msg, 0, sizeof(htc_sta_msg_t));
@@ -371,8 +371,8 @@
 		sta_msg.vif_index = 0;
 		memcpy(&sta_msg.addr, bssid.address, ETH_ADDR);
-		
+
 		wmi_send_command(ar9271->htc_device, WMI_NODE_CREATE,
 		    (uint8_t *) &sta_msg, sizeof(sta_msg), NULL);
-		
+
 		htc_rate_msg_t rate_msg;
 		memset(&rate_msg, 0, sizeof(htc_rate_msg_t));
@@ -383,8 +383,8 @@
 		    ieee80211bg_data_rates,
 		    ARRAY_SIZE(ieee80211bg_data_rates));
-		
+
 		wmi_send_command(ar9271->htc_device, WMI_RC_RATE_UPDATE,
 		    (uint8_t *) &rate_msg, sizeof(rate_msg), NULL);
-		
+
 		hw_set_rx_filter(ar9271, true);
 	} else {
@@ -392,10 +392,10 @@
 		wmi_send_command(ar9271->htc_device, WMI_NODE_REMOVE,
 		    &station_id, sizeof(station_id), NULL);
-		
+
 		hw_set_rx_filter(ar9271, false);
 	}
-	
+
 	hw_set_bssid(ar9271);
-	
+
 	return EOK;
 }
@@ -405,18 +405,18 @@
 {
 	assert(ieee80211_dev);
-	
+
 	ar9271_t *ar9271 = (ar9271_t *) ieee80211_get_specific(ieee80211_dev);
-	
+
 	if(insert) {
 		assert(key_conf);
-		
+
 		uint32_t key[5];
 		uint32_t key_type;
 		uint32_t reg_ptr, mic_reg_ptr;
 		void *data_start;
-		
+
 		nic_address_t bssid;
 		ieee80211_query_bssid(ieee80211_dev, &bssid);
-		
+
 		switch (key_conf->suite) {
 		case IEEE80211_SECURITY_SUITE_WEP40:
@@ -435,13 +435,13 @@
 			key_type = -1;
 		}
-		
+
 		uint8_t key_id =
 		    (key_conf->flags & IEEE80211_KEY_FLAG_TYPE_PAIRWISE) ?
 		    AR9271_STA_KEY_INDEX : key_conf->id;
-		
+
 		reg_ptr = AR9271_KEY_TABLE(key_id);
 		mic_reg_ptr = AR9271_KEY_TABLE(key_id + 64);
 		data_start = (void *) key_conf->data;
-		
+
 		key[0] = uint32_t_le2host(*((uint32_t *) data_start));
 		key[1] = uint16_t_le2host(*((uint16_t *) (data_start + 4)));
@@ -449,9 +449,9 @@
 		key[3] = uint16_t_le2host(*((uint16_t *) (data_start + 10)));
 		key[4] = uint32_t_le2host(*((uint32_t *) (data_start + 12)));
-		
+
 		if ((key_conf->suite == IEEE80211_SECURITY_SUITE_WEP40) ||
 		    (key_conf->suite == IEEE80211_SECURITY_SUITE_WEP104))
 			key[4] &= 0xFF;
-		
+
 		wmi_reg_write(ar9271->htc_device, reg_ptr + 0, key[0]);
 		wmi_reg_write(ar9271->htc_device, reg_ptr + 4, key[1]);
@@ -460,5 +460,5 @@
 		wmi_reg_write(ar9271->htc_device, reg_ptr + 16, key[4]);
 		wmi_reg_write(ar9271->htc_device, reg_ptr + 20, key_type);
-		
+
 		uint32_t macl;
 		uint32_t mach;
@@ -471,13 +471,13 @@
 			mach = 0;
 		}
-		
+
 		macl >>= 1;
 		macl |= (mach & 1) << 31;
 		mach >>= 1;
 		mach |= 0x8000;
-		
+
 		wmi_reg_write(ar9271->htc_device, reg_ptr + 24, macl);
 		wmi_reg_write(ar9271->htc_device, reg_ptr + 28, mach);
-		
+
 		/* Setup MIC keys for TKIP. */
 		if (key_conf->suite == IEEE80211_SECURITY_SUITE_TKIP) {
@@ -485,10 +485,10 @@
 			uint8_t *gen_mic = data_start + IEEE80211_TKIP_RX_MIC_OFFSET;
 			uint8_t *tx_mic;
-			
+
 			if (key_conf->flags & IEEE80211_KEY_FLAG_TYPE_GROUP)
 				tx_mic = gen_mic;
 			else
 				tx_mic = data_start + IEEE80211_TKIP_TX_MIC_OFFSET;
-			
+
 			mic[0] = uint32_t_le2host(*((uint32_t *) gen_mic));
 			mic[1] = uint16_t_le2host(*((uint16_t *) (tx_mic + 2))) & 0xFFFF;
@@ -496,5 +496,5 @@
 			mic[3] = uint16_t_le2host(*((uint16_t *) tx_mic)) & 0xFFFF;
 			mic[4] = uint32_t_le2host(*((uint32_t *) (tx_mic + 4)));
-			
+
 			wmi_reg_write(ar9271->htc_device, mic_reg_ptr + 0, mic[0]);
 			wmi_reg_write(ar9271->htc_device, mic_reg_ptr + 4, mic[1]);
@@ -504,9 +504,9 @@
 			wmi_reg_write(ar9271->htc_device, mic_reg_ptr + 20,
 			    AR9271_KEY_TABLE_TYPE_CLR);
-			
+
 			wmi_reg_write(ar9271->htc_device, mic_reg_ptr + 24, 0);
 			wmi_reg_write(ar9271->htc_device, mic_reg_ptr + 28, 0);
 		}
-		
+
 		if (key_conf->flags & IEEE80211_KEY_FLAG_TYPE_GROUP)
 			ieee80211_setup_key_confirm(ieee80211_dev, true);
@@ -515,5 +515,5 @@
 		ieee80211_setup_key_confirm(ieee80211_dev, false);
 	}
-	
+
 	return EOK;
 }
@@ -523,12 +523,12 @@
 {
 	assert(ieee80211_dev);
-	
+
 	size_t complete_size;
 	size_t offset;
 	void *complete_buffer;
 	int endpoint;
-	
+
 	ar9271_t *ar9271 = (ar9271_t *) ieee80211_get_specific(ieee80211_dev);
-	
+
 	uint16_t frame_ctrl = *((uint16_t *) buffer);
 	if (ieee80211_is_data_frame(frame_ctrl)) {
@@ -538,5 +538,5 @@
 		complete_buffer = malloc(complete_size);
 		memset(complete_buffer, 0, complete_size);
-		
+
 		/*
 		 * Because we handle just station mode yet, node ID and VIF ID
@@ -550,11 +550,11 @@
 		data_header->vif_idx = 0;
 		data_header->cookie = 0;
-		
+
 		if (ieee80211_query_using_key(ieee80211_dev)) {
 			data_header->keyix = AR9271_STA_KEY_INDEX;
-			
+
 			int sec_suite =
 			    ieee80211_get_pairwise_security(ieee80211_dev);
-			
+
 			switch (sec_suite) {
 			case IEEE80211_SECURITY_SUITE_WEP40:
@@ -573,5 +573,5 @@
 			data_header->keyix = 0xFF;
 		}
-		
+
 		endpoint = ar9271->htc_device->endpoints.data_be_endpoint;
 	} else {
@@ -581,5 +581,5 @@
 		complete_buffer = malloc(complete_size);
 		memset(complete_buffer, 0, complete_size);
-		
+
 		/*
 		 * Because we handle just station mode yet, node ID and VIF ID
@@ -593,16 +593,16 @@
 		mgmt_header->cookie = 0;
 		mgmt_header->keyix = 0xFF;
-		
+
 		endpoint = ar9271->htc_device->endpoints.mgmt_endpoint;
 	}
-	
+
 	/* Copy IEEE802.11 data to new allocated buffer with HTC headers. */
 	memcpy(complete_buffer + offset, buffer, buffer_size);
-	
+
 	htc_send_data_message(ar9271->htc_device, complete_buffer,
 	    complete_size, endpoint);
-	
+
 	free(complete_buffer);
-	
+
 	return EOK;
 }
@@ -611,9 +611,9 @@
 {
 	assert(ieee80211_dev);
-	
+
 	ar9271_t *ar9271 = (ar9271_t *) ieee80211_get_specific(ieee80211_dev);
-	
+
 	wmi_send_command(ar9271->htc_device, WMI_FLUSH_RECV, NULL, 0, NULL);
-	
+
 	errno_t rc = hw_reset(ar9271);
 	if (rc != EOK) {
@@ -621,5 +621,5 @@
 		return rc;
 	}
-	
+
 	uint16_t htc_mode = host2uint16_t_be(1);
 	wmi_send_command(ar9271->htc_device, WMI_SET_MODE,
@@ -628,5 +628,5 @@
 	wmi_send_command(ar9271->htc_device, WMI_START_RECV, NULL, 0, NULL);
 	wmi_send_command(ar9271->htc_device, WMI_ENABLE_INTR, NULL, 0, NULL);
-	
+
 	rc = hw_rx_init(ar9271);
 	if (rc != EOK) {
@@ -634,5 +634,5 @@
 		return rc;
 	}
-	
+
 	/* Send capability message to target. */
 	htc_cap_msg_t cap_msg;
@@ -641,8 +641,8 @@
 	cap_msg.enable_coex = 0;
 	cap_msg.tx_chainmask = 0x1;
-	
+
 	wmi_send_command(ar9271->htc_device, WMI_TARGET_IC_UPDATE,
 	    (uint8_t *) &cap_msg, sizeof(cap_msg), NULL);
-	
+
 	rc = htc_init_new_vif(ar9271->htc_device);
 	if (rc != EOK) {
@@ -650,17 +650,17 @@
 		return rc;
 	}
-	
+
 	/* Add data polling fibril. */
 	fid_t fibril = fibril_create(ar9271_data_polling, ar9271);
 	if (fibril == 0)
 		return ENOMEM;
-	
+
 	fibril_add_ready(fibril);
-	
+
 	ar9271->starting_up = false;
 	ieee80211_set_ready(ieee80211_dev, true);
-	
+
 	usb_log_info("Device fully initialized.\n");
-	
+
 	return EOK;
 }
@@ -670,7 +670,7 @@
 	ar9271->starting_up = true;
 	ar9271->usb_device = usb_device;
-	
+
 	fibril_mutex_initialize(&ar9271->ar9271_lock);
-	
+
 	ar9271->ath_device = calloc(1, sizeof(ath_t));
 	if (!ar9271->ath_device) {
@@ -679,5 +679,5 @@
 		return ENOMEM;
 	}
-	
+
 	errno_t rc = ath_usb_init(ar9271->ath_device, usb_device, endpoints);
 	if (rc != EOK) {
@@ -686,5 +686,5 @@
 		return rc;
 	}
-	
+
 	/* IEEE 802.11 framework structure initialization. */
 	ar9271->ieee80211_dev = ieee80211_device_create();
@@ -695,5 +695,5 @@
 		return ENOMEM;
 	}
-	
+
 	rc = ieee80211_device_init(ar9271->ieee80211_dev, ar9271->ddf_dev);
 	if (rc != EOK) {
@@ -704,7 +704,7 @@
 		return rc;
 	}
-	
+
 	ieee80211_set_specific(ar9271->ieee80211_dev, ar9271);
-	
+
 	/* HTC device structure initialization. */
 	ar9271->htc_device = calloc(1, sizeof(htc_device_t));
@@ -716,5 +716,5 @@
 		return ENOMEM;
 	}
-	
+
 	rc = htc_device_init(ar9271->ath_device, ar9271->ieee80211_dev,
 	    ar9271->htc_device);
@@ -726,5 +726,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -740,8 +740,8 @@
 {
 	usb_device_t *usb_device = ar9271->usb_device;
-	
+
 	/* TODO: Set by maximum packet size in pipe. */
 	static const size_t MAX_TRANSFER_SIZE = 512;
-	
+
 	/* Load FW from file. */
 	FILE *fw_file = fopen(FIRMWARE_FILENAME, "rb");
@@ -750,9 +750,9 @@
 		return ENOENT;
 	}
-	
+
 	fseek(fw_file, 0, SEEK_END);
 	uint64_t file_size = ftell(fw_file);
 	fseek(fw_file, 0, SEEK_SET);
-	
+
 	void *fw_data = malloc(file_size);
 	if (fw_data == NULL) {
@@ -761,8 +761,8 @@
 		return ENOMEM;
 	}
-	
+
 	fread(fw_data, file_size, 1, fw_file);
 	fclose(fw_file);
-	
+
 	/* Upload FW to device. */
 	uint64_t remain_size = file_size;
@@ -770,5 +770,5 @@
 	uint8_t *current_data = fw_data;
 	uint8_t *buffer = malloc(MAX_TRANSFER_SIZE);
-	
+
 	while (remain_size > 0) {
 		size_t chunk_size = min(remain_size, MAX_TRANSFER_SIZE);
@@ -788,13 +788,13 @@
 			return rc;
 		}
-		
+
 		remain_size -= chunk_size;
 		current_addr += chunk_size;
 		current_data += chunk_size;
 	}
-	
+
 	free(fw_data);
 	free(buffer);
-	
+
 	/*
 	 * Send command that firmware is successfully uploaded.
@@ -809,5 +809,5 @@
 	    uint16_host2usb(AR9271_FW_OFFSET >> 8),
 	    0, NULL, 0);
-	
+
 	if (rc != EOK) {
 		usb_log_error("IO error when sending fw upload confirmation "
@@ -815,10 +815,10 @@
 		return rc;
 	}
-	
+
 	usb_log_info("Firmware uploaded successfully.\n");
-	
+
 	/* Wait until firmware is ready - wait for 1 second to be sure. */
 	async_sleep(1);
-	
+
 	return rc;
 }
@@ -840,5 +840,5 @@
 		return NULL;
 	}
-	
+
 	/* AR9271 structure initialization. */
 	ar9271_t *ar9271 = calloc(1, sizeof(ar9271_t));
@@ -848,7 +848,7 @@
 		return NULL;
 	}
-	
+
 	ar9271->ddf_dev = dev;
-	
+
 	rc = ar9271_init(ar9271, usb_device_get(dev), endpoints);
 	if (rc != EOK) {
@@ -858,5 +858,5 @@
 		return NULL;
 	}
-	
+
 	return ar9271;
 }
@@ -869,5 +869,5 @@
 {
 	assert(ar9271);
-	
+
 	// TODO
 }
@@ -882,5 +882,5 @@
 {
 	assert(dev);
-	
+
 	/* Allocate driver data for the device. */
 	ar9271_t *ar9271 = ar9271_create_dev_data(dev);
@@ -889,10 +889,10 @@
 		return ENOMEM;
 	}
-	
+
 	usb_log_info("HelenOS AR9271 device initialized.\n");
-	
+
 	/* Upload AR9271 firmware. */
 	ar9271_upload_fw(ar9271);
-	
+
 	/* Initialize AR9271 HTC services. */
 	errno_t rc = htc_init(ar9271->htc_device);
@@ -902,5 +902,5 @@
 		return rc;
 	}
-	
+
 	/* Initialize AR9271 HW. */
 	rc = hw_init(ar9271);
@@ -910,5 +910,5 @@
 		return rc;
 	}
-	
+
 	/* Initialize AR9271 IEEE 802.11 framework. */
 	rc = ieee80211_init(ar9271->ieee80211_dev, &ar9271_ieee80211_ops,
@@ -920,11 +920,11 @@
 		return rc;
 	}
-	
+
 	nic_set_filtering_change_handlers(nic_get_from_ddf_dev(dev),
 	    ar9271_on_unicast_mode_change, ar9271_on_multicast_mode_change,
 	    ar9271_on_broadcast_mode_change, NULL, NULL);
-	
+
 	usb_log_info("HelenOS AR9271 added device.\n");
-	
+
 	return EOK;
 }
@@ -933,10 +933,10 @@
 {
 	log_init(NAME);
-	
+
 	if (nic_driver_init(NAME) != EOK)
 		return 1;
-	
+
 	usb_log_info("HelenOS AR9271 driver started.\n");
-	
+
 	return ddf_driver_main(&ar9271_driver);
 }
Index: uspace/drv/nic/ar9271/ar9271.h
===================================================================
--- uspace/drv/nic/ar9271/ar9271.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/ar9271.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,19 +69,19 @@
 	AR9271_COMMAND = 0x0008,
 	AR9271_COMMAND_RX_ENABLE = 0x00000004,
-	
+
 	/* ATH config register */
 	AR9271_CONFIG = 0x0014,
 	AR9271_CONFIG_ADHOC = 0x00000020,
-	
+
 	AR9271_QUEUE_BASE_MASK = 0x1000,
-	
+
 	/* EEPROM Addresses */
 	AR9271_EEPROM_BASE = 0x2100,
 	AR9271_EEPROM_MAC_ADDR_START = 0x2118,
-	
+
 	/* Reset MAC interface */
 	AR9271_RC = 0x4000,
 	AR9271_RC_AHB = 0x00000001,
-	
+
 	/* GPIO registers */
 	AR9271_GPIO_IN_OUT = 0x4048,       /**< GPIO value read/set  */
@@ -92,5 +92,5 @@
 	AR9271_GPIO_OUT_MUX3 = 0x4068,
 	AR9271_GPIO_OUT_MUX_AS_OUT = 0x0,  /**< GPIO set mux as output */
-	
+
 	/* RTC related registers */
 	AR9271_RTC_RC = 0x7000,
@@ -109,5 +109,5 @@
 	AR9271_RTC_FORCE_WAKE_ENABLE = 0x00000001,
 	AR9271_RTC_FORCE_WAKE_ON_INT = 0x00000002,
-	
+
 	/* MAC Registers */
 	AR9271_STATION_ID0 = 0x8000,  /**< STA Address Lower 32 Bits */
@@ -122,5 +122,5 @@
 	AR9271_MULTICAST_FILTER2 = 0x8044,
 	AR9271_DIAG = 0x8048,
-	
+
 	/* RX filtering register */
 	AR9271_RX_FILTER = 0x803C,
@@ -134,5 +134,5 @@
 	AR9271_RX_FILTER_MYBEACON = 0x00000200,
 	AR9271_RX_FILTER_MCAST_BCAST_ALL = 0x00008000,
-	
+
 	/* Key related registers */
 	AR9271_KEY_TABLE_BASE = 0x8800,
@@ -142,5 +142,5 @@
 	AR9271_KEY_TABLE_TYPE_CCMP = 0x6,
 	AR9271_KEY_TABLE_TYPE_CLR = 0x7,
-	
+
 	/* Physical layer registers */
 	AR9271_PHY_ACTIVE = 0x981C,
@@ -168,15 +168,15 @@
 	AR9271_PHY_TPCRG1_PD_CALIB = 0x00400000,
 	AR9271_CARRIER_LEAK_CALIB = 0x00000002,
-	
+
 	AR9271_OPMODE_STATION_AP_MASK =	0x00010000,
 	AR9271_OPMODE_ADHOC_MASK = 0x00020000,
-	
+
 	AR9271_CLOCK_CONTROL = 0x50040,
 	AR9271_MAX_CPU_CLOCK = 0x304,
-	
+
 	AR9271_RESET_POWER_DOWN_CONTROL = 0x50044,
 	AR9271_RADIO_RF_RESET = 0x20,
 	AR9271_GATE_MAC_CONTROL = 0x4000,
-	
+
 	/* FW Addresses */
 	AR9271_FW_ADDRESS = 0x501000,
@@ -197,20 +197,20 @@
 	/** Lock for access. */
 	fibril_mutex_t ar9271_lock;
-	
+
 	/** Whether device is starting up. */
 	bool starting_up;
-	
+
 	/** Backing DDF device */
 	ddf_dev_t *ddf_dev;
-	
+
 	/** USB device data */
 	usb_device_t *usb_device;
-	
+
 	/** IEEE 802.11 device data */
 	ieee80211_dev_t *ieee80211_dev;
-	
+
 	/** ATH device data */
 	ath_t *ath_device;
-	
+
 	/** HTC device data */
 	htc_device_t *htc_device;
Index: uspace/drv/nic/ar9271/ath.h
===================================================================
--- uspace/drv/nic/ar9271/ath.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/ath.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,11 +50,11 @@
 	/** Maximum length of data response message. */
 	size_t data_response_length;
-	
+
 	/** Maximum length of control response message. */
 	size_t ctrl_response_length;
-	
+
 	/** Implementation specific data. */
 	void *specific_data;
-	
+
 	/** Generic Atheros wifi operations. */
 	const ath_ops_t *ops;
Index: uspace/drv/nic/ar9271/ath_usb.c
===================================================================
--- uspace/drv/nic/ar9271/ath_usb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/ath_usb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,7 +68,7 @@
 		return ENOMEM;
 	}
-	
+
 	ath_usb->usb_device = usb_device;
-	
+
 	int rc;
 
@@ -89,11 +89,11 @@
 
 #undef _MAP_EP
-	
+
 	ath->ctrl_response_length = 64;
 	ath->data_response_length = 512;
-	
+
 	ath->specific_data = ath_usb;
 	ath->ops = &ath_usb_ops;
-	
+
 	return EOK;
 err_ath_usb:
@@ -152,16 +152,16 @@
 	memcpy(complete_buffer + sizeof(ath_usb_data_header_t),
 	    buffer, buffer_size);
-	
+
 	ath_usb_data_header_t *data_header =
 	    (ath_usb_data_header_t *) complete_buffer;
 	data_header->length = host2uint16_t_le(buffer_size);
 	data_header->tag = host2uint16_t_le(TX_TAG);
-	
+
 	ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data;
 	const errno_t ret_val = usb_pipe_write(ath_usb->output_data_pipe,
 	    complete_buffer, complete_buffer_size);
-	
+
 	free(complete_buffer);
-	
+
 	return ret_val;
 }
Index: uspace/drv/nic/ar9271/ath_usb.h
===================================================================
--- uspace/drv/nic/ar9271/ath_usb.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/ath_usb.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 	usb_pipe_t *input_data_pipe;
 	usb_pipe_t *output_data_pipe;
-	
+
 	/** Pointer to connected USB device. */
 	usb_device_t *usb_device;
Index: uspace/drv/nic/ar9271/htc.c
===================================================================
--- uspace/drv/nic/ar9271/htc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/htc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,19 +70,19 @@
 	htc_vif_msg_t vif_msg;
 	htc_sta_msg_t sta_msg;
-	
+
 	memset(&vif_msg, 0, sizeof(htc_vif_msg_t));
 	memset(&sta_msg, 0, sizeof(htc_sta_msg_t));
-	
+
 	nic_address_t addr;
 	nic_t *nic =
 	    nic_get_from_ddf_dev(ieee80211_get_ddf_dev(htc_device->ieee80211_dev));
 	nic_query_address(nic, &addr);
-	
+
 	memcpy(&vif_msg.addr, &addr.address, ETH_ADDR);
 	memcpy(&sta_msg.addr, &addr.address, ETH_ADDR);
-	
+
 	ieee80211_operating_mode_t op_mode =
 	    ieee80211_query_current_op_mode(htc_device->ieee80211_dev);
-	
+
 	switch (op_mode) {
 	case IEEE80211_OPMODE_ADHOC:
@@ -99,19 +99,19 @@
 		break;
 	}
-	
+
 	vif_msg.index = 0;
 	vif_msg.rts_thres = host2uint16_t_be(HTC_RTS_THRESHOLD);
-	
+
 	wmi_send_command(htc_device, WMI_VAP_CREATE, (uint8_t *) &vif_msg,
 	    sizeof(vif_msg), NULL);
-	
+
 	sta_msg.is_vif_sta = 1;
 	sta_msg.max_ampdu = host2uint16_t_be(0xFFFF);
 	sta_msg.sta_index = 0;
 	sta_msg.vif_index = 0;
-	
+
 	wmi_send_command(htc_device, WMI_NODE_CREATE, (uint8_t *) &sta_msg,
 	    sizeof(sta_msg), NULL);
-	
+
 	/* Write first 4 bytes of MAC address. */
 	uint32_t id0;
@@ -119,14 +119,14 @@
 	id0 = host2uint32_t_le(id0);
 	wmi_reg_write(htc_device, AR9271_STATION_ID0, id0);
-	
+
 	/* Write last 2 bytes of MAC address (and preserve existing data). */
 	uint32_t id1;
 	wmi_reg_read(htc_device, AR9271_STATION_ID1, &id1);
-	
+
 	uint16_t id1_addr;
 	memcpy(&id1_addr, &addr.address[4], 2);
 	id1 = (id1 & ~AR9271_STATION_ID1_MASK) | host2uint16_t_le(id1_addr);
 	wmi_reg_write(htc_device, AR9271_STATION_ID1, id1);
-	
+
 	return EOK;
 }
@@ -136,5 +136,5 @@
 {
 	memset(header, 0, sizeof(htc_frame_header_t));
-	
+
 	header->endpoint_id = endpoint_id;
 	header->payload_length =
@@ -158,7 +158,7 @@
 	htc_config_frame_header((htc_frame_header_t *) buffer, buffer_size,
 	    endpoint_id);
-	
+
 	ath_t *ath_device = htc_device->ath_device;
-	
+
 	return ath_device->ops->send_ctrl_message(ath_device, buffer,
 	    buffer_size);
@@ -181,7 +181,7 @@
 	htc_config_frame_header((htc_frame_header_t *) buffer, buffer_size,
 	    endpoint_id);
-	
+
 	ath_t *ath_device = htc_device->ath_device;
-	
+
 	return ath_device->ops->send_data_message(ath_device, buffer,
 	    buffer_size);
@@ -203,5 +203,5 @@
 {
 	ath_t *ath_device = htc_device->ath_device;
-	
+
 	return ath_device->ops->read_data_message(ath_device, buffer,
 	    buffer_size, transferred_size);
@@ -223,5 +223,5 @@
 {
 	ath_t *ath_device = htc_device->ath_device;
-	
+
 	return ath_device->ops->read_ctrl_message(ath_device, buffer,
 	    buffer_size, transferred_size);
@@ -246,5 +246,5 @@
 	void *buffer = malloc(buffer_size);
 	memset(buffer, 0, buffer_size);
-	
+
 	/* Fill service message structure. */
 	htc_service_msg_t *service_message = (htc_service_msg_t *)
@@ -259,5 +259,5 @@
 	    wmi_service_to_upload_pipe(service_id);
 	service_message->connection_flags = 0;
-	
+
 	/* Send HTC message. */
 	errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size,
@@ -268,10 +268,10 @@
 		return rc;
 	}
-	
+
 	free(buffer);
-	
+
 	buffer_size = htc_device->ath_device->ctrl_response_length;
 	buffer = malloc(buffer_size);
-	
+
 	/* Read response from device. */
 	rc = htc_read_control_message(htc_device, buffer, buffer_size, NULL);
@@ -282,8 +282,8 @@
 		return rc;
 	}
-	
+
 	htc_service_resp_msg_t *response_message = (htc_service_resp_msg_t *)
 	    ((void *) buffer + sizeof(htc_frame_header_t));
-	
+
 	/*
 	 * If service was successfully connected,
@@ -299,7 +299,7 @@
 		rc = EINVAL;
 	}
-	
+
 	free(buffer);
-	
+
 	return rc;
 }
@@ -319,5 +319,5 @@
 	htc_config_msg_t *config_message = (htc_config_msg_t *)
 	    ((void *) buffer + sizeof(htc_frame_header_t));
-	
+
 	config_message->message_id =
 	    host2uint16_t_be(HTC_MESSAGE_CONFIG);
@@ -325,5 +325,5 @@
 	config_message->credits = 33;
 	config_message->pipe_id = 1;
-	
+
 	/* Send HTC message. */
 	errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size,
@@ -335,10 +335,10 @@
 		return rc;
 	}
-	
+
 	free(buffer);
-	
+
 	buffer_size = htc_device->ath_device->ctrl_response_length;
 	buffer = malloc(buffer_size);
-	
+
 	/* Check response from device. */
 	rc = htc_read_control_message(htc_device, buffer, buffer_size, NULL);
@@ -347,7 +347,7 @@
 		    "Error: %s\n", str_error_name(rc));
 	}
-	
+
 	free(buffer);
-	
+
 	return rc;
 }
@@ -368,8 +368,8 @@
 	    (htc_setup_complete_msg_t *)
 	    ((void *) buffer + sizeof(htc_frame_header_t));
-	
+
 	complete_message->message_id =
 	    host2uint16_t_be(HTC_MESSAGE_SETUP_COMPLETE);
-	
+
 	/* Send HTC message. */
 	errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size,
@@ -378,7 +378,7 @@
 		usb_log_error("Failed to send HTC setup complete message. "
 		    "Error: %s\n", str_error_name(rc));
-	
+
 	free(buffer);
-	
+
 	return rc;
 }
@@ -398,5 +398,5 @@
 	size_t buffer_size = htc_device->ath_device->ctrl_response_length;
 	void *buffer = malloc(buffer_size);
-	
+
 	/* Read response from device. */
 	errno_t rc = htc_read_control_message(htc_device, buffer, buffer_size,
@@ -408,5 +408,5 @@
 		return rc;
 	}
-	
+
 	uint16_t *message_id = (uint16_t *) ((void *) buffer +
 	    sizeof(htc_frame_header_t));
@@ -415,7 +415,7 @@
 	else
 		rc = EINVAL;
-	
+
 	free(buffer);
-	
+
 	return rc;
 }
@@ -435,10 +435,10 @@
 	fibril_mutex_initialize(&htc_device->rx_lock);
 	fibril_mutex_initialize(&htc_device->tx_lock);
-	
+
 	htc_device->endpoints.ctrl_endpoint = 0;
-	
+
 	htc_device->ath_device = ath_device;
 	htc_device->ieee80211_dev = ieee80211_dev;
-	
+
 	return EOK;
 }
@@ -460,5 +460,5 @@
 		return rc;
 	}
-	
+
 	/*
 	 * HTC services initialization start.
@@ -470,5 +470,5 @@
 		return rc;
 	}
-	
+
 	rc = htc_connect_service(htc_device, WMI_BEACON_SERVICE,
 	    &htc_device->endpoints.beacon_endpoint);
@@ -477,5 +477,5 @@
 		return rc;
 	}
-	
+
 	rc = htc_connect_service(htc_device, WMI_CAB_SERVICE,
 	    &htc_device->endpoints.cab_endpoint);
@@ -484,5 +484,5 @@
 		return rc;
 	}
-	
+
 	rc = htc_connect_service(htc_device, WMI_UAPSD_SERVICE,
 	    &htc_device->endpoints.uapsd_endpoint);
@@ -491,5 +491,5 @@
 		return rc;
 	}
-	
+
 	rc = htc_connect_service(htc_device, WMI_MGMT_SERVICE,
 	    &htc_device->endpoints.mgmt_endpoint);
@@ -498,5 +498,5 @@
 		return rc;
 	}
-	
+
 	rc = htc_connect_service(htc_device, WMI_DATA_BE_SERVICE,
 	    &htc_device->endpoints.data_be_endpoint);
@@ -506,5 +506,5 @@
 		return rc;
 	}
-	
+
 	rc = htc_connect_service(htc_device, WMI_DATA_BK_SERVICE,
 	    &htc_device->endpoints.data_bk_endpoint);
@@ -514,5 +514,5 @@
 		return rc;
 	}
-	
+
 	rc = htc_connect_service(htc_device, WMI_DATA_VIDEO_SERVICE,
 	    &htc_device->endpoints.data_video_endpoint);
@@ -521,5 +521,5 @@
 		return rc;
 	}
-	
+
 	rc = htc_connect_service(htc_device, WMI_DATA_VOICE_SERVICE,
 	    &htc_device->endpoints.data_voice_endpoint);
@@ -528,9 +528,9 @@
 		return rc;
 	}
-	
+
 	/*
 	 * HTC services initialization end.
 	 */
-	
+
 	/* Credits initialization message. */
 	rc = htc_config_credits(htc_device);
@@ -539,5 +539,5 @@
 		return rc;
 	}
-	
+
 	/* HTC setup complete confirmation message. */
 	rc = htc_complete_setup(htc_device);
@@ -546,7 +546,7 @@
 		return rc;
 	}
-	
+
 	usb_log_info("HTC services initialization finished successfully.\n");
-	
+
 	return EOK;
 }
Index: uspace/drv/nic/ar9271/htc.h
===================================================================
--- uspace/drv/nic/ar9271/htc.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/htc.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -112,17 +112,17 @@
 	/** WMI message sequence number */
 	uint16_t sequence_number;
-	
+
 	/** HTC endpoints numbers */
 	htc_pipes_t endpoints;
-	
+
 	/** Lock for receiver */
 	fibril_mutex_t rx_lock;
-	
+
 	/** Lock for transmitter */
 	fibril_mutex_t tx_lock;
-	
+
 	/** Pointer to related IEEE 802.11 device */
 	ieee80211_dev_t *ieee80211_dev;
-	
+
 	/** Pointer to Atheros WiFi device structure */
 	ath_t *ath_device;
@@ -175,5 +175,5 @@
 	uint16_t credits;      /**< Big Endian value! */
 	uint16_t credit_size;  /**< Big Endian value! */
-	
+
 	uint8_t max_endpoints;
 	uint8_t pad;
@@ -187,5 +187,5 @@
 	uint16_t service_id;        /**< Big Endian value! */
 	uint16_t connection_flags;  /**< Big Endian value! */
-	
+
 	uint8_t download_pipe_id;
 	uint8_t upload_pipe_id;
@@ -237,9 +237,9 @@
 	uint8_t vif_index;
 	uint8_t is_vif_sta;
-	
+
 	uint16_t flags;      /**< Big Endian value! */
 	uint16_t ht_cap;     /**< Big Endian value! */
 	uint16_t max_ampdu;  /**< Big Endian value! */
-	
+
 	uint8_t pad;
 } __attribute__((packed)) htc_sta_msg_t;
Index: uspace/drv/nic/ar9271/hw.c
===================================================================
--- uspace/drv/nic/ar9271/hw.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/hw.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,5 +57,5 @@
 	for (size_t i = 0; i < HW_WAIT_LOOPS; i++) {
 		udelay(HW_WAIT_TIME_US);
-		
+
 		uint32_t result;
 		wmi_reg_read(ar9271->htc_device, offset, &result);
@@ -63,5 +63,5 @@
 			return EOK;
 	}
-	
+
 	return ETIMEOUT;
 }
@@ -84,13 +84,13 @@
 		}
 	};
-	
+
 	wmi_reg_buffer_write(ar9271->htc_device, buffer,
 	    sizeof(buffer) / sizeof(wmi_reg_t));
-	
+
 	udelay(2);
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_RC, 0);
 	wmi_reg_write(ar9271->htc_device, AR9271_RTC_RESET, 1);
-	
+
 	errno_t rc = hw_read_wait(ar9271,
 	    AR9271_RTC_STATUS,
@@ -101,5 +101,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -108,8 +108,8 @@
 {
 	uint32_t reset_value = AR9271_RTC_RC_MAC_WARM;
-	
+
 	if (cold)
 		reset_value |= AR9271_RTC_RC_MAC_COLD;
-	
+
 	wmi_reg_t buffer[] = {
 		{
@@ -127,12 +127,12 @@
 		}
 	};
-	
+
 	wmi_reg_buffer_write(ar9271->htc_device, buffer,
 	    sizeof(buffer) / sizeof(wmi_reg_t));
-	
+
 	udelay(100);
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_RTC_RC, 0);
-	
+
 	errno_t rc = hw_read_wait(ar9271, AR9271_RTC_RC, AR9271_RTC_RC_MASK, 0);
 	if (rc != EOK) {
@@ -140,9 +140,9 @@
 		return rc;
 	}
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_RC, 0);
 	wmi_reg_clear_bit(ar9271->htc_device, AR9271_STATION_ID1,
 	    AR9271_STATION_ID1_POWER_SAVING);
-	
+
 	return EOK;
 }
@@ -152,16 +152,16 @@
 	uint32_t value;
 	nic_address_t ar9271_address;
-	
+
 	for (unsigned int i = 0; i < 3; i++) {
 		wmi_reg_read(ar9271->htc_device,
 		    AR9271_EEPROM_MAC_ADDR_START + i * 4, &value);
-		
+
 		uint16_t two_bytes = uint16_t_be2host(value);
 		ar9271_address.address[2*i] = two_bytes >> 8;
 		ar9271_address.address[2*i+1] = two_bytes & 0xff;
 	}
-	
+
 	nic_t *nic = nic_get_from_ddf_dev(ar9271->ddf_dev);
-	
+
 	errno_t rc = nic_report_address(nic, &ar9271_address);
 	if (rc != EOK) {
@@ -169,5 +169,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -176,5 +176,5 @@
 {
 	uint32_t address;
-	
+
 	if (gpio > 11)
 		address = AR9271_GPIO_OUT_MUX3;
@@ -183,22 +183,22 @@
 	else
 		address = AR9271_GPIO_OUT_MUX1;
-	
+
 	uint32_t gpio_shift = (gpio % 6) * 5;
-	
+
 	uint32_t temp;
 	wmi_reg_read(ar9271->htc_device, address, &temp);
-	
+
 	temp = ((temp & 0x1f0) << 1) | (temp & ~0x1f0);
 	temp &= ~(0x1f << gpio_shift);
 	temp |= (type << gpio_shift);
-	
+
 	wmi_reg_write(ar9271->htc_device, address, temp);
-	
+
 	gpio_shift = 2 * gpio;
-	
+
 	wmi_reg_set_clear_bit(ar9271->htc_device, AR9271_GPIO_OE_OUT,
 	    AR9271_GPIO_OE_OUT_ALWAYS << gpio_shift,
 	    AR9271_GPIO_OE_OUT_ALWAYS << gpio_shift);
-	
+
 	return EOK;
 }
@@ -225,5 +225,5 @@
 		return rc;
 	}
-	
+
 	rc = hw_set_reset(ar9271, false);
 	if (rc != EOK) {
@@ -231,5 +231,5 @@
 		return rc;
 	}
-	
+
 	rc = hw_addr_init(ar9271);
 	if (rc != EOK) {
@@ -237,5 +237,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -249,5 +249,5 @@
 		return rc;
 	}
-	
+
 	rc = hw_gpio_set_value(ar9271, AR9271_LED_PIN, 0);
 	if (rc != EOK) {
@@ -255,5 +255,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -263,5 +263,5 @@
 	wmi_reg_write(ar9271->htc_device, AR9271_PHY_ACTIVE, 1);
 	udelay(1000);
-	
+
 	return EOK;
 }
@@ -271,5 +271,5 @@
 {
 	uint32_t set_bit = 0x10000000;
-	
+
 	switch(op_mode) {
 	case IEEE80211_OPMODE_ADHOC:
@@ -286,10 +286,10 @@
 		    AR9271_CONFIG_ADHOC);
 	}
-	
+
 	wmi_reg_set_clear_bit(ar9271->htc_device, AR9271_STATION_ID1,
 	    set_bit, AR9271_OPMODE_STATION_AP_MASK | AR9271_OPMODE_ADHOC_MASK);
-	
+
 	ieee80211_report_current_op_mode(ar9271->ieee80211_dev, op_mode);
-	
+
 	return EOK;
 }
@@ -302,5 +302,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -310,19 +310,19 @@
 	uint32_t value;
 	wmi_reg_read(ar9271->htc_device, AR9271_PHY_CAL, &value);
-	
+
 	value &= 0xfffffe00;
 	value |= (((uint32_t) AR9271_CALIB_NOMINAL_VALUE_2GHZ << 1) & 0x1ff);
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_PHY_CAL, value);
-	
+
 	wmi_reg_clear_bit(ar9271->htc_device, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_NF_CALIB_EN);
-	
+
 	wmi_reg_clear_bit(ar9271->htc_device, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_NF_NOT_UPDATE);
-	
+
 	wmi_reg_set_bit(ar9271->htc_device, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_NF_CALIB);
-	
+
 	errno_t rc = hw_read_wait(ar9271, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_NF_CALIB, 0);
@@ -331,14 +331,14 @@
 		return rc;
 	}
-	
+
 	wmi_reg_set_bit(ar9271->htc_device, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_NF_CALIB_EN);
-	
+
 	wmi_reg_clear_bit(ar9271->htc_device, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_NF_NOT_UPDATE);
-	
+
 	wmi_reg_set_bit(ar9271->htc_device, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_NF_CALIB);
-	
+
 	return EOK;
 }
@@ -349,14 +349,14 @@
 	if ((freq < IEEE80211_FIRST_FREQ) || (freq > IEEE80211_MAX_FREQ))
 		return EINVAL;
-	
+
 	/* Not supported channel frequency. */
 	if ((freq - IEEE80211_FIRST_FREQ) % IEEE80211_CHANNEL_GAP != 0)
 		return EINVAL;
-	
+
 	uint32_t tx_control;
 	wmi_reg_read(ar9271->htc_device, AR9271_PHY_CCK_TX_CTRL, &tx_control);
 	wmi_reg_write(ar9271->htc_device, AR9271_PHY_CCK_TX_CTRL,
 	    tx_control & ~AR9271_PHY_CCK_TX_CTRL_JAPAN);
-	
+
 	/* Some magic here. */
 	uint32_t synth_ctl;
@@ -365,9 +365,9 @@
 	uint32_t channel_select = (freq * 0x10000) / 15;
 	synth_ctl = synth_ctl | (1 << 29) | (1 << 28) | channel_select;
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_PHY_SYNTH_CONTROL, synth_ctl);
-	
+
 	ieee80211_report_current_freq(ar9271->ieee80211_dev, freq);
-	
+
 	return EOK;
 }
@@ -376,5 +376,5 @@
 {
 	wmi_reg_write(ar9271->htc_device, AR9271_PHY_RFBUS_KILL, 0x1);
-	
+
 	errno_t rc = hw_read_wait(ar9271, AR9271_PHY_RFBUS_GRANT, 0x1, 0x1);
 	if (rc != EOK) {
@@ -382,5 +382,5 @@
 		return rc;
 	}
-	
+
 	rc = hw_set_freq(ar9271, freq);
 	if (rc != EOK) {
@@ -388,5 +388,5 @@
 		return rc;
 	}
-	
+
 	rc = hw_activate_phy(ar9271);
 	if (rc != EOK) {
@@ -394,8 +394,8 @@
 		return rc;
 	}
-	
+
 	udelay(1000);
 	wmi_reg_write(ar9271->htc_device, AR9271_PHY_RFBUS_KILL, 0x0);
-	
+
 	rc = hw_noise_floor_calibration(ar9271);
 	if (rc != EOK) {
@@ -403,5 +403,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -410,16 +410,16 @@
 {
 	uint32_t additional_bits = 0;
-	
+
 	if (assoc)
 		additional_bits |= AR9271_RX_FILTER_MYBEACON;
 	else
 		additional_bits |= AR9271_RX_FILTER_BEACON;
-	
+
 	uint32_t filter_bits = AR9271_RX_FILTER_UNI |
 	    AR9271_RX_FILTER_MULTI | AR9271_RX_FILTER_BROAD |
 	    additional_bits;
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_RX_FILTER, filter_bits);
-	
+
 	return EOK;
 }
@@ -428,18 +428,18 @@
 {
 	ieee80211_dev_t *ieee80211_dev = ar9271->ieee80211_dev;
-	
+
 	nic_address_t bssid;
 	ieee80211_query_bssid(ieee80211_dev, &bssid);
-	
+
 	uint32_t *first_4bytes = (uint32_t *) &bssid.address;
 	uint16_t *last_2bytes = (uint16_t *) &bssid.address[4];
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_BSSID0,
 	    uint32_t_le2host(*first_4bytes));
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_BSSID1,
 	    uint16_t_le2host(*last_2bytes) |
 	    ((ieee80211_get_aid(ieee80211_dev) & 0x3fff) << 16));
-	
+
 	return EOK;
 }
@@ -449,5 +449,5 @@
 	wmi_reg_write(ar9271->htc_device, AR9271_COMMAND,
 	    AR9271_COMMAND_RX_ENABLE);
-	
+
 	errno_t rc = hw_set_rx_filter(ar9271, false);
 	if (rc != EOK) {
@@ -455,11 +455,11 @@
 		return rc;
 	}
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_MULTICAST_FILTER1, ~0);
 	wmi_reg_write(ar9271->htc_device, AR9271_MULTICAST_FILTER2, ~0);
-	
+
 	/* Disable RX blocking. */
 	wmi_reg_clear_bit(ar9271->htc_device, AR9271_DIAG, (0x20 | 0x02000000));
-	
+
 	return EOK;
 }
@@ -469,12 +469,12 @@
 	/* Some magic here (set for 2GHz channels). But VERY important :-) */
 	uint32_t pll = (0x5 << 10) | 0x2c;
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_RTC_PLL_CONTROL, pll);
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_RTC_SLEEP_CLOCK,
 	    AR9271_RTC_SLEEP_CLOCK_FORCE_DERIVED);
 	wmi_reg_set_bit(ar9271->htc_device, AR9271_RTC_FORCE_WAKE,
 	    AR9271_RTC_FORCE_WAKE_ENABLE);
-	
+
 	return EOK;
 }
@@ -484,7 +484,7 @@
 	uint32_t reg_offset;
 	uint32_t reg_value;
-	
+
 	size_t size = ARRAY_SIZE(ar9271_2g_mode_array);
-	
+
 	for (size_t i = 0; i < size; i++) {
 		reg_offset = ar9271_2g_mode_array[i][0];
@@ -492,7 +492,7 @@
 		wmi_reg_write(ar9271->htc_device, reg_offset, reg_value);
 	}
-	
+
 	size = ARRAY_SIZE(ar9271_2g_tx_array);
-	
+
 	for (size_t i = 0; i < size; i++) {
 		reg_offset = ar9271_2g_tx_array[i][0];
@@ -500,7 +500,7 @@
 		wmi_reg_write(ar9271->htc_device, reg_offset, reg_value);
 	}
-	
+
 	size = ARRAY_SIZE(ar9271_init_array);
-	
+
 	for (size_t i = 0; i < size; i++) {
 		reg_offset = ar9271_init_array[i][0];
@@ -522,5 +522,5 @@
 	wmi_reg_set_bit(ar9271->htc_device, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_CALIB);
-	
+
 	errno_t rc = hw_read_wait(ar9271, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_CALIB, 0);
@@ -529,5 +529,5 @@
 		return rc;
 	}
-	
+
 	wmi_reg_set_bit(ar9271->htc_device, AR9271_ADC_CONTROL,
 	    AR9271_ADC_CONTROL_OFF_PWDADC);
@@ -536,5 +536,5 @@
 	wmi_reg_clear_bit(ar9271->htc_device, AR9271_AGC_CONTROL,
 	    AR9271_AGC_CONTROL_TX_CALIB);
-	
+
 	return EOK;
 }
@@ -544,13 +544,13 @@
 	/* Set physical layer as deactivated. */
 	wmi_reg_write(ar9271->htc_device, AR9271_PHY_ACTIVE, 0);
-	
+
 	if(ar9271->starting_up) {
 		wmi_reg_write(ar9271->htc_device,
 		    AR9271_RESET_POWER_DOWN_CONTROL,
 		    AR9271_RADIO_RF_RESET);
-		
+
 		udelay(50);
 	}
-	
+
 	/* Cold reset when RX is enabled. */
 	uint32_t config_reg;
@@ -558,5 +558,5 @@
 	if (config_reg & AR9271_COMMAND_RX_ENABLE)
 		hw_set_reset(ar9271, true);
-	
+
 	errno_t rc = hw_init_pll(ar9271);
 	if (rc != EOK) {
@@ -564,26 +564,26 @@
 		return rc;
 	}
-	
+
 	udelay(500);
-	
+
 	wmi_reg_write(ar9271->htc_device, AR9271_CLOCK_CONTROL,
 	    AR9271_MAX_CPU_CLOCK);
-	
+
 	udelay(100);
-	
+
 	if (ar9271->starting_up) {
 		wmi_reg_write(ar9271->htc_device,
 		    AR9271_RESET_POWER_DOWN_CONTROL,
 		    AR9271_GATE_MAC_CONTROL);
-		
+
 		udelay(50);
 	}
-	
+
 	hw_set_init_values(ar9271);
-	
+
 	/* Set physical layer mode. */
 	wmi_reg_write(ar9271->htc_device, AR9271_PHY_MODE,
 	    AR9271_PHY_MODE_DYNAMIC);
-	
+
 	/* Reset device operating mode. */
 	rc = hw_reset_operating_mode(ar9271);
@@ -592,5 +592,5 @@
 		return rc;
 	}
-	
+
 	/* Set initial channel frequency. */
 	rc = hw_set_freq(ar9271, IEEE80211_FIRST_FREQ);
@@ -599,5 +599,5 @@
 		return rc;
 	}
-	
+
 	/* Initialize transmission queues. */
 	for (unsigned int i = 0; i < AR9271_QUEUES_COUNT; i++) {
@@ -605,5 +605,5 @@
 		    AR9271_QUEUE_BASE_MASK + (i << 2), 1 << i);
 	}
-	
+
 	/* Activate physical layer. */
 	rc = hw_activate_phy(ar9271);
@@ -612,5 +612,5 @@
 		return rc;
 	}
-	
+
 	/* Calibration. */
 	rc = hw_calibration(ar9271);
@@ -619,5 +619,5 @@
 		return rc;
 	}
-	
+
 	rc = hw_noise_floor_calibration(ar9271);
 	if (rc != EOK) {
@@ -625,8 +625,8 @@
 		return rc;
 	}
-	
+
 	/* Byteswap TX and RX data buffer words. */
 	wmi_reg_write(ar9271->htc_device, AR9271_CONFIG, 0xA);
-	
+
 	return EOK;
 }
@@ -645,5 +645,5 @@
 		return rc;
 	}
-	
+
 	rc = hw_init_led(ar9271);
 	if (rc != EOK) {
@@ -651,7 +651,7 @@
 		return rc;
 	}
-	
+
 	usb_log_info("HW initialization finished successfully.\n");
-	
-	return EOK;
-}
+
+	return EOK;
+}
Index: uspace/drv/nic/ar9271/wmi.c
===================================================================
--- uspace/drv/nic/ar9271/wmi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/wmi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,21 +53,21 @@
 {
 	uint32_t cmd_value = host2uint32_t_be(reg_offset);
-	
+
 	void *resp_buffer =
 	    malloc(htc_device->ath_device->ctrl_response_length);
-	
+
 	errno_t rc = wmi_send_command(htc_device, WMI_REG_READ,
 	    (uint8_t *) &cmd_value, sizeof(cmd_value), resp_buffer);
-	
+
 	if (rc != EOK) {
 		usb_log_error("Failed to read registry value.\n");
 		return rc;
 	}
-	
+
 	uint32_t *resp_value = (uint32_t *) ((void *) resp_buffer +
 	    sizeof(htc_frame_header_t) + sizeof(wmi_command_header_t));
-	
+
 	*res = uint32_t_be2host(*resp_value);
-	
+
 	return rc;
 }
@@ -88,18 +88,18 @@
 		host2uint32_t_be(val)
 	};
-	
+
 	void *resp_buffer =
 	    malloc(htc_device->ath_device->ctrl_response_length);
-	
+
 	errno_t rc = wmi_send_command(htc_device, WMI_REG_WRITE,
 	    (uint8_t *) &cmd_buffer, sizeof(cmd_buffer), resp_buffer);
-	
+
 	free(resp_buffer);
-	
+
 	if (rc != EOK) {
 		usb_log_error("Failed to write registry value.\n");
 		return rc;
 	}
-	
+
 	return rc;
 }
@@ -119,5 +119,5 @@
 {
 	uint32_t value;
-	
+
 	errno_t rc = wmi_reg_read(htc_device, reg_offset, &value);
 	if (rc != EOK) {
@@ -126,8 +126,8 @@
 		return rc;
 	}
-	
+
 	value &= ~clear_bit;
 	value |= set_bit;
-	
+
 	rc = wmi_reg_write(htc_device, reg_offset, value);
 	if (rc != EOK) {
@@ -136,5 +136,5 @@
 		return rc;
 	}
-	
+
 	return rc;
 }
@@ -186,5 +186,5 @@
 	void *resp_buffer =
 	    malloc(htc_device->ath_device->ctrl_response_length);
-	
+
 	/* Convert values to correct endianness. */
 	for (size_t i = 0; i < elements; i++) {
@@ -197,16 +197,16 @@
 		    host2uint32_t_be(buffer_element->value);
 	}
-	
+
 	errno_t rc = wmi_send_command(htc_device, WMI_REG_WRITE,
 	    (uint8_t *) buffer, buffer_size, resp_buffer);
-	
+
 	free(buffer);
 	free(resp_buffer);
-	
+
 	if (rc != EOK) {
 		usb_log_error("Failed to write multi registry value.\n");
 		return rc;
 	}
-	
+
 	return rc;
 }
@@ -230,8 +230,8 @@
 	size_t buffer_size = header_size + command_length;
 	void *buffer = malloc(buffer_size);
-	
+
 	if (command_buffer != NULL)
 		memcpy(buffer+header_size, command_buffer, command_length);
-	
+
 	/* Set up WMI header */
 	wmi_command_header_t *wmi_header = (wmi_command_header_t *)
@@ -240,5 +240,5 @@
 	wmi_header->sequence_number =
 	    host2uint16_t_be(++htc_device->sequence_number);
-	
+
 	/* Send message. */
 	errno_t rc = htc_send_control_message(htc_device, buffer, buffer_size,
@@ -249,7 +249,7 @@
 		return rc;
 	}
-	
+
 	free(buffer);
-	
+
 	bool clean_resp_buffer = false;
 	size_t response_buffer_size =
@@ -259,5 +259,5 @@
 		clean_resp_buffer = true;
 	}
-	
+
 	/* Read response. */
 	/* TODO: Ignoring WMI management RX messages ~ TX statuses etc. */
@@ -272,5 +272,5 @@
 			return rc;
 		}
-		
+
 		if (response_buffer_size < sizeof(htc_frame_header_t) +
 		    sizeof(wmi_command_header_t)) {
@@ -279,13 +279,13 @@
 			return EINVAL;
 		}
-		
+
 		wmi_command_header_t *wmi_hdr = (wmi_command_header_t *)
 		    ((void *) response_buffer + sizeof(htc_frame_header_t));
 		cmd_id = uint16_t_be2host(wmi_hdr->command_id);
 	} while(cmd_id & WMI_MGMT_CMD_MASK);
-	
+
 	if (clean_resp_buffer)
 		free(response_buffer);
-	
-	return rc;
-}
+
+	return rc;
+}
Index: uspace/drv/nic/ar9271/wmi.h
===================================================================
--- uspace/drv/nic/ar9271/wmi.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ar9271/wmi.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -76,5 +76,5 @@
 	WMI_ECHO = 0x0001,
 	WMI_ACCESS_MEMORY,
-	
+
 	/* Commands used for HOST -> DEVICE communication */
 	WMI_GET_FW_VERSION,
Index: uspace/drv/nic/e1k/e1k.c
===================================================================
--- uspace/drv/nic/e1k/e1k.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/e1k/e1k.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -122,54 +122,54 @@
 	/** Device configuration */
 	e1000_info_t info;
-	
+
 	/** Physical registers base address */
 	void *reg_base_phys;
 	/** Virtual registers base address */
 	void *reg_base_virt;
-	
+
 	/** Physical tx ring address */
 	uintptr_t tx_ring_phys;
 	/** Virtual tx ring address */
 	void *tx_ring_virt;
-	
+
 	/** Ring of TX frames, physical address */
 	uintptr_t *tx_frame_phys;
 	/** Ring of TX frames, virtual address */
 	void **tx_frame_virt;
-	
+
 	/** Physical rx ring address */
 	uintptr_t rx_ring_phys;
 	/** Virtual rx ring address */
 	void *rx_ring_virt;
-	
+
 	/** Ring of RX frames, physical address */
 	uintptr_t *rx_frame_phys;
 	/** Ring of RX frames, virtual address */
 	void **rx_frame_virt;
-	
+
 	/** VLAN tag */
 	uint16_t vlan_tag;
-	
+
 	/** Add VLAN tag to frame */
 	bool vlan_tag_add;
-	
+
 	/** Used unicast Receive Address count */
 	unsigned int unicast_ra_count;
-	
+
 	/** Used milticast Receive addrress count */
 	unsigned int multicast_ra_count;
-	
+
 	/** The irq assigned */
 	int irq;
-	
+
 	/** Lock for CTRL register */
 	fibril_mutex_t ctrl_lock;
-	
+
 	/** Lock for receiver */
 	fibril_mutex_t rx_lock;
-	
+
 	/** Lock for transmitter */
 	fibril_mutex_t tx_lock;
-	
+
 	/** Lock for EEPROM access */
 	fibril_mutex_t eeprom_lock;
@@ -292,7 +292,7 @@
 	assert(dev);
 	assert(info);
-	
+
 	memset(info, 0, sizeof(nic_device_info_t));
-	
+
 	info->vendor_id = 0x8086;
 	str_cpy(info->vendor_name, NIC_VENDOR_MAX_LENGTH,
@@ -300,9 +300,9 @@
 	str_cpy(info->model_name, NIC_MODEL_MAX_LENGTH,
 	    "Intel Pro");
-	
+
 	info->ethernet_support[ETH_10M] = ETH_10BASE_T;
 	info->ethernet_support[ETH_100M] = ETH_100BASE_TX;
 	info->ethernet_support[ETH_1000M] = ETH_1000BASE_T;
-	
+
 	return EOK;
 }
@@ -323,5 +323,5 @@
 	else
 		*state = NIC_CS_UNPLUGGED;
-	
+
 	return EOK;
 }
@@ -340,13 +340,13 @@
 	e1000_t *e1000 = DRIVER_DATA_FUN(fun);
 	uint32_t status = E1000_REG_READ(e1000, E1000_STATUS);
-	
+
 	if (status & STATUS_FD)
 		*duplex = NIC_CM_FULL_DUPLEX;
 	else
 		*duplex = NIC_CM_HALF_DUPLEX;
-	
+
 	uint32_t speed_bits =
 	    (status >> STATUS_SPEED_SHIFT) & STATUS_SPEED_ALL;
-	
+
 	if (speed_bits == STATUS_SPEED_10)
 		*speed = 10;
@@ -356,5 +356,5 @@
 	    (speed_bits == STATUS_SPEED_1000B))
 		*speed = 1000;
-	
+
 	*role = NIC_ROLE_UNKNOWN;
 	return EOK;
@@ -364,14 +364,14 @@
 {
 	fibril_mutex_lock(&e1000->ctrl_lock);
-	
+
 	uint32_t ctrl = E1000_REG_READ(e1000, E1000_CTRL);
-	
+
 	if (ctrl & CTRL_SLU) {
 		ctrl &= ~(CTRL_SLU);
 		E1000_REG_WRITE(e1000, E1000_CTRL, ctrl);
 		fibril_mutex_unlock(&e1000->ctrl_lock);
-		
+
 		async_usleep(10);
-		
+
 		fibril_mutex_lock(&e1000->ctrl_lock);
 		ctrl = E1000_REG_READ(e1000, E1000_CTRL);
@@ -379,5 +379,5 @@
 		E1000_REG_WRITE(e1000, E1000_CTRL, ctrl);
 	}
-	
+
 	fibril_mutex_unlock(&e1000->ctrl_lock);
 }
@@ -391,22 +391,22 @@
 	if ((speed != 10) && (speed != 100) && (speed != 1000))
 		return EINVAL;
-	
+
 	if ((duplex != NIC_CM_HALF_DUPLEX) && (duplex != NIC_CM_FULL_DUPLEX))
 		return EINVAL;
-	
+
 	e1000_t *e1000 = DRIVER_DATA_FUN(fun);
-	
+
 	fibril_mutex_lock(&e1000->ctrl_lock);
 	uint32_t ctrl = E1000_REG_READ(e1000, E1000_CTRL);
-	
+
 	ctrl |= CTRL_FRCSPD;
 	ctrl |= CTRL_FRCDPLX;
 	ctrl &= ~(CTRL_ASDE);
-	
+
 	if (duplex == NIC_CM_FULL_DUPLEX)
 		ctrl |= CTRL_FD;
 	else
 		ctrl &= ~(CTRL_FD);
-	
+
 	ctrl &= ~(CTRL_SPEED_MASK);
 	if (speed == 1000)
@@ -416,11 +416,11 @@
 	else
 		ctrl |= CTRL_SPEED_10 << CTRL_SPEED_SHIFT;
-	
+
 	E1000_REG_WRITE(e1000, E1000_CTRL, ctrl);
-	
+
 	fibril_mutex_unlock(&e1000->ctrl_lock);
-	
+
 	e1000_link_restart(e1000);
-	
+
 	return EOK;
 }
@@ -437,19 +437,19 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_FUN(fun);
-	
+
 	fibril_mutex_lock(&e1000->ctrl_lock);
-	
+
 	uint32_t ctrl = E1000_REG_READ(e1000, E1000_CTRL);
-	
+
 	ctrl &= ~(CTRL_FRCSPD);
 	ctrl &= ~(CTRL_FRCDPLX);
 	ctrl |= CTRL_ASDE;
-	
+
 	E1000_REG_WRITE(e1000, E1000_CTRL, ctrl);
-	
+
 	fibril_mutex_unlock(&e1000->ctrl_lock);
-	
+
 	e1000_link_restart(e1000);
-	
+
 	return EOK;
 }
@@ -465,19 +465,19 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_FUN(fun);
-	
+
 	fibril_mutex_lock(&e1000->ctrl_lock);
-	
+
 	uint32_t ctrl = E1000_REG_READ(e1000, E1000_CTRL);
-	
+
 	ctrl |= CTRL_FRCSPD;
 	ctrl |= CTRL_FRCDPLX;
 	ctrl &= ~(CTRL_ASDE);
-	
+
 	E1000_REG_WRITE(e1000, E1000_CTRL, ctrl);
-	
+
 	fibril_mutex_unlock(&e1000->ctrl_lock);
-	
+
 	e1000_link_restart(e1000);
-	
+
 	return EOK;
 }
@@ -504,10 +504,10 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_FUN(fun);
-	
+
 	*mode = 0;
 	uint32_t rctl = E1000_REG_READ(e1000, E1000_RCTL);
 	if (rctl & RCTL_SBP)
 		*mode = NIC_DEFECTIVE_BAD_CRC | NIC_DEFECTIVE_SHORT;
-	
+
 	return EOK;
 };
@@ -526,11 +526,11 @@
 	e1000_t *e1000 = DRIVER_DATA_FUN(fun);
 	errno_t rc = EOK;
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	uint32_t rctl = E1000_REG_READ(e1000, E1000_RCTL);
 	bool short_mode = (mode & NIC_DEFECTIVE_SHORT ? true : false);
 	bool bad_mode = (mode & NIC_DEFECTIVE_BAD_CRC ? true : false);
-	
+
 	if (short_mode && bad_mode)
 		rctl |= RCTL_SBP;
@@ -539,7 +539,7 @@
 	else
 		rc = ENOTSUP;
-	
+
 	E1000_REG_WRITE(e1000, E1000_RCTL, rctl);
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
 	return rc;
@@ -563,16 +563,16 @@
 	uint8_t *mac4 = (uint8_t *) address->address + 4;
 	uint8_t *mac5 = (uint8_t *) address->address + 5;
-	
+
 	uint32_t rah;
 	uint32_t ral;
-	
+
 	ral = ((*mac3) << 24) | ((*mac2) << 16) | ((*mac1) << 8) | (*mac0);
 	rah = ((*mac5) << 8) | ((*mac4));
-	
+
 	if (set_av_bit)
 		rah |= RAH_AV;
 	else
 		rah |= E1000_REG_READ(e1000, E1000_RAH_ARRAY(position)) & RAH_AV;
-	
+
 	E1000_REG_WRITE(e1000, E1000_RAH_ARRAY(position), rah);
 	E1000_REG_WRITE(e1000, E1000_RAL_ARRAY(position), ral);
@@ -605,5 +605,5 @@
 	    ra_num++)
 		e1000_disable_receive_address(e1000, ra_num);
-	
+
 	e1000->unicast_ra_count = 0;
 }
@@ -618,10 +618,10 @@
 	unsigned int first_multicast_ra_num =
 	    E1000_RECEIVE_ADDRESS - e1000->multicast_ra_count;
-	
+
 	for (unsigned int ra_num = E1000_RECEIVE_ADDRESS - 1;
 	    ra_num >= first_multicast_ra_num;
 	    ra_num--)
 		e1000_disable_receive_address(e1000, ra_num);
-	
+
 	e1000->multicast_ra_count = 0;
 }
@@ -662,7 +662,7 @@
 {
 	assert(addr_cnt <= get_free_unicast_address_count(e1000));
-	
+
 	nic_address_t *addr_iterator = (nic_address_t *) addr;
-	
+
 	/* ra_num = 0 is primary address */
 	for (unsigned int ra_num = 1;
@@ -685,7 +685,7 @@
 {
 	assert(addr_cnt <= get_free_multicast_address_count(e1000));
-	
+
 	nic_address_t *addr_iterator = (nic_address_t *) addr;
-	
+
 	unsigned int first_multicast_ra_num = E1000_RECEIVE_ADDRESS - addr_cnt;
 	for (unsigned int ra_num = E1000_RECEIVE_ADDRESS - 1;
@@ -832,7 +832,7 @@
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
 	errno_t rc = EOK;
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	switch (mode) {
 	case NIC_MULTICAST_BLOCKED:
@@ -866,5 +866,5 @@
 		break;
 	}
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
 	return rc;
@@ -886,7 +886,7 @@
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
 	errno_t rc = EOK;
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	switch (mode) {
 	case NIC_UNICAST_BLOCKED:
@@ -924,5 +924,5 @@
 		break;
 	}
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
 	return rc;
@@ -941,7 +941,7 @@
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
 	errno_t rc = EOK;
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	switch (mode) {
 	case NIC_BROADCAST_BLOCKED:
@@ -955,5 +955,5 @@
 		break;
 	}
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
 	return rc;
@@ -971,5 +971,5 @@
 	if (E1000_REG_READ(e1000, E1000_RCTL) & (RCTL_EN))
 		return true;
-	
+
 	return false;
 }
@@ -1009,7 +1009,7 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	if (vlan_mask) {
 		/*
@@ -1020,5 +1020,5 @@
 		if (rx_enabled)
 			e1000_disable_rx(e1000);
-		
+
 		for (unsigned int i = 0; i < NIC_VLAN_BITMAP_SIZE; i += 4) {
 			uint32_t bitmap_part =
@@ -1029,5 +1029,5 @@
 			E1000_REG_WRITE(e1000, E1000_VFTA_ARRAY(i / 4), bitmap_part);
 		}
-		
+
 		e1000_enable_vlan_filter(e1000);
 		if (rx_enabled)
@@ -1035,5 +1035,5 @@
 	} else
 		e1000_disable_vlan_filter(e1000);
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
 }
@@ -1054,5 +1054,5 @@
 	if (tag & VLANTAG_CFI)
 		return ENOTSUP;
-	
+
 	/*
 	 * CTRL.VME is neccessary for both strip and add
@@ -1061,12 +1061,12 @@
 	if (!strip && add)
 		return ENOTSUP;
-	
+
 	e1000_t *e1000 = DRIVER_DATA_FUN(fun);
-	
+
 	e1000->vlan_tag = tag;
 	e1000->vlan_tag_add = add;
-	
+
 	fibril_mutex_lock(&e1000->ctrl_lock);
-	
+
 	uint32_t ctrl = E1000_REG_READ(e1000, E1000_CTRL);
 	if (strip)
@@ -1074,7 +1074,7 @@
 	else
 		ctrl &= ~CTRL_VME;
-	
+
 	E1000_REG_WRITE(e1000, E1000_CTRL, ctrl);
-	
+
 	fibril_mutex_unlock(&e1000->ctrl_lock);
 	return EOK;
@@ -1092,8 +1092,8 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	e1000_rx_descriptor_t *rx_descriptor = (e1000_rx_descriptor_t *)
 	    (e1000->rx_ring_virt + offset * sizeof(e1000_rx_descriptor_t));
-	
+
 	rx_descriptor->phys_addr = PTR_TO_U64(e1000->rx_frame_phys[offset]);
 	rx_descriptor->length = 0;
@@ -1114,5 +1114,5 @@
 	e1000_rx_descriptor_t *rx_descriptor = (e1000_rx_descriptor_t *)
 	    (e1000->rx_ring_virt + offset * sizeof(e1000_rx_descriptor_t));
-	
+
 	rx_descriptor->length = 0;
 	rx_descriptor->checksum = 0;
@@ -1131,8 +1131,8 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	e1000_tx_descriptor_t *tx_descriptor = (e1000_tx_descriptor_t *)
 	    (e1000->tx_ring_virt + offset * sizeof(e1000_tx_descriptor_t));
-	
+
 	tx_descriptor->phys_addr = 0;
 	tx_descriptor->length = 0;
@@ -1168,16 +1168,16 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	uint32_t *tail_addr = E1000_REG_ADDR(e1000, E1000_RDT);
 	uint32_t next_tail = e1000_inc_tail(*tail_addr, E1000_RX_FRAME_COUNT);
-	
+
 	e1000_rx_descriptor_t *rx_descriptor = (e1000_rx_descriptor_t *)
 	    (e1000->rx_ring_virt + next_tail * sizeof(e1000_rx_descriptor_t));
-	
+
 	while (rx_descriptor->status & 0x01) {
 		uint32_t frame_size = rx_descriptor->length - E1000_CRC_SIZE;
-		
+
 		nic_frame_t *frame = nic_alloc_frame(nic, frame_size);
 		if (frame != NULL) {
@@ -1187,14 +1187,14 @@
 			ddf_msg(LVL_ERROR, "Memory allocation failed. Frame dropped.");
 		}
-		
+
 		e1000_fill_new_rx_descriptor(nic, next_tail);
-		
+
 		*tail_addr = e1000_inc_tail(*tail_addr, E1000_RX_FRAME_COUNT);
 		next_tail = e1000_inc_tail(*tail_addr, E1000_RX_FRAME_COUNT);
-		
+
 		rx_descriptor = (e1000_rx_descriptor_t *)
 		    (e1000->rx_ring_virt + next_tail * sizeof(e1000_rx_descriptor_t));
 	}
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
 }
@@ -1247,5 +1247,5 @@
 	nic_t *nic = NIC_DATA_DEV(dev);
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	e1000_interrupt_handler_impl(nic, icr);
 	e1000_enable_interrupts(e1000);
@@ -1267,15 +1267,15 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	/* Lock the mutex in whole driver while working with global structure */
 	fibril_mutex_lock(&irq_reg_mutex);
-	
+
 	e1000_irq_code.ranges[0].base = (uintptr_t) e1000->reg_base_phys;
 	e1000_irq_code.cmds[0].addr = e1000->reg_base_phys + E1000_ICR;
 	e1000_irq_code.cmds[2].addr = e1000->reg_base_phys + E1000_IMC;
-	
+
 	errno_t rc = register_interrupt_handler(nic_get_ddf_dev(nic), e1000->irq,
 	    e1000_interrupt_handler, &e1000_irq_code, handle);
-	
+
 	fibril_mutex_unlock(&irq_reg_mutex);
 	return rc;
@@ -1290,8 +1290,8 @@
 {
 	assert(nic);
-	
+
 	e1000_t *e1000 = nic_get_specific(nic);
 	assert(e1000);
-	
+
 	uint32_t icr = E1000_REG_READ(e1000, E1000_ICR);
 	e1000_interrupt_handler_impl(nic, icr);
@@ -1323,8 +1323,8 @@
 {
 	assert(nic);
-	
+
 	e1000_t *e1000 = nic_get_specific(nic);
 	assert(e1000);
-	
+
 	switch (mode) {
 	case NIC_POLL_IMMEDIATE:
@@ -1344,5 +1344,5 @@
 		return ENOTSUP;
 	}
-	
+
 	return EOK;
 }
@@ -1357,8 +1357,8 @@
 	E1000_REG_WRITE(e1000, E1000_RDLEN, E1000_RX_FRAME_COUNT * 16);
 	E1000_REG_WRITE(e1000, E1000_RDH, 0);
-	
+
 	/* It is not posible to let HW use all descriptors */
 	E1000_REG_WRITE(e1000, E1000_RDT, E1000_RX_FRAME_COUNT - 1);
-	
+
 	/* Set Broadcast Enable Bit */
 	E1000_REG_WRITE(e1000, E1000_RCTL, RCTL_BAM);
@@ -1377,5 +1377,5 @@
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	e1000->rx_ring_virt = AS_AREA_ANY;
 	errno_t rc = dmamem_map_anonymous(
@@ -1385,10 +1385,10 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	E1000_REG_WRITE(e1000, E1000_RDBAH,
 	    (uint32_t) (PTR_TO_U64(e1000->rx_ring_phys) >> 32));
 	E1000_REG_WRITE(e1000, E1000_RDBAL,
 	    (uint32_t) PTR_TO_U64(e1000->rx_ring_phys));
-	
+
 	e1000->rx_frame_phys = (uintptr_t *)
 	    calloc(E1000_RX_FRAME_COUNT, sizeof(uintptr_t));
@@ -1399,9 +1399,9 @@
 		goto error;
 	}
-	
+
 	for (size_t i = 0; i < E1000_RX_FRAME_COUNT; i++) {
 		uintptr_t frame_phys;
 		void *frame_virt = AS_AREA_ANY;
-		
+
 		rc = dmamem_map_anonymous(E1000_MAX_SEND_FRAME_SIZE,
 		    DMAMEM_4GiB, AS_AREA_READ | AS_AREA_WRITE, 0,
@@ -1409,18 +1409,18 @@
 		if (rc != EOK)
 			goto error;
-		
+
 		e1000->rx_frame_phys[i] = frame_phys;
 		e1000->rx_frame_virt[i] = frame_virt;
 	}
-	
+
 	/* Write descriptor */
 	for (size_t i = 0; i < E1000_RX_FRAME_COUNT; i++)
 		e1000_fill_new_rx_descriptor(nic, i);
-	
+
 	e1000_initialize_rx_registers(e1000);
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
 	return EOK;
-	
+
 error:
 	for (size_t i = 0; i < E1000_RX_FRAME_COUNT; i++) {
@@ -1431,15 +1431,15 @@
 		}
 	}
-	
+
 	if (e1000->rx_frame_phys != NULL) {
 		free(e1000->rx_frame_phys);
 		e1000->rx_frame_phys = NULL;
 	}
-	
+
 	if (e1000->rx_frame_virt != NULL) {
 		free(e1000->rx_frame_virt);
 		e1000->rx_frame_virt = NULL;
 	}
-	
+
 	return rc;
 }
@@ -1453,5 +1453,5 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	/* Write descriptor */
 	for (unsigned int offset = 0; offset < E1000_RX_FRAME_COUNT; offset++) {
@@ -1460,10 +1460,10 @@
 		e1000->rx_frame_virt[offset] = NULL;
 	}
-	
+
 	free(e1000->rx_frame_virt);
-	
+
 	e1000->rx_frame_phys = NULL;
 	e1000->rx_frame_virt = NULL;
-	
+
 	dmamem_unmap_anonymous(e1000->rx_ring_virt);
 }
@@ -1550,10 +1550,10 @@
 	E1000_REG_WRITE(e1000, E1000_TDH, 0);
 	E1000_REG_WRITE(e1000, E1000_TDT, 0);
-	
+
 	E1000_REG_WRITE(e1000, E1000_TIPG,
 	    10 << TIPG_IPGT_SHIFT |
 	    8 << TIPG_IPGR1_SHIFT |
 	    6 << TIPG_IPGR2_SHIFT);
-	
+
 	E1000_REG_WRITE(e1000, E1000_TCTL,
 	    0x0F << TCTL_CT_SHIFT /* Collision Threshold */ |
@@ -1570,13 +1570,13 @@
 {
 	size_t i;
-	
+
 	fibril_mutex_lock(&e1000->tx_lock);
-	
+
 	e1000->tx_ring_phys = 0;
 	e1000->tx_ring_virt = AS_AREA_ANY;
-	
+
 	e1000->tx_frame_phys = NULL;
 	e1000->tx_frame_virt = NULL;
-	
+
 	errno_t rc = dmamem_map_anonymous(
 	    E1000_TX_FRAME_COUNT * sizeof(e1000_tx_descriptor_t),
@@ -1585,8 +1585,8 @@
 	if (rc != EOK)
 		goto error;
-	
+
 	memset(e1000->tx_ring_virt, 0,
 	    E1000_TX_FRAME_COUNT * sizeof(e1000_tx_descriptor_t));
-	
+
 	e1000->tx_frame_phys = (uintptr_t *)
 	    calloc(E1000_TX_FRAME_COUNT, sizeof(uintptr_t));
@@ -1598,5 +1598,5 @@
 		goto error;
 	}
-	
+
 	for (i = 0; i < E1000_TX_FRAME_COUNT; i++) {
 		e1000->tx_frame_virt[i] = AS_AREA_ANY;
@@ -1607,15 +1607,15 @@
 			goto error;
 	}
-	
+
 	E1000_REG_WRITE(e1000, E1000_TDBAH,
 	    (uint32_t) (PTR_TO_U64(e1000->tx_ring_phys) >> 32));
 	E1000_REG_WRITE(e1000, E1000_TDBAL,
 	    (uint32_t) PTR_TO_U64(e1000->tx_ring_phys));
-	
+
 	e1000_initialize_tx_registers(e1000);
-	
+
 	fibril_mutex_unlock(&e1000->tx_lock);
 	return EOK;
-	
+
 error:
 	if (e1000->tx_ring_virt != NULL) {
@@ -1623,5 +1623,5 @@
 		e1000->tx_ring_virt = NULL;
 	}
-	
+
 	if ((e1000->tx_frame_phys != NULL) && (e1000->tx_frame_virt != NULL)) {
 		for (i = 0; i < E1000_TX_FRAME_COUNT; i++) {
@@ -1633,15 +1633,15 @@
 		}
 	}
-	
+
 	if (e1000->tx_frame_phys != NULL) {
 		free(e1000->tx_frame_phys);
 		e1000->tx_frame_phys = NULL;
 	}
-	
+
 	if (e1000->tx_frame_virt != NULL) {
 		free(e1000->tx_frame_virt);
 		e1000->tx_frame_virt = NULL;
 	}
-	
+
 	return rc;
 }
@@ -1655,5 +1655,5 @@
 {
 	size_t i;
-	
+
 	for (i = 0; i < E1000_TX_FRAME_COUNT; i++) {
 		dmamem_unmap_anonymous(e1000->tx_frame_virt[i]);
@@ -1661,15 +1661,15 @@
 		e1000->tx_frame_virt[i] = NULL;
 	}
-	
+
 	if (e1000->tx_frame_phys != NULL) {
 		free(e1000->tx_frame_phys);
 		e1000->tx_frame_phys = NULL;
 	}
-	
+
 	if (e1000->tx_frame_virt != NULL) {
 		free(e1000->tx_frame_virt);
 		e1000->tx_frame_virt = NULL;
 	}
-	
+
 	dmamem_unmap_anonymous(e1000->tx_ring_virt);
 }
@@ -1721,14 +1721,14 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	E1000_REG_WRITE(e1000, E1000_CTRL, CTRL_RST);
-	
+
 	/* Wait for the reset */
 	async_usleep(20);
-	
+
 	/* check if RST_BIT cleared */
 	if (E1000_REG_READ(e1000, E1000_CTRL) & (CTRL_RST))
 		return EINVAL;
-	
+
 	e1000_initialize_registers(e1000);
 	e1000_initialize_rx_registers(e1000);
@@ -1737,5 +1737,5 @@
 	e1000_initialize_filters(e1000);
 	e1000_initialize_vlan(e1000);
-	
+
 	return EOK;
 }
@@ -1752,13 +1752,13 @@
 {
 	assert(nic);
-	
+
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
 	fibril_mutex_lock(&e1000->tx_lock);
 	fibril_mutex_lock(&e1000->ctrl_lock);
-	
+
 	e1000_enable_interrupts(e1000);
-	
+
 	errno_t rc = hw_res_enable_interrupt(e1000->parent_sess, e1000->irq);
 	if (rc != EOK) {
@@ -1769,19 +1769,19 @@
 		return rc;
 	}
-	
+
 	e1000_clear_rx_ring(e1000);
 	e1000_enable_rx(e1000);
-	
+
 	e1000_clear_tx_ring(nic);
 	e1000_enable_tx(e1000);
-	
+
 	uint32_t ctrl = E1000_REG_READ(e1000, E1000_CTRL);
 	ctrl |= CTRL_SLU;
 	E1000_REG_WRITE(e1000, E1000_CTRL, ctrl);
-	
+
 	fibril_mutex_unlock(&e1000->ctrl_lock);
 	fibril_mutex_unlock(&e1000->tx_lock);
 	fibril_mutex_unlock(&e1000->rx_lock);
-	
+
 	return EOK;
 }
@@ -1798,15 +1798,15 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	uint32_t ctrl = E1000_REG_READ(e1000, E1000_CTRL);
 	ctrl &= ~CTRL_SLU;
 	E1000_REG_WRITE(e1000, E1000_CTRL, ctrl);
-	
+
 	e1000_disable_tx(e1000);
 	e1000_disable_rx(e1000);
-	
+
 	hw_res_disable_interrupt(e1000->parent_sess, e1000->irq);
 	e1000_disable_interrupts(e1000);
-	
+
 	/*
 	 * Wait for the for the end of all data
@@ -1814,5 +1814,5 @@
 	 */
 	async_usleep(100);
-	
+
 	return EOK;
 }
@@ -1829,15 +1829,15 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
 	fibril_mutex_lock(&e1000->tx_lock);
 	fibril_mutex_lock(&e1000->ctrl_lock);
-	
+
 	errno_t rc = e1000_on_down_unlocked(nic);
-	
+
 	fibril_mutex_unlock(&e1000->ctrl_lock);
 	fibril_mutex_unlock(&e1000->tx_lock);
 	fibril_mutex_unlock(&e1000->rx_lock);
-	
+
 	return rc;
 }
@@ -1854,17 +1854,17 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
 	fibril_mutex_lock(&e1000->tx_lock);
 	fibril_mutex_lock(&e1000->ctrl_lock);
-	
+
 	errno_t rc = e1000_on_down_unlocked(nic);
 	if (rc == EOK)
 		rc = e1000_reset(nic);
-	
+
 	fibril_mutex_unlock(&e1000->ctrl_lock);
 	fibril_mutex_unlock(&e1000->tx_lock);
 	fibril_mutex_unlock(&e1000->rx_lock);
-	
+
 	return rc;
 }
@@ -1880,5 +1880,5 @@
 	if (!nic)
 		return NULL;
-	
+
 	e1000_t *e1000 = malloc(sizeof(e1000_t));
 	if (!e1000) {
@@ -1886,8 +1886,8 @@
 		return NULL;
 	}
-	
+
 	memset(e1000, 0, sizeof(e1000_t));
 	e1000->dev = dev;
-	
+
 	nic_set_specific(nic, e1000);
 	nic_set_send_frame_handler(nic, e1000_send_frame);
@@ -1898,10 +1898,10 @@
 	    e1000_on_broadcast_mode_change, NULL, e1000_on_vlan_mask_change);
 	nic_set_poll_handlers(nic, e1000_poll_mode_change, e1000_poll);
-	
+
 	fibril_mutex_initialize(&e1000->ctrl_lock);
 	fibril_mutex_initialize(&e1000->rx_lock);
 	fibril_mutex_initialize(&e1000->tx_lock);
 	fibril_mutex_initialize(&e1000->eeprom_lock);
-	
+
 	return e1000;
 }
@@ -1915,5 +1915,5 @@
 {
 	assert(dev);
-	
+
 	if (ddf_dev_data_get(dev) != NULL)
 		nic_unbind_and_destroy(dev);
@@ -1928,5 +1928,5 @@
 {
 	assert(dev);
-	
+
 	e1000_delete_dev_data(dev);
 }
@@ -1947,12 +1947,12 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_DEV(dev);
-	
+
 	if (hw_resources->irqs.count != 1)
 		return EINVAL;
-	
+
 	e1000->irq = hw_resources->irqs.irqs[0];
 	e1000->reg_base_phys =
 	    MEMADDR_TO_PTR(RNGABS(hw_resources->mem_ranges.ranges[0]));
-	
+
 	return EOK;
 }
@@ -1972,17 +1972,17 @@
 	assert(dev != NULL);
 	assert(NIC_DATA_DEV(dev) != NULL);
-	
+
 	hw_res_list_parsed_t hw_res_parsed;
 	hw_res_list_parsed_init(&hw_res_parsed);
-	
+
 	/* Get hw resources form parent driver */
 	errno_t rc = nic_get_resources(NIC_DATA_DEV(dev), &hw_res_parsed);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Fill resources information to the device */
 	rc = e1000_fill_resource_info(dev, &hw_res_parsed);
 	hw_res_list_parsed_clean(&hw_res_parsed);
-	
+
 	return rc;
 }
@@ -2004,5 +2004,5 @@
 		return ENOMEM;
 	}
-	
+
 	e1000->parent_sess = ddf_dev_parent_sess_get(dev);
 	if (e1000->parent_sess == NULL) {
@@ -2010,5 +2010,5 @@
 		return EIO;
 	}
-	
+
 	/* Obtain and fill hardware resources info */
 	errno_t rc = e1000_get_resource_info(dev);
@@ -2018,5 +2018,5 @@
 		return rc;
 	}
-	
+
 	uint16_t device_id;
 	rc = pci_config_space_read_16(ddf_dev_parent_sess_get(dev), PCI_DEVICE_ID,
@@ -2027,5 +2027,5 @@
 		return rc;
 	}
-	
+
 	e1000_board_t board;
 	switch (device_id) {
@@ -2077,5 +2077,5 @@
 		return ENOTSUP;
 	}
-	
+
 	switch (board) {
 	case E1000_82540:
@@ -2098,5 +2098,5 @@
 		break;
 	}
-	
+
 	return EOK;
 }
@@ -2113,10 +2113,10 @@
 {
 	e1000_t *e1000 = DRIVER_DATA_DEV(dev);
-	
+
 	errno_t rc = pio_enable(e1000->reg_base_phys, 8 * PAGE_SIZE,
 	    &e1000->reg_base_virt);
 	if (rc != EOK)
 		return EADDRNOTAVAIL;
-	
+
 	return EOK;
 }
@@ -2130,33 +2130,33 @@
 {
 	ddf_fun_t *fun;
-	
+
 	/* Initialize device structure for E1000 */
 	errno_t rc = e1000_device_initialize(dev);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Device initialization */
 	nic_t *nic = ddf_dev_data_get(dev);
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	/* Map registers */
 	rc = e1000_pio_enable(dev);
 	if (rc != EOK)
 		goto err_destroy;
-	
+
 	e1000_initialize_registers(e1000);
 	rc = e1000_initialize_tx_structure(e1000);
 	if (rc != EOK)
 		goto err_pio;
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	e1000_fill_mac_from_eeprom(e1000);
 	e1000_initialize_filters(e1000);
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
-	
+
 	e1000_initialize_vlan(e1000);
-	
+
 	fun = ddf_fun_create(nic_get_ddf_dev(nic), fun_exposed, "port0");
 	if (fun == NULL)
@@ -2164,5 +2164,5 @@
 	nic_set_ddf_fun(nic, fun);
 	ddf_fun_set_ops(fun, &e1000_dev_ops);
-	
+
 	int irq_cap;
 	rc = e1000_register_int_handler(nic, &irq_cap);
@@ -2170,9 +2170,9 @@
 		goto err_fun_create;
 	}
-	
+
 	rc = e1000_initialize_rx_structure(nic);
 	if (rc != EOK)
 		goto err_irq;
-	
+
 	nic_address_t e1000_address;
 	e1000_get_address(e1000, &e1000_address);
@@ -2180,5 +2180,5 @@
 	if (rc != EOK)
 		goto err_rx_structure;
-	
+
 	struct timeval period;
 	period.tv_sec = 0;
@@ -2187,15 +2187,15 @@
 	if (rc != EOK)
 		goto err_rx_structure;
-	
+
 	rc = ddf_fun_bind(fun);
 	if (rc != EOK)
 		goto err_fun_bind;
-	
+
 	rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
 	if (rc != EOK)
 		goto err_add_to_cat;
-	
+
 	return EOK;
-	
+
 err_add_to_cat:
 	ddf_fun_unbind(fun);
@@ -2230,5 +2230,5 @@
 {
 	fibril_mutex_lock(&e1000->eeprom_lock);
-	
+
 	/* Write address and START bit to EERD register */
 	uint32_t write_data = e1000->info.eerd_start |
@@ -2236,5 +2236,5 @@
 	    e1000->info.eerd_address_offset);
 	E1000_REG_WRITE(e1000, E1000_EERD, write_data);
-	
+
 	uint32_t eerd = E1000_REG_READ(e1000, E1000_EERD);
 	while ((eerd & e1000->info.eerd_done) == 0) {
@@ -2242,7 +2242,7 @@
 		eerd = E1000_REG_READ(e1000, E1000_EERD);
 	}
-	
+
 	fibril_mutex_unlock(&e1000->eeprom_lock);
-	
+
 	return (uint16_t) (eerd >> e1000->info.eerd_data_offset);
 }
@@ -2261,5 +2261,5 @@
 {
 	fibril_mutex_lock(&e1000->rx_lock);
-	
+
 	uint8_t *mac0_dest = (uint8_t *) address->address;
 	uint8_t *mac1_dest = (uint8_t *) address->address + 1;
@@ -2268,8 +2268,8 @@
 	uint8_t *mac4_dest = (uint8_t *) address->address + 4;
 	uint8_t *mac5_dest = (uint8_t *) address->address + 5;
-	
+
 	uint32_t rah = E1000_REG_READ(e1000, E1000_RAH_ARRAY(0));
 	uint32_t ral = E1000_REG_READ(e1000, E1000_RAL_ARRAY(0));
-	
+
 	*mac0_dest = (uint8_t) ral;
 	*mac1_dest = (uint8_t) (ral >> 8);
@@ -2278,5 +2278,5 @@
 	*mac4_dest = (uint8_t) rah;
 	*mac5_dest = (uint8_t) (rah >> 8);
-	
+
 	fibril_mutex_unlock(&e1000->rx_lock);
 	return EOK;
@@ -2295,15 +2295,15 @@
 	nic_t *nic = NIC_DATA_FUN(fun);
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
-	
+
 	fibril_mutex_lock(&e1000->rx_lock);
 	fibril_mutex_lock(&e1000->tx_lock);
-	
+
 	errno_t rc = nic_report_address(nic, addr);
 	if (rc == EOK)
 		e1000_write_receive_address(e1000, 0, addr, false);
-	
+
 	fibril_mutex_unlock(&e1000->tx_lock);
 	fibril_mutex_unlock(&e1000->rx_lock);
-	
+
 	return rc;
 }
@@ -2315,5 +2315,5 @@
 	uint16_t *mac2_dest = (uint16_t *) (address->address + 2);
 	uint16_t *mac4_dest = (uint16_t *) (address->address + 4);
-	
+
 	*mac0_dest = e1000_eeprom_read(e1000, 0);
 	*mac2_dest = e1000_eeprom_read(e1000, 1);
@@ -2334,22 +2334,22 @@
 {
 	assert(nic);
-	
+
 	e1000_t *e1000 = DRIVER_DATA_NIC(nic);
 	fibril_mutex_lock(&e1000->tx_lock);
-	
+
 	uint32_t tdt = E1000_REG_READ(e1000, E1000_TDT);
 	e1000_tx_descriptor_t *tx_descriptor_addr = (e1000_tx_descriptor_t *)
 	    (e1000->tx_ring_virt + tdt * sizeof(e1000_tx_descriptor_t));
-	
+
 	bool descriptor_available = false;
-	
+
 	/* Descriptor never used */
 	if (tx_descriptor_addr->length == 0)
 		descriptor_available = true;
-	
+
 	/* Descriptor done */
 	if (tx_descriptor_addr->status & TXDESCRIPTOR_STATUS_DD)
 		descriptor_available = true;
-	
+
 	if (!descriptor_available) {
 		/* Frame lost */
@@ -2357,10 +2357,10 @@
 		return;
 	}
-	
+
 	memcpy(e1000->tx_frame_virt[tdt], data, size);
-	
+
 	tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]);
 	tx_descriptor_addr->length = size;
-	
+
 	/*
 	 * Report status to STATUS.DD (descriptor done),
@@ -2370,5 +2370,5 @@
 	    TXDESCRIPTOR_COMMAND_IFCS |
 	    TXDESCRIPTOR_COMMAND_EOP;
-	
+
 	tx_descriptor_addr->checksum_offset = 0;
 	tx_descriptor_addr->status = 0;
@@ -2378,13 +2378,13 @@
 	} else
 		tx_descriptor_addr->special = 0;
-	
+
 	tx_descriptor_addr->checksum_start_field = 0;
-	
+
 	tdt++;
 	if (tdt == E1000_TX_FRAME_COUNT)
 		tdt = 0;
-	
+
 	E1000_REG_WRITE(e1000, E1000_TDT, tdt);
-	
+
 	fibril_mutex_unlock(&e1000->tx_lock);
 }
@@ -2393,11 +2393,11 @@
 {
 	printf("%s: HelenOS E1000 network adapter driver\n", NAME);
-	
+
 	if (nic_driver_init(NAME) != EOK)
 		return 1;
-	
+
 	nic_driver_implement(&e1000_driver_ops, &e1000_dev_ops,
 	    &e1000_nic_iface);
-	
+
 	ddf_log_init(NAME);
 	return ddf_driver_main(&e1000_driver);
Index: uspace/drv/nic/e1k/e1k.h
===================================================================
--- uspace/drv/nic/e1k/e1k.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/e1k/e1k.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -97,5 +97,5 @@
 	uint32_t eerd_start;
 	uint32_t eerd_done;
-	
+
 	uint32_t eerd_address_offset;
 	uint32_t eerd_data_offset;
@@ -159,5 +159,5 @@
 	CTRL_SLU = (1 << 6),   /**< Set Link Up */
 	CTRL_ILOS = (1 << 7),  /**< Invert Loss-of-Signal */
-	
+
 	/** Speed selection shift */
 	CTRL_SPEED_SHIFT = 8,
@@ -174,5 +174,5 @@
 	/** Speed selection 10 Mb/s value */
 	CTRL_SPEED_1000 = 2,
-	
+
 	CTRL_FRCSPD = (1 << 11),   /**< Force Speed */
 	CTRL_FRCDPLX = (1 << 12),  /**< Force Duplex */
@@ -186,5 +186,5 @@
 	STATUS_FD = (1 << 0),  /**< Link Full Duplex configuration Indication */
 	STATUS_LU = (1 << 1),  /**< Link Up Indication */
-	
+
 	/** Link speed setting shift */
 	STATUS_SPEED_SHIFT = 6,
Index: uspace/drv/nic/ne2k/dp8390.c
===================================================================
--- uspace/drv/nic/ne2k/dp8390.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ne2k/dp8390.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -74,11 +74,11 @@
 	/** Copy of RSR */
 	uint8_t status;
-	
+
 	/** Pointer to next frame */
 	uint8_t next;
-	
+
 	/** Receive Byte Count Low */
 	uint8_t rbcl;
-	
+
 	/** Receive Byte Count High */
 	uint8_t rbch;
@@ -95,5 +95,5 @@
 {
 	size_t i;
-	
+
 	for (i = 0; (i << 1) < size; i++)
 		*((uint16_t *) buf + i) = pio_read_16((ioport16_t *) (port));
@@ -110,5 +110,5 @@
 {
 	size_t i;
-	
+
 	for (i = 0; (i << 1) < size; i++)
 		pio_write_16((ioport16_t *) port, *((uint16_t *) buf + i));
@@ -118,5 +118,5 @@
 {
 	size_t esize = size & ~1;
-	
+
 	pio_write_8(ne2k->port + DP_RBCR0, esize & 0xff);
 	pio_write_8(ne2k->port + DP_RBCR1, (esize >> 8) & 0xff);
@@ -124,5 +124,5 @@
 	pio_write_8(ne2k->port + DP_RSAR1, (addr >> 8) & 0xff);
 	pio_write_8(ne2k->port + DP_CR, CR_DM_RR | CR_PS_P0 | CR_STA);
-	
+
 	if (esize != 0) {
 		pio_read_buf_16(ne2k->data_port, buf, esize);
@@ -130,8 +130,8 @@
 		buf += esize;
 	}
-	
+
 	if (size) {
 		assert(size == 1);
-		
+
 		uint16_t word = pio_read_16(ne2k->data_port);
 		memcpy(buf, &word, 1);
@@ -143,5 +143,5 @@
 	size_t esize_ru = (size + 1) & ~1;
 	size_t esize = size & ~1;
-	
+
 	pio_write_8(ne2k->port + DP_RBCR0, esize_ru & 0xff);
 	pio_write_8(ne2k->port + DP_RBCR1, (esize_ru >> 8) & 0xff);
@@ -149,5 +149,5 @@
 	pio_write_8(ne2k->port + DP_RSAR1, (addr >> 8) & 0xff);
 	pio_write_8(ne2k->port + DP_CR, CR_DM_RW | CR_PS_P0 | CR_STA);
-	
+
 	if (esize != 0) {
 		pio_write_buf_16(ne2k->data_port, buf, esize);
@@ -155,10 +155,10 @@
 		buf += esize;
 	}
-	
+
 	if (size) {
 		assert(size == 1);
-		
+
 		uint16_t word = 0;
-		
+
 		memcpy(&word, buf, 1);
 		pio_write_16(ne2k->data_port, word);
@@ -169,5 +169,5 @@
 {
 	unsigned int i;
-	
+
 	/* Reset the ethernet card */
 	uint8_t val = pio_read_8(ne2k->port + NE2K_RESET);
@@ -175,5 +175,5 @@
 	pio_write_8(ne2k->port + NE2K_RESET, val);
 	async_usleep(2000);
-	
+
 	/* Reset the DP8390 */
 	pio_write_8(ne2k->port + DP_CR, CR_STP | CR_DM_ABORT);
@@ -197,17 +197,17 @@
 {
 	unsigned int i;
-	
+
 	ne2k_init(ne2k);
-	
+
 	/* Check if the DP8390 is really there */
 	uint8_t val = pio_read_8(ne2k->port + DP_CR);
 	if ((val & (CR_STP | CR_TXP | CR_DM_ABORT)) != (CR_STP | CR_DM_ABORT))
 		return EXDEV;
-	
+
 	/* Disable the receiver and init TCR and DCR */
 	pio_write_8(ne2k->port + DP_RCR, RCR_MON);
 	pio_write_8(ne2k->port + DP_TCR, TCR_NORMAL);
 	pio_write_8(ne2k->port + DP_DCR, DCR_WORDWIDE | DCR_8BYTES | DCR_BMS);
-	
+
 	/* Setup a transfer to get the MAC address */
 	pio_write_8(ne2k->port + DP_RBCR0, ETH_ADDR << 1);
@@ -216,8 +216,8 @@
 	pio_write_8(ne2k->port + DP_RSAR1, 0);
 	pio_write_8(ne2k->port + DP_CR, CR_DM_RR | CR_PS_P0 | CR_STA);
-	
+
 	for (i = 0; i < ETH_ADDR; i++)
 		ne2k->mac.address[i] = pio_read_16(ne2k->data_port);
-	
+
 	return EOK;
 }
@@ -226,7 +226,7 @@
 {
 	memcpy(&ne2k->mac, address, sizeof(nic_address_t));
-	
+
 	pio_write_8(ne2k->port + DP_CR, CR_PS_P0 | CR_DM_ABORT | CR_STP);
-	
+
 	pio_write_8(ne2k->port + DP_RBCR0, ETH_ADDR << 1);
 	pio_write_8(ne2k->port + DP_RBCR1, 0);
@@ -254,7 +254,7 @@
 	if (!ne2k->probed)
 		return EXDEV;
-	
+
 	ne2k_init(ne2k);
-	
+
 	/*
 	 * Setup send queue. Use the first
@@ -266,5 +266,5 @@
 	fibril_mutex_initialize(&ne2k->sq_mutex);
 	fibril_condvar_initialize(&ne2k->sq_cv);
-	
+
 	/*
 	 * Setup receive ring buffer. Use all the rest
@@ -275,5 +275,5 @@
 	ne2k->start_page = ne2k->sq.page + SQ_PAGES;
 	ne2k->stop_page = ne2k->sq.page + NE2K_SIZE / DP_PAGE;
-	
+
 	/*
 	 * Initialization of the DP8390 following the mandatory procedure
@@ -281,36 +281,36 @@
 	 * Controller", National Semiconductor, July 1995, Page 29).
 	 */
-	
+
 	/* Step 1: */
 	pio_write_8(ne2k->port + DP_CR, CR_PS_P0 | CR_STP | CR_DM_ABORT);
-	
+
 	/* Step 2: */
 	pio_write_8(ne2k->port + DP_DCR, DCR_WORDWIDE | DCR_8BYTES | DCR_BMS);
-	
+
 	/* Step 3: */
 	pio_write_8(ne2k->port + DP_RBCR0, 0);
 	pio_write_8(ne2k->port + DP_RBCR1, 0);
-	
+
 	/* Step 4: */
 	pio_write_8(ne2k->port + DP_RCR, ne2k->receive_configuration);
-	
+
 	/* Step 5: */
 	pio_write_8(ne2k->port + DP_TCR, TCR_INTERNAL);
-	
+
 	/* Step 6: */
 	pio_write_8(ne2k->port + DP_BNRY, ne2k->start_page);
 	pio_write_8(ne2k->port + DP_PSTART, ne2k->start_page);
 	pio_write_8(ne2k->port + DP_PSTOP, ne2k->stop_page);
-	
+
 	/* Step 7: */
 	pio_write_8(ne2k->port + DP_ISR, 0xff);
-	
+
 	/* Step 8: */
 	pio_write_8(ne2k->port + DP_IMR,
 	    IMR_PRXE | IMR_PTXE | IMR_RXEE | IMR_TXEE | IMR_OVWE | IMR_CNTE);
-	
+
 	/* Step 9: */
 	pio_write_8(ne2k->port + DP_CR, CR_PS_P1 | CR_DM_ABORT | CR_STP);
-	
+
 	pio_write_8(ne2k->port + DP_PAR0, ne2k->mac.address[0]);
 	pio_write_8(ne2k->port + DP_PAR1, ne2k->mac.address[1]);
@@ -319,5 +319,5 @@
 	pio_write_8(ne2k->port + DP_PAR4, ne2k->mac.address[4]);
 	pio_write_8(ne2k->port + DP_PAR5, ne2k->mac.address[5]);
-	
+
 	pio_write_8(ne2k->port + DP_MAR0, 0);
 	pio_write_8(ne2k->port + DP_MAR1, 0);
@@ -328,18 +328,18 @@
 	pio_write_8(ne2k->port + DP_MAR6, 0);
 	pio_write_8(ne2k->port + DP_MAR7, 0);
-	
+
 	pio_write_8(ne2k->port + DP_CURR, ne2k->start_page + 1);
-	
+
 	/* Step 10: */
 	pio_write_8(ne2k->port + DP_CR, CR_PS_P0 | CR_DM_ABORT | CR_STA);
-	
+
 	/* Step 11: */
 	pio_write_8(ne2k->port + DP_TCR, TCR_NORMAL);
-	
+
 	/* Reset counters by reading */
 	pio_read_8(ne2k->port + DP_CNTR0);
 	pio_read_8(ne2k->port + DP_CNTR1);
 	pio_read_8(ne2k->port + DP_CNTR2);
-	
+
 	/* Finish the initialization */
 	ne2k->up = true;
@@ -415,9 +415,9 @@
 
 	fibril_mutex_lock(&ne2k->sq_mutex);
-	
+
 	while (ne2k->sq.dirty) {
 		fibril_condvar_wait(&ne2k->sq_cv, &ne2k->sq_mutex);
 	}
-	
+
 	if ((size < ETH_MIN_PACK_SIZE) || (size > ETH_MAX_PACK_SIZE_TAGGED)) {
 		fibril_mutex_unlock(&ne2k->sq_mutex);
@@ -446,8 +446,8 @@
 	if (frame == NULL)
 		return NULL;
-	
+
 	memset(frame->data, 0, length);
 	uint8_t last = page + length / DP_PAGE;
-	
+
 	if (last >= ne2k->stop_page) {
 		size_t left = (ne2k->stop_page - page) * DP_PAGE
@@ -481,8 +481,8 @@
 		//TODO: isn't some locking necessary here?
 		uint8_t boundary = pio_read_8(ne2k->port + DP_BNRY) + 1;
-		
+
 		if (boundary == ne2k->stop_page)
 			boundary = ne2k->start_page;
-		
+
 		pio_write_8(ne2k->port + DP_CR, CR_PS_P1 | CR_STA);
 		uint8_t current = pio_read_8(ne2k->port + DP_CURR);
@@ -491,9 +491,9 @@
 			/* No more frames to process */
 			break;
-		
+
 		recv_header_t header;
 		size_t size = sizeof(header);
 		size_t offset = boundary * DP_PAGE;
-		
+
 		/* Get the frame header */
 		pio_write_8(ne2k->port + DP_RBCR0, size & 0xff);
@@ -502,5 +502,5 @@
 		pio_write_8(ne2k->port + DP_RSAR1, (offset >> 8) & 0xff);
 		pio_write_8(ne2k->port + DP_CR, CR_DM_RR | CR_PS_P0 | CR_STA);
-		
+
 		pio_read_buf_16(ne2k->data_port, (void *) &header, size);
 
@@ -508,5 +508,5 @@
 		    (((size_t) header.rbcl) | (((size_t) header.rbch) << 8)) - size;
 		uint8_t next = header.next;
-		
+
 		if ((length < ETH_MIN_PACK_SIZE)
 		    || (length > ETH_MAX_PACK_SIZE_TAGGED)) {
@@ -535,5 +535,5 @@
 				break;
 		}
-		
+
 		/*
 		 * Update the boundary pointer
@@ -585,5 +585,5 @@
 			ne2k->sq.dirty = false;
 			ne2k->sq.size = 0;
-			
+
 			/* Signal a next frame to be sent */
 			fibril_condvar_broadcast(&ne2k->sq_cv);
@@ -615,5 +615,5 @@
 		ne2k_reset(ne2k);
 	}
-	
+
 	/* Unmask interrupts to be processed in the next round */
 	pio_write_8(ne2k->port + DP_IMR,
@@ -627,5 +627,5 @@
 	else
 		ne2k->receive_configuration &= ~RCR_AB;
-	
+
 	pio_write_8(ne2k->port + DP_RCR, ne2k->receive_configuration);
 }
@@ -637,5 +637,5 @@
 	else
 		ne2k->receive_configuration &= ~RCR_AM;
-	
+
 	pio_write_8(ne2k->port + DP_RCR, ne2k->receive_configuration);
 }
@@ -647,5 +647,5 @@
 	else
 		ne2k->receive_configuration &= ~RCR_PRO;
-	
+
 	pio_write_8(ne2k->port + DP_RCR, ne2k->receive_configuration);
 }
@@ -655,5 +655,5 @@
 	/* Select Page 1 and stop all transfers */
 	pio_write_8(ne2k->port + DP_CR, CR_PS_P1 | CR_DM_ABORT | CR_STP);
-	
+
 	pio_write_8(ne2k->port + DP_MAR0, (uint8_t) hash);
 	pio_write_8(ne2k->port + DP_MAR1, (uint8_t) (hash >> 8));
@@ -664,5 +664,5 @@
 	pio_write_8(ne2k->port + DP_MAR6, (uint8_t) (hash >> 48));
 	pio_write_8(ne2k->port + DP_MAR7, (uint8_t) (hash >> 56));
-	
+
 	/* Select Page 0 and resume transfers */
 	pio_write_8(ne2k->port + DP_CR, CR_PS_P0 | CR_DM_ABORT | CR_STA);
Index: uspace/drv/nic/ne2k/dp8390.h
===================================================================
--- uspace/drv/nic/ne2k/dp8390.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ne2k/dp8390.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -235,8 +235,8 @@
 	int irq;
 	nic_address_t mac;
-	
+
 	uint8_t start_page;  /**< Ring buffer start page */
 	uint8_t stop_page;   /**< Ring buffer stop page */
-	
+
 	/* Send queue */
 	struct {
@@ -247,5 +247,5 @@
 	fibril_mutex_t sq_mutex;
 	fibril_condvar_t sq_cv;
-	
+
 	/* Driver run-time variables */
 	bool probed;
Index: uspace/drv/nic/ne2k/ne2k.c
===================================================================
--- uspace/drv/nic/ne2k/ne2k.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/ne2k/ne2k.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -183,53 +183,53 @@
 	hw_res_list_parsed_t hw_res_parsed;
 	hw_res_list_parsed_init(&hw_res_parsed);
-	
+
 	errno_t rc = nic_get_resources(nic_data, &hw_res_parsed);
-	
+
 	if (rc != EOK)
 		goto failed;
-	
+
 	if (hw_res_parsed.irqs.count == 0) {
 		rc = EINVAL;
 		goto failed;
 	}
-	
+
 	if (hw_res_parsed.io_ranges.count == 0) {
 		rc = EINVAL;
 		goto failed;
 	}
-	
+
 	if (hw_res_parsed.io_ranges.ranges[0].size < NE2K_IO_SIZE) {
 		rc = EINVAL;
 		goto failed;
 	}
-	
+
 	ne2k_t *ne2k = (ne2k_t *) nic_get_specific(nic_data);
 	ne2k->irq = hw_res_parsed.irqs.irqs[0];
-	
+
 	addr_range_t regs = hw_res_parsed.io_ranges.ranges[0];
 	ne2k->base_port = RNGABSPTR(regs);
-	
+
 	hw_res_list_parsed_clean(&hw_res_parsed);
-	
+
 	/* Enable programmed I/O */
 	if (pio_enable_range(&regs, &ne2k->port) != EOK)
 		return EADDRNOTAVAIL;
-	
+
 	ne2k->data_port = ne2k->port + NE2K_DATA;
 	ne2k->receive_configuration = RCR_AB | RCR_AM;
 	ne2k->probed = false;
 	ne2k->up = false;
-	
+
 	/* Find out whether the device is present. */
 	if (ne2k_probe(ne2k) != EOK)
 		return ENOENT;
-	
+
 	ne2k->probed = true;
-	
+
 	if (ne2k_register_interrupt(nic_data, NULL) != EOK)
 		return EINVAL;
-	
+
 	return EOK;
-	
+
 failed:
 	hw_res_list_parsed_clean(&hw_res_parsed);
@@ -358,10 +358,10 @@
 {
 	ddf_fun_t *fun;
-	
+
 	/* Allocate driver data for the device. */
 	nic_t *nic_data = nic_create_and_bind(dev);
 	if (nic_data == NULL)
 		return ENOMEM;
-	
+
 	nic_set_send_frame_handler(nic_data, ne2k_send);
 	nic_set_state_change_handlers(nic_data,
@@ -370,5 +370,5 @@
 		ne2k_on_unicast_mode_change, ne2k_on_multicast_mode_change,
 		ne2k_on_broadcast_mode_change, NULL, NULL);
-	
+
 	ne2k_t *ne2k = malloc(sizeof(ne2k_t));
 	if (NULL != ne2k) {
@@ -379,5 +379,5 @@
 		return ENOMEM;
 	}
-	
+
 	ne2k->dev = dev;
 	ne2k->parent_sess = ddf_dev_parent_sess_get(dev);
@@ -386,5 +386,5 @@
 		return ENOMEM;
 	}
-	
+
 	errno_t rc = ne2k_dev_init(nic_data);
 	if (rc != EOK) {
@@ -392,5 +392,5 @@
 		return rc;
 	}
-	
+
 	rc = nic_report_address(nic_data, &ne2k->mac);
 	if (rc != EOK) {
@@ -398,5 +398,5 @@
 		return rc;
 	}
-	
+
 	fun = ddf_fun_create(nic_get_ddf_dev(nic_data), fun_exposed, "port0");
 	if (fun == NULL) {
@@ -404,8 +404,8 @@
 		return ENOMEM;
 	}
-	
+
 	nic_set_ddf_fun(nic_data, fun);
 	ddf_fun_set_ops(fun, &ne2k_dev_ops);
-	
+
 	rc = ddf_fun_bind(fun);
 	if (rc != EOK) {
@@ -414,5 +414,5 @@
 		return rc;
 	}
-	
+
 	rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
 	if (rc != EOK) {
@@ -421,5 +421,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -441,8 +441,8 @@
 {
 	printf("%s: HelenOS NE 2000 network adapter driver\n", NAME);
-	
+
 	nic_driver_init(NAME);
 	nic_driver_implement(&ne2k_driver_ops, &ne2k_dev_ops, &ne2k_nic_iface);
-	
+
 	return ddf_driver_main(&ne2k_driver);
 }
Index: uspace/drv/nic/rtl8139/driver.c
===================================================================
--- uspace/drv/nic/rtl8139/driver.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/rtl8139/driver.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -156,5 +156,5 @@
 	    | rtl8139->rcr_data.defect_mask |
 	    (RXBUF_SIZE_FLAGS << RCR_RBLEN_SHIFT);
-	
+
 	ddf_msg(LVL_DEBUG, "Rewriting rcr: %x -> %x", pio_read_32(rtl8139->io_port + RCR),
 	    rcr);
@@ -419,5 +419,5 @@
 	pio_write_32(tsd, tsd_value);
 	return;
-	
+
 err_busy_no_inc:
 err_size:
@@ -550,5 +550,5 @@
 	bytes_received %= RxBUF_SIZE;
 	rx_offset %= RxBUF_SIZE;
-	
+
 	/* count how many bytes to read maximaly */
 	if (bytes_received < rx_offset)
@@ -775,5 +775,5 @@
 {
 	assert(nic_data);
-	
+
 	nic_poll_mode_t poll_mode = nic_query_poll_mode(nic_data, 0);
 
@@ -1104,5 +1104,5 @@
 
 	ddf_msg(LVL_DEBUG, "Creating buffers");
-	
+
 	rtl8139->tx_buff_virt = AS_AREA_ANY;
 	rc = dmamem_map_anonymous(TX_PAGES * PAGE_SIZE, DMAMEM_4GiB,
@@ -1125,5 +1125,5 @@
 	ddf_msg(LVL_DEBUG, "Allocating receiver buffer of the size %d bytes",
 	    RxBUF_TOT_LENGTH);
-	
+
 	rtl8139->rx_buff_virt = AS_AREA_ANY;
 	rc = dmamem_map_anonymous(RxBUF_TOT_LENGTH, DMAMEM_4GiB,
@@ -1195,5 +1195,5 @@
 	ddf_msg(LVL_DEBUG, "The device is initialized");
 	return ret;
-	
+
 failed:
 	ddf_msg(LVL_ERROR, "The device initialization failed");
@@ -1318,5 +1318,5 @@
 
 	return EOK;
-	
+
 err_fun_bind:
 	ddf_fun_unbind(fun);
@@ -1547,5 +1547,5 @@
 	if (rtl8139_pause_is_valid(rtl8139) != VALUE_RW)
 		return EINVAL;
-	
+
 	uint8_t msr = pio_read_8(rtl8139->io_port + MSR);
 	msr &= ~(uint8_t)(MSR_TXFCE | MSR_RXFCE);
@@ -1555,5 +1555,5 @@
 	if (allow_send)
 		msr |= MSR_TXFCE;
-	
+
 	pio_write_8(rtl8139->io_port + MSR, msr);
 
@@ -1624,5 +1624,5 @@
 	if ((advertisement | RTL8139_AUTONEG_CAPS) != RTL8139_AUTONEG_CAPS)
 		return EINVAL; /* some unsuported mode is requested */
-	
+
 	assert(advertisement != 0);
 
Index: uspace/drv/nic/rtl8139/general.h
===================================================================
--- uspace/drv/nic/rtl8139/general.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/rtl8139/general.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,14 +45,14 @@
 	/** Register value set in the last timer period */
 	uint32_t last_val;
-	
+
 	/** Register value set in the common timer period */
 	uint32_t full_val;
-	
+
 	/** Amount of full register periods in timer period */
 	size_t full_skips;
-	
+
 	/** Remaining full register periods to the next period end */
 	size_t full_skips_remains;
-	
+
 	/** Mark if there is a last run */
 	int last_run;
Index: uspace/drv/nic/rtl8169/driver.c
===================================================================
--- uspace/drv/nic/rtl8169/driver.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/nic/rtl8169/driver.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -352,5 +352,5 @@
 	ddf_msg(LVL_DEBUG, "The device is initialized");
 	return ret;
-	
+
 failed:
 	ddf_msg(LVL_ERROR, "The device initialization failed");
@@ -460,5 +460,5 @@
 		goto err_fun_bind;
 	}
-	
+
 	ddf_msg(LVL_NOTE, "The %s device has been successfully initialized.",
 	    ddf_dev_get_name(dev));
@@ -512,11 +512,11 @@
 	if (rtl8169->pci_vid == PCI_VID_REALTEK)
 		str_cpy(info->vendor_name, NIC_VENDOR_MAX_LENGTH, "Realtek");
-	
+
 	if (rtl8169->pci_vid == PCI_VID_DLINK)
 		str_cpy(info->vendor_name, NIC_VENDOR_MAX_LENGTH, "D-Link");
-	
+
 	if (rtl8169->pci_pid == 0x8168)
 		str_cpy(info->model_name, NIC_MODEL_MAX_LENGTH, "RTL8168");
-	
+
 	if (rtl8169->pci_pid == 0x8169)
 		str_cpy(info->model_name, NIC_MODEL_MAX_LENGTH, "RTL8169");
@@ -577,5 +577,5 @@
 	bmcr = rtl8169_mii_read(rtl8169, MII_BMCR);
 	bmcr &= ~(BMCR_DUPLEX | BMCR_SPD_100 | BMCR_SPD_1000);
-	
+
 	/* Disable autonegotiation */
 	bmcr &= ~BMCR_AN_ENABLE;
@@ -918,5 +918,5 @@
 {
 	rtl8169_t *rtl8169 = nic_get_specific(nic_data);
-	
+
 	/* Configure Receive Control Register */
 	uint32_t rcr = pio_read_32(rtl8169->regs + RCR);
@@ -961,5 +961,5 @@
 		write_barrier();
 		ddf_msg(LVL_DEBUG, "TX status for descr %d: 0x%08x", tail, descr->control);
-	
+
 		tail = (tail + 1) % TX_BUFFERS_COUNT;
 		sent++;
@@ -1005,5 +1005,5 @@
 		if (descr->control & CONTROL_FS)
 			fsidx = tail;
-		
+
 		if (descr->control & CONTROL_LS) {
 			ddf_msg(LVL_DEBUG, "received message at slot %d, control 0x%08x", tail, descr->control);
Index: uspace/drv/platform/amdm37x/main.c
===================================================================
--- uspace/drv/platform/amdm37x/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/platform/amdm37x/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -176,5 +176,5 @@
 	if (fnode == NULL)
 		return ENOMEM;
-	
+
 	/* Add match id */
 	errno_t ret = ddf_fun_add_match_id(fnode, fun->id, fun->score);
@@ -183,5 +183,5 @@
 		return ret;
 	}
-	
+
 	/* Alloc needed data */
 	amdm37x_fun_t *rf =
@@ -195,5 +195,5 @@
 	/* Set provided operations to the device. */
 	ddf_fun_set_ops(fnode, &amdm37x_fun_ops);
-	
+
 	/* Register function. */
 	ret = ddf_fun_bind(fnode);
@@ -203,5 +203,5 @@
 		return ret;
 	}
-	
+
 	return EOK;
 }
Index: uspace/drv/platform/mac/mac.c
===================================================================
--- uspace/drv/platform/mac/mac.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/platform/mac/mac.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -130,24 +130,24 @@
 	ddf_msg(LVL_DEBUG, "Adding new function '%s'.", name);
 	printf("mac: Adding new function '%s'.\n", name);
-	
+
 	ddf_fun_t *fnode = NULL;
 	errno_t rc;
-	
+
 	/* Create new device. */
 	fnode = ddf_fun_create(dev, fun_inner, name);
 	if (fnode == NULL)
 		goto failure;
-	
+
 	mac_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(mac_fun_t));
 	*fun = *fun_proto;
-	
+
 	/* Add match ID */
 	rc = ddf_fun_add_match_id(fnode, str_match_id, 100);
 	if (rc != EOK)
 		goto failure;
-	
+
 	/* Set provided operations to the device. */
 	ddf_fun_set_ops(fnode, &mac_fun_ops);
-	
+
 	/* Register function. */
 	if (ddf_fun_bind(fnode) != EOK) {
@@ -155,14 +155,14 @@
 		goto failure;
 	}
-	
+
 	printf("mac: Added new function '%s' (str=%s).\n", name, str_match_id);
 	return true;
-	
+
 failure:
 	if (fnode != NULL)
 		ddf_fun_destroy(fnode);
-	
+
 	ddf_msg(LVL_ERROR, "Failed adding function '%s'.", name);
-	
+
 	return false;
 }
@@ -223,5 +223,5 @@
 	mac_fun_t *fun = mac_fun(fnode);
 	assert(fun != NULL);
-	
+
 	return &fun->hw_resources;
 }
@@ -230,5 +230,5 @@
 {
 	/* TODO */
-	
+
 	return false;
 }
Index: uspace/drv/platform/malta/malta.c
===================================================================
--- uspace/drv/platform/malta/malta.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/platform/malta/malta.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -138,5 +138,5 @@
 {
 	malta_fun_t *fun = malta_fun(fnode);
-	
+
 	assert(fun != NULL);
 	return &fun->hw_resources;
@@ -146,5 +146,5 @@
 {
 	/* TODO */
-	
+
 	return false;
 }
@@ -175,24 +175,24 @@
 {
 	ddf_msg(LVL_DEBUG, "Adding new function '%s'.", name);
-	
+
 	ddf_fun_t *fnode = NULL;
 	errno_t rc;
-	
+
 	/* Create new device. */
 	fnode = ddf_fun_create(dev, fun_inner, name);
 	if (fnode == NULL)
 		goto failure;
-	
+
 	malta_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(malta_fun_t));
 	*fun = *fun_proto;
-	
+
 	/* Add match ID */
 	rc = ddf_fun_add_match_id(fnode, str_match_id, 100);
 	if (rc != EOK)
 		goto failure;
-	
+
 	/* Set provided operations to the device. */
 	ddf_fun_set_ops(fnode, &malta_fun_ops);
-	
+
 	/* Register function. */
 	if (ddf_fun_bind(fnode) != EOK) {
@@ -200,13 +200,13 @@
 		goto failure;
 	}
-	
+
 	return true;
-	
+
 failure:
 	if (fnode != NULL)
 		ddf_fun_destroy(fnode);
-	
+
 	ddf_msg(LVL_ERROR, "Failed adding function '%s'.", name);
-	
+
 	return false;
 }
@@ -246,10 +246,10 @@
 	    &gt[GT_PCI_CMD / sizeof(ioport32_t)], host2uint32_t_le(val));
 
-	
+
 	/* Register functions. */
 	if (!malta_add_functions(dev)) {
 		ddf_msg(LVL_ERROR, "Failed to add functions for the Malta platform.");
 	}
-	
+
 	return EOK;
 }
Index: uspace/drv/platform/msim/msim.c
===================================================================
--- uspace/drv/platform/msim/msim.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/platform/msim/msim.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -147,5 +147,5 @@
 {
 	msim_fun_t *fun = msim_fun(fnode);
-	
+
 	assert(fun != NULL);
 	return &fun->hw_resources;
@@ -184,27 +184,27 @@
 {
 	ddf_msg(LVL_DEBUG, "Adding new function '%s'.", name);
-	
+
 	ddf_fun_t *fnode = NULL;
 	errno_t rc;
-	
+
 	/* Create new device. */
 	fnode = ddf_fun_create(dev, fun_inner, name);
 	if (fnode == NULL)
 		goto failure;
-	
+
 	msim_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(msim_fun_t));
 	if (fun == NULL)
 		goto failure;
-	
+
 	*fun = *fun_proto;
-	
+
 	/* Add match ID */
 	rc = ddf_fun_add_match_id(fnode, str_match_id, 100);
 	if (rc != EOK)
 		goto failure;
-	
+
 	/* Set provided operations to the device. */
 	ddf_fun_set_ops(fnode, &msim_fun_ops);
-	
+
 	/* Register function. */
 	if (ddf_fun_bind(fnode) != EOK) {
@@ -212,13 +212,13 @@
 		goto failure;
 	}
-	
+
 	return true;
-	
+
 failure:
 	if (fnode != NULL)
 		ddf_fun_destroy(fnode);
-	
+
 	ddf_msg(LVL_ERROR, "Failed adding function '%s'.", name);
-	
+
 	return false;
 }
@@ -246,5 +246,5 @@
 	if (!msim_add_functions(dev))
 		ddf_msg(LVL_ERROR, "Failed to add functions for the MSIM platform.");
-	
+
 	return EOK;
 }
Index: uspace/drv/platform/pc/pc.c
===================================================================
--- uspace/drv/platform/pc/pc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/platform/pc/pc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -120,5 +120,5 @@
 {
 	pc_fun_t *fun = pc_fun(fnode);
-	
+
 	assert(fun != NULL);
 	return &fun->hw_resources;
@@ -128,5 +128,5 @@
 {
 	/* TODO */
-	
+
 	return false;
 }
@@ -135,5 +135,5 @@
 {
 	pc_fun_t *fun = pc_fun(fnode);
-	
+
 	assert(fun != NULL);
 	return &fun->pio_window;
@@ -157,24 +157,24 @@
 {
 	ddf_msg(LVL_DEBUG, "Adding new function '%s'.", name);
-	
+
 	ddf_fun_t *fnode = NULL;
 	errno_t rc;
-	
+
 	/* Create new device. */
 	fnode = ddf_fun_create(dev, fun_inner, name);
 	if (fnode == NULL)
 		goto failure;
-	
+
 	pc_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(pc_fun_t));
 	*fun = *fun_proto;
-	
+
 	/* Add match ID */
 	rc = ddf_fun_add_match_id(fnode, str_match_id, 100);
 	if (rc != EOK)
 		goto failure;
-	
+
 	/* Set provided operations to the device. */
 	ddf_fun_set_ops(fnode, &pc_fun_ops);
-	
+
 	/* Register function. */
 	if (ddf_fun_bind(fnode) != EOK) {
@@ -182,13 +182,13 @@
 		goto failure;
 	}
-	
+
 	return true;
-	
+
 failure:
 	if (fnode != NULL)
 		ddf_fun_destroy(fnode);
-	
+
 	ddf_msg(LVL_ERROR, "Failed adding function '%s'.", name);
-	
+
 	return false;
 }
@@ -209,10 +209,10 @@
 	ddf_msg(LVL_DEBUG, "pc_dev_add, device handle = %d",
 	    (int)ddf_dev_get_handle(dev));
-	
+
 	/* Register functions. */
 	if (!pc_add_functions(dev)) {
 		ddf_msg(LVL_ERROR, "Failed to add functions for PC platform.");
 	}
-	
+
 	return EOK;
 }
Index: uspace/drv/platform/sun4u/sun4u.c
===================================================================
--- uspace/drv/platform/sun4u/sun4u.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/platform/sun4u/sun4u.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -154,5 +154,5 @@
 {
 	sun4u_fun_t *fun = sun4u_fun(fnode);
-	
+
 	assert(fun != NULL);
 	return &fun->hw_resources;
@@ -162,5 +162,5 @@
 {
 	/* TODO */
-	
+
 	return false;
 }
@@ -191,24 +191,24 @@
 {
 	ddf_msg(LVL_DEBUG, "Adding new function '%s'.", name);
-	
+
 	ddf_fun_t *fnode = NULL;
 	errno_t rc;
-	
+
 	/* Create new device. */
 	fnode = ddf_fun_create(dev, fun_inner, name);
 	if (fnode == NULL)
 		goto failure;
-	
+
 	sun4u_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(sun4u_fun_t));
 	*fun = *fun_proto;
-	
+
 	/* Add match ID */
 	rc = ddf_fun_add_match_id(fnode, str_match_id, 100);
 	if (rc != EOK)
 		goto failure;
-	
+
 	/* Set provided operations to the device. */
 	ddf_fun_set_ops(fnode, &sun4u_fun_ops);
-	
+
 	/* Register function. */
 	if (ddf_fun_bind(fnode) != EOK) {
@@ -216,13 +216,13 @@
 		goto failure;
 	}
-	
+
 	return true;
-	
+
 failure:
 	if (fnode != NULL)
 		ddf_fun_destroy(fnode);
-	
+
 	ddf_msg(LVL_ERROR, "Failed adding function '%s'.", name);
-	
+
 	return false;
 }
@@ -251,5 +251,5 @@
 		ddf_msg(LVL_ERROR, "Failed to add functions for the Malta platform.");
 	}
-	
+
 	return EOK;
 }
Index: uspace/drv/test/test3/test3.c
===================================================================
--- uspace/drv/test/test3/test3.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/test/test3/test3.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,5 +70,5 @@
 	errno_t rc;
 	char *fun_name = NULL;
-	
+
 	if (asprintf(&fun_name, "%s%zu", base_name, index) < 0) {
 		ddf_msg(LVL_ERROR, "Failed to format string: No memory");
@@ -76,5 +76,5 @@
 		goto leave;
 	}
-	
+
 	fun = ddf_fun_create(parent, fun_exposed, fun_name);
 	if (fun == NULL) {
@@ -90,5 +90,5 @@
 		goto leave;
 	}
-	
+
 	ddf_fun_add_to_category(fun, class_name);
 
@@ -97,9 +97,9 @@
 leave:
 	free(fun_name);
-	
+
 	if ((rc != EOK) && (fun != NULL)) {
 		ddf_fun_destroy(fun);
 	}
-	
+
 	*pfun = fun;
 	return rc;
@@ -149,5 +149,5 @@
 		}
 	}
-	
+
 	return rc;
 }
Index: uspace/drv/time/cmos-rtc/cmos-rtc.c
===================================================================
--- uspace/drv/time/cmos-rtc/cmos-rtc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/drv/time/cmos-rtc/cmos-rtc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -331,5 +331,5 @@
 
 		struct timeval curtime;
-		
+
 		getuptime(&curtime);
 		tv_add(&curtime, &rtc->boot_time);
@@ -529,5 +529,5 @@
 	reg_a = rtc_register_read(rtc, RTC_STATUS_A);
 	rtc_register_write(rtc, RTC_STATUS_A, RTC_A_CLK_STOP | reg_a);
-	
+
 	/* Enable updates */
 	rtc_register_write(rtc, RTC_STATUS_B, reg_b);
Index: uspace/lib/bithenge/src/blob.c
===================================================================
--- uspace/lib/bithenge/src/blob.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/bithenge/src/blob.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -260,5 +260,5 @@
 	*out = bithenge_blob_as_node(memory_as_blob(blob));
 	return EOK;
-	
+
 error:
 	if (needs_free)
Index: uspace/lib/block/block.c
===================================================================
--- uspace/lib/block/block.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/block/block.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -95,5 +95,5 @@
 {
 	fibril_mutex_lock(&dcl_lock);
-	
+
 	list_foreach(dcl, link, devcon_t, devcon) {
 		if (devcon->service_id == service_id) {
@@ -102,5 +102,5 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&dcl_lock);
 	return NULL;
@@ -111,9 +111,9 @@
 {
 	devcon_t *devcon;
-	
+
 	devcon = malloc(sizeof(devcon_t));
 	if (!devcon)
 		return ENOMEM;
-	
+
 	link_initialize(&devcon->link);
 	devcon->service_id = service_id;
@@ -125,5 +125,5 @@
 	devcon->pblocks = dev_size;
 	devcon->cache = NULL;
-	
+
 	fibril_mutex_lock(&dcl_lock);
 	list_foreach(dcl, link, devcon_t, d) {
@@ -155,5 +155,5 @@
 		return ENOENT;
 	}
-	
+
 	errno_t rc = bd_open(sess, &bd);
 	if (rc != EOK) {
@@ -161,5 +161,5 @@
 		return rc;
 	}
-	
+
 	size_t bsize;
 	rc = bd_get_block_size(bd, &bsize);
@@ -177,5 +177,5 @@
 		return rc;
 	}
-	
+
 	rc = devcon_add(service_id, sess, bsize, dev_size, bd);
 	if (rc != EOK) {
@@ -184,5 +184,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -192,18 +192,18 @@
 	devcon_t *devcon = devcon_search(service_id);
 	assert(devcon);
-	
+
 	if (devcon->cache)
 		(void) block_cache_fini(service_id);
-	
+
 	(void)bd_sync_cache(devcon->bd, 0, 0);
-	
+
 	devcon_remove(devcon);
-	
+
 	if (devcon->bb_buf)
 		free(devcon->bb_buf);
-	
+
 	bd_close(devcon->bd);
 	async_hangup(devcon->sess);
-	
+
 	free(devcon);
 }
@@ -282,5 +282,5 @@
 	if (!cache)
 		return ENOMEM;
-	
+
 	fibril_mutex_initialize(&cache->lock);
 	list_initialize(&cache->free_list);
@@ -318,5 +318,5 @@
 		return EOK;
 	cache = devcon->cache;
-	
+
 	/*
 	 * We are expecting to find all blocks for this device handle on the
@@ -337,5 +337,5 @@
 
 		hash_table_remove_item(&cache->block_hash, &b->hash_link);
-		
+
 		free(b->data);
 		free(b);
@@ -391,10 +391,10 @@
 	aoff64_t p_ba;
 	errno_t rc;
-	
+
 	devcon = devcon_search(service_id);
 
 	assert(devcon);
 	assert(devcon->cache);
-	
+
 	cache = devcon->cache;
 
@@ -712,13 +712,13 @@
 	assert(devcon);
 	block_size = devcon->pblock_size;
-	
+
 	while (left > 0) {
 		size_t rd;
-		
+
 		if (*bufpos + left < *buflen)
 			rd = left;
 		else
 			rd = *buflen - *bufpos;
-		
+
 		if (rd > 0) {
 			/*
@@ -732,5 +732,5 @@
 			left -= rd;
 		}
-		
+
 		if (*bufpos == *buflen) {
 			/* Refill the communication buffer with a new block. */
@@ -742,10 +742,10 @@
 				return rc;
 			}
-			
+
 			*bufpos = 0;
 			*buflen = block_size;
 		}
 	}
-	
+
 	return EOK;
 }
@@ -860,10 +860,10 @@
 	size_t blocks;
 	size_t offset;
-	
+
 	rc = block_get_bsize(service_id, &phys_block_size);
 	if (rc != EOK) {
 		return rc;
 	}
-	
+
 	/* calculate data position and required space */
 	first_block = abs_offset / phys_block_size;
@@ -872,5 +872,5 @@
 	blocks = last_block - first_block + 1;
 	buf_size = blocks * phys_block_size;
-	
+
 	/* read the data into memory */
 	buffer = malloc(buf_size);
@@ -878,5 +878,5 @@
 		return ENOMEM;
 	}
-	
+
 	rc = block_read_direct(service_id, first_block, blocks, buffer);
 	if (rc != EOK) {
@@ -884,9 +884,9 @@
 		return rc;
 	}
-	
+
 	/* copy the data from the buffer */
 	memcpy(data, buffer + offset, bytes);
 	free(buffer);
-	
+
 	return EOK;
 }
@@ -905,5 +905,5 @@
 {
 	devcon_t *devcon = devcon_search(service_id);
-	
+
 	assert(devcon);
 	return bd_read_toc(devcon->bd, session, buf, bufsize);
@@ -923,5 +923,5 @@
 {
 	assert(devcon);
-	
+
 	errno_t rc = bd_read_blocks(devcon->bd, ba, cnt, buf, size);
 	if (rc != EOK) {
@@ -933,5 +933,5 @@
 #endif
 	}
-	
+
 	return rc;
 }
@@ -950,5 +950,5 @@
 {
 	assert(devcon);
-	
+
 	errno_t rc = bd_write_blocks(devcon->bd, ba, cnt, data, size);
 	if (rc != EOK) {
@@ -959,5 +959,5 @@
 #endif
 	}
-	
+
 	return rc;
 }
Index: uspace/lib/c/arch/abs32le/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/abs32le/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/abs32le/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 		return true;
 	}
-	
+
 	return false;
 }
@@ -57,5 +57,5 @@
 	/* On real hardware the increment has to be done
 	   as an atomic action. */
-	
+
 	val->count++;
 }
@@ -65,5 +65,5 @@
 	/* On real hardware the decrement has to be done
 	   as an atomic action. */
-	
+
 	val->count++;
 }
@@ -74,7 +74,7 @@
 	   value and the increment have to be done as a single
 	   atomic action. */
-	
+
 	atomic_count_t prev = val->count;
-	
+
 	val->count++;
 	return prev;
@@ -86,7 +86,7 @@
 	   value and the decrement have to be done as a single
 	   atomic action. */
-	
+
 	atomic_count_t prev = val->count;
-	
+
 	val->count--;
 	return prev;
Index: uspace/lib/c/arch/amd64/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/amd64/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/amd64/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 {
 	atomic_count_t r = 1;
-	
+
 #ifdef __PCC__
 	asm volatile (
@@ -89,5 +89,5 @@
 	);
 #endif
-	
+
 	return r;
 }
@@ -96,5 +96,5 @@
 {
 	atomic_count_t r = -1;
-	
+
 #ifdef __PCC__
 	asm volatile (
@@ -110,5 +110,5 @@
 	);
 #endif
-	
+
 	return r;
 }
Index: uspace/lib/c/arch/amd64/src/entry.S
===================================================================
--- uspace/lib/c/arch/amd64/src/entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/amd64/src/entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,5 +44,5 @@
 	pushq $0
 	movq %rsp, %rbp
-	
+
 	# %rdi was deliberately chosen as the first argument is also in %rdi
 	# Pass PCB pointer to __main (no operation)
Index: uspace/lib/c/arch/amd64/src/entryjmp.S
===================================================================
--- uspace/lib/c/arch/amd64/src/entryjmp.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/amd64/src/entryjmp.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,9 +39,9 @@
 	push %rbp
 	movq %rsp, %rbp
-	
+
 	# pcb must be passed in %rdi, use %rdx as a scratch register
 	mov %rdi, %rdx
 	mov %rsi, %rdi
-	
+
 	# jump to entry point
 	jmp *%rdx
Index: uspace/lib/c/arch/amd64/src/fibril.S
===================================================================
--- uspace/lib/c/arch/amd64/src/fibril.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/amd64/src/fibril.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,9 +39,9 @@
 FUNCTION_BEGIN(context_save)
 	movq (%rsp), %rdx     # the caller's return %eip
-	
+
 	# in %rdi is passed 1st argument
 	movq %rdx, CONTEXT_OFFSET_PC(%rdi)
 	movq %rsp, CONTEXT_OFFSET_SP(%rdi)
-	
+
 	movq %rbx, CONTEXT_OFFSET_RBX(%rdi)
 	movq %rbp, CONTEXT_OFFSET_RBP(%rdi)
@@ -50,8 +50,8 @@
 	movq %r14, CONTEXT_OFFSET_R14(%rdi)
 	movq %r15, CONTEXT_OFFSET_R15(%rdi)
-	
+
 	movq %fs:0, %rax
 	movq %rax, CONTEXT_OFFSET_TLS(%rdi)
-	
+
 	xorl %eax, %eax                      # context_save returns 1
 	incl %eax
@@ -71,14 +71,14 @@
 	movq CONTEXT_OFFSET_RBP(%rdi), %rbp
 	movq CONTEXT_OFFSET_RBX(%rdi), %rbx
-	
+
 	movq CONTEXT_OFFSET_SP(%rdi), %rsp   # ctx->sp -> %rsp
-	
+
 	movq CONTEXT_OFFSET_PC(%rdi), %rdx
-	
+
 	movq %rdx,(%rsp)
-	
+
 	movq CONTEXT_OFFSET_TLS(%rdi), %rdi
 	movq %rdi, %fs:0
-	
+
 	xorl %eax, %eax                      # context_restore returns 0
 	ret
Index: uspace/lib/c/arch/amd64/src/syscall.S
===================================================================
--- uspace/lib/c/arch/amd64/src/syscall.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/amd64/src/syscall.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -30,5 +30,5 @@
 
 .text
-	
+
 ## Make a system call.
 #
Index: uspace/lib/c/arch/amd64/src/thread_entry.S
===================================================================
--- uspace/lib/c/arch/amd64/src/thread_entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/amd64/src/thread_entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,5 +41,5 @@
 	pushq $0
 	movq %rsp, %rbp
-	
+
 	#
 	# RAX contains address of uarg
Index: uspace/lib/c/arch/arm32/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/arm32/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/arm32/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 {
 	atomic_count_t ret = 0;
-	
+
 	/*
 	 * The following instructions between labels 1 and 2 constitute a
@@ -75,5 +75,5 @@
 		: "memory"
 	);
-	
+
 	ras_page[0] = 0;
 	asm volatile (
@@ -81,5 +81,5 @@
 	);
 	ras_page[1] = 0xffffffff;
-	
+
 	return ret != 0;
 }
@@ -96,5 +96,5 @@
 {
 	atomic_count_t ret = 0;
-	
+
 	/*
 	 * The following instructions between labels 1 and 2 constitute a
@@ -118,5 +118,5 @@
 		: [imm] "r" (i)
 	);
-	
+
 	ras_page[0] = 0;
 	asm volatile (
@@ -124,5 +124,5 @@
 	);
 	ras_page[1] = 0xffffffff;
-	
+
 	return ret;
 }
Index: uspace/lib/c/arch/arm32/src/entry.S
===================================================================
--- uspace/lib/c/arch/arm32/src/entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/arm32/src/entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
 	ldr r0, =ras_page
 	str r2, [r0]
-	
+
 	#
 	# Create the first stack frame.
@@ -50,5 +50,5 @@
 	push {fp, ip, lr, pc}
 	sub fp, ip, #4
-	
+
 	# Pass pcb_ptr to __main as the first argument (in r0)
 	mov r0, r1
Index: uspace/lib/c/arch/arm32/src/fibril.S
===================================================================
--- uspace/lib/c/arch/arm32/src/fibril.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/arm32/src/fibril.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -34,5 +34,5 @@
 	stmia r0!, {sp, lr}
 	stmia r0!, {r4-r11}
-	
+
 	# return 1
 	mov r0, #1
@@ -43,5 +43,5 @@
 	ldmia r0!, {sp, lr}
 	ldmia r0!, {r4-r11}
-	
+
 	# return 0
 	mov r0, #0
Index: uspace/lib/c/arch/arm32/src/syscall.c
===================================================================
--- uspace/lib/c/arch/arm32/src/syscall.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/arm32/src/syscall.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,5 +60,5 @@
 	register sysarg_t __arm_reg_r5 asm("r5") = p6;
 	register sysarg_t __arm_reg_r6 asm("r6") = id;
-	
+
 	asm volatile (
 		"swi 0"
@@ -72,5 +72,5 @@
 		  "r" (__arm_reg_r6)
 	);
-	
+
 	return __arm_reg_r0;
 }
Index: uspace/lib/c/arch/arm32/src/thread_entry.S
===================================================================
--- uspace/lib/c/arch/arm32/src/thread_entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/arm32/src/thread_entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,4 +42,4 @@
 	push {fp, ip, lr, pc}
 	sub fp, ip, #4
-	
+
 	b __thread_main
Index: uspace/lib/c/arch/ia32/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/ia32/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia32/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -73,5 +73,5 @@
 {
 	atomic_count_t r = 1;
-	
+
 #ifdef __PCC__
 	asm volatile (
@@ -87,5 +87,5 @@
 	);
 #endif
-	
+
 	return r;
 }
@@ -94,5 +94,5 @@
 {
 	atomic_count_t r = -1;
-	
+
 #ifdef __PCC__
 	asm volatile (
@@ -108,5 +108,5 @@
 	);
 #endif
-	
+
 	return r;
 }
Index: uspace/lib/c/arch/ia32/include/libarch/ddi.h
===================================================================
--- uspace/lib/c/arch/ia32/include/libarch/ddi.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia32/include/libarch/ddi.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
 	if (port < (ioport8_t *) IO_SPACE_BOUNDARY) {
 		uint8_t val;
-		
+
 		asm volatile (
 			"inb %w[port], %b[val]\n"
@@ -48,5 +48,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
@@ -58,5 +58,5 @@
 	if (port < (ioport16_t *) IO_SPACE_BOUNDARY) {
 		uint16_t val;
-		
+
 		asm volatile (
 			"inw %w[port], %w[val]\n"
@@ -64,5 +64,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
@@ -74,5 +74,5 @@
 	if (port < (ioport32_t *) IO_SPACE_BOUNDARY) {
 		uint32_t val;
-		
+
 		asm volatile (
 			"inl %w[port], %[val]\n"
@@ -80,5 +80,5 @@
 			: [port] "d" (port)
 		);
-		
+
 		return val;
 	} else
Index: uspace/lib/c/arch/ia32/include/libarch/tls.h
===================================================================
--- uspace/lib/c/arch/ia32/include/libarch/tls.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia32/include/libarch/tls.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,7 +54,7 @@
 {
 	void *retval;
-	
+
 	asm volatile ("movl %%gs:0, %0" : "=r" (retval));
-	
+
 	return retval;
 }
Index: uspace/lib/c/arch/ia32/src/entry.S
===================================================================
--- uspace/lib/c/arch/ia32/src/entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia32/src/entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	mov %ax, %fs
 	# Do not set %gs, it contains descriptor that can see TLS
-	
+
 #ifndef PROCESSOR_i486
 	# Detect the mechanism used for making syscalls
@@ -57,5 +57,5 @@
 	0:
 #endif
-	
+
 	#
 	# Create the first stack frame.
@@ -64,5 +64,5 @@
 	pushl $0
 	movl %esp, %ebp
-	
+
 	# Pass the PCB pointer to __main as the first argument
 	pushl %edi
Index: uspace/lib/c/arch/ia32/src/entryjmp.S
===================================================================
--- uspace/lib/c/arch/ia32/src/entryjmp.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia32/src/entryjmp.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,14 +36,14 @@
 	push %ebp
 	movl %esp, %ebp
-	
+
 	# %eax := entry_point
 	movl 0x8(%ebp), %eax
-	
+
 	# %edi := pcb
 	# pcb is passed to the entry point in %edi
 	mov 0xc(%ebp), %edi
-	
+
 	# Save a tiny bit of stack space
 	pop %ebp
-	
+
 	jmp *%eax
Index: uspace/lib/c/arch/ia32/src/fibril.S
===================================================================
--- uspace/lib/c/arch/ia32/src/fibril.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia32/src/fibril.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,5 +40,5 @@
 	movl 0(%esp), %eax  # the caller's return %eip
 	movl 4(%esp), %edx  # address of the context variable to save context to
-	
+
 	# save registers to the context structure
 	movl %esp, CONTEXT_OFFSET_SP(%edx)	# %esp -> ctx->sp
@@ -48,9 +48,9 @@
 	movl %edi, CONTEXT_OFFSET_EDI(%edx)	# %edi -> ctx->edi
 	movl %ebp, CONTEXT_OFFSET_EBP(%edx)	# %ebp -> ctx->ebp
-	
+
 	# save TLS
 	movl %gs:0, %eax
 	movl %eax, CONTEXT_OFFSET_TLS(%edx)	# tls -> ctx->tls
-	
+
 	xorl %eax, %eax		# context_save returns 1
 	incl %eax
@@ -65,5 +65,5 @@
 FUNCTION_BEGIN(context_restore)
 	movl 4(%esp), %eax  # address of the context variable to restore context from
-	
+
 	# restore registers from the context structure
 	movl CONTEXT_OFFSET_SP(%eax),%esp	# ctx->sp -> %esp
@@ -73,11 +73,11 @@
 	movl CONTEXT_OFFSET_EDI(%eax),%edi	# ctx->edi -> %edi
 	movl CONTEXT_OFFSET_EBP(%eax),%ebp	# ctx->ebp -> %ebp
-	
+
 	movl %edx, 0(%esp)  # ctx->pc -> saver's return %eip
-	
+
 	# set thread local storage
 	movl CONTEXT_OFFSET_TLS(%eax), %edx	# Set arg1 to TLS addr
 	movl %edx, %gs:0
-	
+
 	xorl %eax, %eax		# context_restore returns 0
 	ret
Index: uspace/lib/c/arch/ia32/src/rtld/reloc.c
===================================================================
--- uspace/lib/c/arch/ia32/src/rtld/reloc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia32/src/rtld/reloc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 	elf_word sym_idx;
 	uint32_t sym_addr;
-	
+
 	elf_symbol_t *sym_table;
 	elf_symbol_t *sym;
@@ -71,5 +71,5 @@
 	uint32_t sym_size;
 	char *str_tab;
-	
+
 	elf_symbol_t *sym_def;
 	module_t *dest;
@@ -82,5 +82,5 @@
 
 	DPRINTF("address: 0x%" PRIxPTR ", entries: %zd\n", (uintptr_t)rt, rt_entries);
-	
+
 	for (i = 0; i < rt_entries; ++i) {
 //		DPRINTF("symbol %d: ", i);
@@ -173,5 +173,5 @@
 			memcpy(r_ptr, (const void *)sym_addr, sym_size);
 			break;
-			
+
 		case R_386_RELATIVE:
 			DPRINTF("fixup R_386_RELATIVE (b+a)\n");
Index: uspace/lib/c/arch/ia32/src/thread_entry.S
===================================================================
--- uspace/lib/c/arch/ia32/src/thread_entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia32/src/thread_entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,5 +40,5 @@
 	mov %dx, %fs
 	# Do not set %gs, it contains descriptor that can see TLS
-	
+
 	#
 	# Create the first stack frame.
@@ -47,5 +47,5 @@
 	pushl $0
 	mov %esp, %ebp
-	
+
 	#
 	# EAX contains address of uarg.
@@ -53,5 +53,5 @@
 	pushl %eax
 	call __thread_main
-	
+
 	#
 	# Not reached.
Index: uspace/lib/c/arch/ia64/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/ia64/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia64/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,5 +43,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], 1\n"
@@ -54,5 +54,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], -1\n"
@@ -65,5 +65,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], 1\n"
@@ -71,5 +71,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return (v + 1);
 }
@@ -78,5 +78,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], -1\n"
@@ -84,5 +84,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return (v - 1);
 }
@@ -91,5 +91,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], 1\n"
@@ -97,5 +97,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return v;
 }
@@ -104,5 +104,5 @@
 {
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"fetchadd8.rel %[v] = %[count], -1\n"
@@ -110,5 +110,5 @@
 		  [count] "+m" (val->count)
 	);
-	
+
 	return v;
 }
Index: uspace/lib/c/arch/ia64/src/ddi.c
===================================================================
--- uspace/lib/c/arch/ia64/src/ddi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia64/src/ddi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,5 +36,5 @@
 	if (sysinfo_get_value("ia64_iospace.address.virtual", &addr) != 0)
 		addr = 0;
-	
+
 	return addr;
 }
Index: uspace/lib/c/arch/ia64/src/entry.S
===================================================================
--- uspace/lib/c/arch/ia64/src/entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia64/src/entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,5 +40,5 @@
 	alloc loc0 = ar.pfs, 0, 1, 2, 0
 	movl gp = __gp
-	
+
 	# Pass PCB pointer as the first argument to __main
 	mov out0 = r2 ;;
Index: uspace/lib/c/arch/ia64/src/fibril.S
===================================================================
--- uspace/lib/c/arch/ia64/src/fibril.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia64/src/fibril.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,5 +45,5 @@
 	flushrs
 	mov loc4 = ar.bsp
-	
+
 	/*
 	 * Put RSE to enforced lazy mode.
@@ -117,5 +117,5 @@
 
 	mov loc2 = ar.unat
-	
+
 	/*
 	 * Save application registers
@@ -177,5 +177,5 @@
 
 	mov ar.unat = loc1
-	
+
 	add r8 = r0, r0, 1 	/* context_save returns 1 */
 	br.ret.sptk.many b0
@@ -239,5 +239,5 @@
 	ld8 loc5 = [loc14]	/* load ar.rnat */
 	ld8 loc6 = [loc15]	/* load ar.lc */
-	
+
 	.auto
 
@@ -274,5 +274,5 @@
 	mov ar.unat = loc2 ;;
 	mov ar.lc = loc6
-	
+
 	/*
 	 * Restore general registers including NaT bits
@@ -332,7 +332,7 @@
 	ldf.fill f30 = [loc48]
 	ldf.fill f31 = [loc49]
-	
+
 	mov ar.unat = loc1
-	
+
 	mov r8 = r0			/* context_restore returns 0 */
 	br.ret.sptk.many b0
Index: uspace/lib/c/arch/ia64/src/thread_entry.S
===================================================================
--- uspace/lib/c/arch/ia64/src/thread_entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ia64/src/thread_entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -38,12 +38,12 @@
 
 	movl gp = __gp
-	
+
 	#
 	# r8 contains address of uarg structure.
 	#
-	
+
 	mov out0 = r8 ;;
 	br.call.sptk.many b0 = __thread_main
-	
+
 	#
 	# Not reached.
Index: uspace/lib/c/arch/mips32/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/mips32/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/mips32/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 	atomic_count_t tmp;
 	atomic_count_t v;
-	
+
 	asm volatile (
 		"1:\n"
@@ -77,5 +77,5 @@
 		  "i" (0)
 	);
-	
+
 	return v;
 }
Index: uspace/lib/c/arch/mips32/src/entry.S
===================================================================
--- uspace/lib/c/arch/mips32/src/entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/mips32/src/entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,18 +44,18 @@
 	.frame $sp, ABI_STACK_FRAME, $ra
 	.cpload $t9
-	
+
 	# Allocate the stack frame.
 	addiu $sp, -ABI_STACK_FRAME
-	
+
 	# Allow PIC code
 	.cprestore 16
-	
+
 	# Pass pcb_ptr to __main() as the first argument. It is already
 	# in $a0. As the first argument is passed in $a0, no operation
 	# is needed.
-	
+
 	jal __main
 	nop
-	
+
 	#
 	# Not reached.
Index: uspace/lib/c/arch/mips32/src/entryjmp.S
===================================================================
--- uspace/lib/c/arch/mips32/src/entryjmp.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/mips32/src/entryjmp.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,8 +43,8 @@
 	# tmp := entry_point
 	move $t9, $a0
-	
+
 	# Pass pcb to the entry point in $a0
 	move $a0, $a1
-	
+
 	jr $t9
 	addiu $sp, -ABI_STACK_FRAME
Index: uspace/lib/c/arch/mips32/src/fibril.S
===================================================================
--- uspace/lib/c/arch/mips32/src/fibril.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/mips32/src/fibril.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,45 +46,45 @@
 	sw $s8, CONTEXT_OFFSET_S8($a0)
 	sw $gp, CONTEXT_OFFSET_GP($a0)
-	
+
 	sw $k1, CONTEXT_OFFSET_TLS($a0)
-	
+
 #ifdef CONFIG_FPU
 	mfc1 $t0, $20
 	sw $t0, CONTEXT_OFFSET_F20($a0)
-	
+
 	mfc1 $t0, $21
 	sw $t0, CONTEXT_OFFSET_F21($a0)
-	
+
 	mfc1 $t0, $22
 	sw $t0, CONTEXT_OFFSET_F22($a0)
-	
+
 	mfc1 $t0, $23
 	sw $t0, CONTEXT_OFFSET_F23($a0)
-	
+
 	mfc1 $t0, $24
 	sw $t0, CONTEXT_OFFSET_F24($a0)
-	
+
 	mfc1 $t0, $25
 	sw $t0, CONTEXT_OFFSET_F25($a0)
-	
+
 	mfc1 $t0, $26
 	sw $t0, CONTEXT_OFFSET_F26($a0)
-	
+
 	mfc1 $t0, $27
 	sw $t0, CONTEXT_OFFSET_F27($a0)
-	
+
 	mfc1 $t0, $28
 	sw $t0, CONTEXT_OFFSET_F28($a0)
-	
+
 	mfc1 $t0, $29
 	sw $t0, CONTEXT_OFFSET_F29($a0)
-	
+
 	mfc1 $t0, $30
 	sw $t0, CONTEXT_OFFSET_F30($a0)
 #endif /* CONFIG_FPU */
-	
+
 	sw $ra, CONTEXT_OFFSET_PC($a0)
 	sw $sp, CONTEXT_OFFSET_SP($a0)
-	
+
 	# context_save returns 1
 	j $ra
@@ -104,47 +104,47 @@
 	lw $gp, CONTEXT_OFFSET_GP($a0)
 	lw $k1, CONTEXT_OFFSET_TLS($a0)
-	
+
 #ifdef CONFIG_FPU
 	lw $t0, CONTEXT_OFFSET_F20($a0)
 	mtc1 $t0, $20
-	
+
 	lw $t0, CONTEXT_OFFSET_F21($a0)
 	mtc1 $t0, $21
-	
+
 	lw $t0, CONTEXT_OFFSET_F22($a0)
 	mtc1 $t0, $22
-	
+
 	lw $t0, CONTEXT_OFFSET_F23($a0)
 	mtc1 $t0, $23
-	
+
 	lw $t0, CONTEXT_OFFSET_F24($a0)
 	mtc1 $t0, $24
-	
+
 	lw $t0, CONTEXT_OFFSET_F25($a0)
 	mtc1 $t0, $25
-	
+
 	lw $t0, CONTEXT_OFFSET_F26($a0)
 	mtc1 $t0, $26
-	
+
 	lw $t0, CONTEXT_OFFSET_F27($a0)
 	mtc1 $t0, $27
-	
+
 	lw $t0, CONTEXT_OFFSET_F28($a0)
 	mtc1 $t0, $28
-	
+
 	lw $t0, CONTEXT_OFFSET_F29($a0)
 	mtc1 $t0, $29
-	
+
 	lw $t0, CONTEXT_OFFSET_F30($a0)
 	mtc1 $t0, $30
 #endif /* CONFIG_FPU */
-	
+
 	lw $ra, CONTEXT_OFFSET_PC($a0)
 	lw $sp, CONTEXT_OFFSET_SP($a0)
-	
+
 	# Just for the jump into first function,
 	# but one instruction should not bother us
 	move $t9, $ra
-	
+
 	# context_restore returns 0
 	j $ra
Index: uspace/lib/c/arch/mips32/src/syscall.c
===================================================================
--- uspace/lib/c/arch/mips32/src/syscall.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/mips32/src/syscall.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	register sysarg_t __mips_reg_t1 asm("$9") = p6;
 	register sysarg_t __mips_reg_v0 asm("$2") = id;
-	
+
 	asm volatile (
 		"syscall\n"
@@ -63,5 +63,5 @@
 		: "%ra"
 	);
-	
+
 	return __mips_reg_v0;
 }
Index: uspace/lib/c/arch/mips32/src/thread_entry.S
===================================================================
--- uspace/lib/c/arch/mips32/src/thread_entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/mips32/src/thread_entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,19 +43,19 @@
 	.frame $sp, ABI_STACK_FRAME, $ra
 	.cpload $t9
-	
+
 	#
 	# v0 contains address of uarg.
 	#
 	add $a0, $v0, 0
-	
+
 	# Allocate the stack frame.
 	addiu $sp, -ABI_STACK_FRAME
-	
+
 	# Allow PIC code
 	.cprestore 16
-	
+
 	jal __thread_main
 	nop
-	
+
 	#
 	# Not reached.
Index: uspace/lib/c/arch/ppc32/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/ppc32/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ppc32/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,5 +43,5 @@
 {
 	atomic_count_t tmp;
-	
+
 	asm volatile (
 		"1:\n"
@@ -61,5 +61,5 @@
 {
 	atomic_count_t tmp;
-	
+
 	asm volatile (
 		"1:\n"
Index: uspace/lib/c/arch/ppc32/include/libarch/tls.h
===================================================================
--- uspace/lib/c/arch/ppc32/include/libarch/tls.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ppc32/include/libarch/tls.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 	void *tp = tcb;
 	tp += PPC_TP_OFFSET + sizeof(tcb_t);
-	
+
 	asm volatile (
 		"mr %%r2, %0\n"
@@ -59,5 +59,5 @@
 {
 	void * retval;
-	
+
 	asm volatile (
 		"mr %0, %%r2\n"
Index: uspace/lib/c/arch/ppc32/src/entry.S
===================================================================
--- uspace/lib/c/arch/ppc32/src/entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ppc32/src/entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,5 +44,5 @@
 	stw %r3, 0(%r1)
 	stwu %r1, -16(%r1)
-	
+
 	# Pass the PCB pointer to __main() as the first argument.
 	# The first argument is passed in r3.
Index: uspace/lib/c/arch/ppc32/src/fibril.S
===================================================================
--- uspace/lib/c/arch/ppc32/src/fibril.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ppc32/src/fibril.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,11 +55,11 @@
 	stw r30, CONTEXT_OFFSET_R30(r3)
 	stw r31, CONTEXT_OFFSET_R31(r3)
-	
+
 	mflr r4
 	stw r4, CONTEXT_OFFSET_PC(r3)
-	
+
 	mfcr r4
 	stw r4, CONTEXT_OFFSET_CR(r3)
-	
+
 	# context_save returns 1
 	li r3, 1
@@ -89,11 +89,11 @@
 	lwz r30, CONTEXT_OFFSET_R30(r3)
 	lwz r31, CONTEXT_OFFSET_R31(r3)
-	
+
 	lwz r4, CONTEXT_OFFSET_CR(r3)
 	mtcr r4
-	
+
 	lwz r4, CONTEXT_OFFSET_PC(r3)
 	mtlr r4
-	
+
 	# context_restore returns 0
 	li r3, 0
Index: uspace/lib/c/arch/ppc32/src/syscall.c
===================================================================
--- uspace/lib/c/arch/ppc32/src/syscall.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ppc32/src/syscall.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,5 +47,5 @@
 	register sysarg_t __ppc32_reg_r8 asm("8") = p6;
 	register sysarg_t __ppc32_reg_r9 asm("9") = id;
-	
+
 	asm volatile (
 		"sc\n"
@@ -59,5 +59,5 @@
 		  "r" (__ppc32_reg_r9)
 	);
-	
+
 	return __ppc32_reg_r3;
 }
Index: uspace/lib/c/arch/ppc32/src/thread_entry.S
===================================================================
--- uspace/lib/c/arch/ppc32/src/thread_entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/ppc32/src/thread_entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -30,5 +30,5 @@
 
 .text
-	
+
 ## User-space thread entry point for all but the first threads.
 #
Index: uspace/lib/c/arch/riscv64/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/riscv64/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/riscv64/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 		return true;
 	}
-	
+
 	return false;
 }
@@ -59,5 +59,5 @@
 	/* On real hardware the increment has to be done
 	   as an atomic action. */
-	
+
 	val->count++;
 }
@@ -67,5 +67,5 @@
 	/* On real hardware the decrement has to be done
 	   as an atomic action. */
-	
+
 	val->count++;
 }
@@ -76,7 +76,7 @@
 	   value and the increment have to be done as a single
 	   atomic action. */
-	
+
 	atomic_count_t prev = val->count;
-	
+
 	val->count++;
 	return prev;
@@ -88,7 +88,7 @@
 	   value and the decrement have to be done as a single
 	   atomic action. */
-	
+
 	atomic_count_t prev = val->count;
-	
+
 	val->count--;
 	return prev;
Index: uspace/lib/c/arch/sparc64/include/libarch/atomic.h
===================================================================
--- uspace/lib/c/arch/sparc64/include/libarch/atomic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/sparc64/include/libarch/atomic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,11 +55,11 @@
 	atomic_count_t a;
 	atomic_count_t b;
-	
+
 	do {
 		volatile uintptr_t ptr = (uintptr_t) &val->count;
-		
+
 		a = *((atomic_count_t *) ptr);
 		b = a + i;
-		
+
 		asm volatile (
 			"casx %0, %2, %1\n"
@@ -69,5 +69,5 @@
 		);
 	} while (a != b);
-	
+
 	return a;
 }
Index: uspace/lib/c/arch/sparc64/include/libarch/syscall.h
===================================================================
--- uspace/lib/c/arch/sparc64/include/libarch/syscall.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/sparc64/include/libarch/syscall.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 		: "memory"
 	);
-	
+
 	return a1;
 }
Index: uspace/lib/c/arch/sparc64/src/entry.S
===================================================================
--- uspace/lib/c/arch/sparc64/src/entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/sparc64/src/entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,5 +45,5 @@
 	flushw
 	add %g0, -0x7ff, %fp
-	
+
 	# Pass pcb_ptr as the first argument to __main()
 	mov %i1, %o0
Index: uspace/lib/c/arch/sparc64/src/fibril.S
===================================================================
--- uspace/lib/c/arch/sparc64/src/fibril.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/sparc64/src/fibril.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,5 +68,5 @@
 	#
 	flushw
-	
+
 	ldx [%o0 + CONTEXT_OFFSET_SP], %sp
 	ldx [%o0 + CONTEXT_OFFSET_PC], %o7
Index: uspace/lib/c/arch/sparc64/src/thread_entry.S
===================================================================
--- uspace/lib/c/arch/sparc64/src/thread_entry.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/arch/sparc64/src/thread_entry.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -30,5 +30,5 @@
 
 .text
-	
+
 ## User-space thread entry point for all but the first threads.
 #
@@ -50,4 +50,4 @@
 	call __thread_main		! %o0 contains address of uarg
 	or %l7, %lo(_gp), %l7
-	
+
 	! not reached
Index: uspace/lib/c/generic/adt/checksum.c
===================================================================
--- uspace/lib/c/generic/adt/checksum.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/adt/checksum.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -136,8 +136,8 @@
 {
 	uint32_t crc;
-	
+
 	for (crc = ~seed; length > 0; length--)
 		crc = poly_table[((uint8_t) crc ^ *(data++))] ^ (crc >> 8);
-	
+
 	return (~crc);
 }
Index: uspace/lib/c/generic/adt/circ_buf.c
===================================================================
--- uspace/lib/c/generic/adt/circ_buf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/adt/circ_buf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -30,5 +30,5 @@
  * @{
  */
- 
+
 /** @file Circular buffer
  */
Index: uspace/lib/c/generic/adt/hash_table.c
===================================================================
--- uspace/lib/c/generic/adt/hash_table.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/adt/hash_table.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -96,14 +96,14 @@
 	assert(h);
 	assert(op && op->hash && op->key_hash && op->key_equal);
-	
+
 	/* Check for compulsory ops. */
 	if (!op || !op->hash || !op->key_hash || !op->key_equal)
 		return false;
-	
+
 	h->bucket_cnt = round_up_size(init_size);
-	
+
 	if (!alloc_table(h->bucket_cnt, &h->bucket))
 		return false;
-	
+
 	h->max_load = (max_load == 0) ? HT_MAX_LOAD : max_load;
 	h->item_cnt = 0;
@@ -115,5 +115,5 @@
 		h->op->remove_callback = nop_remove_callback;
 	}
-	
+
 	return true;
 }
@@ -128,7 +128,7 @@
 	assert(h && h->bucket);
 	assert(!h->apply_ongoing);
-	
+
 	clear_items(h);
-	
+
 	free(h->bucket);
 
@@ -159,7 +159,7 @@
 	assert(h && h->bucket);
 	assert(!h->apply_ongoing);
-	
+
 	clear_items(h);
-	
+
 	/* Shrink the table to its minimum size if possible. */
 	if (HT_MIN_BUCKETS < h->bucket_cnt) {
@@ -173,15 +173,15 @@
 	if (h->item_cnt == 0)
 		return;
-	
+
 	for (size_t idx = 0; idx < h->bucket_cnt; ++idx) {
 		list_foreach_safe(h->bucket[idx], cur, next) {
 			assert(cur);
 			ht_link_t *cur_link = member_to_inst(cur, ht_link_t, link);
-			
+
 			list_remove(cur);
 			h->op->remove_callback(cur_link);
 		}
 	}
-	
+
 	h->item_cnt = 0;
 }
@@ -197,7 +197,7 @@
 	assert(h && h->bucket);
 	assert(!h->apply_ongoing);
-	
+
 	size_t idx = h->op->hash(item) % h->bucket_cnt;
-	
+
 	list_append(&item->link, &h->bucket[idx]);
 	++h->item_cnt;
@@ -220,7 +220,7 @@
 	assert(h->op && h->op->hash && h->op->equal);
 	assert(!h->apply_ongoing);
-	
+
 	size_t idx = h->op->hash(item) % h->bucket_cnt;
-	
+
 	/* Check for duplicates. */
 	list_foreach(h->bucket[idx], link, ht_link_t, cur_link) {
@@ -232,9 +232,9 @@
 			return false;
 	}
-	
+
 	list_append(&item->link, &h->bucket[idx]);
 	++h->item_cnt;
 	grow_if_needed(h);
-	
+
 	return true;
 }
@@ -251,5 +251,5 @@
 {
 	assert(h && h->bucket);
-	
+
 	size_t idx = h->op->key_hash(key) % h->bucket_cnt;
 
@@ -264,5 +264,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -306,12 +306,12 @@
 	assert(h && h->bucket);
 	assert(!h->apply_ongoing);
-	
+
 	size_t idx = h->op->key_hash(key) % h->bucket_cnt;
 
 	size_t removed = 0;
-	
+
 	list_foreach_safe(h->bucket[idx], cur, next) {
 		ht_link_t *cur_link = member_to_inst(cur, ht_link_t, link);
-		
+
 		if (h->op->key_equal(key, cur_link)) {
 			++removed;
@@ -323,5 +323,5 @@
 	h->item_cnt -= removed;
 	shrink_if_needed(h);
-	
+
 	return removed;
 }
@@ -353,10 +353,10 @@
 	assert(f);
 	assert(h && h->bucket);
-	
+
 	if (h->item_cnt == 0)
 		return;
-	
+
 	h->apply_ongoing = true;
-	
+
 	for (size_t idx = 0; idx < h->bucket_cnt; ++idx) {
 		list_foreach_safe(h->bucket[idx], cur, next) {
@@ -372,5 +372,5 @@
 out:
 	h->apply_ongoing = false;
-	
+
 	shrink_if_needed(h);
 	grow_if_needed(h);
@@ -381,9 +381,9 @@
 {
 	size_t rounded_size = HT_MIN_BUCKETS;
-	
+
 	while (rounded_size < size) {
 		rounded_size = 2 * rounded_size + 1;
 	}
-	
+
 	return rounded_size;
 }
@@ -393,9 +393,9 @@
 {
 	assert(pbuckets && HT_MIN_BUCKETS <= bucket_cnt);
-		
+
 	list_t *buckets = malloc(bucket_cnt * sizeof(list_t));
 	if (!buckets)
 		return false;
-	
+
 	for (size_t i = 0; i < bucket_cnt; i++)
 		list_initialize(&buckets[i]);
@@ -435,9 +435,9 @@
 	assert(h && h->bucket);
 	assert(HT_MIN_BUCKETS <= new_bucket_cnt);
-	
+
 	/* We are traversing the table and resizing would mess up the buckets. */
 	if (h->apply_ongoing)
 		return;
-	
+
 	list_t *new_buckets;
 
@@ -445,5 +445,5 @@
 	if (!alloc_table(new_bucket_cnt, &new_buckets))
 		return;
-	
+
 	if (0 < h->item_cnt) {
 		/* Rehash all the items to the new table. */
@@ -458,5 +458,5 @@
 		}
 	}
-	
+
 	free(h->bucket);
 	h->bucket = new_buckets;
Index: uspace/lib/c/generic/adt/list.c
===================================================================
--- uspace/lib/c/generic/adt/list.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/adt/list.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,5 +57,5 @@
 	bool found = false;
 	link_t *hlp = list->head.next;
-	
+
 	while (hlp != &list->head) {
 		if (hlp == link) {
@@ -65,5 +65,5 @@
 		hlp = hlp->next;
 	}
-	
+
 	return found;
 }
@@ -81,13 +81,13 @@
 	if (list_empty(list))
 		return;
-	
+
 	/* Attach list to destination. */
 	list->head.next->prev = pos;
 	list->head.prev->next = pos->next;
-	
+
 	/* Link destination list to the added list. */
 	pos->next->prev = list->head.prev;
 	pos->next = list->head.next;
-	
+
 	list_initialize(list);
 }
@@ -103,5 +103,5 @@
 {
 	unsigned long count = 0;
-	
+
 	link_t *link = list_first(list);
 	while (link != NULL) {
@@ -109,5 +109,5 @@
 		link = list_next(link, list);
 	}
-	
+
 	return count;
 }
Index: uspace/lib/c/generic/adt/odict.c
===================================================================
--- uspace/lib/c/generic/adt/odict.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/adt/odict.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -30,5 +30,5 @@
  * @{
  */
- 
+
 /** @file Ordered dictionary.
  *
Index: uspace/lib/c/generic/adt/prodcons.c
===================================================================
--- uspace/lib/c/generic/adt/prodcons.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/adt/prodcons.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,8 +47,8 @@
 {
 	fibril_mutex_lock(&pc->mtx);
-	
+
 	list_append(item, &pc->list);
 	fibril_condvar_signal(&pc->cv);
-	
+
 	fibril_mutex_unlock(&pc->mtx);
 }
@@ -57,13 +57,13 @@
 {
 	fibril_mutex_lock(&pc->mtx);
-	
+
 	while (list_empty(&pc->list))
 		fibril_condvar_wait(&pc->cv, &pc->mtx);
-	
+
 	link_t *head = list_first(&pc->list);
 	list_remove(head);
-	
+
 	fibril_mutex_unlock(&pc->mtx);
-	
+
 	return head;
 }
Index: uspace/lib/c/generic/arg_parse.c
===================================================================
--- uspace/lib/c/generic/arg_parse.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/arg_parse.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,8 +39,8 @@
 	if (str_cmp(arg, ashort) == 0)
 		return 0;
-	
+
 	if (str_lcmp(arg, along, str_length(along)) == 0)
 		return str_length(along);
-	
+
 	return -1;
 }
@@ -69,5 +69,5 @@
 {
 	char *rest;
-	
+
 	if (offset)
 		*value = strtol(argv[*index] + offset, &rest, 10);
@@ -77,8 +77,8 @@
 	} else
 		return ENOENT;
-	
+
 	if ((rest) && (*rest))
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -109,9 +109,9 @@
 {
 	char *arg;
-	
+
 	errno_t ret = arg_parse_string(argc, argv, index, &arg, offset);
 	if (ret != EOK)
 		return ret;
-	
+
 	return parser(arg, value);
 }
@@ -145,5 +145,5 @@
 	} else
 		return ENOENT;
-	
+
 	return EOK;
 }
Index: uspace/lib/c/generic/assert.c
===================================================================
--- uspace/lib/c/generic/assert.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/assert.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 	kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n",
 	    cond, file, line);
-	
+
 	/* Sometimes we know in advance that regular printf() would likely fail. */
 	abort();
@@ -60,5 +60,5 @@
 	kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n",
 	    cond, file, line);
-	
+
 	/*
 	 * Check if this is a nested or parallel assert.
@@ -66,5 +66,5 @@
 	if (atomic_postinc(&failed_asserts))
 		abort();
-	
+
 	/*
 	 * Attempt to print the message to standard output and display
@@ -75,5 +75,5 @@
 	    cond, file, line);
 	stacktrace_print();
-	
+
 	abort();
 }
Index: uspace/lib/c/generic/async.c
===================================================================
--- uspace/lib/c/generic/async.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/async.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -125,32 +125,32 @@
 	/** List of inactive exchanges */
 	list_t exch_list;
-	
+
 	/** Session interface */
 	iface_t iface;
-	
+
 	/** Exchange management style */
 	exch_mgmt_t mgmt;
-	
+
 	/** Session identification */
 	int phone;
-	
+
 	/** First clone connection argument */
 	sysarg_t arg1;
-	
+
 	/** Second clone connection argument */
 	sysarg_t arg2;
-	
+
 	/** Third clone connection argument */
 	sysarg_t arg3;
-	
+
 	/** Exchange mutex */
 	fibril_mutex_t mutex;
-	
+
 	/** Number of opened exchanges */
 	atomic_t refcnt;
-	
+
 	/** Mutex for stateful connections */
 	fibril_mutex_t remote_state_mtx;
-	
+
 	/** Data for stateful connections */
 	void *remote_state_data;
@@ -161,11 +161,11 @@
 	/** Link into list of inactive exchanges */
 	link_t sess_link;
-	
+
 	/** Link into global list of inactive exchanges */
 	link_t global_link;
-	
+
 	/** Session pointer */
 	async_sess_t *sess;
-	
+
 	/** Exchange identification */
 	int phone;
@@ -184,5 +184,5 @@
 typedef struct {
 	link_t link;
-	
+
 	cap_handle_t chandle;
 	ipc_call_t call;
@@ -192,17 +192,17 @@
 typedef struct {
 	awaiter_t wdata;
-	
+
 	/** If reply was received. */
 	bool done;
-	
+
 	/** If the message / reply should be discarded on arrival. */
 	bool forget;
-	
+
 	/** If already destroyed. */
 	bool destroyed;
-	
+
 	/** Pointer to where the answer data is stored. */
 	ipc_call_t *dataptr;
-	
+
 	errno_t retval;
 } amsg_t;
@@ -211,5 +211,5 @@
 typedef struct {
 	ht_link_t link;
-	
+
 	task_id_t in_task_id;
 	atomic_t refcnt;
@@ -220,32 +220,32 @@
 typedef struct {
 	awaiter_t wdata;
-	
+
 	/** Hash table link. */
 	ht_link_t link;
-	
+
 	/** Incoming client task ID. */
 	task_id_t in_task_id;
-	
+
 	/** Incoming phone hash. */
 	sysarg_t in_phone_hash;
-	
+
 	/** Link to the client tracking structure. */
 	client_t *client;
-	
+
 	/** Messages that should be delivered to this fibril. */
 	list_t msg_queue;
-	
+
 	/** Identification of the opening call. */
 	cap_handle_t chandle;
-	
+
 	/** Call data of the opening call. */
 	ipc_call_t call;
-	
+
 	/** Identification of the closing call. */
 	cap_handle_t close_chandle;
-	
+
 	/** Fibril function that will be used to handle the connection. */
 	async_port_handler_t handler;
-	
+
 	/** Client data */
 	void *data;
@@ -255,14 +255,14 @@
 typedef struct {
 	ht_link_t link;
-	
+
 	/** Interface ID */
 	iface_t iface;
-	
+
 	/** Futex protecting the hash table */
 	futex_t futex;
-	
+
 	/** Interface ports */
 	hash_table_t port_hash_table;
-	
+
 	/** Next available port ID */
 	port_id_t port_id_avail;
@@ -272,11 +272,11 @@
 typedef struct {
 	ht_link_t link;
-	
+
 	/** Port ID */
 	port_id_t id;
-	
+
 	/** Port connection handler */
 	async_port_handler_t handler;
-	
+
 	/** Client data */
 	void *data;
@@ -286,11 +286,11 @@
 typedef struct {
 	ht_link_t link;
-	
+
 	/** Notification method */
 	sysarg_t imethod;
-	
+
 	/** Notification handler */
 	async_notification_handler_t handler;
-	
+
 	/** Notification data */
 	void *data;
@@ -303,5 +303,5 @@
 {
 	struct timeval tv = { 0, 0 };
-	
+
 	to->inlist = false;
 	to->occurred = false;
@@ -335,5 +335,5 @@
 		awaiter_initialize(&msg->wdata);
 	}
-	
+
 	return msg;
 }
@@ -456,5 +456,5 @@
 	if (!interface)
 		return NULL;
-	
+
 	bool ret = hash_table_create(&interface->port_hash_table, 0, 0,
 	    &port_hash_table_ops);
@@ -463,11 +463,11 @@
 		return NULL;
 	}
-	
+
 	interface->iface = iface;
 	futex_initialize(&interface->futex, 1);
 	interface->port_id_avail = 0;
-	
+
 	hash_table_insert(&interface_hash_table, &interface->link);
-	
+
 	return interface;
 }
@@ -479,18 +479,18 @@
 	if (!port)
 		return NULL;
-	
+
 	futex_down(&interface->futex);
-	
+
 	port_id_t id = interface->port_id_avail;
 	interface->port_id_avail++;
-	
+
 	port->id = id;
 	port->handler = handler;
 	port->data = data;
-	
+
 	hash_table_insert(&interface->port_hash_table, &port->link);
-	
+
 	futex_up(&interface->futex);
-	
+
 	return port;
 }
@@ -516,9 +516,9 @@
 	if ((iface & IFACE_MOD_MASK) == IFACE_MOD_CALLBACK)
 		return EINVAL;
-	
+
 	interface_t *interface;
-	
+
 	futex_down(&async_futex);
-	
+
 	ht_link_t *link = hash_table_find(&interface_hash_table, &iface);
 	if (link)
@@ -526,10 +526,10 @@
 	else
 		interface = async_new_interface(iface);
-	
+
 	if (!interface) {
 		futex_up(&async_futex);
 		return ENOMEM;
 	}
-	
+
 	port_t *port = async_new_port(interface, handler, data);
 	if (!port) {
@@ -537,9 +537,9 @@
 		return ENOMEM;
 	}
-	
+
 	*port_id = port->id;
-	
+
 	futex_up(&async_futex);
-	
+
 	return EOK;
 }
@@ -548,5 +548,5 @@
 {
 	assert(handler != NULL);
-	
+
 	fallback_port_handler = handler;
 	fallback_port_data = data;
@@ -645,5 +645,5 @@
 {
 	client_t *client = NULL;
-	
+
 	futex_down(&async_futex);
 	ht_link_t *link = hash_table_find(&client_hash_table, &client_id);
@@ -656,10 +656,10 @@
 			client->in_task_id = client_id;
 			client->data = async_client_data_create();
-			
+
 			atomic_set(&client->refcnt, 1);
 			hash_table_insert(&client_hash_table, &client->link);
 		}
 	}
-	
+
 	futex_up(&async_futex);
 	return client;
@@ -669,7 +669,7 @@
 {
 	bool destroy;
-	
+
 	futex_down(&async_futex);
-	
+
 	if (atomic_predec(&client->refcnt) == 0) {
 		hash_table_remove(&client_hash_table, &client->in_task_id);
@@ -677,11 +677,11 @@
 	} else
 		destroy = false;
-	
+
 	futex_up(&async_futex);
-	
+
 	if (destroy) {
 		if (client->data)
 			async_client_data_destroy(client->data);
-		
+
 		free(client);
 	}
@@ -701,10 +701,10 @@
 {
 	assert(arg);
-	
+
 	/*
 	 * Setup fibril-local connection pointer.
 	 */
 	fibril_connection = (connection_t *) arg;
-	
+
 	/*
 	 * Add our reference for the current connection in the client task
@@ -712,5 +712,5 @@
 	 * hash in a new tracking structure.
 	 */
-	
+
 	client_t *client = async_client_get(fibril_connection->in_task_id, true);
 	if (!client) {
@@ -718,7 +718,7 @@
 		return 0;
 	}
-	
+
 	fibril_connection->client = client;
-	
+
 	/*
 	 * Call the connection handler function.
@@ -726,10 +726,10 @@
 	fibril_connection->handler(fibril_connection->chandle,
 	    &fibril_connection->call, fibril_connection->data);
-	
+
 	/*
 	 * Remove the reference for this client task connection.
 	 */
 	async_client_put(client);
-	
+
 	/*
 	 * Remove myself from the connection hash table.
@@ -741,5 +741,5 @@
 	});
 	futex_up(&async_futex);
-	
+
 	/*
 	 * Answer all remaining messages with EHANGUP.
@@ -749,10 +749,10 @@
 		    list_get_instance(list_first(&fibril_connection->msg_queue),
 		    msg_t, link);
-		
+
 		list_remove(&msg->link);
 		ipc_answer_0(msg->chandle, EHANGUP);
 		free(msg);
 	}
-	
+
 	/*
 	 * If the connection was hung-up, answer the last call,
@@ -761,5 +761,5 @@
 	if (fibril_connection->close_chandle)
 		ipc_answer_0(fibril_connection->close_chandle, EOK);
-	
+
 	free(fibril_connection);
 	return EOK;
@@ -793,8 +793,8 @@
 		if (chandle != CAP_NIL)
 			ipc_answer_0(chandle, ENOMEM);
-		
+
 		return (uintptr_t) NULL;
 	}
-	
+
 	conn->in_task_id = in_task_id;
 	conn->in_phone_hash = in_phone_hash;
@@ -804,29 +804,29 @@
 	conn->handler = handler;
 	conn->data = data;
-	
+
 	if (call)
 		conn->call = *call;
-	
+
 	/* We will activate the fibril ASAP */
 	conn->wdata.active = true;
 	conn->wdata.fid = fibril_create(connection_fibril, conn);
-	
+
 	if (conn->wdata.fid == 0) {
 		free(conn);
-		
+
 		if (chandle != CAP_NIL)
 			ipc_answer_0(chandle, ENOMEM);
-		
+
 		return (uintptr_t) NULL;
 	}
-	
+
 	/* Add connection to the connection hash table */
-	
+
 	futex_down(&async_futex);
 	hash_table_insert(&conn_hash_table, &conn->link);
 	futex_up(&async_futex);
-	
+
 	fibril_add_ready(conn->wdata.fid);
-	
+
 	return conn->wdata.fid;
 }
@@ -852,22 +852,22 @@
 	if ((iface & IFACE_MOD_CALLBACK) != IFACE_MOD_CALLBACK)
 		return EINVAL;
-	
+
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_3(exch, IPC_M_CONNECT_TO_ME, iface, arg1, arg2,
 	    &answer);
-	
+
 	errno_t ret;
 	async_wait_for(req, &ret);
 	if (ret != EOK)
 		return (errno_t) ret;
-	
+
 	sysarg_t phone_hash = IPC_GET_ARG5(answer);
 	interface_t *interface;
-	
+
 	futex_down(&async_futex);
-	
+
 	ht_link_t *link = hash_table_find(&interface_hash_table, &iface);
 	if (link)
@@ -875,10 +875,10 @@
 	else
 		interface = async_new_interface(iface);
-	
+
 	if (!interface) {
 		futex_up(&async_futex);
 		return ENOMEM;
 	}
-	
+
 	port_t *port = async_new_port(interface, handler, data);
 	if (!port) {
@@ -886,14 +886,14 @@
 		return ENOMEM;
 	}
-	
+
 	*port_id = port->id;
-	
+
 	futex_up(&async_futex);
-	
+
 	fid_t fid = async_new_connection(answer.in_task_id, phone_hash,
 	    CAP_NIL, NULL, handler, data);
 	if (fid == (uintptr_t) NULL)
 		return ENOMEM;
-	
+
 	return EOK;
 }
@@ -937,19 +937,19 @@
 {
 	assert(wd);
-	
+
 	wd->to_event.occurred = false;
 	wd->to_event.inlist = true;
-	
+
 	link_t *tmp = timeout_list.head.next;
 	while (tmp != &timeout_list.head) {
 		awaiter_t *cur
 		    = list_get_instance(tmp, awaiter_t, to_event.link);
-		
+
 		if (tv_gteq(&cur->to_event.expires, &wd->to_event.expires))
 			break;
-		
+
 		tmp = tmp->next;
 	}
-	
+
 	list_insert_before(&wd->to_event.link, tmp);
 }
@@ -971,7 +971,7 @@
 {
 	assert(call);
-	
+
 	futex_down(&async_futex);
-	
+
 	ht_link_t *link = hash_table_find(&conn_hash_table, &(conn_key_t){
 		.task_id = call->in_task_id,
@@ -982,7 +982,7 @@
 		return false;
 	}
-	
+
 	connection_t *conn = hash_table_get_inst(link, connection_t, link);
-	
+
 	msg_t *msg = malloc(sizeof(*msg));
 	if (!msg) {
@@ -990,15 +990,15 @@
 		return false;
 	}
-	
+
 	msg->chandle = chandle;
 	msg->call = *call;
 	list_append(&msg->link, &conn->msg_queue);
-	
+
 	if (IPC_GET_IMETHOD(*call) == IPC_M_PHONE_HUNGUP)
 		conn->close_chandle = chandle;
-	
+
 	/* If the connection fibril is waiting for an event, activate it */
 	if (!conn->wdata.active) {
-		
+
 		/* If in timeout list, remove it */
 		if (conn->wdata.to_event.inlist) {
@@ -1006,9 +1006,9 @@
 			list_remove(&conn->wdata.to_event.link);
 		}
-		
+
 		conn->wdata.active = true;
 		fibril_add_ready(conn->wdata.fid);
 	}
-	
+
 	futex_up(&async_futex);
 	return true;
@@ -1026,7 +1026,7 @@
 
 	assert(call);
-	
+
 	futex_down(&async_futex);
-	
+
 	ht_link_t *link = hash_table_find(&notification_hash_table,
 	    &IPC_GET_IMETHOD(*call));
@@ -1037,7 +1037,7 @@
 		data = notification->data;
 	}
-	
+
 	futex_up(&async_futex);
-	
+
 	if (handler)
 		handler(call, data);
@@ -1063,18 +1063,18 @@
 	if (!notification)
 		return ENOMEM;
-	
+
 	futex_down(&async_futex);
-	
+
 	sysarg_t imethod = notification_avail;
 	notification_avail++;
-	
+
 	notification->imethod = imethod;
 	notification->handler = handler;
 	notification->data = data;
-	
+
 	hash_table_insert(&notification_hash_table, &notification->link);
-	
+
 	futex_up(&async_futex);
-	
+
 	cap_handle_t cap;
 	errno_t rc = ipc_irq_subscribe(inr, imethod, ucode, &cap);
@@ -1096,5 +1096,5 @@
 	// TODO: Remove entry from hash table
 	//       to avoid memory leak
-	
+
 	return ipc_irq_unsubscribe(cap);
 }
@@ -1116,18 +1116,18 @@
 	if (!notification)
 		return ENOMEM;
-	
+
 	futex_down(&async_futex);
-	
+
 	sysarg_t imethod = notification_avail;
 	notification_avail++;
-	
+
 	notification->imethod = imethod;
 	notification->handler = handler;
 	notification->data = data;
-	
+
 	hash_table_insert(&notification_hash_table, &notification->link);
-	
+
 	futex_up(&async_futex);
-	
+
 	return ipc_event_subscribe(evno, imethod);
 }
@@ -1149,18 +1149,18 @@
 	if (!notification)
 		return ENOMEM;
-	
+
 	futex_down(&async_futex);
-	
+
 	sysarg_t imethod = notification_avail;
 	notification_avail++;
-	
+
 	notification->imethod = imethod;
 	notification->handler = handler;
 	notification->data = data;
-	
+
 	hash_table_insert(&notification_hash_table, &notification->link);
-	
+
 	futex_up(&async_futex);
-	
+
 	return ipc_event_task_subscribe(evno, imethod);
 }
@@ -1204,5 +1204,5 @@
 	assert(call);
 	assert(fibril_connection);
-	
+
 	/* Why doing this?
 	 * GCC 4.1.0 coughs on fibril_connection-> dereference.
@@ -1212,7 +1212,7 @@
 	 */
 	connection_t *conn = fibril_connection;
-	
+
 	futex_down(&async_futex);
-	
+
 	if (usecs) {
 		getuptime(&conn->wdata.to_event.expires);
@@ -1220,5 +1220,5 @@
 	} else
 		conn->wdata.to_event.inlist = false;
-	
+
 	/* If nothing in queue, wait until something arrives */
 	while (list_empty(&conn->msg_queue)) {
@@ -1236,10 +1236,10 @@
 			return conn->close_chandle;
 		}
-		
+
 		if (usecs)
 			async_insert_timeout(&conn->wdata);
-		
+
 		conn->wdata.active = false;
-		
+
 		/*
 		 * Note: the current fibril will be rescheduled either due to a
@@ -1249,5 +1249,5 @@
 		 */
 		fibril_switch(FIBRIL_TO_MANAGER);
-		
+
 		/*
 		 * Futex is up after getting back from async_manager.
@@ -1262,13 +1262,13 @@
 		}
 	}
-	
+
 	msg_t *msg = list_get_instance(list_first(&conn->msg_queue),
 	    msg_t, link);
 	list_remove(&msg->link);
-	
+
 	cap_handle_t chandle = msg->chandle;
 	*call = msg->call;
 	free(msg);
-	
+
 	futex_up(&async_futex);
 	return chandle;
@@ -1286,10 +1286,10 @@
 	if (!client)
 		return NULL;
-	
+
 	if (!client->data) {
 		async_client_put(client);
 		return NULL;
 	}
-	
+
 	return client->data;
 }
@@ -1298,11 +1298,11 @@
 {
 	client_t *client = async_client_get(client_id, false);
-	
+
 	assert(client);
 	assert(client->data);
-	
+
 	/* Drop the reference we got in async_get_client_data_by_hash(). */
 	async_client_put(client);
-	
+
 	/* Drop our own reference we got at the beginning of this function. */
 	async_client_put(client);
@@ -1312,19 +1312,19 @@
 {
 	port_t *port = NULL;
-	
+
 	futex_down(&async_futex);
-	
+
 	ht_link_t *link = hash_table_find(&interface_hash_table, &iface);
 	if (link) {
 		interface_t *interface =
 		    hash_table_get_inst(link, interface_t, link);
-		
+
 		link = hash_table_find(&interface->port_hash_table, &port_id);
 		if (link)
 			port = hash_table_get_inst(link, port_t, link);
 	}
-	
+
 	futex_up(&async_futex);
-	
+
 	return port;
 }
@@ -1342,12 +1342,12 @@
 {
 	assert(call);
-	
+
 	/* Kernel notification */
 	if ((chandle == CAP_NIL) && (call->flags & IPC_CALL_NOTIF)) {
 		fibril_t *fibril = (fibril_t *) __tcb_get()->fibril_data;
 		unsigned oldsw = fibril->switches;
-		
+
 		process_notification(call);
-		
+
 		if (oldsw != fibril->switches) {
 			/*
@@ -1365,16 +1365,16 @@
 			fibril_switch(FIBRIL_FROM_DEAD);
 		}
-		
+
 		return;
 	}
-	
+
 	/* New connection */
 	if (IPC_GET_IMETHOD(*call) == IPC_M_CONNECT_ME_TO) {
 		iface_t iface = (iface_t) IPC_GET_ARG1(*call);
 		sysarg_t in_phone_hash = IPC_GET_ARG5(*call);
-		
+
 		async_port_handler_t handler = fallback_port_handler;
 		void *data = fallback_port_data;
-		
+
 		// TODO: Currently ignores all ports but the first one
 		port_t *port = async_find_port(iface, 0);
@@ -1383,14 +1383,14 @@
 			data = port->data;
 		}
-		
+
 		async_new_connection(call->in_task_id, in_phone_hash, chandle,
 		    call, handler, data);
 		return;
 	}
-	
+
 	/* Try to route the call through the connection hash table */
 	if (route_call(chandle, call))
 		return;
-	
+
 	/* Unknown call from unknown phone - hang it up */
 	ipc_answer_0(chandle, EHANGUP);
@@ -1402,19 +1402,19 @@
 	struct timeval tv;
 	getuptime(&tv);
-	
+
 	futex_down(&async_futex);
-	
+
 	link_t *cur = list_first(&timeout_list);
 	while (cur != NULL) {
 		awaiter_t *waiter =
 		    list_get_instance(cur, awaiter_t, to_event.link);
-		
+
 		if (tv_gt(&waiter->to_event.expires, &tv))
 			break;
-		
+
 		list_remove(&waiter->to_event.link);
 		waiter->to_event.inlist = false;
 		waiter->to_event.occurred = true;
-		
+
 		/*
 		 * Redundant condition?
@@ -1425,8 +1425,8 @@
 			fibril_add_ready(waiter->fid);
 		}
-		
+
 		cur = list_first(&timeout_list);
 	}
-	
+
 	futex_up(&async_futex);
 }
@@ -1448,7 +1448,7 @@
 			continue;
 		}
-		
+
 		futex_down(&async_futex);
-		
+
 		suseconds_t timeout;
 		unsigned int flags = SYNCH_FLAGS_NONE;
@@ -1456,8 +1456,8 @@
 			awaiter_t *waiter = list_get_instance(
 			    list_first(&timeout_list), awaiter_t, to_event.link);
-			
+
 			struct timeval tv;
 			getuptime(&tv);
-			
+
 			if (tv_gteq(&tv, &waiter->to_event.expires)) {
 				futex_up(&async_futex);
@@ -1485,12 +1485,12 @@
 			timeout = SYNCH_NO_TIMEOUT;
 		}
-		
+
 		atomic_inc(&threads_in_ipc_wait);
-		
+
 		ipc_call_t call;
 		errno_t rc = ipc_wait_cycle(&call, timeout, flags);
-		
+
 		atomic_dec(&threads_in_ipc_wait);
-		
+
 		assert(rc == EOK);
 
@@ -1524,10 +1524,10 @@
 {
 	futex_up(&async_futex);
-	
+
 	/*
 	 * async_futex is always locked when entering manager
 	 */
 	async_manager_worker();
-	
+
 	return 0;
 }
@@ -1555,19 +1555,19 @@
 	    &interface_hash_table_ops))
 		abort();
-	
+
 	if (!hash_table_create(&client_hash_table, 0, 0, &client_hash_table_ops))
 		abort();
-	
+
 	if (!hash_table_create(&conn_hash_table, 0, 0, &conn_hash_table_ops))
 		abort();
-	
+
 	if (!hash_table_create(&notification_hash_table, 0, 0,
 	    &notification_hash_table_ops))
 		abort();
-	
+
 	session_ns = (async_sess_t *) malloc(sizeof(async_sess_t));
 	if (session_ns == NULL)
 		abort();
-	
+
 	session_ns->iface = 0;
 	session_ns->mgmt = EXCHANGE_ATOMIC;
@@ -1576,8 +1576,8 @@
 	session_ns->arg2 = 0;
 	session_ns->arg3 = 0;
-	
+
 	fibril_mutex_initialize(&session_ns->remote_state_mtx);
 	session_ns->remote_state_data = NULL;
-	
+
 	list_initialize(&session_ns->exch_list);
 	fibril_mutex_initialize(&session_ns->mutex);
@@ -1600,22 +1600,22 @@
 {
 	assert(arg);
-	
+
 	futex_down(&async_futex);
-	
+
 	amsg_t *msg = (amsg_t *) arg;
 	msg->retval = retval;
-	
+
 	/* Copy data after futex_down, just in case the call was detached */
 	if ((msg->dataptr) && (data))
 		*msg->dataptr = *data;
-	
+
 	write_barrier();
-	
+
 	/* Remove message from timeout list */
 	if (msg->wdata.to_event.inlist)
 		list_remove(&msg->wdata.to_event.link);
-	
+
 	msg->done = true;
-	
+
 	if (msg->forget) {
 		assert(msg->wdata.active);
@@ -1625,5 +1625,5 @@
 		fibril_add_ready(msg->wdata.fid);
 	}
-	
+
 	futex_up(&async_futex);
 }
@@ -1650,15 +1650,15 @@
 	if (exch == NULL)
 		return 0;
-	
+
 	amsg_t *msg = amsg_create();
 	if (msg == NULL)
 		return 0;
-	
+
 	msg->dataptr = dataptr;
 	msg->wdata.active = true;
-	
+
 	ipc_call_async_4(exch->phone, imethod, arg1, arg2, arg3, arg4, msg,
 	    reply_received);
-	
+
 	return (aid_t) msg;
 }
@@ -1688,15 +1688,15 @@
 	if (exch == NULL)
 		return 0;
-	
+
 	amsg_t *msg = amsg_create();
 	if (msg == NULL)
 		return 0;
-	
+
 	msg->dataptr = dataptr;
 	msg->wdata.active = true;
-	
+
 	ipc_call_async_5(exch->phone, imethod, arg1, arg2, arg3, arg4, arg5,
 	    msg, reply_received);
-	
+
 	return (aid_t) msg;
 }
@@ -1712,30 +1712,30 @@
 {
 	assert(amsgid);
-	
+
 	amsg_t *msg = (amsg_t *) amsgid;
-	
+
 	futex_down(&async_futex);
-	
+
 	assert(!msg->forget);
 	assert(!msg->destroyed);
-	
+
 	if (msg->done) {
 		futex_up(&async_futex);
 		goto done;
 	}
-	
+
 	msg->wdata.fid = fibril_get_id();
 	msg->wdata.active = false;
 	msg->wdata.to_event.inlist = false;
-	
+
 	/* Leave the async_futex locked when entering this function */
 	fibril_switch(FIBRIL_TO_MANAGER);
-	
+
 	/* Futex is up automatically after fibril_switch */
-	
+
 done:
 	if (retval)
 		*retval = msg->retval;
-	
+
 	amsg_destroy(msg);
 }
@@ -1758,17 +1758,17 @@
 {
 	assert(amsgid);
-	
+
 	amsg_t *msg = (amsg_t *) amsgid;
-	
+
 	futex_down(&async_futex);
-	
+
 	assert(!msg->forget);
 	assert(!msg->destroyed);
-	
+
 	if (msg->done) {
 		futex_up(&async_futex);
 		goto done;
 	}
-	
+
 	/*
 	 * Negative timeout is converted to zero timeout to avoid
@@ -1777,8 +1777,8 @@
 	if (timeout < 0)
 		timeout = 0;
-	
+
 	getuptime(&msg->wdata.to_event.expires);
 	tv_add_diff(&msg->wdata.to_event.expires, timeout);
-	
+
 	/*
 	 * Current fibril is inserted as waiting regardless of the
@@ -1801,22 +1801,22 @@
 	msg->wdata.active = false;
 	async_insert_timeout(&msg->wdata);
-	
+
 	/* Leave the async_futex locked when entering this function */
 	fibril_switch(FIBRIL_TO_MANAGER);
-	
+
 	/* Futex is up automatically after fibril_switch */
-	
+
 	if (!msg->done)
 		return ETIMEOUT;
-	
+
 done:
 	if (retval)
 		*retval = msg->retval;
-	
+
 	amsg_destroy(msg);
-	
+
 	return 0;
 }
- 
+
 /** Discard the message / reply on arrival.
  *
@@ -1830,11 +1830,11 @@
 {
 	amsg_t *msg = (amsg_t *) amsgid;
-	
+
 	assert(msg);
 	assert(!msg->forget);
 	assert(!msg->destroyed);
-	
+
 	futex_down(&async_futex);
-	
+
 	if (msg->done) {
 		amsg_destroy(msg);
@@ -1843,5 +1843,5 @@
 		msg->forget = true;
 	}
-	
+
 	futex_up(&async_futex);
 }
@@ -1858,17 +1858,17 @@
 	awaiter_t awaiter;
 	awaiter_initialize(&awaiter);
-	
+
 	awaiter.fid = fibril_get_id();
-	
+
 	getuptime(&awaiter.to_event.expires);
 	tv_add_diff(&awaiter.to_event.expires, timeout);
-	
+
 	futex_down(&async_futex);
-	
+
 	async_insert_timeout(&awaiter);
-	
+
 	/* Leave the async_futex locked when entering this function */
 	fibril_switch(FIBRIL_TO_MANAGER);
-	
+
 	/* Futex is up automatically after fibril_switch() */
 }
@@ -1921,27 +1921,27 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	ipc_call_t result;
 	aid_t aid = async_send_4(exch, imethod, arg1, arg2, arg3, arg4,
 	    &result);
-	
+
 	errno_t rc;
 	async_wait_for(aid, &rc);
-	
+
 	if (r1)
 		*r1 = IPC_GET_ARG1(result);
-	
+
 	if (r2)
 		*r2 = IPC_GET_ARG2(result);
-	
+
 	if (r3)
 		*r3 = IPC_GET_ARG3(result);
-	
+
 	if (r4)
 		*r4 = IPC_GET_ARG4(result);
-	
+
 	if (r5)
 		*r5 = IPC_GET_ARG5(result);
-	
+
 	return rc;
 }
@@ -1973,27 +1973,27 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	ipc_call_t result;
 	aid_t aid = async_send_5(exch, imethod, arg1, arg2, arg3, arg4, arg5,
 	    &result);
-	
+
 	errno_t rc;
 	async_wait_for(aid, &rc);
-	
+
 	if (r1)
 		*r1 = IPC_GET_ARG1(result);
-	
+
 	if (r2)
 		*r2 = IPC_GET_ARG2(result);
-	
+
 	if (r3)
 		*r3 = IPC_GET_ARG3(result);
-	
+
 	if (r4)
 		*r4 = IPC_GET_ARG4(result);
-	
+
 	if (r5)
 		*r5 = IPC_GET_ARG5(result);
-	
+
 	return rc;
 }
@@ -2081,5 +2081,5 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	return ipc_forward_fast(chandle, exch->phone, imethod, arg1, arg2, mode);
 }
@@ -2091,5 +2091,5 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	return ipc_forward_slow(chandle, exch->phone, imethod, arg1, arg2, arg3,
 	    arg4, arg5, mode);
@@ -2113,14 +2113,14 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_3(exch, IPC_M_CONNECT_TO_ME, arg1, arg2, arg3,
 	    &answer);
-	
+
 	errno_t rc;
 	async_wait_for(req, &rc);
 	if (rc != EOK)
 		return (errno_t) rc;
-	
+
 	return EOK;
 }
@@ -2130,25 +2130,25 @@
 {
 	ipc_call_t result;
-	
+
 	// XXX: Workaround for GCC's inability to infer association between
 	// rc == EOK and *out_phone being assigned.
 	*out_phone = -1;
-	
+
 	amsg_t *msg = amsg_create();
 	if (!msg)
 		return ENOENT;
-	
+
 	msg->dataptr = &result;
 	msg->wdata.active = true;
-	
+
 	ipc_call_async_4(phone, IPC_M_CONNECT_ME_TO, arg1, arg2, arg3, arg4,
 	    msg, reply_received);
-	
+
 	errno_t rc;
 	async_wait_for((aid_t) msg, &rc);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	*out_phone = (int) IPC_GET_ARG5(result);
 	return EOK;
@@ -2175,5 +2175,5 @@
 		return NULL;
 	}
-	
+
 	async_sess_t *sess = (async_sess_t *) malloc(sizeof(async_sess_t));
 	if (sess == NULL) {
@@ -2181,5 +2181,5 @@
 		return NULL;
 	}
-	
+
 	int phone;
 	errno_t rc = async_connect_me_to_internal(exch->phone, arg1, arg2, arg3,
@@ -2190,5 +2190,5 @@
 		return NULL;
 	}
-	
+
 	sess->iface = 0;
 	sess->mgmt = mgmt;
@@ -2197,12 +2197,12 @@
 	sess->arg2 = arg2;
 	sess->arg3 = arg3;
-	
+
 	fibril_mutex_initialize(&sess->remote_state_mtx);
 	sess->remote_state_data = NULL;
-	
+
 	list_initialize(&sess->exch_list);
 	fibril_mutex_initialize(&sess->mutex);
 	atomic_set(&sess->refcnt, 0);
-	
+
 	return sess;
 }
@@ -2228,5 +2228,5 @@
 		return NULL;
 	}
-	
+
 	async_sess_t *sess = (async_sess_t *) malloc(sizeof(async_sess_t));
 	if (sess == NULL) {
@@ -2234,5 +2234,5 @@
 		return NULL;
 	}
-	
+
 	int phone;
 	errno_t rc = async_connect_me_to_internal(exch->phone, iface, arg2,
@@ -2243,5 +2243,5 @@
 		return NULL;
 	}
-	
+
 	sess->iface = iface;
 	sess->phone = phone;
@@ -2249,12 +2249,12 @@
 	sess->arg2 = arg2;
 	sess->arg3 = arg3;
-	
+
 	fibril_mutex_initialize(&sess->remote_state_mtx);
 	sess->remote_state_data = NULL;
-	
+
 	list_initialize(&sess->exch_list);
 	fibril_mutex_initialize(&sess->mutex);
 	atomic_set(&sess->refcnt, 0);
-	
+
 	return sess;
 }
@@ -2299,5 +2299,5 @@
 		return NULL;
 	}
-	
+
 	async_sess_t *sess = (async_sess_t *) malloc(sizeof(async_sess_t));
 	if (sess == NULL) {
@@ -2305,9 +2305,9 @@
 		return NULL;
 	}
-	
+
 	int phone;
 	errno_t rc = async_connect_me_to_internal(exch->phone, arg1, arg2, arg3,
 	    IPC_FLAG_BLOCKING, &phone);
-	
+
 	if (rc != EOK) {
 		errno = rc;
@@ -2315,5 +2315,5 @@
 		return NULL;
 	}
-	
+
 	sess->iface = 0;
 	sess->mgmt = mgmt;
@@ -2322,12 +2322,12 @@
 	sess->arg2 = arg2;
 	sess->arg3 = arg3;
-	
+
 	fibril_mutex_initialize(&sess->remote_state_mtx);
 	sess->remote_state_data = NULL;
-	
+
 	list_initialize(&sess->exch_list);
 	fibril_mutex_initialize(&sess->mutex);
 	atomic_set(&sess->refcnt, 0);
-	
+
 	return sess;
 }
@@ -2353,5 +2353,5 @@
 		return NULL;
 	}
-	
+
 	async_sess_t *sess = (async_sess_t *) malloc(sizeof(async_sess_t));
 	if (sess == NULL) {
@@ -2359,5 +2359,5 @@
 		return NULL;
 	}
-	
+
 	int phone;
 	errno_t rc = async_connect_me_to_internal(exch->phone, iface, arg2,
@@ -2368,5 +2368,5 @@
 		return NULL;
 	}
-	
+
 	sess->iface = iface;
 	sess->phone = phone;
@@ -2374,12 +2374,12 @@
 	sess->arg2 = arg2;
 	sess->arg3 = arg3;
-	
+
 	fibril_mutex_initialize(&sess->remote_state_mtx);
 	sess->remote_state_data = NULL;
-	
+
 	list_initialize(&sess->exch_list);
 	fibril_mutex_initialize(&sess->mutex);
 	atomic_set(&sess->refcnt, 0);
-	
+
 	return sess;
 }
@@ -2395,5 +2395,5 @@
 		return NULL;
 	}
-	
+
 	cap_handle_t phone;
 	errno_t rc = ipc_connect_kbox(id, &phone);
@@ -2403,5 +2403,5 @@
 		return NULL;
 	}
-	
+
 	sess->iface = 0;
 	sess->mgmt = EXCHANGE_ATOMIC;
@@ -2410,12 +2410,12 @@
 	sess->arg2 = 0;
 	sess->arg3 = 0;
-	
+
 	fibril_mutex_initialize(&sess->remote_state_mtx);
 	sess->remote_state_data = NULL;
-	
+
 	list_initialize(&sess->exch_list);
 	fibril_mutex_initialize(&sess->mutex);
 	atomic_set(&sess->refcnt, 0);
-	
+
 	return sess;
 }
@@ -2436,19 +2436,19 @@
 {
 	async_exch_t *exch;
-	
+
 	assert(sess);
-	
+
 	if (atomic_get(&sess->refcnt) > 0)
 		return EBUSY;
-	
+
 	fibril_mutex_lock(&async_sess_mutex);
-	
+
 	errno_t rc = async_hangup_internal(sess->phone);
-	
+
 	while (!list_empty(&sess->exch_list)) {
 		exch = (async_exch_t *)
 		    list_get_instance(list_first(&sess->exch_list),
 		    async_exch_t, sess_link);
-		
+
 		list_remove(&exch->sess_link);
 		list_remove(&exch->global_link);
@@ -2458,7 +2458,7 @@
 
 	free(sess);
-	
+
 	fibril_mutex_unlock(&async_sess_mutex);
-	
+
 	return rc;
 }
@@ -2481,13 +2481,13 @@
 	if (sess == NULL)
 		return NULL;
-	
+
 	exch_mgmt_t mgmt = sess->mgmt;
 	if (sess->iface != 0)
 		mgmt = sess->iface & IFACE_EXCHANGE_MASK;
-	
+
 	async_exch_t *exch = NULL;
-	
+
 	fibril_mutex_lock(&async_sess_mutex);
-	
+
 	if (!list_empty(&sess->exch_list)) {
 		/*
@@ -2497,5 +2497,5 @@
 		    list_get_instance(list_first(&sess->exch_list),
 		    async_exch_t, sess_link);
-		
+
 		list_remove(&exch->sess_link);
 		list_remove(&exch->global_link);
@@ -2504,5 +2504,5 @@
 		 * There are no available exchanges in the session.
 		 */
-		
+
 		if ((mgmt == EXCHANGE_ATOMIC) ||
 		    (mgmt == EXCHANGE_SERIALIZE)) {
@@ -2517,5 +2517,5 @@
 			int phone;
 			errno_t rc;
-			
+
 		retry:
 			/*
@@ -2542,5 +2542,5 @@
 				    list_get_instance(list_first(&inactive_exch_list),
 				    async_exch_t, global_link);
-				
+
 				list_remove(&exch->sess_link);
 				list_remove(&exch->global_link);
@@ -2557,14 +2557,14 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&async_sess_mutex);
-	
+
 	if (exch != NULL) {
 		atomic_inc(&sess->refcnt);
-		
+
 		if (mgmt == EXCHANGE_SERIALIZE)
 			fibril_mutex_lock(&sess->mutex);
 	}
-	
+
 	return exch;
 }
@@ -2579,23 +2579,23 @@
 	if (exch == NULL)
 		return;
-	
+
 	async_sess_t *sess = exch->sess;
 	assert(sess != NULL);
-	
+
 	exch_mgmt_t mgmt = sess->mgmt;
 	if (sess->iface != 0)
 		mgmt = sess->iface & IFACE_EXCHANGE_MASK;
-	
+
 	atomic_dec(&sess->refcnt);
-	
+
 	if (mgmt == EXCHANGE_SERIALIZE)
 		fibril_mutex_unlock(&sess->mutex);
-	
+
 	fibril_mutex_lock(&async_sess_mutex);
-	
+
 	list_append(&exch->sess_link, &sess->exch_list);
 	list_append(&exch->global_link, &inactive_exch_list);
 	fibril_condvar_signal(&avail_phone_cv);
-	
+
 	fibril_mutex_unlock(&async_sess_mutex);
 }
@@ -2618,13 +2618,13 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	sysarg_t _flags = 0;
 	sysarg_t _dst = (sysarg_t) -1;
 	errno_t res = async_req_2_4(exch, IPC_M_SHARE_IN, (sysarg_t) size,
 	    arg, NULL, &_flags, NULL, &_dst);
-	
+
 	if (flags)
 		*flags = (unsigned int) _flags;
-	
+
 	*dst = (void *) _dst;
 	return res;
@@ -2649,11 +2649,11 @@
 	assert(chandle);
 	assert(size);
-	
+
 	ipc_call_t data;
 	*chandle = async_get_call(&data);
-	
+
 	if (IPC_GET_IMETHOD(data) != IPC_M_SHARE_IN)
 		return false;
-	
+
 	*size = (size_t) IPC_GET_ARG1(data);
 	return true;
@@ -2692,5 +2692,5 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	return async_req_3_0(exch, IPC_M_SHARE_OUT, (sysarg_t) src, 0,
 	    (sysarg_t) flags);
@@ -2718,11 +2718,11 @@
 	assert(size);
 	assert(flags);
-	
+
 	ipc_call_t data;
 	*chandle = async_get_call(&data);
-	
+
 	if (IPC_GET_IMETHOD(data) != IPC_M_SHARE_OUT)
 		return false;
-	
+
 	*size = (size_t) IPC_GET_ARG2(data);
 	*flags = (unsigned int) IPC_GET_ARG3(data);
@@ -2778,5 +2778,5 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	return async_req_2_0(exch, IPC_M_DATA_READ, (sysarg_t) dst,
 	    (sysarg_t) size);
@@ -2822,13 +2822,13 @@
 	assert(chandle);
 	assert(data);
-	
+
 	*chandle = async_get_call(data);
-	
+
 	if (IPC_GET_IMETHOD(*data) != IPC_M_DATA_READ)
 		return false;
-	
+
 	if (size)
 		*size = (size_t) IPC_GET_ARG2(*data);
-	
+
 	return true;
 }
@@ -2862,5 +2862,5 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	cap_handle_t chandle;
 	if (!async_data_read_receive(&chandle, NULL)) {
@@ -2868,5 +2868,5 @@
 		return EINVAL;
 	}
-	
+
 	aid_t msg = async_send_fast(exch, imethod, arg1, arg2, arg3, arg4,
 	    dataptr);
@@ -2875,5 +2875,5 @@
 		return EINVAL;
 	}
-	
+
 	errno_t retval = ipc_forward_fast(chandle, exch->phone, 0, 0, 0,
 	    IPC_FF_ROUTE_FROM_ME);
@@ -2883,8 +2883,8 @@
 		return retval;
 	}
-	
+
 	errno_t rc;
 	async_wait_for(msg, &rc);
-	
+
 	return (errno_t) rc;
 }
@@ -2903,5 +2903,5 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	return async_req_2_0(exch, IPC_M_DATA_WRITE, (sysarg_t) src,
 	    (sysarg_t) size);
@@ -2948,13 +2948,13 @@
 	assert(chandle);
 	assert(data);
-	
+
 	*chandle = async_get_call(data);
-	
+
 	if (IPC_GET_IMETHOD(*data) != IPC_M_DATA_WRITE)
 		return false;
-	
+
 	if (size)
 		*size = (size_t) IPC_GET_ARG2(*data);
-	
+
 	return true;
 }
@@ -3004,5 +3004,5 @@
 {
 	assert(data);
-	
+
 	cap_handle_t chandle;
 	size_t size;
@@ -3011,32 +3011,32 @@
 		return EINVAL;
 	}
-	
+
 	if (size < min_size) {
 		ipc_answer_0(chandle, EINVAL);
 		return EINVAL;
 	}
-	
+
 	if ((max_size > 0) && (size > max_size)) {
 		ipc_answer_0(chandle, EINVAL);
 		return EINVAL;
 	}
-	
+
 	if ((granularity > 0) && ((size % granularity) != 0)) {
 		ipc_answer_0(chandle, EINVAL);
 		return EINVAL;
 	}
-	
+
 	void *arg_data;
-	
+
 	if (nullterm)
 		arg_data = malloc(size + 1);
 	else
 		arg_data = malloc(size);
-	
+
 	if (arg_data == NULL) {
 		ipc_answer_0(chandle, ENOMEM);
 		return ENOMEM;
 	}
-	
+
 	errno_t rc = async_data_write_finalize(chandle, arg_data, size);
 	if (rc != EOK) {
@@ -3044,12 +3044,12 @@
 		return rc;
 	}
-	
+
 	if (nullterm)
 		((char *) arg_data)[size] = 0;
-	
+
 	*data = arg_data;
 	if (received != NULL)
 		*received = size;
-	
+
 	return EOK;
 }
@@ -3078,5 +3078,5 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	cap_handle_t chandle;
 	if (!async_data_write_receive(&chandle, NULL)) {
@@ -3084,5 +3084,5 @@
 		return EINVAL;
 	}
-	
+
 	aid_t msg = async_send_fast(exch, imethod, arg1, arg2, arg3, arg4,
 	    dataptr);
@@ -3091,5 +3091,5 @@
 		return EINVAL;
 	}
-	
+
 	errno_t retval = ipc_forward_fast(chandle, exch->phone, 0, 0, 0,
 	    IPC_FF_ROUTE_FROM_ME);
@@ -3099,8 +3099,8 @@
 		return retval;
 	}
-	
+
 	errno_t rc;
 	async_wait_for(msg, &rc);
-	
+
 	return (errno_t) rc;
 }
@@ -3123,10 +3123,10 @@
 	cap_handle_t chandle = async_get_call(&call);
 	cap_handle_t phandle = (cap_handle_t) IPC_GET_ARG5(call);
-	
+
 	if ((IPC_GET_IMETHOD(call) != IPC_M_CONNECT_TO_ME) || (phandle < 0)) {
 		async_answer_0(chandle, EINVAL);
 		return NULL;
 	}
-	
+
 	async_sess_t *sess = (async_sess_t *) malloc(sizeof(async_sess_t));
 	if (sess == NULL) {
@@ -3134,5 +3134,5 @@
 		return NULL;
 	}
-	
+
 	sess->iface = 0;
 	sess->mgmt = mgmt;
@@ -3141,15 +3141,15 @@
 	sess->arg2 = 0;
 	sess->arg3 = 0;
-	
+
 	fibril_mutex_initialize(&sess->remote_state_mtx);
 	sess->remote_state_data = NULL;
-	
+
 	list_initialize(&sess->exch_list);
 	fibril_mutex_initialize(&sess->mutex);
 	atomic_set(&sess->refcnt, 0);
-	
+
 	/* Acknowledge the connected phone */
 	async_answer_0(chandle, EOK);
-	
+
 	return sess;
 }
@@ -3172,12 +3172,12 @@
 {
 	cap_handle_t phandle = (cap_handle_t) IPC_GET_ARG5(*call);
-	
+
 	if ((IPC_GET_IMETHOD(*call) != IPC_M_CONNECT_TO_ME) || (phandle < 0))
 		return NULL;
-	
+
 	async_sess_t *sess = (async_sess_t *) malloc(sizeof(async_sess_t));
 	if (sess == NULL)
 		return NULL;
-	
+
 	sess->iface = 0;
 	sess->mgmt = mgmt;
@@ -3186,12 +3186,12 @@
 	sess->arg2 = 0;
 	sess->arg3 = 0;
-	
+
 	fibril_mutex_initialize(&sess->remote_state_mtx);
 	sess->remote_state_data = NULL;
-	
+
 	list_initialize(&sess->exch_list);
 	fibril_mutex_initialize(&sess->mutex);
 	atomic_set(&sess->refcnt, 0);
-	
+
 	return sess;
 }
@@ -3208,11 +3208,11 @@
 {
 	assert(chandle);
-	
+
 	ipc_call_t call;
 	*chandle = async_get_call(&call);
-	
+
 	if (IPC_GET_IMETHOD(call) != IPC_M_STATE_CHANGE_AUTHORIZE)
 		return false;
-	
+
 	if (arg1)
 		*arg1 = IPC_GET_ARG1(call);
@@ -3221,5 +3221,5 @@
 	if (arg3)
 		*arg3 = IPC_GET_ARG3(call);
-	
+
 	return true;
 }
@@ -3274,5 +3274,5 @@
 {
 	assert(fibril_mutex_is_locked(&sess->remote_state_mtx));
-	
+
 	fibril_mutex_unlock(&sess->remote_state_mtx);
 }
@@ -3292,8 +3292,8 @@
 	if (exch == NULL)
 		return;
-	
+
 	async_sess_t *sess = exch->sess;
 	assert(fibril_mutex_is_locked(&sess->remote_state_mtx));
-	
+
 	async_exchange_end(exch);
 	fibril_mutex_unlock(&sess->remote_state_mtx);
Index: uspace/lib/c/generic/bd.c
===================================================================
--- uspace/lib/c/generic/bd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/bd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,25 +53,25 @@
 	if (bd == NULL)
 		return ENOMEM;
-	
+
 	bd->sess = sess;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	port_id_t port;
 	errno_t rc = async_create_callback_port(exch, INTERFACE_BLOCK_CB, 0, 0,
 	    bd_cb_conn, bd, &port);
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	if (rc != EOK)
 		goto error;
-	
+
 	*rbd = bd;
 	return EOK;
-	
+
 error:
 	if (bd != NULL)
 		free(bd);
-	
+
 	return rc;
 }
Index: uspace/lib/c/generic/clipboard.c
===================================================================
--- uspace/lib/c/generic/clipboard.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/clipboard.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,7 +60,7 @@
 	service_id_t sid;
 	errno_t rc;
-	
+
 	fibril_mutex_lock(&clip_mutex);
-	
+
 	while (clip_sess == NULL) {
 		rc = loc_service_get_id(SERVICE_NAME_CLIPBOARD, &sid,
@@ -68,11 +68,11 @@
 		if (rc != EOK)
 			continue;
-		
+
 		clip_sess = loc_service_connect(sid, INTERFACE_CLIPBOARD,
 		    IPC_FLAG_BLOCKING);
 	}
-	
+
 	fibril_mutex_unlock(&clip_mutex);
-	
+
 	return async_exchange_begin(clip_sess);
 }
@@ -101,5 +101,5 @@
 {
 	size_t size = str_size(str);
-	
+
 	if (size == 0) {
 		async_exch_t *exch = clip_exchange_begin();
@@ -107,5 +107,5 @@
 		    CLIPBOARD_TAG_NONE);
 		clip_exchange_end(exch);
-		
+
 		return (errno_t) rc;
 	} else {
@@ -115,5 +115,5 @@
 		errno_t rc = async_data_write_start(exch, (void *) str, size);
 		clip_exchange_end(exch);
-		
+
 		if (rc != EOK) {
 			errno_t rc_orig;
@@ -124,7 +124,7 @@
 				return (errno_t) rc_orig;
 		}
-		
+
 		async_wait_for(req, &rc);
-		
+
 		return (errno_t) rc;
 	}
@@ -145,16 +145,16 @@
 	while (true) {
 		async_exch_t *exch = clip_exchange_begin();
-		
+
 		sysarg_t size;
 		sysarg_t tag;
 		errno_t rc = async_req_0_2(exch, CLIPBOARD_CONTENT, &size, &tag);
-		
+
 		clip_exchange_end(exch);
-		
+
 		if (rc != EOK)
 			return (errno_t) rc;
-		
+
 		char *sbuf;
-		
+
 		switch (tag) {
 		case CLIPBOARD_TAG_NONE:
@@ -162,5 +162,5 @@
 			if (sbuf == NULL)
 				return ENOMEM;
-			
+
 			sbuf[0] = 0;
 			*str = sbuf;
@@ -170,10 +170,10 @@
 			if (sbuf == NULL)
 				return ENOMEM;
-			
+
 			exch = clip_exchange_begin();
 			aid_t req = async_send_1(exch, CLIPBOARD_GET_DATA, tag, NULL);
 			rc = async_data_read_start(exch, (void *) sbuf, size);
 			clip_exchange_end(exch);
-			
+
 			if ((errno_t) rc == EOVERFLOW) {
 				/*
@@ -183,5 +183,5 @@
 				break;
 			}
-			
+
 			if (rc != EOK) {
 				errno_t rc_orig;
@@ -192,12 +192,12 @@
 					return (errno_t) rc_orig;
 			}
-			
+
 			async_wait_for(req, &rc);
-			
+
 			if (rc == EOK) {
 				sbuf[size] = 0;
 				*str = sbuf;
 			}
-			
+
 			return rc;
 		default:
Index: uspace/lib/c/generic/ddi.c
===================================================================
--- uspace/lib/c/generic/ddi.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/ddi.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -142,5 +142,5 @@
 {
 	*phys = constraint;
-	
+
 	return (errno_t) __SYSCALL6(SYS_DMAMEM_MAP, (sysarg_t) size,
 	    (sysarg_t) map_flags, (sysarg_t) flags | DMAMEM_FLAGS_ANONYMOUS,
@@ -180,5 +180,5 @@
 		.size = size
 	};
-	
+
 	return (errno_t) __SYSCALL1(SYS_IOSPACE_ENABLE, (sysarg_t) &arg);
 }
@@ -204,5 +204,5 @@
 		.size = size
 	};
-	
+
 	return (errno_t) __SYSCALL1(SYS_IOSPACE_DISABLE, (sysarg_t) &arg);
 }
@@ -284,10 +284,10 @@
 	if (!virt)
 		return EINVAL;
-	
+
 	uintptr_t phys_frame =
 	    ALIGN_DOWN((uintptr_t) pio_addr, PAGE_SIZE);
 	size_t offset = (uintptr_t) pio_addr - phys_frame;
 	size_t pages = SIZE2PAGES(offset + size);
-	
+
 	void *virt_page = AS_AREA_ANY;
 	errno_t rc = physmem_map(phys_frame, pages,
@@ -295,5 +295,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	*virt = virt_page + offset;
 	return EOK;
Index: uspace/lib/c/generic/device/hw_res.c
===================================================================
--- uspace/lib/c/generic/device/hw_res.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/device/hw_res.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,15 +42,15 @@
 {
 	sysarg_t count = 0;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	errno_t rc = async_req_1_1(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
 	    HW_RES_GET_RESOURCE_LIST, &count);
-	
+
 	if (rc != EOK) {
 		async_exchange_end(exch);
 		return rc;
 	}
-	
+
 	size_t size = count * sizeof(hw_resource_t);
 	hw_resource_t *resources = (hw_resource_t *) malloc(size);
@@ -60,16 +60,16 @@
 		return ENOMEM;
 	}
-	
+
 	rc = async_data_read_start(exch, resources, size);
 	async_exchange_end(exch);
-	
+
 	if (rc != EOK) {
 		free(resources);
 		return rc;
 	}
-	
+
 	hw_resources->resources = resources;
 	hw_resources->count = count;
-	
+
 	return EOK;
 }
@@ -78,9 +78,9 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	errno_t rc = async_req_2_0(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
 	    HW_RES_ENABLE_INTERRUPT, irq);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -89,9 +89,9 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	errno_t rc = async_req_2_0(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
 	    HW_RES_DISABLE_INTERRUPT, irq);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -100,9 +100,9 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	errno_t rc = async_req_2_0(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
 	    HW_RES_CLEAR_INTERRUPT, irq);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -126,11 +126,11 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	const uint32_t packed = (channel & 0xffff) | (mode << 16);
 	const errno_t ret = async_req_4_0(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
 	    HW_RES_DMA_CHANNEL_SETUP, packed, pa, size);
-	
+
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -148,14 +148,14 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	sysarg_t remain;
 	const errno_t ret = async_req_2_1(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
 	    HW_RES_DMA_CHANNEL_REMAIN, channel, &remain);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (ret == EOK)
 		*rem = remain;
-	
+
 	return ret;
 }
Index: uspace/lib/c/generic/device/hw_res_parsed.c
===================================================================
--- uspace/lib/c/generic/device/hw_res_parsed.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/device/hw_res_parsed.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,10 +43,10 @@
 	assert(res);
 	assert((res->type == DMA_CHANNEL_8) || (res->type == DMA_CHANNEL_16));
-	
+
 	const unsigned channel = (res->type == DMA_CHANNEL_8) ?
 	    res->res.dma_channel.dma8 : res->res.dma_channel.dma16;
 	const size_t count = out->dma_channels.count;
 	const int keep_duplicit = flags & HW_RES_KEEP_DUPLICIT;
-	
+
 	if (!keep_duplicit) {
 		for (size_t i = 0; i < count; ++i) {
@@ -55,5 +55,5 @@
 		}
 	}
-	
+
 	out->dma_channels.channels[count] = channel;
 	++out->dma_channels.count;
@@ -64,9 +64,9 @@
 {
 	assert(res && (res->type == INTERRUPT));
-	
+
 	int irq = res->res.interrupt.irq;
 	size_t count = out->irqs.count;
 	int keep_duplicit = flags & HW_RES_KEEP_DUPLICIT;
-	
+
 	if (!keep_duplicit) {
 		for (size_t i = 0; i < count; i++) {
@@ -75,5 +75,5 @@
 		}
 	}
-	
+
 	out->irqs.irqs[count] = irq;
 	out->irqs.count++;
@@ -105,5 +105,5 @@
 
 	assert(res && (res->type == IO_RANGE));
-	
+
 	absolute = absolutize(res->res.io_range.address,
 	    res->res.io_range.relative, win->io.base);
@@ -112,11 +112,11 @@
 	size = res->res.io_range.size;
 	endianness = res->res.io_range.endianness;
-	
+
 	if ((size == 0) && (!(flags & HW_RES_KEEP_ZERO_AREA)))
 		return;
-	
+
 	int keep_duplicit = flags & HW_RES_KEEP_DUPLICIT;
 	size_t count = out->io_ranges.count;
-	
+
 	if (!keep_duplicit) {
 		for (size_t i = 0; i < count; i++) {
@@ -126,10 +126,10 @@
 			s_address = RNGABS(out->io_ranges.ranges[i]);
 			s_size = RNGSZ(out->io_ranges.ranges[i]);
-			
+
 			if ((absolute == s_address) && (size == s_size))
 				return;
 		}
 	}
-	
+
 	RNGABS(out->io_ranges.ranges[count]) = absolute;
 	RNGREL(out->io_ranges.ranges[count]) = relative;
@@ -146,7 +146,7 @@
 	uint64_t relative;
 	size_t size;
-	
+
 	assert(res && (res->type == MEM_RANGE));
-	
+
 	absolute = absolutize(res->res.mem_range.address,
 	    res->res.mem_range.relative, win->mem.base);
@@ -155,11 +155,11 @@
 	size = res->res.mem_range.size;
 	endianness = res->res.mem_range.endianness;
-	
+
 	if ((size == 0) && (!(flags & HW_RES_KEEP_ZERO_AREA)))
 		return;
-	
+
 	int keep_duplicit = flags & HW_RES_KEEP_DUPLICIT;
 	size_t count = out->mem_ranges.count;
-	
+
 	if (!keep_duplicit) {
 		for (size_t i = 0; i < count; ++i) {
@@ -169,10 +169,10 @@
 			s_address = RNGABS(out->mem_ranges.ranges[i]);;
 			s_size = RNGSZ(out->mem_ranges.ranges[i]);
-			
+
 			if ((absolute == s_address) && (size == s_size))
 				return;
 		}
 	}
-	
+
 	RNGABS(out->mem_ranges.ranges[count]) = absolute;
 	RNGREL(out->mem_ranges.ranges[count]) = relative;
@@ -199,8 +199,8 @@
 	if (!res || !out)
 		return EINVAL;
-	
+
 	size_t res_count = res->count;
 	hw_res_list_parsed_clean(out);
-	
+
 	out->irqs.irqs = calloc(res_count, sizeof(int));
 	out->dma_channels.channels = calloc(res_count, sizeof(int));
@@ -212,8 +212,8 @@
 		return ENOMEM;
 	}
-	
+
 	for (size_t i = 0; i < res_count; ++i) {
 		const hw_resource_t *resource = &res->resources[i];
-		
+
 		switch (resource->type) {
 		case INTERRUPT:
@@ -235,5 +235,5 @@
 		}
 	}
-	
+
 	return EOK;
 };
@@ -261,5 +261,5 @@
 	if (!hw_res_parsed)
 		return EBADMEM;
-	
+
 	hw_resource_list_t hw_resources;
 	hw_res_list_parsed_clean(hw_res_parsed);
@@ -269,5 +269,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = hw_res_get_resource_list(sess, &hw_resources);
 	if (rc != EOK)
@@ -277,5 +277,5 @@
 	    flags);
 	hw_res_clean_resource_list(&hw_resources);
-	
+
 	return rc;
 };
Index: uspace/lib/c/generic/device/led_dev.c
===================================================================
--- uspace/lib/c/generic/device/led_dev.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/device/led_dev.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,13 +42,13 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	aid_t req = async_send_2(exch, DEV_IFACE_ID(LED_DEV_IFACE),
 	    LED_DEV_COLOR_SET, (sysarg_t) pixel, NULL);
-	
+
 	async_exchange_end(exch);
-	
+
 	errno_t rc;
 	async_wait_for(req, &rc);
-	
+
 	return (errno_t) rc;
 }
Index: uspace/lib/c/generic/device/pio_window.c
===================================================================
--- uspace/lib/c/generic/device/pio_window.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/device/pio_window.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,8 +51,8 @@
 		return rc;
 	}
-	
+
 	rc = async_data_read_start(exch, pio_win, sizeof(*pio_win));
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
Index: uspace/lib/c/generic/devman.c
===================================================================
--- uspace/lib/c/generic/devman.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/devman.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,8 +62,8 @@
 {
 	fibril_mutex_lock(mtx);
-	
+
 	if ((*dst == NULL) && (src != NULL))
 		*dst = src;
-	
+
 	fibril_mutex_unlock(mtx);
 }
@@ -81,9 +81,9 @@
 	case INTERFACE_DDF_DRIVER:
 		fibril_mutex_lock(&devman_driver_block_mutex);
-		
+
 		while (devman_driver_block_sess == NULL) {
 			clone_session(&devman_driver_mutex, devman_driver_sess,
 			    &devman_driver_block_sess);
-			
+
 			if (devman_driver_block_sess == NULL)
 				devman_driver_block_sess =
@@ -91,18 +91,18 @@
 				    INTERFACE_DDF_DRIVER, 0);
 		}
-		
+
 		fibril_mutex_unlock(&devman_driver_block_mutex);
-		
+
 		clone_session(&devman_driver_mutex, devman_driver_block_sess,
 		    &devman_driver_sess);
-		
+
 		return async_exchange_begin(devman_driver_block_sess);
 	case INTERFACE_DDF_CLIENT:
 		fibril_mutex_lock(&devman_client_block_mutex);
-		
+
 		while (devman_client_block_sess == NULL) {
 			clone_session(&devman_client_mutex, devman_client_sess,
 			    &devman_client_block_sess);
-			
+
 			if (devman_client_block_sess == NULL)
 				devman_client_block_sess =
@@ -110,10 +110,10 @@
 				    INTERFACE_DDF_CLIENT, 0);
 		}
-		
+
 		fibril_mutex_unlock(&devman_client_block_mutex);
-		
+
 		clone_session(&devman_client_mutex, devman_client_block_sess,
 		    &devman_client_sess);
-		
+
 		return async_exchange_begin(devman_client_block_sess);
 	default:
@@ -134,29 +134,29 @@
 	case INTERFACE_DDF_DRIVER:
 		fibril_mutex_lock(&devman_driver_mutex);
-		
+
 		if (devman_driver_sess == NULL)
 			devman_driver_sess =
 			    service_connect(SERVICE_DEVMAN,
 			    INTERFACE_DDF_DRIVER, 0);
-		
+
 		fibril_mutex_unlock(&devman_driver_mutex);
-		
+
 		if (devman_driver_sess == NULL)
 			return NULL;
-		
+
 		return async_exchange_begin(devman_driver_sess);
 	case INTERFACE_DDF_CLIENT:
 		fibril_mutex_lock(&devman_client_mutex);
-		
+
 		if (devman_client_sess == NULL)
 			devman_client_sess =
 			    service_connect(SERVICE_DEVMAN,
 			    INTERFACE_DDF_CLIENT, 0);
-		
+
 		fibril_mutex_unlock(&devman_client_mutex);
-		
+
 		if (devman_client_sess == NULL)
 			return NULL;
-		
+
 		return async_exchange_begin(devman_client_sess);
 	default:
@@ -179,20 +179,20 @@
 {
 	async_exch_t *exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, DEVMAN_DRIVER_REGISTER, 0, 0, &answer);
 	errno_t retval = async_data_write_start(exch, name, str_size(name));
-	
-	devman_exchange_end(exch);
-	
+
+	devman_exchange_end(exch);
+
 	if (retval != EOK) {
 		async_forget(req);
 		return retval;
 	}
-	
+
 	exch = devman_exchange_begin(INTERFACE_DDF_DRIVER);
 	async_connect_to_me(exch, 0, 0, 0);
 	devman_exchange_end(exch);
-	
+
 	async_wait_for(req, &retval);
 	return retval;
@@ -218,5 +218,5 @@
 	unsigned long match_count = list_count(&match_ids->ids);
 	async_exch_t *exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_3(exch, DEVMAN_ADD_FUNCTION, (sysarg_t) ftype,
@@ -228,5 +228,5 @@
 		return retval;
 	}
-	
+
 	list_foreach(match_ids->ids, link, match_id_t, match_id) {
 		ipc_call_t answer2;
@@ -241,5 +241,5 @@
 			return retval;
 		}
-		
+
 		async_wait_for(req2, &retval);
 		if (retval != EOK) {
@@ -249,7 +249,7 @@
 		}
 	}
-	
-	devman_exchange_end(exch);
-	
+
+	devman_exchange_end(exch);
+
 	async_wait_for(req, &retval);
 	if (retval == EOK) {
@@ -260,5 +260,5 @@
 			*funh = -1;
 	}
-	
+
 	return retval;
 }
@@ -268,5 +268,5 @@
 {
 	async_exch_t *exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, DEVMAN_ADD_DEVICE_TO_CATEGORY,
@@ -274,12 +274,12 @@
 	errno_t retval = async_data_write_start(exch, cat_name,
 	    str_size(cat_name));
-	
-	devman_exchange_end(exch);
-	
+
+	devman_exchange_end(exch);
+
 	if (retval != EOK) {
 		async_forget(req);
 		return retval;
 	}
-	
+
 	async_wait_for(req, &retval);
 	return retval;
@@ -289,5 +289,5 @@
 {
 	async_sess_t *sess;
-	
+
 	if (flags & IPC_FLAG_BLOCKING)
 		sess = service_connect_blocking(SERVICE_DEVMAN,
@@ -296,5 +296,5 @@
 		sess = service_connect(SERVICE_DEVMAN,
 		    INTERFACE_DEVMAN_DEVICE, handle);
-	
+
 	return sess;
 }
@@ -311,9 +311,9 @@
 	async_exch_t *exch;
 	errno_t retval;
-	
+
 	exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER);
 	retval = async_req_1_0(exch, DEVMAN_REMOVE_FUNCTION, (sysarg_t) funh);
 	devman_exchange_end(exch);
-	
+
 	return retval;
 }
@@ -324,7 +324,7 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t retval = async_req_1_0(exch, DEVMAN_DRV_FUN_ONLINE, funh);
-	
+
 	devman_exchange_end(exch);
 	return retval;
@@ -336,7 +336,7 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t retval = async_req_1_0(exch, DEVMAN_DRV_FUN_OFFLINE, funh);
-	
+
 	devman_exchange_end(exch);
 	return retval;
@@ -347,5 +347,5 @@
 {
 	async_sess_t *sess;
-	
+
 	if (flags & IPC_FLAG_BLOCKING)
 		sess = service_connect_blocking(SERVICE_DEVMAN,
@@ -354,5 +354,5 @@
 		sess = service_connect_blocking(SERVICE_DEVMAN,
 		    INTERFACE_DEVMAN_PARENT, handle);
-	
+
 	return sess;
 }
@@ -362,5 +362,5 @@
 {
 	async_exch_t *exch;
-	
+
 	if (flags & IPC_FLAG_BLOCKING)
 		exch = devman_exchange_begin_blocking(INTERFACE_DDF_CLIENT);
@@ -370,5 +370,5 @@
 			return ENOMEM;
 	}
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, DEVMAN_DEVICE_GET_HANDLE, flags, 0,
@@ -376,24 +376,24 @@
 	errno_t retval = async_data_write_start(exch, pathname,
 	    str_size(pathname));
-	
-	devman_exchange_end(exch);
-	
+
+	devman_exchange_end(exch);
+
 	if (retval != EOK) {
 		async_forget(req);
 		return retval;
 	}
-	
+
 	async_wait_for(req, &retval);
-	
+
 	if (retval != EOK) {
 		if (handle != NULL)
 			*handle = (devman_handle_t) -1;
-		
-		return retval;
-	}
-	
+
+		return retval;
+	}
+
 	if (handle != NULL)
 		*handle = (devman_handle_t) IPC_GET_ARG1(answer);
-	
+
 	return retval;
 }
@@ -406,26 +406,26 @@
 	size_t act_size;
 	errno_t dretval;
-	
+
 	exch = devman_exchange_begin_blocking(INTERFACE_DDF_CLIENT);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, method, arg1, arg2, &answer);
 	aid_t dreq = async_data_read(exch, buf, buf_size - 1, &dreply);
 	async_wait_for(dreq, &dretval);
-	
-	devman_exchange_end(exch);
-	
+
+	devman_exchange_end(exch);
+
 	if (dretval != EOK) {
 		async_forget(req);
 		return dretval;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
-	if (retval != EOK) {
-		return retval;
-	}
-	
+
+	if (retval != EOK) {
+		return retval;
+	}
+
 	if (r1 != NULL)
 		*r1 = IPC_GET_ARG1(answer);
@@ -433,5 +433,5 @@
 	assert(act_size <= buf_size - 1);
 	buf[act_size] = '\0';
-	
+
 	return EOK;
 }
@@ -475,7 +475,7 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t retval = async_req_1_0(exch, DEVMAN_FUN_ONLINE, funh);
-	
+
 	devman_exchange_end(exch);
 	return retval;
@@ -487,7 +487,7 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t retval = async_req_1_0(exch, DEVMAN_FUN_OFFLINE, funh);
-	
+
 	devman_exchange_end(exch);
 	return retval;
@@ -502,19 +502,19 @@
 	aid_t req = async_send_1(exch, method, arg1, &answer);
 	errno_t rc = async_data_read_start(exch, handle_buf, buf_size);
-	
-	devman_exchange_end(exch);
-	
+
+	devman_exchange_end(exch);
+
 	if (rc != EOK) {
 		async_forget(req);
 		return rc;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
-	if (retval != EOK) {
-		return retval;
-	}
-	
+
+	if (retval != EOK) {
+		return retval;
+	}
+
 	*act_size = IPC_GET_ARG1(answer);
 	return EOK;
@@ -579,8 +579,8 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t retval = async_req_1_1(exch, DEVMAN_FUN_GET_CHILD,
 	    funh, devh);
-	
+
 	devman_exchange_end(exch);
 	return retval;
@@ -599,8 +599,8 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t retval = async_req_1_1(exch, DEVMAN_DEV_GET_PARENT,
 	    devh, funh);
-	
+
 	devman_exchange_end(exch);
 	return retval;
@@ -612,8 +612,8 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t retval = async_req_1_1(exch, DEVMAN_FUN_SID_TO_HANDLE,
 	    sid, handle);
-	
+
 	devman_exchange_end(exch);
 	return retval;
@@ -640,29 +640,29 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, DEVMAN_DRIVER_GET_HANDLE, &answer);
 	errno_t retval = async_data_write_start(exch, drvname,
 	    str_size(drvname));
-	
-	devman_exchange_end(exch);
-	
+
+	devman_exchange_end(exch);
+
 	if (retval != EOK) {
 		async_forget(req);
 		return retval;
 	}
-	
+
 	async_wait_for(req, &retval);
-	
+
 	if (retval != EOK) {
 		if (handle != NULL)
 			*handle = (devman_handle_t) -1;
-		
-		return retval;
-	}
-	
+
+		return retval;
+	}
+
 	if (handle != NULL)
 		*handle = (devman_handle_t) IPC_GET_ARG1(answer);
-	
+
 	return retval;
 }
@@ -695,8 +695,8 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t rc = async_req_1_1(exch, DEVMAN_DRIVER_GET_STATE, drvh,
 	    &state);
-	
+
 	devman_exchange_end(exch);
 	if (rc != EOK)
@@ -712,7 +712,7 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t rc = async_req_1_0(exch, DEVMAN_DRIVER_LOAD, drvh);
-	
+
 	devman_exchange_end(exch);
 	return rc;
@@ -724,7 +724,7 @@
 	if (exch == NULL)
 		return ENOMEM;
-	
+
 	errno_t rc = async_req_1_0(exch, DEVMAN_DRIVER_UNLOAD, drvh);
-	
+
 	devman_exchange_end(exch);
 	return rc;
Index: uspace/lib/c/generic/dirent.c
===================================================================
--- uspace/lib/c/generic/dirent.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/dirent.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,5 +53,5 @@
 		return NULL;
 	}
-	
+
 	int fd;
 	errno_t rc = vfs_lookup(dirname, WALK_DIRECTORY, &fd);
@@ -61,5 +61,5 @@
 		return NULL;
 	}
-	
+
 	rc = vfs_open(fd, MODE_READ);
 	if (rc != EOK) {
@@ -69,5 +69,5 @@
 		return NULL;
 	}
-	
+
 	dirp->fd = fd;
 	dirp->pos = 0;
@@ -85,5 +85,5 @@
 	errno_t rc;
 	ssize_t len = 0;
-	
+
 	rc = vfs_read_short(dirp->fd, dirp->pos, &dirp->res.d_name[0],
 	    NAME_MAX + 1, &len);
@@ -92,7 +92,7 @@
 		return NULL;
 	}
-	
+
 	dirp->pos += len;
-	
+
 	return &dirp->res;
 }
Index: uspace/lib/c/generic/dnsr.c
===================================================================
--- uspace/lib/c/generic/dnsr.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/dnsr.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,18 +45,18 @@
 {
 	fibril_mutex_lock(&dnsr_sess_mutex);
-	
+
 	if (dnsr_sess == NULL) {
 		service_id_t dnsr_svc;
-		
+
 		(void) loc_service_get_id(SERVICE_NAME_DNSR, &dnsr_svc,
 		    IPC_FLAG_BLOCKING);
-		
+
 		dnsr_sess = loc_service_connect(dnsr_svc, INTERFACE_DNSR,
 		    IPC_FLAG_BLOCKING);
 	}
-	
+
 	async_sess_t *sess = dnsr_sess;
 	fibril_mutex_unlock(&dnsr_sess_mutex);
-	
+
 	return async_exchange_begin(sess);
 }
@@ -70,9 +70,9 @@
 {
 	async_exch_t *exch = dnsr_exchange_begin();
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, DNSR_NAME2HOST, (sysarg_t) ver,
 	    &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, name, str_size(name));
 	if (rc != EOK) {
@@ -85,12 +85,12 @@
 	if (info == NULL)
 		return ENOMEM;
-	
+
 	ipc_call_t answer_addr;
 	aid_t req_addr = async_data_read(exch, &info->addr,
 	    sizeof(inet_addr_t), &answer_addr);
-	
+
 	errno_t retval_addr;
 	async_wait_for(req_addr, &retval_addr);
-	
+
 	if (retval_addr != EOK) {
 		async_exchange_end(exch);
@@ -99,15 +99,15 @@
 		return retval_addr;
 	}
-	
+
 	ipc_call_t answer_cname;
 	char cname_buf[DNSR_NAME_MAX_SIZE + 1];
 	aid_t req_cname = async_data_read(exch, cname_buf, DNSR_NAME_MAX_SIZE,
 	    &answer_cname);
-	
+
 	dnsr_exchange_end(exch);
-	
+
 	errno_t retval_cname;
 	async_wait_for(req_cname, &retval_cname);
-	
+
 	if (retval_cname != EOK) {
 		async_forget(req);
@@ -115,8 +115,8 @@
 		return retval_cname;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
+
 	if (retval != EOK) {
 		async_forget(req);
@@ -124,12 +124,12 @@
 		return retval;
 	}
-	
+
 	size_t act_size = IPC_GET_ARG2(answer_cname);
 	assert(act_size <= DNSR_NAME_MAX_SIZE);
-	
+
 	cname_buf[act_size] = '\0';
-	
+
 	info->cname = str_dup(cname_buf);
-	
+
 	if (info->cname == NULL) {
 		free(info);
@@ -145,5 +145,5 @@
 	if (info == NULL)
 		return;
-	
+
 	free(info->cname);
 	free(info);
@@ -153,19 +153,19 @@
 {
 	async_exch_t *exch = dnsr_exchange_begin();
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, DNSR_GET_SRVADDR, &answer);
 	errno_t rc = async_data_read_start(exch, srvaddr, sizeof(inet_addr_t));
-	
+
 	loc_exchange_end(exch);
-	
+
 	if (rc != EOK) {
 		async_forget(req);
 		return rc;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
+
 	return retval;
 }
@@ -174,19 +174,19 @@
 {
 	async_exch_t *exch = dnsr_exchange_begin();
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, DNSR_SET_SRVADDR, &answer);
 	errno_t rc = async_data_write_start(exch, srvaddr, sizeof(inet_addr_t));
-	
+
 	loc_exchange_end(exch);
-	
+
 	if (rc != EOK) {
 		async_forget(req);
 		return rc;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
+
 	return retval;
 }
Index: uspace/lib/c/generic/double_to_str.c
===================================================================
--- uspace/lib/c/generic/double_to_str.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/double_to_str.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -86,5 +86,5 @@
 {
 	assert(/* is_normalized(x) && */ is_normalized(y));
-	
+
 	const uint32_t low_bits = -1;
 
@@ -98,5 +98,5 @@
 	bd = b * d;
 	ad = a * d;
-	
+
 	bc = b * c;
 	ac = a * c;
@@ -125,5 +125,5 @@
 	ret.significand = ac + (bc >> 32) + (ad >> 32) + (tmp >> 32);
 	ret.exponent = x.exponent + y.exponent + significand_width;
-	
+
 	return ret;
 }
@@ -137,5 +137,5 @@
 
 	fp_num_t result;
-	
+
 	result.significand = a.significand - b.significand;
 	result.exponent = a.exponent;
@@ -363,5 +363,5 @@
 	 */
 	uint32_t int_part = (uint32_t)(scaled_upper.significand >> (-one.exponent));
-	
+
 	/*
 	 * Fractional part of scaled_upper.
@@ -430,5 +430,5 @@
 		/* frac_part / one */
 		int digit = (int)(frac_part >> (-one.exponent));
-		
+
 		/* frac_part %= one */
 		frac_part &= one.significand - 1;
@@ -645,5 +645,5 @@
 		/* frac_part / one */
 		int digit = (int)(frac_part >> (-one.exponent));
-		
+
 		/* frac_part %= one */
 		frac_part &= one.significand - 1;
Index: uspace/lib/c/generic/elf/elf_mod.c
===================================================================
--- uspace/lib/c/generic/elf/elf_mod.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/elf/elf_mod.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -166,5 +166,5 @@
 		return EE_INVALID;
 	}
-	
+
 	/* Identify ELF compatibility */
 	if (header->e_ident[EI_DATA] != ELF_DATA_ENCODING ||
@@ -372,5 +372,5 @@
 		flags |= AS_AREA_READ;
 	flags |= AS_AREA_CACHEABLE;
-	
+
 	base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);
 	mem_sz = entry->p_memsz + (entry->p_vaddr - base);
@@ -458,5 +458,5 @@
 		break;
 	}
-	
+
 	return EE_OK;
 }
Index: uspace/lib/c/generic/fibril.c
===================================================================
--- uspace/lib/c/generic/fibril.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/fibril.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,8 +77,8 @@
 	rcu_register_fibril();
 #endif
-	
+
 	/* Call the implementing function. */
 	fibril->retval = fibril->func(fibril->arg);
-	
+
 	futex_down(&async_futex);
 	fibril_switch(FIBRIL_FROM_DEAD);
@@ -94,5 +94,5 @@
 	if (!tcb)
 		return NULL;
-	
+
 	fibril_t *fibril = malloc(sizeof(fibril_t));
 	if (!fibril) {
@@ -100,8 +100,8 @@
 		return NULL;
 	}
-	
+
 	tcb->fibril_data = fibril;
 	fibril->tcb = tcb;
-	
+
 	fibril->func = NULL;
 	fibril->arg = NULL;
@@ -110,5 +110,5 @@
 	fibril->retval = 0;
 	fibril->flags = 0;
-	
+
 	fibril->waits_for = NULL;
 
@@ -123,5 +123,5 @@
 	list_append(&fibril->all_link, &fibril_list);
 	futex_up(&fibril_futex);
-	
+
 	return fibril;
 }
@@ -176,8 +176,8 @@
 		break;
 	}
-	
+
 	fibril_t *srcf = __tcb_get()->fibril_data;
 	if (stype != FIBRIL_FROM_DEAD) {
-		
+
 		/* Save current state */
 		if (!context_save(&srcf->ctx)) {
@@ -202,8 +202,8 @@
 				srcf->clean_after_me = NULL;
 			}
-			
+
 			return 1;	/* futex_unlock already done here */
 		}
-		
+
 		/* Put the current fibril into the correct run list */
 		switch (stype) {
@@ -226,5 +226,5 @@
 		}
 	}
-	
+
 	fibril_t *dstf;
 
@@ -235,5 +235,5 @@
 		dstf = list_get_instance(list_first(&manager_list), fibril_t,
 		    link);
-		
+
 		if (stype == FIBRIL_FROM_DEAD)
 			dstf->clean_after_me = srcf;
@@ -246,7 +246,7 @@
 
 	list_remove(&dstf->link);
-	
+
 	futex_unlock(&fibril_futex);
-	
+
 #ifdef FUTEX_UPGRADABLE
 	if (stype == FIBRIL_FROM_DEAD) {
@@ -254,5 +254,5 @@
 	}
 #endif
-	
+
 	context_restore(&dstf->ctx);
 	/* not reached */
@@ -271,9 +271,9 @@
 {
 	fibril_t *fibril;
-	
+
 	fibril = fibril_setup();
 	if (fibril == NULL)
 		return 0;
-	
+
 	size_t stack_size = (stksz == FIBRIL_DFLT_STK_SIZE) ?
 	    stack_size_get() : stksz;
@@ -285,5 +285,5 @@
 		return 0;
 	}
-	
+
 	fibril->func = func;
 	fibril->arg = arg;
@@ -307,5 +307,5 @@
 {
 	fibril_t *fibril = (fibril_t *) fid;
-	
+
 	as_area_destroy(fibril->stack);
 	fibril_teardown(fibril, false);
@@ -321,5 +321,5 @@
 {
 	fibril_t *fibril = (fibril_t *) fid;
-	
+
 	futex_lock(&fibril_futex);
 	list_append(&fibril->link, &ready_list);
@@ -336,5 +336,5 @@
 {
 	fibril_t *fibril = (fibril_t *) fid;
-	
+
 	futex_lock(&fibril_futex);
 	list_append(&fibril->link, &manager_list);
Index: uspace/lib/c/generic/fibril_synch.c
===================================================================
--- uspace/lib/c/generic/fibril_synch.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/fibril_synch.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -125,5 +125,5 @@
 {
 	bool locked = false;
-	
+
 	futex_down(&async_futex);
 	if (fm->counter > 0) {
@@ -133,5 +133,5 @@
 	}
 	futex_up(&async_futex);
-	
+
 	return locked;
 }
@@ -143,5 +143,5 @@
 		awaiter_t *wdp;
 		fibril_t *f;
-	
+
 		tmp = list_first(&fm->waiters);
 		assert(tmp != NULL);
@@ -173,10 +173,10 @@
 {
 	bool locked = false;
-	
+
 	futex_down(&async_futex);
 	if (fm->counter <= 0)
 		locked = true;
 	futex_up(&async_futex);
-	
+
 	return locked;
 }
@@ -193,5 +193,5 @@
 {
 	fibril_t *f = (fibril_t *) fibril_get_id();
-	
+
 	futex_down(&async_futex);
 	if (frw->writers) {
@@ -217,5 +217,5 @@
 {
 	fibril_t *f = (fibril_t *) fibril_get_id();
-	
+
 	futex_down(&async_futex);
 	if (frw->writers || frw->readers) {
@@ -261,19 +261,19 @@
 		frw->writers--;
 	}
-	
+
 	assert(!frw->readers && !frw->writers);
-	
+
 	frw->oi.owned_by = NULL;
-	
+
 	while (!list_empty(&frw->waiters)) {
 		link_t *tmp = list_first(&frw->waiters);
 		awaiter_t *wdp;
 		fibril_t *f;
-		
+
 		wdp = list_get_instance(tmp, awaiter_t, wu_event.link);
 		f = (fibril_t *) wdp->fid;
-		
+
 		f->waits_for = NULL;
-		
+
 		if (f->flags & FIBRIL_WRITER) {
 			if (frw->readers)
@@ -386,5 +386,5 @@
 		list_remove(&wdata.wu_event.link);
 	futex_up(&async_futex);
-	
+
 	return wdata.to_event.occurred ? ETIMEOUT : EOK;
 }
Index: uspace/lib/c/generic/futex.c
===================================================================
--- uspace/lib/c/generic/futex.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/futex.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,10 +56,10 @@
 {
 	futex_down(&upg_and_wait_futex);
-	
+
 	if (!_upgrade_futexes) {
 		rcu_assign(_upgrade_futexes, 1);
 		_rcu_synchronize(BM_BLOCK_THREAD);
 	}
-	
+
 	futex_up(&upg_and_wait_futex);
 }
Index: uspace/lib/c/generic/getopt.c
===================================================================
--- uspace/lib/c/generic/getopt.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/getopt.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -99,5 +99,5 @@
 {
 	int c;
-	
+
 	c = a % b;
 	while (c != 0) {
@@ -106,5 +106,5 @@
 		c = a % b;
 	}
-	
+
 	return b;
 }
@@ -366,5 +366,5 @@
 		} else
 			current_argv_len = str_size(current_argv);
-	    
+
 		for (i = 0; long_options[i].name; i++) {
 			/* find matching long option */
Index: uspace/lib/c/generic/gsort.c
===================================================================
--- uspace/lib/c/generic/gsort.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/gsort.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -76,5 +76,5 @@
 {
 	size_t i = 0;
-	
+
 	while (i < cnt) {
 		if ((i != 0) &&
@@ -110,5 +110,5 @@
 	uint8_t ibuf_slot[IBUF_SIZE];
 	void *slot;
-	
+
 	if (elem_size > IBUF_SIZE) {
 		slot = (void *) malloc(elem_size);
@@ -117,10 +117,10 @@
 	} else
 		slot = (void *) ibuf_slot;
-	
+
 	_gsort(data, cnt, elem_size, cmp, arg, slot);
-	
+
 	if (elem_size > IBUF_SIZE)
 		free(slot);
-	
+
 	return true;
 }
Index: uspace/lib/c/generic/ieee_double.c
===================================================================
--- uspace/lib/c/generic/ieee_double.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/ieee_double.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -39,5 +39,5 @@
 	const int exponent_shift = 64 - 11 - 1;
 	const uint64_t sign_mask = 0x8000000000000000ULL;
-	
+
 	const int special_exponent = 0x7ff;
 	const int denormal_exponent = 0;
Index: uspace/lib/c/generic/inet.c
===================================================================
--- uspace/lib/c/generic/inet.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/inet.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,20 +45,20 @@
 {
 	async_exch_t *exch = async_exchange_begin(inet_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, INET_CALLBACK_CREATE, &answer);
-	
+
 	port_id_t port;
 	errno_t rc = async_create_callback_port(exch, INTERFACE_INET_CB, 0, 0,
 	    inet_cb_conn, NULL, &port);
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	if (rc != EOK)
 		return rc;
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
+
 	return retval;
 }
@@ -69,5 +69,5 @@
 	errno_t rc = async_req_1_0(exch, INET_SET_PROTO, protocol);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -81,15 +81,15 @@
 	assert(inet_ev_ops == NULL);
 	assert(inet_protocol == 0);
-	
+
 	rc = loc_service_get_id(SERVICE_NAME_INET, &inet_svc,
 	    IPC_FLAG_BLOCKING);
 	if (rc != EOK)
 		return ENOENT;
-	
+
 	inet_sess = loc_service_connect(inet_svc, INTERFACE_INET,
 	    IPC_FLAG_BLOCKING);
 	if (inet_sess == NULL)
 		return ENOENT;
-	
+
 	if (inet_set_proto(protocol) != EOK) {
 		async_hangup(inet_sess);
@@ -97,5 +97,5 @@
 		return EIO;
 	}
-	
+
 	if (inet_callback_create() != EOK) {
 		async_hangup(inet_sess);
@@ -103,5 +103,5 @@
 		return EIO;
 	}
-	
+
 	inet_protocol = protocol;
 	inet_ev_ops = ev_ops;
@@ -113,9 +113,9 @@
 {
 	async_exch_t *exch = async_exchange_begin(inet_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_4(exch, INET_SEND, dgram->iplink, dgram->tos,
 	    ttl, df, &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, &dgram->src, sizeof(inet_addr_t));
 	if (rc != EOK) {
@@ -124,5 +124,5 @@
 		return rc;
 	}
-	
+
 	rc = async_data_write_start(exch, &dgram->dest, sizeof(inet_addr_t));
 	if (rc != EOK) {
@@ -131,17 +131,17 @@
 		return rc;
 	}
-	
+
 	rc = async_data_write_start(exch, dgram->data, dgram->size);
-	
-	async_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
+
+	async_exchange_end(exch);
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
+
 	return retval;
 }
@@ -150,8 +150,8 @@
 {
 	async_exch_t *exch = async_exchange_begin(inet_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, INET_GET_SRCADDR, tos, &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, remote, sizeof(inet_addr_t));
 	if (rc != EOK) {
@@ -160,17 +160,17 @@
 		return rc;
 	}
-	
+
 	rc = async_data_read_start(exch, local, sizeof(inet_addr_t));
-	
-	async_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
+
+	async_exchange_end(exch);
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
+
 	return retval;
 }
@@ -179,8 +179,8 @@
 {
 	inet_dgram_t dgram;
-	
+
 	dgram.tos = IPC_GET_ARG1(*icall);
 	dgram.iplink = IPC_GET_ARG2(*icall);
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -190,5 +190,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -196,5 +196,5 @@
 		return;
 	}
-	
+
 	errno_t rc = async_data_write_finalize(callid, &dgram.src, size);
 	if (rc != EOK) {
@@ -203,5 +203,5 @@
 		return;
 	}
-	
+
 	if (!async_data_write_receive(&callid, &size)) {
 		async_answer_0(callid, EINVAL);
@@ -209,5 +209,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -215,5 +215,5 @@
 		return;
 	}
-	
+
 	rc = async_data_write_finalize(callid, &dgram.dest, size);
 	if (rc != EOK) {
@@ -222,5 +222,5 @@
 		return;
 	}
-	
+
 	rc = async_data_write_accept(&dgram.data, false, 0, 0, 0, &dgram.size);
 	if (rc != EOK) {
@@ -228,5 +228,5 @@
 		return;
 	}
-	
+
 	rc = inet_ev_ops->recv(&dgram);
 	free(dgram.data);
@@ -239,10 +239,10 @@
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			/* TODO: Handle hangup */
 			return;
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case INET_EV_RECV:
Index: uspace/lib/c/generic/inet/tcp.c
===================================================================
--- uspace/lib/c/generic/inet/tcp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/inet/tcp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,9 +66,9 @@
 
 	aid_t req = async_send_0(exch, TCP_CALLBACK_CREATE, NULL);
-	
+
 	port_id_t port;
 	errno_t rc = async_create_callback_port(exch, INTERFACE_TCP_CB, 0, 0,
 	    tcp_cb_conn, tcp, &port);
-	
+
 	async_exchange_end(exch);
 
Index: uspace/lib/c/generic/inet/udp.c
===================================================================
--- uspace/lib/c/generic/inet/udp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/inet/udp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,9 +53,9 @@
 
 	aid_t req = async_send_0(exch, UDP_CALLBACK_CREATE, NULL);
-	
+
 	port_id_t port;
 	errno_t rc = async_create_callback_port(exch, INTERFACE_UDP_CB, 0, 0,
 	    udp_cb_conn, udp, &port);
-	
+
 	async_exchange_end(exch);
 
Index: uspace/lib/c/generic/inetcfg.c
===================================================================
--- uspace/lib/c/generic/inetcfg.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/inetcfg.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -119,15 +119,15 @@
 
 	assert(inetcfg_sess == NULL);
-	
+
 	rc = loc_service_get_id(SERVICE_NAME_INET, &inet_svc,
 	    IPC_FLAG_BLOCKING);
 	if (rc != EOK)
 		return ENOENT;
-	
+
 	inetcfg_sess = loc_service_connect(inet_svc, INTERFACE_INETCFG,
 	    IPC_FLAG_BLOCKING);
 	if (inetcfg_sess == NULL)
 		return ENOENT;
-	
+
 	return EOK;
 }
@@ -137,9 +137,9 @@
 {
 	async_exch_t *exch = async_exchange_begin(inetcfg_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, INETCFG_ADDR_CREATE_STATIC, link_id,
 	    &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, naddr, sizeof(inet_naddr_t));
 	if (rc != EOK) {
@@ -148,19 +148,19 @@
 		return rc;
 	}
-	
+
 	rc = async_data_write_start(exch, name, str_size(name));
-	
-	async_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	async_exchange_end(exch);
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	*addr_id = IPC_GET_ARG1(answer);
-	
+
 	return retval;
 }
@@ -179,15 +179,15 @@
 {
 	async_exch_t *exch = async_exchange_begin(inetcfg_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, INETCFG_ADDR_GET, addr_id, &answer);
-	
+
 	ipc_call_t answer_naddr;
 	aid_t req_naddr = async_data_read(exch, &ainfo->naddr,
 	    sizeof(inet_naddr_t), &answer_naddr);
-	
+
 	errno_t retval_naddr;
 	async_wait_for(req_naddr, &retval_naddr);
-	
+
 	if (retval_naddr != EOK) {
 		async_exchange_end(exch);
@@ -195,34 +195,34 @@
 		return retval_naddr;
 	}
-	
+
 	ipc_call_t answer_name;
 	char name_buf[LOC_NAME_MAXLEN + 1];
 	aid_t req_name = async_data_read(exch, name_buf, LOC_NAME_MAXLEN,
 	    &answer_name);
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	errno_t retval_name;
 	async_wait_for(req_name, &retval_name);
-	
+
 	if (retval_name != EOK) {
 		async_forget(req);
 		return retval_name;
 	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	if (retval != EOK)
 		return retval;
-	
+
 	size_t act_size = IPC_GET_ARG2(answer_name);
 	assert(act_size <= LOC_NAME_MAXLEN);
-	
+
 	name_buf[act_size] = '\0';
-	
+
 	ainfo->ilink = IPC_GET_ARG1(answer);
 	ainfo->name = str_dup(name_buf);
-	
+
 	return EOK;
 }
@@ -329,8 +329,8 @@
 {
 	async_exch_t *exch = async_exchange_begin(inetcfg_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, INETCFG_SROUTE_CREATE, &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, dest, sizeof(inet_naddr_t));
 	if (rc != EOK) {
@@ -339,5 +339,5 @@
 		return rc;
 	}
-	
+
 	rc = async_data_write_start(exch, router, sizeof(inet_addr_t));
 	if (rc != EOK) {
@@ -346,19 +346,19 @@
 		return rc;
 	}
-	
+
 	rc = async_data_write_start(exch, name, str_size(name));
-	
-	async_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	async_exchange_end(exch);
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	*sroute_id = IPC_GET_ARG1(answer);
-	
+
 	return retval;
 }
@@ -377,15 +377,15 @@
 {
 	async_exch_t *exch = async_exchange_begin(inetcfg_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, INETCFG_SROUTE_GET, sroute_id, &answer);
-	
+
 	ipc_call_t answer_dest;
 	aid_t req_dest = async_data_read(exch, &srinfo->dest,
 	    sizeof(inet_naddr_t), &answer_dest);
-	
+
 	errno_t retval_dest;
 	async_wait_for(req_dest, &retval_dest);
-	
+
 	if (retval_dest != EOK) {
 		async_exchange_end(exch);
@@ -393,12 +393,12 @@
 		return retval_dest;
 	}
-	
+
 	ipc_call_t answer_router;
 	aid_t req_router = async_data_read(exch, &srinfo->router,
 	    sizeof(inet_addr_t), &answer_router);
-	
+
 	errno_t retval_router;
 	async_wait_for(req_router, &retval_router);
-	
+
 	if (retval_router != EOK) {
 		async_exchange_end(exch);
@@ -406,33 +406,33 @@
 		return retval_router;
 	}
-	
+
 	ipc_call_t answer_name;
 	char name_buf[LOC_NAME_MAXLEN + 1];
 	aid_t req_name = async_data_read(exch, name_buf, LOC_NAME_MAXLEN,
 	    &answer_name);
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	errno_t retval_name;
 	async_wait_for(req_name, &retval_name);
-	
+
 	if (retval_name != EOK) {
 		async_forget(req);
 		return retval_name;
 	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	if (retval != EOK)
 		return retval;
-	
+
 	size_t act_size = IPC_GET_ARG2(answer_name);
 	assert(act_size <= LOC_NAME_MAXLEN);
-	
+
 	name_buf[act_size] = '\0';
-	
+
 	srinfo->name = str_dup(name_buf);
-	
+
 	return EOK;
 }
Index: uspace/lib/c/generic/inetping.c
===================================================================
--- uspace/lib/c/generic/inetping.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/inetping.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,5 +68,5 @@
 	rc = async_create_callback_port(exch, INTERFACE_INETPING_CB, 0, 0,
 	    inetping_cb_conn, NULL, &port);
-	
+
 	async_exchange_end(exch);
 
Index: uspace/lib/c/generic/io/asprintf.c
===================================================================
--- uspace/lib/c/generic/io/asprintf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/asprintf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,5 +58,5 @@
 		NULL
 	};
-	
+
 	return printf_core(fmt, &ps, args);
 }
@@ -68,5 +68,5 @@
 	int ret = vprintf_size(fmt, args);
 	va_end(args);
-	
+
 	return ret;
 }
@@ -88,13 +88,13 @@
 	int ret = vprintf_size(fmt, args2);
 	va_end(args2);
-	
+
 	if (ret > 0) {
 		*strp = malloc(STR_BOUNDS(ret) + 1);
 		if (*strp == NULL)
 			return -1;
-		
+
 		vsnprintf(*strp, STR_BOUNDS(ret) + 1, fmt, args);
 	}
-	
+
 	return ret;
 }
@@ -115,5 +115,5 @@
 	int ret = vasprintf(strp, fmt, args);
 	va_end(args);
-	
+
 	return ret;
 }
Index: uspace/lib/c/generic/io/chargrid.c
===================================================================
--- uspace/lib/c/generic/io/chargrid.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/chargrid.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,5 +57,5 @@
 	    sizeof(chargrid_t) + cols * rows * sizeof(charfield_t);
 	chargrid_t *scrbuf;
-	
+
 	if ((flags & CHARGRID_FLAG_SHARED) == CHARGRID_FLAG_SHARED) {
 		scrbuf = (chargrid_t *) as_area_create(AS_AREA_ANY, size,
@@ -69,5 +69,5 @@
 			return NULL;
 	}
-	
+
 	scrbuf->size = size;
 	scrbuf->flags = flags;
@@ -75,11 +75,11 @@
 	scrbuf->rows = rows;
 	scrbuf->cursor_visible = false;
-	
+
 	scrbuf->attrs.type = CHAR_ATTR_STYLE;
 	scrbuf->attrs.val.style = STYLE_NORMAL;
-	
+
 	scrbuf->top_row = 0;
 	chargrid_clear(scrbuf);
-	
+
 	return scrbuf;
 }
@@ -107,8 +107,8 @@
 		scrbuf->top_row = (scrbuf->top_row + 1) % scrbuf->rows;
 		chargrid_clear_row(scrbuf, scrbuf->row);
-		
+
 		return scrbuf->rows;
 	}
-	
+
 	return 2;
 }
@@ -122,5 +122,5 @@
 		return chargrid_update_rows(scrbuf);
 	}
-	
+
 	return 1;
 }
@@ -144,17 +144,17 @@
 	assert(scrbuf->col < scrbuf->cols);
 	assert(scrbuf->row < scrbuf->rows);
-	
+
 	charfield_t *field =
 	    chargrid_charfield_at(scrbuf, scrbuf->col, scrbuf->row);
-	
+
 	field->ch = ch;
 	field->attrs = scrbuf->attrs;
 	field->flags |= CHAR_FLAG_DIRTY;
-	
+
 	if (update) {
 		scrbuf->col++;
 		return chargrid_update_cols(scrbuf);
 	}
-	
+
 	return 1;
 }
@@ -173,8 +173,8 @@
 	assert(scrbuf->col < scrbuf->cols);
 	assert(scrbuf->row < scrbuf->rows);
-	
+
 	scrbuf->col = 0;
 	scrbuf->row++;
-	
+
 	return chargrid_update_rows(scrbuf);
 }
@@ -194,11 +194,11 @@
 	assert(scrbuf->col < scrbuf->cols);
 	assert(scrbuf->row < scrbuf->rows);
-	
+
 	sysarg_t spaces = tab_size - scrbuf->cols % tab_size;
 	sysarg_t flush = 1;
-	
+
 	for (sysarg_t i = 0; i < spaces; i++)
 		flush += chargrid_putchar(scrbuf, ' ', true) - 1;
-	
+
 	return flush;
 }
@@ -220,16 +220,16 @@
 	assert(scrbuf->col < scrbuf->cols);
 	assert(scrbuf->row < scrbuf->rows);
-	
+
 	if ((scrbuf->col == 0) && (scrbuf->row == 0))
 		return 0;
-	
+
 	if (scrbuf->col == 0) {
 		scrbuf->col = scrbuf->cols - 1;
 		scrbuf->row--;
-		
+
 		chargrid_putchar(scrbuf, ' ', false);
 		return 2;
 	}
-	
+
 	scrbuf->col--;
 	chargrid_putchar(scrbuf, ' ', false);
@@ -249,5 +249,5 @@
 		scrbuf->data[pos].flags = CHAR_FLAG_DIRTY;
 	}
-	
+
 	scrbuf->col = 0;
 	scrbuf->row = 0;
@@ -284,5 +284,5 @@
 	assert(col);
 	assert(row);
-	
+
 	*col = scrbuf->col;
 	*row = scrbuf->row;
@@ -305,5 +305,5 @@
 		charfield_t *field =
 		    chargrid_charfield_at(scrbuf, col, row);
-		
+
 		field->ch = 0;
 		field->attrs = scrbuf->attrs;
Index: uspace/lib/c/generic/io/console.c
===================================================================
--- uspace/lib/c/generic/io/console.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/console.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 	if (!ctrl)
 		return NULL;
-	
+
 	ctrl->input_sess = vfs_fsession(ifile, INTERFACE_CONSOLE);
 	if (!ctrl->input_sess) {
@@ -54,5 +54,5 @@
 		return NULL;
 	}
-	
+
 	ctrl->output_sess = vfs_fsession(ofile, INTERFACE_CONSOLE);
 	if (!ctrl->output_sess) {
@@ -60,9 +60,9 @@
 		return NULL;
 	}
-	
+
 	ctrl->input = ifile;
 	ctrl->output = ofile;
 	ctrl->input_aid = 0;
-	
+
 	return ctrl;
 }
@@ -95,5 +95,5 @@
 	errno_t rc = async_req_0_2(exch, CONSOLE_GET_SIZE, cols, rows);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -134,5 +134,5 @@
 	errno_t rc = async_req_0_1(exch, CONSOLE_GET_COLOR_CAP, ccap);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -143,5 +143,5 @@
 	errno_t rc = async_req_0_2(exch, CONSOLE_GET_POS, col, row);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -183,17 +183,17 @@
 	if (ctrl->input_aid == 0) {
 		ipc_call_t result;
-		
+
 		async_exch_t *exch = async_exchange_begin(ctrl->input_sess);
 		aid_t aid = async_send_0(exch, CONSOLE_GET_EVENT, &result);
 		async_exchange_end(exch);
-		
+
 		errno_t rc;
 		async_wait_for(aid, &rc);
-		
+
 		if (rc != EOK) {
 			errno = rc;
 			return false;
 		}
-		
+
 		rc = console_ev_decode(&result, event);
 		if (rc != EOK) {
@@ -204,12 +204,12 @@
 		errno_t retval;
 		async_wait_for(ctrl->input_aid, &retval);
-		
+
 		ctrl->input_aid = 0;
-		
+
 		if (retval != EOK) {
 			errno = retval;
 			return false;
 		}
-		
+
 		errno_t rc = console_ev_decode(&ctrl->input_call, event);
 		if (rc != EOK) {
@@ -218,5 +218,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -227,5 +227,5 @@
 	struct timeval t0;
 	gettimeofday(&t0, NULL);
-	
+
 	if (ctrl->input_aid == 0) {
 		async_exch_t *exch = async_exchange_begin(ctrl->input_sess);
@@ -234,5 +234,5 @@
 		async_exchange_end(exch);
 	}
-	
+
 	errno_t retval;
 	errno_t rc = async_wait_timeout(ctrl->input_aid, &retval, *timeout);
@@ -242,12 +242,12 @@
 		return false;
 	}
-	
+
 	ctrl->input_aid = 0;
-	
+
 	if (retval != EOK) {
 		errno = retval;
 		return false;
 	}
-	
+
 	rc = console_ev_decode(&ctrl->input_call, event);
 	if (rc != EOK) {
@@ -255,10 +255,10 @@
 		return false;
 	}
-	
+
 	/* Update timeout */
 	struct timeval t1;
 	gettimeofday(&t1, NULL);
 	*timeout -= tv_sub_diff(&t1, &t0);
-	
+
 	return true;
 }
Index: uspace/lib/c/generic/io/input.c
===================================================================
--- uspace/lib/c/generic/io/input.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/input.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,5 +61,5 @@
 	errno_t rc = async_create_callback_port(exch, INTERFACE_INPUT_CB, 0, 0,
 	    input_cb_conn, input, &port);
-	
+
 	async_exchange_end(exch);
 
@@ -88,5 +88,5 @@
 	errno_t rc = async_req_0_0(exch, INPUT_ACTIVATE);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
Index: uspace/lib/c/generic/io/io.c
===================================================================
--- uspace/lib/c/generic/io/io.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/io.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -119,5 +119,5 @@
 		list_append(&stdin->link, &files);
 	}
-	
+
 	int outfd = inbox_get("stdout");
 	if (outfd >= 0) {
@@ -133,5 +133,5 @@
 		list_append(&stdout->link, &files);
 	}
-	
+
 	int errfd = inbox_get("stderr");
 	if (errfd >= 0) {
@@ -165,8 +165,8 @@
 		return false;
 	}
-	
+
 	if ((*mp == 'b') || (*mp == 't'))
 		mp++;
-	
+
 	bool plus;
 	if (*mp == '+') {
@@ -175,5 +175,5 @@
 	} else
 		plus = false;
-	
+
 	if (*mp != 0) {
 		errno = EINVAL;
@@ -183,5 +183,5 @@
 	*create = false;
 	*truncate = false;
-	
+
 	/* Parse first character of fmode and determine mode for vfs_open(). */
 	switch (fmode[0]) {
@@ -209,5 +209,5 @@
 		return false;
 	}
-	
+
 	return true;
 }
@@ -241,5 +241,5 @@
 {
 	/* FIXME: Use more complex rules for setting buffering options. */
-	
+
 	switch (stream->fd) {
 	case 1:
@@ -259,5 +259,5 @@
 {
 	assert(stream->buf == NULL);
-	
+
 	stream->buf = malloc(stream->buf_size);
 	if (stream->buf == NULL) {
@@ -265,5 +265,5 @@
 		return EOF;
 	}
-	
+
 	stream->buf_head = stream->buf;
 	stream->buf_tail = stream->buf;
@@ -285,5 +285,5 @@
 	if (!parse_mode(fmode, &mode, &create, &truncate))
 		return NULL;
-	
+
 	/* Open file. */
 	FILE *stream = malloc(sizeof(FILE));
@@ -311,5 +311,5 @@
 		return NULL;
 	}
-	
+
 	if (truncate) {
 		rc = vfs_resize(file, 0);
@@ -331,7 +331,7 @@
 	_setvbuf(stream);
 	stream->ungetc_chars = 0;
-	
+
 	list_append(&stream->link, &files);
-	
+
 	return stream;
 }
@@ -345,5 +345,5 @@
 		return NULL;
 	}
-	
+
 	stream->fd = fd;
 	stream->pos = 0;
@@ -355,7 +355,7 @@
 	_setvbuf(stream);
 	stream->ungetc_chars = 0;
-	
+
 	list_append(&stream->link, &files);
-	
+
 	return stream;
 }
@@ -365,20 +365,20 @@
 {
 	errno_t rc = 0;
-	
+
 	fflush(stream);
-	
+
 	if (stream->sess != NULL)
 		async_hangup(stream->sess);
-	
+
 	if (stream->fd >= 0)
 		rc = vfs_put(stream->fd);
-	
+
 	list_remove(&stream->link);
-	
+
 	if (rc != EOK) {
 		errno = rc;
 		return EOF;
 	}
-	
+
 	return 0;
 }
@@ -387,10 +387,10 @@
 {
 	int rc = _fclose_nofree(stream);
-	
+
 	if ((stream != &stdin_null)
 	    && (stream != &stdout_kio)
 	    && (stream != &stderr_kio))
 		free(stream);
-	
+
 	return rc;
 }
@@ -399,10 +399,10 @@
 {
 	FILE *nstr;
-	
+
 	if (path == NULL) {
 		/* Changing mode is not supported */
 		return NULL;
 	}
-	
+
 	(void) _fclose_nofree(stream);
 	nstr = fopen(path, mode);
@@ -411,11 +411,11 @@
 		return NULL;
 	}
-	
+
 	list_remove(&nstr->link);
 	*stream = *nstr;
 	list_append(&stream->link, &files);
-	
+
 	free(nstr);
-	
+
 	return stream;
 }
@@ -659,10 +659,10 @@
 			return 0; /* Errno set by _fallocbuf(). */
 	}
-	
+
 	data = (uint8_t *) buf;
 	bytes_left = size * nmemb;
 	total_written = 0;
 	need_flush = false;
-	
+
 	while ((!stream->error) && (bytes_left > 0)) {
 		buf_free = stream->buf_size - (stream->buf_head - stream->buf);
@@ -671,13 +671,13 @@
 		else
 			now = bytes_left;
-		
+
 		for (i = 0; i < now; i++) {
 			b = data[i];
 			stream->buf_head[i] = b;
-			
+
 			if ((b == '\n') && (stream->btype == _IOLBF))
 				need_flush = true;
 		}
-		
+
 		data += now;
 		stream->buf_head += now;
@@ -686,5 +686,5 @@
 		total_written += now;
 		stream->buf_state = _bs_write;
-		
+
 		if (buf_free == 0) {
 			/* Only need to drain buffer. */
@@ -697,5 +697,5 @@
 	if (need_flush)
 		fflush(stream);
-	
+
 	return (total_written / size);
 }
@@ -705,14 +705,14 @@
 	char buf[STR_BOUNDS(1)];
 	size_t sz = 0;
-	
+
 	if (chr_encode(c, buf, &sz, STR_BOUNDS(1)) == EOK) {
 		size_t wr = fwrite(buf, 1, sz, stream);
-		
+
 		if (wr < sz)
 			return EOF;
-		
+
 		return (int) c;
 	}
-	
+
 	return EOF;
 }
@@ -739,5 +739,5 @@
 {
 	char c;
-	
+
 	/* This could be made faster by only flushing when needed. */
 	if (stdout)
@@ -745,8 +745,8 @@
 	if (stderr)
 		fflush(stderr);
-	
+
 	if (fread(&c, sizeof(char), 1, stream) < sizeof(char))
 		return EOF;
-	
+
 	return (int) c;
 }
@@ -841,5 +841,5 @@
 	if (stream->error)
 		return EOF;
-	
+
 	_fflushbuf(stream);
 	if (stream->error) {
@@ -876,5 +876,5 @@
 	if (stream->error)
 		return EOF;
-	
+
 	_fflushbuf(stream);
 	if (stream->error) {
@@ -882,10 +882,10 @@
 		return EOF;
 	}
-	
+
 	if (stream->kio) {
 		kio_update();
 		return 0;
 	}
-	
+
 	if ((stream->fd >= 0) && (stream->need_sync)) {
 		errno_t rc;
@@ -904,5 +904,5 @@
 		return 0;
 	}
-	
+
 	return 0;
 }
@@ -930,5 +930,5 @@
 		return EOF;
 	}
-	
+
 	return stream->fd;
 }
@@ -939,8 +939,8 @@
 		if (stream->sess == NULL)
 			stream->sess = vfs_fd_session(stream->fd, iface);
-		
+
 		return stream->sess;
 	}
-	
+
 	return NULL;
 }
@@ -952,5 +952,5 @@
 		return EOK;
 	}
-	
+
 	return ENOENT;
 }
Index: uspace/lib/c/generic/io/kio.c
===================================================================
--- uspace/lib/c/generic/io/kio.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/kio.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 {
 	errno_t rc = (errno_t) __SYSCALL3(SYS_KIO, KIO_WRITE, (sysarg_t) buf, size);
-	
+
 	if (rc == EOK)
 		*nwritten = size;
@@ -73,9 +73,9 @@
 	va_list args;
 	va_start(args, fmt);
-	
+
 	int ret = kio_vprintf(fmt, args);
-	
+
 	va_end(args);
-	
+
 	return ret;
 }
@@ -84,5 +84,5 @@
 {
 	size_t wr;
-	
+
 	wr = 0;
 	(void) kio_write(str, size, &wr);
@@ -95,16 +95,16 @@
 	size_t chars = 0;
 	size_t wr;
-	
+
 	while (offset < size) {
 		char buf[STR_BOUNDS(1)];
 		size_t sz = 0;
-		
+
 		if (chr_encode(str[chars], buf, &sz, STR_BOUNDS(1)) == EOK)
 			kio_write(buf, sz, &wr);
-		
+
 		chars++;
 		offset += sizeof(wchar_t);
 	}
-	
+
 	return chars;
 }
@@ -125,5 +125,5 @@
 		NULL
 	};
-	
+
 	return printf_core(fmt, &ps, ap);
 }
Index: uspace/lib/c/generic/io/output.c
===================================================================
--- uspace/lib/c/generic/io/output.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/output.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,5 +45,5 @@
 	errno_t ret = async_req_0_0(exch, OUTPUT_YIELD);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -54,5 +54,5 @@
 	errno_t ret = async_req_0_0(exch, OUTPUT_CLAIM);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -63,5 +63,5 @@
 	errno_t ret = async_req_0_2(exch, OUTPUT_GET_DIMENSIONS, maxx, maxy);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -70,13 +70,13 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	sysarg_t rv;
 	errno_t ret = async_req_0_1(exch, OUTPUT_GET_CAPS, &rv);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (ret == EOK)
 		*ccaps = (console_caps_t) rv;
-	
+
 	return ret;
 }
@@ -86,18 +86,18 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, OUTPUT_FRONTBUF_CREATE, &answer);
 	errno_t rc = async_share_out_start(exch, frontbuf, AS_AREA_READ
 	    | AS_AREA_WRITE | AS_AREA_CACHEABLE);
-	
+
 	async_exchange_end(exch);
-	
+
 	errno_t ret;
 	async_wait_for(req, &ret);
-	
+
 	if ((rc != EOK) || (ret != EOK))
 		return 0;
-	
+
 	return (frontbuf_handle_t) IPC_GET_ARG1(answer);
 }
@@ -108,5 +108,5 @@
 	errno_t ret = async_req_1_0(exch, OUTPUT_SET_STYLE, style);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -117,5 +117,5 @@
 	errno_t ret = async_req_1_0(exch, OUTPUT_CURSOR_UPDATE, frontbuf);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -126,5 +126,5 @@
 	errno_t ret = async_req_1_0(exch, OUTPUT_UPDATE, frontbuf);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -137,5 +137,5 @@
 	    cols, rows);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
Index: uspace/lib/c/generic/io/printf.c
===================================================================
--- uspace/lib/c/generic/io/printf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/printf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,9 +48,9 @@
 	va_list args;
 	va_start(args, fmt);
-	
+
 	int ret = vfprintf(stream, fmt, args);
-	
+
 	va_end(args);
-	
+
 	return ret;
 }
@@ -67,9 +67,9 @@
 	va_list args;
 	va_start(args, fmt);
-	
+
 	int ret = vprintf(fmt, args);
-	
+
 	va_end(args);
-	
+
 	return ret;
 }
Index: uspace/lib/c/generic/io/printf_core.c
===================================================================
--- uspace/lib/c/generic/io/printf_core.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/printf_core.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -211,5 +211,5 @@
 	if (str == NULL)
 		return printf_putnchars(nullstr, str_size(nullstr), ps);
-	
+
 	return ps->str_write((void *) str, str_size(str), ps->data);
 }
@@ -227,5 +227,5 @@
 	if (!ascii_check(ch))
 		return ps->str_write((void *) &invalch, 1, ps->data);
-	
+
 	return ps->str_write(&ch, 1, ps->data);
 }
@@ -243,5 +243,5 @@
 	if (!chr_check(ch))
 		return ps->str_write((void *) &invalch, 1, ps->data);
-	
+
 	return ps->wstr_write(&ch, sizeof(wchar_t), ps->data);
 }
@@ -269,8 +269,8 @@
 		}
 	}
-	
+
 	if (printf_putchar(ch, ps) > 0)
 		counter++;
-	
+
 	while (--width > 0) {
 		/*
@@ -281,5 +281,5 @@
 			counter++;
 	}
-	
+
 	return (int) (counter);
 }
@@ -307,8 +307,8 @@
 		}
 	}
-	
+
 	if (printf_putwchar(ch, ps) > 0)
 		counter++;
-	
+
 	while (--width > 0) {
 		/*
@@ -319,5 +319,5 @@
 			counter++;
 	}
-	
+
 	return (int) (counter);
 }
@@ -337,5 +337,5 @@
 	if (str == NULL)
 		return printf_putstr(nullstr, ps);
-	
+
 	size_t strw = str_length(str);
 
@@ -343,5 +343,5 @@
 	if ((precision == 0) || (precision > strw))
 		precision = strw;
-	
+
 	/* Left padding */
 	size_t counter = 0;
@@ -353,5 +353,5 @@
 		}
 	}
-	
+
 	/* Part of @a str fitting into the alloted space. */
 	int retval;
@@ -386,5 +386,5 @@
 	if (str == NULL)
 		return printf_putstr(nullstr, ps);
-	
+
 	size_t strw = wstr_length(str);
 
@@ -392,5 +392,5 @@
 	if ((precision == 0) || (precision > strw))
 		precision = strw;
-	
+
 	/* Left padding */
 	size_t counter = 0;
@@ -402,5 +402,5 @@
 		}
 	}
-	
+
 	/* Part of @a wstr fitting into the alloted space. */
 	int retval;
@@ -408,7 +408,7 @@
 	if ((retval = printf_wputnchars(str, size, ps)) < 0)
 		return -counter;
-	
+
 	counter += retval;
-	
+
 	/* Right padding */
 	while (width-- > 0) {
@@ -440,5 +440,5 @@
 		precision = 0;
 	}
-	
+
 	const char *digits;
 	if (flags & __PRINTF_FLAG_BIGCHARS)
@@ -446,14 +446,14 @@
 	else
 		digits = digits_small;
-	
+
 	char data[PRINT_NUMBER_BUFFER_SIZE];
 	char *ptr = &data[PRINT_NUMBER_BUFFER_SIZE - 1];
-	
+
 	/* Size of number with all prefixes and signs */
 	int size = 0;
-	
+
 	/* Put zero at end of string */
 	*ptr-- = 0;
-	
+
 	if (num == 0) {
 		*ptr-- = '0';
@@ -465,8 +465,8 @@
 		} while (num /= base);
 	}
-	
+
 	/* Size of plain number */
 	int number_size = size;
-	
+
 	/*
 	 * Collect the sum of all prefixes/signs/etc. to calculate padding and
@@ -487,5 +487,5 @@
 		}
 	}
-	
+
 	char sgn = 0;
 	if (flags & __PRINTF_FLAG_SIGNED) {
@@ -501,8 +501,8 @@
 		}
 	}
-	
+
 	if (flags & __PRINTF_FLAG_LEFTALIGNED)
 		flags &= ~__PRINTF_FLAG_ZEROPADDED;
-	
+
 	/*
 	 * If the number is left-aligned or precision is specified then
@@ -513,5 +513,5 @@
 			precision = width - size + number_size;
 	}
-	
+
 	/* Print leading spaces */
 	if (number_size > precision) {
@@ -519,8 +519,8 @@
 		precision = number_size;
 	}
-	
+
 	width -= precision + size - number_size;
 	size_t counter = 0;
-	
+
 	if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
 		while (width-- > 0) {
@@ -529,5 +529,5 @@
 		}
 	}
-	
+
 	/* Print sign */
 	if (sgn) {
@@ -535,5 +535,5 @@
 			counter++;
 	}
-	
+
 	/* Print prefix */
 	if (flags & __PRINTF_FLAG_PREFIX) {
@@ -568,5 +568,5 @@
 		}
 	}
-	
+
 	/* Print leading zeroes */
 	precision -= number_size;
@@ -575,17 +575,17 @@
 			counter++;
 	}
-	
+
 	/* Print the number itself */
 	int retval;
 	if ((retval = printf_putstr(++ptr, ps)) > 0)
 		counter += retval;
-	
+
 	/* Print trailing spaces */
-	
+
 	while (width-- > 0) {
 		if (printf_putchar(' ', ps) == 1)
 			counter++;
 	}
-	
+
 	return ((int) counter);
 }
@@ -601,5 +601,5 @@
 	const int str_len = 3;
 	const char *str;
-	
+
 	if (flags & __PRINTF_FLAG_BIGCHARS) {
 		str = val.is_infinity ? "INF" : "NAN";
@@ -624,5 +624,5 @@
 		if ((ret = ps->str_write(&sign, 1, ps->data)) < 0)
 			return -1;
-		
+
 		counter += ret;
 	}
@@ -630,5 +630,5 @@
 	if ((ret = ps->str_write(str, str_len, ps->data)) < 0)
 		return -1;
-	
+
 	counter += ret;
 
@@ -751,5 +751,5 @@
 		if ((ret = ps->str_write(&sign, 1, ps->data)) < 0)
 			return -1;
-		
+
 		counter += ret;
 	}
@@ -783,5 +783,5 @@
 
 	counter += ret;
-	
+
 	/* Print the decimal point and the fractional part. */
 	if (has_decimal_pt) {
@@ -790,5 +790,5 @@
 		if ((ret = ps->str_write(&ch, 1, ps->data)) < 0)
 			return -1;
-		
+
 		counter += ret;
 
@@ -885,5 +885,5 @@
 		/* Let the implementation figure out the proper precision. */
 		val_str.len = double_to_short_str(val, buf, buf_size, &val_str.dec_exp);
-		
+
 		/* Precision needed for the last significant digit. */
 		precision = max(0, -val_str.dec_exp);
@@ -903,5 +903,5 @@
 	if ((ret = ps->str_write(&exp_ch, 1, ps->data)) < 0)
 		return -1;
-	
+
 	counter += ret;
 
@@ -915,5 +915,5 @@
 	/* Print the exponent. */
 	exp_val = abs(exp_val);
-	
+
 	char exp_str[4] = { 0 };
 
@@ -921,5 +921,5 @@
 	exp_str[1] = '0' + (exp_val % 100) / 10 ;
 	exp_str[2] = '0' + (exp_val % 10);
-	
+
 	int exp_len = (exp_str[0] == '0') ? 2 : 3;
 	const char *exp_str_start = &exp_str[3] - exp_len;
@@ -981,5 +981,5 @@
 		if ((ret = ps->str_write(&sign, 1, ps->data)) < 0)
 			return -1;
-		
+
 		counter += ret;
 	}
@@ -1004,5 +1004,5 @@
 		if ((ret = ps->str_write(&ch, 1, ps->data)) < 0)
 			return -1;
-		
+
 		counter += ret;
 
@@ -1104,5 +1104,5 @@
 		/* Let the implementation figure out the proper precision. */
 		val_str.len = double_to_short_str(val, buf, buf_size, &val_str.dec_exp);
-		
+
 		/* Use all produced digits. */
 		precision = val_str.len - 1;
@@ -1223,5 +1223,5 @@
 		precision = (precision < 0) ? 6 : precision;
 		return print_double_fixed(g, precision, width, flags, ps);
-	
+
 	case 'E':
 		flags |= __PRINTF_FLAG_BIGCHARS;
@@ -1230,5 +1230,5 @@
 		precision = (precision < 0) ? 6 : precision;
 		return print_double_scientific(g, precision, width, flags, ps);
-	
+
 	case 'G':
 		flags |= __PRINTF_FLAG_BIGCHARS;
@@ -1236,5 +1236,5 @@
 	case 'g':
 		return print_double_generic(g, precision, width, flags, ps);
-	
+
 	default:
 		assert(false);
@@ -1337,15 +1337,15 @@
 	size_t nxt = 0;  /* Index of the next character from fmt */
 	size_t j = 0;    /* Index to the first not printed nonformating character */
-	
+
 	size_t counter = 0;   /* Number of characters printed */
 	int retval;           /* Return values from nested functions */
-	
+
 	while (true) {
 		i = nxt;
 		wchar_t uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
-		
+
 		if (uc == 0)
 			break;
-		
+
 		/* Control character */
 		if (uc == '%') {
@@ -1359,11 +1359,11 @@
 				counter += retval;
 			}
-			
+
 			j = i;
-			
+
 			/* Parse modifiers */
 			uint32_t flags = 0;
 			bool end = false;
-			
+
 			do {
 				i = nxt;
@@ -1390,5 +1390,5 @@
 				};
 			} while (!end);
-			
+
 			/* Width & '*' operator */
 			int width = 0;
@@ -1397,5 +1397,5 @@
 					width *= 10;
 					width += uc - '0';
-					
+
 					i = nxt;
 					uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
@@ -1416,5 +1416,5 @@
 				}
 			}
-			
+
 			/* Precision and '*' operator */
 			int precision = -1;
@@ -1427,5 +1427,5 @@
 						precision *= 10;
 						precision += uc - '0';
-						
+
 						i = nxt;
 						uc = str_decode(fmt, &nxt, STR_NO_LIMIT);
@@ -1446,7 +1446,7 @@
 				}
 			}
-			
+
 			qualifier_t qualifier;
-			
+
 			switch (uc) {
 			case 't':
@@ -1495,7 +1495,7 @@
 				qualifier = PrintfQualifierInt;
 			}
-			
+
 			unsigned int base = 10;
-			
+
 			switch (uc) {
 			/*
@@ -1504,15 +1504,15 @@
 			case 's':
 				precision = max(0,  precision);
-				
+
 				if (qualifier == PrintfQualifierLong)
 					retval = print_wstr(va_arg(ap, wchar_t *), width, precision, flags, ps);
 				else
 					retval = print_str(va_arg(ap, char *), width, precision, flags, ps);
-				
+
 				if (retval < 0) {
 					counter = -counter;
 					goto out;
 				}
-				
+
 				counter += retval;
 				j = nxt;
@@ -1523,14 +1523,14 @@
 				else
 					retval = print_char(va_arg(ap, unsigned int), width, flags, ps);
-				
+
 				if (retval < 0) {
 					counter = -counter;
 					goto out;
 				};
-				
+
 				counter += retval;
 				j = nxt;
 				goto next_char;
-				
+
 			/*
 			 * Floating point values
@@ -1544,14 +1544,14 @@
 				retval = print_double(va_arg(ap, double), uc, precision,
 					width, flags, ps);
-				
+
 				if (retval < 0) {
 					counter = -counter;
 					goto out;
 				}
-				
+
 				counter += retval;
 				j = nxt;
 				goto next_char;
-			
+
 			/*
 			 * Integer values
@@ -1585,10 +1585,10 @@
 				base = 16;
 				break;
-			
+
 			/* Percentile itself */
 			case '%':
 				j = i;
 				goto next_char;
-			
+
 			/*
 			 * Bad formatting.
@@ -1601,9 +1601,9 @@
 				goto next_char;
 			}
-			
+
 			/* Print integers */
 			size_t size;
 			uint64_t number;
-			
+
 			switch (qualifier) {
 			case PrintfQualifierByte:
@@ -1645,5 +1645,5 @@
 				goto out;
 			}
-			
+
 			if ((retval = print_number(number, width, precision,
 			    base, flags, ps)) < 0) {
@@ -1651,5 +1651,5 @@
 				goto out;
 			}
-			
+
 			counter += retval;
 			j = nxt;
@@ -1658,5 +1658,5 @@
 		;
 	}
-	
+
 	if (i > j) {
 		if ((retval = printf_putnchars(&fmt[j], i - j, ps)) < 0) {
@@ -1667,5 +1667,5 @@
 		counter += retval;
 	}
-	
+
 out:
 	return ((int) counter);
Index: uspace/lib/c/generic/io/snprintf.c
===================================================================
--- uspace/lib/c/generic/io/snprintf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/snprintf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,9 +50,9 @@
 	va_list args;
 	va_start(args, fmt);
-	
+
 	int ret = vsnprintf(str, size, fmt, args);
-	
+
 	va_end(args);
-	
+
 	return ret;
 }
Index: uspace/lib/c/generic/io/vprintf.c
===================================================================
--- uspace/lib/c/generic/io/vprintf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/vprintf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,13 +52,13 @@
 	size_t offset = 0;
 	size_t chars = 0;
-	
+
 	while (offset < size) {
 		if (fputc(str[chars], (FILE *) stream) <= 0)
 			break;
-		
+
 		chars++;
 		offset += sizeof(wchar_t);
 	}
-	
+
 	return chars;
 }
@@ -80,14 +80,14 @@
 		stream
 	};
-	
+
 	/*
 	 * Prevent other threads to execute printf_core()
 	 */
 	fibril_mutex_lock(&printf_mutex);
-	
+
 	int ret = printf_core(fmt, &ps, ap);
-	
+
 	fibril_mutex_unlock(&printf_mutex);
-	
+
 	return ret;
 }
Index: uspace/lib/c/generic/io/vsnprintf.c
===================================================================
--- uspace/lib/c/generic/io/vsnprintf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/vsnprintf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,8 +65,8 @@
 {
 	size_t left = data->size - data->len;
-	
+
 	if (left == 0)
 		return ((int) size);
-	
+
 	if (left == 1) {
 		/* We have only one free byte left in buffer
@@ -77,5 +77,5 @@
 		return ((int) size);
 	}
-	
+
 	if (left <= size) {
 		/* We do not have enough space for the whole string
@@ -84,29 +84,29 @@
 		 */
 		size_t index = 0;
-		
+
 		while (index < size) {
 			wchar_t uc = str_decode(str, &index, size);
-			
+
 			if (chr_encode(uc, data->dst, &data->len, data->size - 1) != EOK)
 				break;
 		}
-		
+
 		/* Put trailing zero at end, but not count it
 		 * into data->len so it could be rewritten next time
 		 */
 		data->dst[data->len] = 0;
-		
+
 		return ((int) size);
 	}
-	
+
 	/* Buffer is big enough to print the whole string */
 	memcpy((void *)(data->dst + data->len), (void *) str, size);
 	data->len += size;
-	
+
 	/* Put trailing zero at end, but not count it
 	 * into data->len so it could be rewritten next time
 	 */
 	data->dst[data->len] = 0;
-	
+
 	return ((int) size);
 }
@@ -132,11 +132,11 @@
 {
 	size_t index = 0;
-	
+
 	while (index < (size / sizeof(wchar_t))) {
 		size_t left = data->size - data->len;
-		
+
 		if (left == 0)
 			return ((int) size);
-		
+
 		if (left == 1) {
 			/* We have only one free byte left in buffer
@@ -147,16 +147,16 @@
 			return ((int) size);
 		}
-		
+
 		if (chr_encode(str[index], data->dst, &data->len, data->size - 1) != EOK)
 			break;
-		
+
 		index++;
 	}
-	
+
 	/* Put trailing zero at end, but not count it
 	 * into data->len so it could be rewritten next time
 	 */
 	data->dst[data->len] = 0;
-	
+
 	return ((int) size);
 }
@@ -174,9 +174,9 @@
 		&data
 	};
-	
+
 	/* Print 0 at end of string - fix the case that nothing will be printed */
 	if (size > 0)
 		str[0] = 0;
-	
+
 	/* vsnprintf_write ensures that str will be terminated by zero. */
 	return printf_core(fmt, &ps, ap);
Index: uspace/lib/c/generic/io/window.c
===================================================================
--- uspace/lib/c/generic/io/window.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/io/window.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	errno_t ret = async_req_1_2(exch, WINDOW_REGISTER, flags, in, out);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -96,21 +96,21 @@
 {
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_5(exch, WINDOW_RESIZE, x, y, width, height,
 	    (sysarg_t) placement_flags, &answer);
-	
+
 	errno_t rc = async_share_out_start(exch, cells, AS_AREA_READ | AS_AREA_CACHEABLE);
-	
+
 	async_exchange_end(exch);
-	
+
 	errno_t ret;
 	async_wait_for(req, &ret);
-	
+
 	if (rc != EOK)
 		return rc;
 	else if (ret != EOK)
 		return ret;
-	
+
 	return EOK;
 }
Index: uspace/lib/c/generic/ipc.c
===================================================================
--- uspace/lib/c/generic/ipc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/ipc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 	ipc_async_callback_t callback;
 	void *private;
-	
+
 	struct {
 		ipc_call_t data;
@@ -78,11 +78,11 @@
 		if (callback)
 			callback(private, ENOMEM, NULL);
-		
+
 		return NULL;
 	}
-	
+
 	call->callback = callback;
 	call->private = private;
-	
+
 	return call;
 }
@@ -99,10 +99,10 @@
 		return;
 	}
-	
+
 	if (rc != EOK) {
 		/* Call asynchronous handler with error code */
 		if (call->callback)
 			call->callback(call->private, ENOENT, NULL);
-		
+
 		free(call);
 		return;
@@ -135,8 +135,8 @@
 	if (!call)
 		return;
-	
+
 	errno_t rc = (errno_t) __SYSCALL6(SYS_IPC_CALL_ASYNC_FAST, phandle, imethod, arg1,
 	    arg2, arg3, (sysarg_t) call);
-	
+
 	ipc_finish_async(rc, call);
 }
@@ -167,5 +167,5 @@
 	if (!call)
 		return;
-	
+
 	IPC_SET_IMETHOD(call->msg.data, imethod);
 	IPC_SET_ARG1(call->msg.data, arg1);
@@ -174,8 +174,8 @@
 	IPC_SET_ARG4(call->msg.data, arg4);
 	IPC_SET_ARG5(call->msg.data, arg5);
-	
+
 	errno_t rc = (errno_t) __SYSCALL3(SYS_IPC_CALL_ASYNC_SLOW, phandle,
 	    (sysarg_t) &call->msg.data, (sysarg_t) call);
-	
+
 	ipc_finish_async(rc, call);
 }
@@ -222,5 +222,5 @@
 {
 	ipc_call_t data;
-	
+
 	IPC_SET_RETVAL(data, retval);
 	IPC_SET_ARG1(data, arg1);
@@ -229,5 +229,5 @@
 	IPC_SET_ARG4(data, arg4);
 	IPC_SET_ARG5(data, arg5);
-	
+
 	return (errno_t) __SYSCALL2(SYS_IPC_ANSWER_SLOW, chandle, (sysarg_t) &data);
 }
@@ -261,5 +261,5 @@
 {
 	errno_t rc = (errno_t) __SYSCALL3(SYS_IPC_WAIT, (sysarg_t) call, usec, flags);
-	
+
 	/* Handle received answers */
 	if ((rc == EOK) && (call->cap_handle == CAP_NIL) &&
@@ -267,5 +267,5 @@
 		handle_answer(call);
 	}
-	
+
 	return rc;
 }
@@ -292,9 +292,9 @@
 {
 	errno_t rc;
-	
+
 	do {
 		rc = ipc_wait_cycle(call, usec, SYNCH_FLAGS_NONE);
 	} while ((rc == EOK) && (call->cap_handle == CAP_NIL) && (call->flags & IPC_CALL_ANSWERED));
-	
+
 	return rc;
 }
@@ -312,10 +312,10 @@
 {
 	errno_t rc;
-	
+
 	do {
 		rc = ipc_wait_cycle(call, SYNCH_NO_TIMEOUT,
 		    SYNCH_FLAGS_NON_BLOCKING);
 	} while ((rc == EOK) && (call->cap_handle == CAP_NIL) && (call->flags & IPC_CALL_ANSWERED));
-	
+
 	return rc;
 }
@@ -362,5 +362,5 @@
 {
 	ipc_call_t data;
-	
+
 	IPC_SET_IMETHOD(data, imethod);
 	IPC_SET_ARG1(data, arg1);
@@ -369,5 +369,5 @@
 	IPC_SET_ARG4(data, arg4);
 	IPC_SET_ARG5(data, arg5);
-	
+
 	return (errno_t) __SYSCALL4(SYS_IPC_FORWARD_SLOW, chandle, phandle,
 	    (sysarg_t) &data, mode);
Index: uspace/lib/c/generic/iplink.c
===================================================================
--- uspace/lib/c/generic/iplink.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/iplink.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,9 +53,9 @@
 	if (iplink == NULL)
 		return ENOMEM;
-	
+
 	iplink->sess = sess;
 	iplink->ev_ops = ev_ops;
 	iplink->arg = arg;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 
@@ -63,17 +63,17 @@
 	errno_t rc = async_create_callback_port(exch, INTERFACE_IPLINK_CB, 0, 0,
 	    iplink_cb_conn, iplink, &port);
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	if (rc != EOK)
 		goto error;
-	
+
 	*riplink = iplink;
 	return EOK;
-	
+
 error:
 	if (iplink != NULL)
 		free(iplink);
-	
+
 	return rc;
 }
@@ -88,21 +88,21 @@
 {
 	async_exch_t *exch = async_exchange_begin(iplink->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, IPLINK_SEND, (sysarg_t) sdu->src,
 	    (sysarg_t) sdu->dest, &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, sdu->data, sdu->size);
-	
-	async_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	async_exchange_end(exch);
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	return retval;
 }
@@ -111,8 +111,8 @@
 {
 	async_exch_t *exch = async_exchange_begin(iplink->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, IPLINK_SEND6, &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, &sdu->dest, sizeof(addr48_t));
 	if (rc != EOK) {
@@ -121,17 +121,17 @@
 		return rc;
 	}
-	
+
 	rc = async_data_write_start(exch, sdu->data, sdu->size);
-	
-	async_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	async_exchange_end(exch);
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	return retval;
 }
@@ -140,13 +140,13 @@
 {
 	async_exch_t *exch = async_exchange_begin(iplink->sess);
-	
+
 	sysarg_t mtu;
 	errno_t rc = async_req_0_1(exch, IPLINK_GET_MTU, &mtu);
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	if (rc != EOK)
 		return rc;
-	
+
 	*rmtu = mtu;
 	return EOK;
@@ -156,20 +156,20 @@
 {
 	async_exch_t *exch = async_exchange_begin(iplink->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, IPLINK_GET_MAC48, &answer);
-	
+
 	errno_t rc = async_data_read_start(exch, mac, sizeof(addr48_t));
-	
+
 	loc_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	return retval;
 }
@@ -178,20 +178,20 @@
 {
 	async_exch_t *exch = async_exchange_begin(iplink->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, IPLINK_GET_MAC48, &answer);
-	
+
 	errno_t rc = async_data_read_start(exch, mac, sizeof(addr48_t));
-	
+
 	loc_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	return retval;
 }
@@ -201,19 +201,19 @@
 {
 	async_exch_t *exch = async_exchange_begin(iplink->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, IPLINK_ADDR_ADD, &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, addr, sizeof(inet_addr_t));
 	async_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	return retval;
 }
@@ -222,19 +222,19 @@
 {
 	async_exch_t *exch = async_exchange_begin(iplink->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, IPLINK_ADDR_REMOVE, &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, addr, sizeof(inet_addr_t));
 	async_exchange_end(exch);
-	
-	if (rc != EOK) {
-		async_forget(req);
-		return rc;
-	}
-	
-	errno_t retval;
-	async_wait_for(req, &retval);
-	
+
+	if (rc != EOK) {
+		async_forget(req);
+		return rc;
+	}
+
+	errno_t retval;
+	async_wait_for(req, &retval);
+
 	return retval;
 }
@@ -249,7 +249,7 @@
 {
 	iplink_recv_sdu_t sdu;
-	
+
 	ip_ver_t ver = IPC_GET_ARG1(*icall);
-	
+
 	errno_t rc = async_data_write_accept(&sdu.data, false, 0, 0, 0,
 	    &sdu.size);
@@ -258,5 +258,5 @@
 		return;
 	}
-	
+
 	rc = iplink->ev_ops->recv(iplink, &sdu, ver);
 	free(sdu.data);
@@ -269,5 +269,5 @@
 	addr48_t *addr;
 	size_t size;
-	
+
 	errno_t rc = async_data_write_accept((void **)&addr, false,
 	    sizeof(addr48_t), sizeof(addr48_t), 0, &size);
@@ -285,14 +285,14 @@
 {
 	iplink_t *iplink = (iplink_t *) arg;
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			/* TODO: Handle hangup */
 			return;
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case IPLINK_EV_RECV:
Index: uspace/lib/c/generic/iplink_srv.c
===================================================================
--- uspace/lib/c/generic/iplink_srv.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/iplink_srv.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 		return;
 	}
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -67,5 +67,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(addr48_t)) {
 		async_answer_0(callid, EINVAL);
@@ -73,9 +73,9 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, &mac, size);
 	if (rc != EOK)
 		async_answer_0(callid, rc);
-	
+
 	async_answer_0(iid, rc);
 }
@@ -99,9 +99,9 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, &mac, sizeof(addr48_t));
 	if (rc != EOK)
 		async_answer_0(callid, rc);
-	
+
 	async_answer_0(iid, rc);
 }
@@ -117,5 +117,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -123,5 +123,5 @@
 		return;
 	}
-	
+
 	inet_addr_t addr;
 	errno_t rc = async_data_write_finalize(callid, &addr, size);
@@ -130,5 +130,5 @@
 		async_answer_0(iid, rc);
 	}
-	
+
 	rc = srv->ops->addr_add(srv, &addr);
 	async_answer_0(iid, rc);
@@ -145,5 +145,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -151,5 +151,5 @@
 		return;
 	}
-	
+
 	inet_addr_t addr;
 	errno_t rc = async_data_write_finalize(callid, &addr, size);
@@ -158,5 +158,5 @@
 		async_answer_0(iid, rc);
 	}
-	
+
 	rc = srv->ops->addr_remove(srv, &addr);
 	async_answer_0(iid, rc);
@@ -167,8 +167,8 @@
 {
 	iplink_sdu_t sdu;
-	
+
 	sdu.src = IPC_GET_ARG1(*icall);
 	sdu.dest = IPC_GET_ARG2(*icall);
-	
+
 	errno_t rc = async_data_write_accept(&sdu.data, false, 0, 0, 0,
 	    &sdu.size);
@@ -177,5 +177,5 @@
 		return;
 	}
-	
+
 	rc = srv->ops->send(srv, &sdu);
 	free(sdu.data);
@@ -187,5 +187,5 @@
 {
 	iplink_sdu6_t sdu;
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -195,5 +195,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(addr48_t)) {
 		async_answer_0(callid, EINVAL);
@@ -201,5 +201,5 @@
 		return;
 	}
-	
+
 	errno_t rc = async_data_write_finalize(callid, &sdu.dest, size);
 	if (rc != EOK) {
@@ -207,5 +207,5 @@
 		async_answer_0(iid, rc);
 	}
-	
+
 	rc = async_data_write_accept(&sdu.data, false, 0, 0, 0,
 	    &sdu.size);
@@ -214,5 +214,5 @@
 		return;
 	}
-	
+
 	rc = srv->ops->send6(srv, &sdu);
 	free(sdu.data);
@@ -233,5 +233,5 @@
 	iplink_srv_t *srv = (iplink_srv_t *) arg;
 	errno_t rc;
-	
+
 	fibril_mutex_lock(&srv->lock);
 	if (srv->connected) {
@@ -240,26 +240,26 @@
 		return EBUSY;
 	}
-	
+
 	srv->connected = true;
 	fibril_mutex_unlock(&srv->lock);
-	
+
 	/* Accept the connection */
 	async_answer_0(iid, EOK);
-	
+
 	async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE);
 	if (sess == NULL)
 		return ENOMEM;
-	
+
 	srv->client_sess = sess;
-	
+
 	rc = srv->ops->open(srv);
 	if (rc != EOK)
 		return rc;
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
 		sysarg_t method = IPC_GET_IMETHOD(call);
-		
+
 		if (!method) {
 			/* The other side has hung up */
@@ -270,5 +270,5 @@
 			break;
 		}
-		
+
 		switch (method) {
 		case IPLINK_GET_MTU:
@@ -297,5 +297,5 @@
 		}
 	}
-	
+
 	return srv->ops->close(srv);
 }
@@ -306,24 +306,24 @@
 	if (srv->client_sess == NULL)
 		return EIO;
-	
+
 	async_exch_t *exch = async_exchange_begin(srv->client_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, IPLINK_EV_RECV, (sysarg_t)ver,
 	    &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, sdu->data, sdu->size);
 	async_exchange_end(exch);
-	
+
 	if (rc != EOK) {
 		async_forget(req);
 		return rc;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
 	if (retval != EOK)
 		return retval;
-	
+
 	return EOK;
 }
@@ -333,23 +333,23 @@
 	if (srv->client_sess == NULL)
 		return EIO;
-	
+
 	async_exch_t *exch = async_exchange_begin(srv->client_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, IPLINK_EV_CHANGE_ADDR, &answer);
-	
+
 	errno_t rc = async_data_write_start(exch, addr, sizeof(addr48_t));
 	async_exchange_end(exch);
-	
+
 	if (rc != EOK) {
 		async_forget(req);
 		return rc;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
 	if (retval != EOK)
 		return retval;
-	
+
 	return EOK;
 }
Index: uspace/lib/c/generic/irq.c
===================================================================
--- uspace/lib/c/generic/irq.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/irq.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,5 +68,5 @@
 	if (ucode == NULL)
 		ucode = &default_ucode;
-	
+
 	return (errno_t) __SYSCALL4(SYS_IPC_IRQ_SUBSCRIBE, inr, method, (sysarg_t) ucode,
 	    (sysarg_t) out_handle);
Index: uspace/lib/c/generic/libc.c
===================================================================
--- uspace/lib/c/generic/libc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/libc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,8 +70,8 @@
 	/* Initialize user task run-time environment */
 	__malloc_init();
-	
+
 	/* Save the PCB pointer */
 	__pcb = (pcb_t *) pcb_ptr;
-	
+
 #ifdef CONFIG_RTLD
 	if (__pcb != NULL && __pcb->rtld_runtime != NULL) {
@@ -82,24 +82,24 @@
 	}
 #endif
-	
+
 	fibril_t *fibril = fibril_setup();
 	if (fibril == NULL)
 		abort();
-	
+
 	__tcb_set(fibril->tcb);
-	
-	
+
+
 #ifdef FUTEX_UPGRADABLE
 	rcu_register_fibril();
 #endif
-	
+
 	__async_init();
-	
+
 	/* The basic run-time environment is setup */
 	env_setup = true;
-	
+
 	int argc;
 	char **argv;
-	
+
 	/*
 	 * Get command line arguments and initialize
@@ -118,5 +118,5 @@
 		(void) vfs_cwd_set(__pcb->cwd);
 	}
-	
+
 	/*
 	 * Run main() and set task return value
@@ -134,7 +134,7 @@
 		fibril_teardown(__tcb_get()->fibril_data, false);
 	}
-	
+
 	__SYSCALL1(SYS_TASK_EXIT, false);
-	
+
 	/* Unreachable */
 	while (1);
@@ -144,5 +144,5 @@
 {
 	__SYSCALL1(SYS_TASK_EXIT, true);
-	
+
 	/* Unreachable */
 	while (1);
Index: uspace/lib/c/generic/loader.c
===================================================================
--- uspace/lib/c/generic/loader.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/loader.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 	if (ldr == NULL)
 		return NULL;
-	
+
 	async_sess_t *sess =
 	    service_connect_blocking(SERVICE_LOADER, INTERFACE_LOADER, 0);
@@ -72,5 +72,5 @@
 		return NULL;
 	}
-	
+
 	ldr->sess = sess;
 	return ldr;
@@ -91,16 +91,16 @@
 	/* Get task ID. */
 	async_exch_t *exch = async_exchange_begin(ldr->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, LOADER_GET_TASKID, &answer);
 	errno_t rc = async_data_read_start(exch, task_id, sizeof(task_id_t));
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	if (rc != EOK) {
 		async_forget(req);
 		return (errno_t) rc;
 	}
-	
+
 	async_wait_for(req, &rc);
 	return (errno_t) rc;
@@ -121,24 +121,24 @@
 	if (!cwd)
 		return ENOMEM;
-	
+
 	if (vfs_cwd_get(cwd, MAX_PATH_LEN + 1) != EOK)
 		str_cpy(cwd, MAX_PATH_LEN + 1, "/");
-	
+
 	size_t len = str_length(cwd);
-	
-	async_exch_t *exch = async_exchange_begin(ldr->sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(ldr->sess);
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, LOADER_SET_CWD, &answer);
 	errno_t rc = async_data_write_start(exch, cwd, len);
-	
+
 	async_exchange_end(exch);
 	free(cwd);
-	
+
 	if (rc != EOK) {
 		async_forget(req);
 		return (errno_t) rc;
 	}
-	
+
 	async_wait_for(req, &rc);
 	return (errno_t) rc;
@@ -195,5 +195,5 @@
 		name++;
 	}
-	
+
 	int fd;
 	errno_t rc = vfs_lookup(path, 0, &fd);
@@ -201,5 +201,5 @@
 		return rc;
 	}
-	
+
 	rc = loader_set_program(ldr, name, fd);
 	vfs_put(fd);
@@ -232,13 +232,13 @@
 		ap++;
 	}
-	
+
 	char *arg_buf = malloc(buffer_size);
 	if (arg_buf == NULL)
 		return ENOMEM;
-	
+
 	/* Now fill the buffer with null-terminated argument strings */
 	ap = argv;
 	char *dp = arg_buf;
-	
+
 	while (*ap != NULL) {
 		str_cpy(dp, buffer_size - (dp - arg_buf), *ap);
@@ -246,21 +246,21 @@
 		ap++;
 	}
-	
+
 	/* Send serialized arguments to the loader */
 	async_exch_t *exch = async_exchange_begin(ldr->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, LOADER_SET_ARGS, &answer);
 	errno_t rc = async_data_write_start(exch, (void *) arg_buf,
 	    buffer_size);
-	
+
 	async_exchange_end(exch);
 	free(arg_buf);
-	
+
 	if (rc != EOK) {
 		async_forget(req);
 		return (errno_t) rc;
 	}
-	
+
 	async_wait_for(req, &rc);
 	return (errno_t) rc;
@@ -280,15 +280,15 @@
 	async_exch_t *exch = async_exchange_begin(ldr->sess);
 	async_exch_t *vfs_exch = vfs_exchange_begin();
-	
+
 	aid_t req = async_send_0(exch, LOADER_ADD_INBOX, NULL);
-	
+
 	errno_t rc = async_data_write_start(exch, name, str_size(name) + 1);
 	if (rc == EOK) {
 		rc = vfs_pass_handle(vfs_exch, file, exch);
 	}
-	
+
 	async_exchange_end(vfs_exch);
 	async_exchange_end(exch);
-	
+
 	if (rc == EOK) {
 		async_wait_for(req, &rc);
@@ -296,5 +296,5 @@
 		async_forget(req);
 	}
-	
+
 	return (errno_t) rc;
 }
@@ -315,5 +315,5 @@
 	errno_t rc = async_req_0_0(exch, LOADER_LOAD);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -338,11 +338,11 @@
 	errno_t rc = async_req_0_0(exch, LOADER_RUN);
 	async_exchange_end(exch);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	async_hangup(ldr->sess);
 	free(ldr);
-	
+
 	return EOK;
 }
Index: uspace/lib/c/generic/loc.c
===================================================================
--- uspace/lib/c/generic/loc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/loc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,10 +60,10 @@
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			/* TODO: Handle hangup */
 			return;
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case LOC_EVENT_CAT_CHANGE:
@@ -71,10 +71,10 @@
 			loc_cat_change_cb_t cb_fun = cat_change_cb;
 			fibril_mutex_unlock(&loc_callback_mutex);
-			
+
 			async_answer_0(callid, EOK);
-			
+
 			if (cb_fun != NULL)
 				(*cb_fun)();
-			
+
 			break;
 		default:
@@ -89,8 +89,8 @@
 {
 	fibril_mutex_lock(mtx);
-	
+
 	if ((*dst == NULL) && (src != NULL))
 		*dst = src;
-	
+
 	fibril_mutex_unlock(mtx);
 }
@@ -108,25 +108,25 @@
 		async_exch_t *exch =
 		    loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER);
-		
+
 		ipc_call_t answer;
 		aid_t req = async_send_0(exch, LOC_CALLBACK_CREATE, &answer);
-		
+
 		port_id_t port;
 		errno_t rc = async_create_callback_port(exch, INTERFACE_LOC_CB, 0, 0,
 		    loc_cb_conn, NULL, &port);
-		
+
 		loc_exchange_end(exch);
-		
+
 		if (rc != EOK)
 			return rc;
-		
+
 		errno_t retval;
 		async_wait_for(req, &retval);
 		if (retval != EOK)
 			return retval;
-		
+
 		loc_callback_created = true;
 	}
-	
+
 	return EOK;
 }
@@ -144,9 +144,9 @@
 	case INTERFACE_LOC_SUPPLIER:
 		fibril_mutex_lock(&loc_supp_block_mutex);
-		
+
 		while (loc_supp_block_sess == NULL) {
 			clone_session(&loc_supplier_mutex, loc_supplier_sess,
 			    &loc_supp_block_sess);
-			
+
 			if (loc_supp_block_sess == NULL)
 				loc_supp_block_sess =
@@ -154,18 +154,18 @@
 				    INTERFACE_LOC_SUPPLIER, 0);
 		}
-		
+
 		fibril_mutex_unlock(&loc_supp_block_mutex);
-		
+
 		clone_session(&loc_supplier_mutex, loc_supp_block_sess,
 		    &loc_supplier_sess);
-		
+
 		return async_exchange_begin(loc_supp_block_sess);
 	case INTERFACE_LOC_CONSUMER:
 		fibril_mutex_lock(&loc_cons_block_mutex);
-		
+
 		while (loc_cons_block_sess == NULL) {
 			clone_session(&loc_consumer_mutex, loc_consumer_sess,
 			    &loc_cons_block_sess);
-			
+
 			if (loc_cons_block_sess == NULL)
 				loc_cons_block_sess =
@@ -173,10 +173,10 @@
 				    INTERFACE_LOC_CONSUMER, 0);
 		}
-		
+
 		fibril_mutex_unlock(&loc_cons_block_mutex);
-		
+
 		clone_session(&loc_consumer_mutex, loc_cons_block_sess,
 		    &loc_consumer_sess);
-		
+
 		return async_exchange_begin(loc_cons_block_sess);
 	default:
@@ -197,29 +197,29 @@
 	case INTERFACE_LOC_SUPPLIER:
 		fibril_mutex_lock(&loc_supplier_mutex);
-		
+
 		if (loc_supplier_sess == NULL)
 			loc_supplier_sess =
 			    service_connect(SERVICE_LOC,
 			    INTERFACE_LOC_SUPPLIER, 0);
-		
+
 		fibril_mutex_unlock(&loc_supplier_mutex);
-		
+
 		if (loc_supplier_sess == NULL)
 			return NULL;
-		
+
 		return async_exchange_begin(loc_supplier_sess);
 	case INTERFACE_LOC_CONSUMER:
 		fibril_mutex_lock(&loc_consumer_mutex);
-		
+
 		if (loc_consumer_sess == NULL)
 			loc_consumer_sess =
 			    service_connect(SERVICE_LOC,
 			    INTERFACE_LOC_CONSUMER, 0);
-		
+
 		fibril_mutex_unlock(&loc_consumer_mutex);
-		
+
 		if (loc_consumer_sess == NULL)
 			return NULL;
-		
+
 		return async_exchange_begin(loc_consumer_sess);
 	default:
@@ -242,9 +242,9 @@
 {
 	async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, LOC_SERVER_REGISTER, 0, 0, &answer);
 	errno_t retval = async_data_write_start(exch, name, str_size(name));
-	
+
 	if (retval != EOK) {
 		async_forget(req);
@@ -252,5 +252,5 @@
 		return retval;
 	}
-	
+
 	async_connect_to_me(exch, 0, 0, 0);
 
@@ -262,5 +262,5 @@
 	async_wait_for(req, &retval);
 	loc_exchange_end(exch);
-	
+
 	return retval;
 }
@@ -275,9 +275,9 @@
 {
 	async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, LOC_SERVICE_REGISTER, &answer);
 	errno_t retval = async_data_write_start(exch, fqsn, str_size(fqsn));
-	
+
 	if (retval != EOK) {
 		async_forget(req);
@@ -285,5 +285,5 @@
 		return retval;
 	}
-	
+
 	/*
 	 * First wait for the answer and then end the exchange. The opposite
@@ -293,15 +293,15 @@
 	async_wait_for(req, &retval);
 	loc_exchange_end(exch);
-	
+
 	if (retval != EOK) {
 		if (sid != NULL)
 			*sid = -1;
-		
-		return retval;
-	}
-	
+
+		return retval;
+	}
+
 	if (sid != NULL)
 		*sid = (service_id_t) IPC_GET_ARG1(answer);
-	
+
 	return retval;
 }
@@ -315,9 +315,9 @@
 	async_exch_t *exch;
 	errno_t retval;
-	
+
 	exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER);
 	retval = async_req_1_0(exch, LOC_SERVICE_UNREGISTER, sid);
 	loc_exchange_end(exch);
-	
+
 	return (errno_t)retval;
 }
@@ -327,5 +327,5 @@
 {
 	async_exch_t *exch;
-	
+
 	if (flags & IPC_FLAG_BLOCKING)
 		exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER);
@@ -335,29 +335,29 @@
 			return errno;
 	}
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, LOC_SERVICE_GET_ID, flags, 0,
 	    &answer);
 	errno_t retval = async_data_write_start(exch, fqdn, str_size(fqdn));
-	
-	loc_exchange_end(exch);
-	
+
+	loc_exchange_end(exch);
+
 	if (retval != EOK) {
 		async_forget(req);
 		return retval;
 	}
-	
+
 	async_wait_for(req, &retval);
-	
+
 	if (retval != EOK) {
 		if (handle != NULL)
 			*handle = (service_id_t) -1;
-		
-		return retval;
-	}
-	
+
+		return retval;
+	}
+
 	if (handle != NULL)
 		*handle = (service_id_t) IPC_GET_ARG1(answer);
-	
+
 	return retval;
 }
@@ -380,8 +380,8 @@
 	size_t act_size;
 	errno_t dretval;
-	
+
 	*name = NULL;
 	exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, method, id, &answer);
@@ -389,18 +389,18 @@
 	    &dreply);
 	async_wait_for(dreq, &dretval);
-	
-	loc_exchange_end(exch);
-	
+
+	loc_exchange_end(exch);
+
 	if (dretval != EOK) {
 		async_forget(req);
 		return dretval;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
+
 	if (retval != EOK)
 		return retval;
-	
+
 	act_size = IPC_GET_ARG2(dreply);
 	assert(act_size <= LOC_NAME_MAXLEN);
@@ -410,5 +410,5 @@
 	if (*name == NULL)
 		return ENOMEM;
-	
+
 	return EOK;
 }
@@ -460,5 +460,5 @@
 {
 	async_exch_t *exch;
-	
+
 	if (flags & IPC_FLAG_BLOCKING)
 		exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER);
@@ -468,29 +468,29 @@
 			return errno;
 	}
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, LOC_NAMESPACE_GET_ID, flags, 0,
 	    &answer);
 	errno_t retval = async_data_write_start(exch, name, str_size(name));
-	
-	loc_exchange_end(exch);
-	
+
+	loc_exchange_end(exch);
+
 	if (retval != EOK) {
 		async_forget(req);
 		return retval;
 	}
-	
+
 	async_wait_for(req, &retval);
-	
+
 	if (retval != EOK) {
 		if (handle != NULL)
 			*handle = (service_id_t) -1;
-		
-		return retval;
-	}
-	
+
+		return retval;
+	}
+
 	if (handle != NULL)
 		*handle = (service_id_t) IPC_GET_ARG1(answer);
-	
+
 	return retval;
 }
@@ -509,5 +509,5 @@
 {
 	async_exch_t *exch;
-	
+
 	if (flags & IPC_FLAG_BLOCKING)
 		exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER);
@@ -517,29 +517,29 @@
 			return errno;
 	}
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, LOC_CATEGORY_GET_ID,
 	    &answer);
 	errno_t retval = async_data_write_start(exch, name, str_size(name));
-	
-	loc_exchange_end(exch);
-	
+
+	loc_exchange_end(exch);
+
 	if (retval != EOK) {
 		async_forget(req);
 		return retval;
 	}
-	
+
 	async_wait_for(req, &retval);
-	
+
 	if (retval != EOK) {
 		if (cat_id != NULL)
 			*cat_id = (category_id_t) -1;
-		
-		return retval;
-	}
-	
+
+		return retval;
+	}
+
 	if (cat_id != NULL)
 		*cat_id = (category_id_t) IPC_GET_ARG1(answer);
-	
+
 	return retval;
 }
@@ -549,13 +549,13 @@
 {
 	async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER);
-	
+
 	sysarg_t type;
 	errno_t retval = async_req_1_1(exch, LOC_ID_PROBE, handle, &type);
-	
-	loc_exchange_end(exch);
-	
+
+	loc_exchange_end(exch);
+
 	if (retval != EOK)
 		return LOC_OBJECT_NONE;
-	
+
 	return (loc_object_type_t) type;
 }
@@ -565,10 +565,10 @@
 {
 	async_sess_t *sess;
-	
+
 	if (flags & IPC_FLAG_BLOCKING)
 		sess = service_connect_blocking(SERVICE_LOC, iface, handle);
 	else
 		sess = service_connect(SERVICE_LOC, iface, handle);
-	
+
 	return sess;
 }
@@ -580,13 +580,13 @@
 {
 	async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER);
-	
+
 	sysarg_t null_id;
 	errno_t retval = async_req_0_1(exch, LOC_NULL_CREATE, &null_id);
-	
-	loc_exchange_end(exch);
-	
+
+	loc_exchange_end(exch);
+
 	if (retval != EOK)
 		return -1;
-	
+
 	return (int) null_id;
 }
@@ -605,5 +605,5 @@
 	if (retval != EOK)
 		return 0;
-	
+
 	return count;
 }
@@ -619,9 +619,9 @@
 	async_exch_t *exch;
 	errno_t retval;
-	
+
 	exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER);
 	retval = async_req_2_0(exch, LOC_SERVICE_ADD_TO_CAT, svc_id, cat_id);
 	loc_exchange_end(exch);
-	
+
 	return retval;
 }
@@ -635,5 +635,5 @@
 	if (retval != EOK)
 		return 0;
-	
+
 	return count;
 }
@@ -644,5 +644,5 @@
 	size_t size = loc_count_namespaces_internal(exch);
 	loc_exchange_end(exch);
-	
+
 	return size;
 }
@@ -653,5 +653,5 @@
 	size_t size = loc_count_services_internal(exch, ns_handle);
 	loc_exchange_end(exch);
-	
+
 	return size;
 }
@@ -664,20 +664,20 @@
 		size_t count = loc_count_namespaces_internal(exch);
 		loc_exchange_end(exch);
-		
+
 		if (count == 0)
 			return 0;
-		
+
 		loc_sdesc_t *devs = (loc_sdesc_t *) calloc(count, sizeof(loc_sdesc_t));
 		if (devs == NULL)
 			return 0;
-		
+
 		exch = loc_exchange_begin(INTERFACE_LOC_CONSUMER);
-		
+
 		ipc_call_t answer;
 		aid_t req = async_send_0(exch, LOC_GET_NAMESPACES, &answer);
 		errno_t rc = async_data_read_start(exch, devs, count * sizeof(loc_sdesc_t));
-		
+
 		loc_exchange_end(exch);
-		
+
 		if (rc == EOVERFLOW) {
 			/*
@@ -688,5 +688,5 @@
 			continue;
 		}
-		
+
 		if (rc != EOK) {
 			async_forget(req);
@@ -694,11 +694,11 @@
 			return 0;
 		}
-		
+
 		errno_t retval;
 		async_wait_for(req, &retval);
-		
+
 		if (retval != EOK)
 			return 0;
-		
+
 		*data = devs;
 		return count;
@@ -713,20 +713,20 @@
 		size_t count = loc_count_services_internal(exch, ns_handle);
 		loc_exchange_end(exch);
-		
+
 		if (count == 0)
 			return 0;
-		
+
 		loc_sdesc_t *devs = (loc_sdesc_t *) calloc(count, sizeof(loc_sdesc_t));
 		if (devs == NULL)
 			return 0;
-		
+
 		exch = loc_exchange_begin(INTERFACE_LOC_CONSUMER);
-		
+
 		ipc_call_t answer;
 		aid_t req = async_send_1(exch, LOC_GET_SERVICES, ns_handle, &answer);
 		errno_t rc = async_data_read_start(exch, devs, count * sizeof(loc_sdesc_t));
-		
+
 		loc_exchange_end(exch);
-		
+
 		if (rc == EOVERFLOW) {
 			/*
@@ -737,5 +737,5 @@
 			continue;
 		}
-		
+
 		if (rc != EOK) {
 			async_forget(req);
@@ -743,11 +743,11 @@
 			return 0;
 		}
-		
+
 		errno_t retval;
 		async_wait_for(req, &retval);
-		
+
 		if (retval != EOK)
 			return 0;
-		
+
 		*data = devs;
 		return count;
@@ -763,19 +763,19 @@
 	aid_t req = async_send_1(exch, method, arg1, &answer);
 	errno_t rc = async_data_read_start(exch, id_buf, buf_size);
-	
-	loc_exchange_end(exch);
-	
+
+	loc_exchange_end(exch);
+
 	if (rc != EOK) {
 		async_forget(req);
 		return rc;
 	}
-	
+
 	errno_t retval;
 	async_wait_for(req, &retval);
-	
-	if (retval != EOK) {
-		return retval;
-	}
-	
+
+	if (retval != EOK) {
+		return retval;
+	}
+
 	*act_size = IPC_GET_ARG1(answer);
 	return EOK;
@@ -797,5 +797,5 @@
 	*data = NULL;
 	*count = 0;
-	
+
 	size_t act_size = 0;
 	errno_t rc = loc_category_get_ids_once(method, arg1, NULL, 0,
@@ -803,10 +803,10 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	size_t alloc_size = act_size;
 	service_id_t *ids = malloc(alloc_size);
 	if (ids == NULL)
 		return ENOMEM;
-	
+
 	while (true) {
 		rc = loc_category_get_ids_once(method, arg1, ids, alloc_size,
@@ -814,8 +814,8 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		if (act_size <= alloc_size)
 			break;
-		
+
 		alloc_size = act_size;
 		ids = realloc(ids, alloc_size);
@@ -823,5 +823,5 @@
 			return ENOMEM;
 	}
-	
+
 	*count = act_size / sizeof(category_id_t);
 	*data = ids;
@@ -866,8 +866,8 @@
 		return EIO;
 	}
-	
+
 	cat_change_cb = cb_fun;
 	fibril_mutex_unlock(&loc_callback_mutex);
-	
+
 	return EOK;
 }
Index: uspace/lib/c/generic/malloc.c
===================================================================
--- uspace/lib/c/generic/malloc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/malloc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -142,14 +142,14 @@
 	 */
 	void *start;
-	
+
 	/** End of the heap area (aligned on page boundary) */
 	void *end;
-	
+
 	/** Previous heap area */
 	struct heap_area *prev;
-	
+
 	/** Next heap area */
 	struct heap_area *next;
-	
+
 	/** A magic value */
 	uint32_t magic;
@@ -162,11 +162,11 @@
 	/* Size of the block (including header and footer) */
 	size_t size;
-	
+
 	/* Indication of a free block */
 	bool free;
-	
+
 	/** Heap area this block belongs to */
 	heap_area_t *area;
-	
+
 	/* A magic value to detect overwrite of heap header */
 	uint32_t magic;
@@ -179,5 +179,5 @@
 	/* Size of the block (including header and footer) */
 	size_t size;
-	
+
 	/* A magic value to detect overwrite of heap footer */
 	uint32_t magic;
@@ -277,12 +277,12 @@
 	/* Calculate the position of the header and the footer */
 	heap_block_head_t *head = (heap_block_head_t *) addr;
-	
+
 	head->size = size;
 	head->free = free;
 	head->area = area;
 	head->magic = HEAP_BLOCK_HEAD_MAGIC;
-	
+
 	heap_block_foot_t *foot = BLOCK_FOOT(head);
-	
+
 	foot->size = size;
 	foot->magic = HEAP_BLOCK_FOOT_MAGIC;
@@ -301,9 +301,9 @@
 {
 	heap_block_head_t *head = (heap_block_head_t *) addr;
-	
+
 	malloc_assert(head->magic == HEAP_BLOCK_HEAD_MAGIC);
-	
+
 	heap_block_foot_t *foot = BLOCK_FOOT(head);
-	
+
 	malloc_assert(foot->magic == HEAP_BLOCK_FOOT_MAGIC);
 	malloc_assert(head->size == foot->size);
@@ -320,5 +320,5 @@
 {
 	heap_area_t *area = (heap_area_t *) addr;
-	
+
 	malloc_assert(area->magic == HEAP_AREA_MAGIC);
 	malloc_assert(addr == area->start);
@@ -343,7 +343,7 @@
 	if (astart == AS_MAP_FAILED)
 		return false;
-	
+
 	heap_area_t *area = (heap_area_t *) astart;
-	
+
 	area->start = astart;
 	area->end = (void *) ((uintptr_t) astart + asize);
@@ -351,10 +351,10 @@
 	area->next = NULL;
 	area->magic = HEAP_AREA_MAGIC;
-	
+
 	void *block = (void *) AREA_FIRST_BLOCK_HEAD(area);
 	size_t bsize = (size_t) (area->end - block);
-	
+
 	block_init(block, bsize, true, area);
-	
+
 	if (last_heap_area == NULL) {
 		first_heap_area = area;
@@ -365,5 +365,5 @@
 		last_heap_area = area;
 	}
-	
+
 	return true;
 }
@@ -383,24 +383,24 @@
 	if (size == 0)
 		return true;
-	
+
 	area_check(area);
-	
+
 	/* New heap area size */
 	size_t gross_size = (size_t) (area->end - area->start) + size;
 	size_t asize = ALIGN_UP(gross_size, PAGE_SIZE);
 	void *end = (void *) ((uintptr_t) area->start + asize);
-	
+
 	/* Check for overflow */
 	if (end < area->start)
 		return false;
-	
+
 	/* Resize the address space area */
 	errno_t ret = as_area_resize(area->start, asize, 0);
 	if (ret != EOK)
 		return false;
-	
+
 	heap_block_head_t *last_head =
 	    (heap_block_head_t *) AREA_LAST_BLOCK_HEAD(area);
-	
+
 	if (last_head->free) {
 		/* Add the new space to the last block. */
@@ -414,8 +414,8 @@
 			block_init(area->end, net_size, true, area);
 	}
-	
+
 	/* Update heap area parameters */
 	area->end = end;
-	
+
 	return true;
 }
@@ -432,12 +432,12 @@
 {
 	area_check(area);
-	
+
 	heap_block_foot_t *last_foot =
 	    (heap_block_foot_t *) AREA_LAST_BLOCK_FOOT(area);
 	heap_block_head_t *last_head = BLOCK_HEAD(last_foot);
-	
+
 	block_check((void *) last_head);
 	malloc_assert(last_head->area == area);
-	
+
 	if (last_head->free) {
 		/*
@@ -446,13 +446,13 @@
 		 * shrunk.
 		 */
-		
+
 		heap_block_head_t *first_head =
 		    (heap_block_head_t *) AREA_FIRST_BLOCK_HEAD(area);
-		
+
 		block_check((void *) first_head);
 		malloc_assert(first_head->area == area);
-		
+
 		size_t shrink_size = ALIGN_DOWN(last_head->size, PAGE_SIZE);
-		
+
 		if (first_head == last_head) {
 			/*
@@ -461,8 +461,8 @@
 			 * of it entirely.
 			 */
-			
+
 			heap_area_t *prev = area->prev;
 			heap_area_t *next = area->next;
-			
+
 			if (prev != NULL) {
 				area_check(prev);
@@ -470,5 +470,5 @@
 			} else
 				first_heap_area = next;
-			
+
 			if (next != NULL) {
 				area_check(next);
@@ -476,5 +476,5 @@
 			} else
 				last_heap_area = prev;
-			
+
 			as_area_destroy(area->start);
 		} else if (shrink_size >= SHRINK_GRANULARITY) {
@@ -484,17 +484,17 @@
 			 * the block layout accordingly.
 			 */
-			
+
 			size_t asize = (size_t) (area->end - area->start) - shrink_size;
 			void *end = (void *) ((uintptr_t) area->start + asize);
-			
+
 			/* Resize the address space area */
 			errno_t ret = as_area_resize(area->start, asize, 0);
 			if (ret != EOK)
 				abort();
-			
+
 			/* Update heap area parameters */
 			area->end = end;
 			size_t excess = ((size_t) area->end) - ((size_t) last_head);
-			
+
 			if (excess > 0) {
 				if (excess >= STRUCT_OVERHEAD) {
@@ -513,7 +513,7 @@
 					    (((uintptr_t) last_head) - sizeof(heap_block_foot_t));
 					heap_block_head_t *prev_head = BLOCK_HEAD(prev_foot);
-					
+
 					block_check((void *) prev_head);
-					
+
 					block_init(prev_head, prev_head->size + excess,
 					    prev_head->free, area);
@@ -522,5 +522,5 @@
 		}
 	}
-	
+
 	next_fit = NULL;
 }
@@ -551,8 +551,8 @@
 {
 	malloc_assert(cur->size >= size);
-	
+
 	/* See if we should split the block. */
 	size_t split_limit = GROSS_SIZE(size);
-	
+
 	if (cur->size > split_limit) {
 		/* Block big enough -> split. */
@@ -588,13 +588,13 @@
 	malloc_assert((void *) first_block >= (void *) AREA_FIRST_BLOCK_HEAD(area));
 	malloc_assert((void *) first_block < area->end);
-	
+
 	for (heap_block_head_t *cur = first_block; (void *) cur < area->end;
 	    cur = (heap_block_head_t *) (((void *) cur) + cur->size)) {
 		block_check(cur);
-		
+
 		/* Finish searching on the final block */
 		if ((final_block != NULL) && (cur == final_block))
 			break;
-		
+
 		/* Try to find a block that is free and large enough. */
 		if ((cur->free) && (cur->size >= real_size)) {
@@ -607,9 +607,9 @@
 			void *aligned = (void *)
 			    ALIGN_UP((uintptr_t) addr, falign);
-			
+
 			if (addr == aligned) {
 				/* Exact block start including alignment. */
 				split_mark(cur, real_size);
-				
+
 				next_fit = cur;
 				return addr;
@@ -617,5 +617,5 @@
 				/* Block start has to be aligned */
 				size_t excess = (size_t) (aligned - addr);
-				
+
 				if (cur->size >= real_size + excess) {
 					/*
@@ -631,13 +631,13 @@
 						heap_block_foot_t *prev_foot = (heap_block_foot_t *)
 						    ((void *) cur - sizeof(heap_block_foot_t));
-						
+
 						heap_block_head_t *prev_head = (heap_block_head_t *)
 						    ((void *) cur - prev_foot->size);
-						
+
 						block_check(prev_head);
-						
+
 						size_t reduced_size = cur->size - excess;
 						heap_block_head_t *next_head = ((void *) cur) + excess;
-						
+
 						if ((!prev_head->free) &&
 						    (excess >= STRUCT_OVERHEAD)) {
@@ -660,8 +660,8 @@
 							    prev_head->free, area);
 						}
-						
+
 						block_init(next_head, reduced_size, true, area);
 						split_mark(next_head, real_size);
-						
+
 						next_fit = next_head;
 						return aligned;
@@ -678,5 +678,5 @@
 							excess += falign;
 						}
-						
+
 						/* Check for current block size again */
 						if (cur->size >= real_size + excess) {
@@ -684,10 +684,10 @@
 							cur = (heap_block_head_t *)
 							    (AREA_FIRST_BLOCK_HEAD(area) + excess);
-							
+
 							block_init((void *) AREA_FIRST_BLOCK_HEAD(area),
 							    excess, true, area);
 							block_init(cur, reduced_size, true, area);
 							split_mark(cur, real_size);
-							
+
 							next_fit = cur;
 							return aligned;
@@ -698,5 +698,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -718,13 +718,13 @@
 	if (size == 0)
 		return NULL;
-	
+
 	/* First try to enlarge some existing area */
 	for (heap_area_t *area = first_heap_area; area != NULL;
 	    area = area->next) {
-		
+
 		if (area_grow(area, size + align)) {
 			heap_block_head_t *first =
 			    (heap_block_head_t *) AREA_LAST_BLOCK_HEAD(area);
-			
+
 			void *addr =
 			    malloc_area(area, first, NULL, size, align);
@@ -733,10 +733,10 @@
 		}
 	}
-	
+
 	/* Eventually try to create a new area */
 	if (area_create(AREA_OVERHEAD(size + align))) {
 		heap_block_head_t *first =
 		    (heap_block_head_t *) AREA_FIRST_BLOCK_HEAD(last_heap_area);
-		
+
 		void *addr =
 		    malloc_area(last_heap_area, first, NULL, size, align);
@@ -744,5 +744,5 @@
 		return addr;
 	}
-	
+
 	return NULL;
 }
@@ -761,14 +761,14 @@
 {
 	malloc_assert(first_heap_area != NULL);
-	
+
 	if (align == 0)
 		return NULL;
-	
+
 	size_t falign = lcm(align, BASE_ALIGN);
-	
+
 	/* Check for integer overflow. */
 	if (falign < align)
 		return NULL;
-	
+
 	/*
 	 * The size of the allocated block needs to be naturally
@@ -778,16 +778,16 @@
 	 */
 	size_t gross_size = GROSS_SIZE(ALIGN_UP(size, BASE_ALIGN));
-	
+
 	/* Try the next fit approach */
 	heap_block_head_t *split = next_fit;
-	
+
 	if (split != NULL) {
 		void *addr = malloc_area(split->area, split, NULL, gross_size,
 		    falign);
-		
+
 		if (addr != NULL)
 			return addr;
 	}
-	
+
 	/* Search the entire heap */
 	for (heap_area_t *area = first_heap_area; area != NULL;
@@ -795,12 +795,12 @@
 		heap_block_head_t *first = (heap_block_head_t *)
 		    AREA_FIRST_BLOCK_HEAD(area);
-		
+
 		void *addr = malloc_area(area, first, split, gross_size,
 		    falign);
-		
+
 		if (addr != NULL)
 			return addr;
 	}
-	
+
 	/* Finally, try to grow heap space and allocate in the new area. */
 	return heap_grow_and_alloc(gross_size, falign);
@@ -818,9 +818,9 @@
 {
 	// FIXME: Check for overflow
-	
+
 	void *block = malloc(nmemb * size);
 	if (block == NULL)
 		return NULL;
-	
+
 	memset(block, 0, nmemb * size);
 	return block;
@@ -855,5 +855,5 @@
 	if (align == 0)
 		return NULL;
-	
+
 	size_t palign =
 	    1 << (fnzb(max(sizeof(void *), align) - 1) + 1);
@@ -883,25 +883,25 @@
 	if (addr == NULL)
 		return malloc(size);
-	
+
 	heap_lock();
-	
+
 	/* Calculate the position of the header. */
 	heap_block_head_t *head =
 	    (heap_block_head_t *) (addr - sizeof(heap_block_head_t));
-	
+
 	block_check(head);
 	malloc_assert(!head->free);
-	
+
 	heap_area_t *area = head->area;
-	
+
 	area_check(area);
 	malloc_assert((void *) head >= (void *) AREA_FIRST_BLOCK_HEAD(area));
 	malloc_assert((void *) head < area->end);
-	
+
 	void *ptr = NULL;
 	bool reloc = false;
 	size_t real_size = GROSS_SIZE(ALIGN_UP(size, BASE_ALIGN));
 	size_t orig_size = head->size;
-	
+
 	if (orig_size > real_size) {
 		/* Shrink */
@@ -916,5 +916,5 @@
 			heap_shrink(area);
 		}
-		
+
 		ptr = ((void *) head) + sizeof(heap_block_head_t);
 	} else {
@@ -948,5 +948,5 @@
 			}
 		}
-		
+
 		/*
 		 * Look at the next block. If it is free and the size is
@@ -962,5 +962,5 @@
 			    area);
 			split_mark(head, real_size);
-			
+
 			ptr = ((void *) head) + sizeof(heap_block_head_t);
 			next_fit = NULL;
@@ -969,7 +969,7 @@
 		}
 	}
-	
+
 	heap_unlock();
-	
+
 	if (reloc) {
 		ptr = malloc(size);
@@ -979,5 +979,5 @@
 		}
 	}
-	
+
 	return ptr;
 }
@@ -992,27 +992,27 @@
 	if (addr == NULL)
 		return;
-	
+
 	heap_lock();
-	
+
 	/* Calculate the position of the header. */
 	heap_block_head_t *head
 	    = (heap_block_head_t *) (addr - sizeof(heap_block_head_t));
-	
+
 	block_check(head);
 	malloc_assert(!head->free);
-	
+
 	heap_area_t *area = head->area;
-	
+
 	area_check(area);
 	malloc_assert((void *) head >= (void *) AREA_FIRST_BLOCK_HEAD(area));
 	malloc_assert((void *) head < area->end);
-	
+
 	/* Mark the block itself as free. */
 	head->free = true;
-	
+
 	/* Look at the next block. If it is free, merge the two. */
 	heap_block_head_t *next_head
 	    = (heap_block_head_t *) (((void *) head) + head->size);
-	
+
 	if ((void *) next_head < area->end) {
 		block_check(next_head);
@@ -1020,22 +1020,22 @@
 			block_init(head, head->size + next_head->size, true, area);
 	}
-	
+
 	/* Look at the previous block. If it is free, merge the two. */
 	if ((void *) head > (void *) AREA_FIRST_BLOCK_HEAD(area)) {
 		heap_block_foot_t *prev_foot =
 		    (heap_block_foot_t *) (((void *) head) - sizeof(heap_block_foot_t));
-		
+
 		heap_block_head_t *prev_head =
 		    (heap_block_head_t *) (((void *) head) - prev_foot->size);
-		
+
 		block_check(prev_head);
-		
+
 		if (prev_head->free)
 			block_init(prev_head, prev_head->size + head->size, true,
 			    area);
 	}
-	
+
 	heap_shrink(area);
-	
+
 	heap_unlock();
 }
@@ -1044,14 +1044,14 @@
 {
 	heap_lock();
-	
+
 	if (first_heap_area == NULL) {
 		heap_unlock();
 		return (void *) -1;
 	}
-	
+
 	/* Walk all heap areas */
 	for (heap_area_t *area = first_heap_area; area != NULL;
 	    area = area->next) {
-		
+
 		/* Check heap area consistency */
 		if ((area->magic != HEAP_AREA_MAGIC) ||
@@ -1063,10 +1063,10 @@
 			return (void *) area;
 		}
-		
+
 		/* Walk all heap blocks */
 		for (heap_block_head_t *head = (heap_block_head_t *)
 		    AREA_FIRST_BLOCK_HEAD(area); (void *) head < area->end;
 		    head = (heap_block_head_t *) (((void *) head) + head->size)) {
-			
+
 			/* Check heap block consistency */
 			if (head->magic != HEAP_BLOCK_HEAD_MAGIC) {
@@ -1074,7 +1074,7 @@
 				return (void *) head;
 			}
-			
+
 			heap_block_foot_t *foot = BLOCK_FOOT(head);
-			
+
 			if ((foot->magic != HEAP_BLOCK_FOOT_MAGIC) ||
 			    (head->size != foot->size)) {
@@ -1084,7 +1084,7 @@
 		}
 	}
-	
+
 	heap_unlock();
-	
+
 	return NULL;
 }
Index: uspace/lib/c/generic/mem.c
===================================================================
--- uspace/lib/c/generic/mem.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/mem.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -103,9 +103,9 @@
 	for (i = 0; i < n / sizeof(unsigned long); i++)
 		adst[i].n = asrc[i].n;
-		
+
 	for (j = 0; j < n % sizeof(unsigned long); j++)
 		((unsigned char *) (((unsigned long *) dst) + i))[j] =
 		    ((unsigned char *) (((unsigned long *) src) + i))[j];
-		
+
 	return (char *) dst;
 }
Index: uspace/lib/c/generic/ns.c
===================================================================
--- uspace/lib/c/generic/ns.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/ns.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,20 +50,20 @@
 	errno_t retval;
 	ipc_call_t answer;
-	
+
 	async_sess_t *sess = ns_session_get();
 	if (sess == NULL)
 		return EIO;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	aid_t req = async_send_1(exch, NS_REGISTER, service, &answer);
 	errno_t rc = async_connect_to_me(exch, 0, service, 0);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc != EOK) {
 		async_forget(req);
 		return rc;
 	}
-	
+
 	async_wait_for(req, &retval);
 	return rc;
@@ -75,16 +75,16 @@
 	if (sess == NULL)
 		return NULL;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	if (exch == NULL)
 		return NULL;
-	
+
 	async_sess_t *csess =
 	    async_connect_me_to_iface(exch, iface, service, arg3);
 	async_exchange_end(exch);
-	
+
 	if (csess == NULL)
 		return NULL;
-	
+
 	/*
 	 * FIXME Ugly hack to work around limitation of implementing
@@ -93,5 +93,5 @@
 	 */
 	async_sess_args_set(csess, iface, arg3, 0);
-	
+
 	return csess;
 }
@@ -103,13 +103,13 @@
 	if (sess == NULL)
 		return NULL;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	async_sess_t *csess =
 	    async_connect_me_to_blocking_iface(exch, iface, service, arg3);
 	async_exchange_end(exch);
-	
+
 	if (csess == NULL)
 		return NULL;
-	
+
 	/*
 	 * FIXME Ugly hack to work around limitation of implementing
@@ -118,5 +118,5 @@
 	 */
 	async_sess_args_set(csess, iface, arg3, 0);
-	
+
 	return csess;
 }
@@ -128,9 +128,9 @@
 	if (sess == NULL)
 		return EIO;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	errno_t rc = async_req_0_0(exch, NS_PING);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -142,9 +142,9 @@
 	if (sess == NULL)
 		return EIO;
-	
+
 	exch = async_exchange_begin(sess);
 	errno_t rc = async_req_2_0(exch, NS_ID_INTRO, LOWER32(id), UPPER32(id));
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -153,5 +153,5 @@
 {
 	async_exch_t *exch;
-	
+
 	if (sess_ns == NULL) {
 		exch = async_exchange_begin(session_ns);
@@ -161,5 +161,5 @@
 			return NULL;
 	}
-	
+
 	return sess_ns;
 }
Index: uspace/lib/c/generic/perm.c
===================================================================
--- uspace/lib/c/generic/perm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/perm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 	return (errno_t) __SYSCALL2(SYS_PERM_GRANT, (sysarg_t) &arg, (sysarg_t) perms);
 #endif
-	
+
 #ifdef __64_BITS__
 	return (errno_t) __SYSCALL2(SYS_PERM_GRANT, (sysarg_t) id, (sysarg_t) perms);
@@ -74,5 +74,5 @@
 	return (errno_t) __SYSCALL2(SYS_PERM_REVOKE, (sysarg_t) &arg, (sysarg_t) perms);
 #endif
-	
+
 #ifdef __64_BITS__
 	return (errno_t) __SYSCALL2(SYS_PERM_REVOKE, (sysarg_t) id, (sysarg_t) perms);
Index: uspace/lib/c/generic/private/async.h
===================================================================
--- uspace/lib/c/generic/private/async.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/private/async.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,11 +47,11 @@
 	/** If true, this struct is in the timeout list. */
 	bool inlist;
-	
+
 	/** Timeout list link. */
 	link_t link;
-	
+
 	/** If true, we have timed out. */
 	bool occurred;
-	
+
 	/** Expiration time. */
 	struct timeval expires;
@@ -62,5 +62,5 @@
 	/** If true, this struct is in a synchronization object wait queue. */
 	bool inlist;
-	
+
 	/** Wait queue linkage. */
 	link_t link;
@@ -71,8 +71,8 @@
 	/** Identification of and link to the waiting fibril. */
 	fid_t fid;
-	
+
 	/** If true, this fibril is currently active. */
 	bool active;
-	
+
 	/** Timeout wait data. */
 	to_event_t to_event;
Index: uspace/lib/c/generic/private/stdio.h
===================================================================
--- uspace/lib/c/generic/private/stdio.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/private/stdio.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	/** Linked list pointer. */
 	link_t link;
-	
+
 	/** Underlying file descriptor. */
 	int fd;
@@ -52,17 +52,17 @@
 	/** File position. */
 	aoff64_t pos;
-	
+
 	/** Error indicator. */
 	int error;
-	
+
 	/** End-of-file indicator. */
 	int eof;
-	
+
 	/** KIO indicator */
 	int kio;
-	
+
 	/** Session to the file provider */
 	async_sess_t *sess;
-	
+
 	/**
 	 * Non-zero if the stream needs sync on fflush(). XXX change
@@ -70,20 +70,20 @@
 	 */
 	int need_sync;
-	
+
 	/** Buffering type */
 	enum _buffer_type btype;
-	
+
 	/** Buffer */
 	uint8_t *buf;
-	
+
 	/** Buffer size */
 	size_t buf_size;
-	
+
 	/** Buffer state */
 	enum _buffer_state buf_state;
-	
+
 	/** Buffer I/O pointer */
 	uint8_t *buf_head;
-	
+
 	/** Points to end of occupied space when in read mode. */
 	uint8_t *buf_tail;
Index: uspace/lib/c/generic/rcu.c
===================================================================
--- uspace/lib/c/generic/rcu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/rcu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -169,9 +169,9 @@
 {
 	assert(!fibril_rcu.registered);
-	
+
 	futex_down(&rcu.list_futex);
 	list_append(&fibril_rcu.link, &rcu.fibrils_list);
 	futex_up(&rcu.list_futex);
-	
+
 	fibril_rcu.registered = true;
 }
@@ -185,5 +185,5 @@
 {
 	assert(fibril_rcu.registered);
-	
+
 	/*
 	 * Forcefully unlock any reader sections. The fibril is exiting
@@ -194,5 +194,5 @@
 	memory_barrier();
 	fibril_rcu.nesting_cnt = 0;
-	
+
 	futex_down(&rcu.list_futex);
 	list_remove(&fibril_rcu.link);
@@ -209,7 +209,7 @@
 {
 	assert(fibril_rcu.registered);
-	
+
 	size_t nesting_cnt = ACCESS_ONCE(fibril_rcu.nesting_cnt);
-	
+
 	if (0 == (nesting_cnt >> RCU_NESTING_SHIFT)) {
 		ACCESS_ONCE(fibril_rcu.nesting_cnt) = ACCESS_ONCE(rcu.reader_group);
@@ -226,5 +226,5 @@
 	assert(fibril_rcu.registered);
 	assert(rcu_read_locked());
-	
+
 	/* Required by MB_FORCE_U */
 	compiler_barrier(); /* CC_BAR_U */
@@ -243,5 +243,5 @@
 {
 	assert(!rcu_read_locked());
-	
+
 	/* Contain load of rcu.cur_gp. */
 	memory_barrier();
@@ -249,7 +249,7 @@
 	/* Approximately the number of the GP in progress. */
 	size_t gp_in_progress = ACCESS_ONCE(rcu.cur_gp);
-	
+
 	lock_sync(blocking_mode);
-	
+
 	/*
 	 * Exit early if we were stuck waiting for the mutex for a full grace
@@ -264,7 +264,7 @@
 		return;
 	}
-	
+
 	++ACCESS_ONCE(rcu.cur_gp);
-	
+
 	/*
 	 * Pairs up with MB_FORCE_L (ie CC_BAR_L). Makes changes prior
@@ -272,5 +272,5 @@
 	 */
 	memory_barrier(); /* MB_A */
-	
+
 	/*
 	 * Pairs up with MB_A.
@@ -290,5 +290,5 @@
 	 */
 	force_mb_in_all_threads(); /* MB_FORCE_L */
-	
+
 	/*
 	 * Pairs with MB_FORCE_L (ie CC_BAR_L, CC_BAR_U) and makes the most
@@ -296,11 +296,11 @@
 	 */
 	read_barrier(); /* MB_B */
-	
+
 	size_t new_reader_group = get_other_group(rcu.reader_group);
 	wait_for_readers(new_reader_group, blocking_mode);
-	
+
 	/* Separates waiting for readers in new_reader_group from group flip. */
 	memory_barrier();
-	
+
 	/* Flip the group new readers should associate with. */
 	size_t old_reader_group = rcu.reader_group;
@@ -309,10 +309,10 @@
 	/* Flip the group before waiting for preexisting readers in the old group.*/
 	memory_barrier();
-	
+
 	wait_for_readers(old_reader_group, blocking_mode);
-	
+
 	/* MB_FORCE_U  */
 	force_mb_in_all_threads(); /* MB_FORCE_U */
-	
+
 	unlock_sync();
 }
@@ -333,13 +333,13 @@
 {
 	futex_down(&rcu.list_futex);
-	
+
 	list_t quiescent_fibrils;
 	list_initialize(&quiescent_fibrils);
-	
+
 	while (!list_empty(&rcu.fibrils_list)) {
 		list_foreach_safe(rcu.fibrils_list, fibril_it, next_fibril) {
 			fibril_rcu_data_t *fib = member_to_inst(fibril_it,
 				fibril_rcu_data_t, link);
-			
+
 			if (is_preexisting_reader(fib, reader_group)) {
 				futex_up(&rcu.list_futex);
@@ -354,5 +354,5 @@
 		}
 	}
-	
+
 	list_concat(&rcu.fibrils_list, &quiescent_fibrils);
 	futex_up(&rcu.list_futex);
@@ -366,7 +366,7 @@
 			blocked_fibril_t blocked_fib;
 			blocked_fib.id = fibril_get_id();
-				
+
 			list_append(&blocked_fib.link, &rcu.sync_lock.blocked_fibrils);
-			
+
 			do {
 				blocked_fib.is_ready = false;
@@ -375,5 +375,5 @@
 				futex_down(&rcu.sync_lock.futex);
 			} while (rcu.sync_lock.locked);
-			
+
 			list_remove(&blocked_fib.link);
 			rcu.sync_lock.locked = true;
@@ -392,5 +392,5 @@
 {
 	assert(rcu.sync_lock.locked);
-	
+
 	/*
 	 * Blocked threads have a priority over fibrils when accessing sync().
@@ -402,9 +402,9 @@
 	} else {
 		/* Unlock but wake up any fibrils waiting for the lock. */
-		
+
 		if (!list_empty(&rcu.sync_lock.blocked_fibrils)) {
 			blocked_fibril_t *blocked_fib = member_to_inst(
 				list_first(&rcu.sync_lock.blocked_fibrils), blocked_fibril_t, link);
-	
+
 			if (!blocked_fib->is_ready) {
 				blocked_fib->is_ready = true;
@@ -412,5 +412,5 @@
 			}
 		}
-		
+
 		rcu.sync_lock.locked = false;
 		futex_up(&rcu.sync_lock.futex);
@@ -432,5 +432,5 @@
 		thread_usleep(RCU_SLEEP_MS * 1000);
 	}
-		
+
 	futex_down(&rcu.sync_lock.futex);
 }
@@ -440,5 +440,5 @@
 {
 	size_t nesting_cnt = ACCESS_ONCE(fib->nesting_cnt);
-	
+
 	return is_in_group(nesting_cnt, group) && is_in_reader_section(nesting_cnt);
 }
Index: uspace/lib/c/generic/rtld/module.c
===================================================================
--- uspace/lib/c/generic/rtld/module.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/rtld/module.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -150,5 +150,5 @@
 		}
 	}
-	
+
 	return NULL; /* Not found */
 }
@@ -166,5 +166,5 @@
 	module_t *m;
 	int rc;
-	
+
 	m = calloc(1, sizeof(module_t));
 	if (m == NULL) {
@@ -172,5 +172,5 @@
 		exit(1);
 	}
-	
+
 	m->rtld = rtld;
 	m->id = rtld_get_next_id(rtld);
@@ -216,5 +216,5 @@
 	/* Insert into the list of loaded modules */
 	list_append(&m->modules_link, &rtld->modules);
-	
+
 	/* Copy TLS info */
 	m->tdata = info.tls.tdata;
@@ -222,5 +222,5 @@
 	m->tbss_size = info.tls.tbss_size;
 	m->tls_align = info.tls.tls_align;
-	
+
 	DPRINTF("tdata at %p size %zu, tbss size %zu\n",
 	    m->tdata, m->tdata_size, m->tbss_size);
@@ -241,5 +241,5 @@
 
 	/* Count direct dependencies */
-	
+
 	dp = m->dyn.dynamic;
 	n = 0;
Index: uspace/lib/c/generic/stacktrace.c
===================================================================
--- uspace/lib/c/generic/stacktrace.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/stacktrace.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,10 +77,10 @@
 	stacktrace_prepare();
 	stacktrace_print_fp_pc(stacktrace_fp_get(), stacktrace_pc_get());
-	
+
 	/*
 	 * Prevent the tail call optimization of the previous call by
 	 * making it a non-tail call.
 	 */
-	
+
 	printf("-- end of stack trace --\n");
 }
Index: uspace/lib/c/generic/stats.c
===================================================================
--- uspace/lib/c/generic/stats.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/stats.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,5 +70,5 @@
 	stats_cpu_t *stats_cpus =
 	    (stats_cpu_t *) sysinfo_get_data("system.cpus", &size);
-	
+
 	if ((size % sizeof(stats_cpu_t)) != 0) {
 		if (stats_cpus != NULL)
@@ -77,5 +77,5 @@
 		return NULL;
 	}
-	
+
 	*count = size / sizeof(stats_cpu_t);
 	return stats_cpus;
@@ -95,5 +95,5 @@
 	stats_physmem_t *stats_physmem =
 	    (stats_physmem_t *) sysinfo_get_data("system.physmem", &size);
-	
+
 	if (size != sizeof(stats_physmem_t)) {
 		if (stats_physmem != NULL)
@@ -101,5 +101,5 @@
 		return NULL;
 	}
-	
+
 	return stats_physmem;
 }
@@ -119,5 +119,5 @@
 	stats_task_t *stats_tasks =
 	    (stats_task_t *) sysinfo_get_data("system.tasks", &size);
-	
+
 	if ((size % sizeof(stats_task_t)) != 0) {
 		if (stats_tasks != NULL)
@@ -126,5 +126,5 @@
 		return NULL;
 	}
-	
+
 	*count = size / sizeof(stats_task_t);
 	return stats_tasks;
@@ -144,9 +144,9 @@
 	char name[SYSINFO_STATS_MAX_PATH];
 	snprintf(name, SYSINFO_STATS_MAX_PATH, "system.tasks.%" PRIu64, task_id);
-	
+
 	size_t size = 0;
 	stats_task_t *stats_task =
 	    (stats_task_t *) sysinfo_get_data(name, &size);
-	
+
 	if (size != sizeof(stats_task_t)) {
 		if (stats_task != NULL)
@@ -154,5 +154,5 @@
 		return NULL;
 	}
-	
+
 	return stats_task;
 }
@@ -172,5 +172,5 @@
 	stats_thread_t *stats_threads =
 	    (stats_thread_t *) sysinfo_get_data("system.threads", &size);
-	
+
 	if ((size % sizeof(stats_thread_t)) != 0) {
 		if (stats_threads != NULL)
@@ -179,5 +179,5 @@
 		return NULL;
 	}
-	
+
 	*count = size / sizeof(stats_thread_t);
 	return stats_threads;
@@ -197,9 +197,9 @@
 	char name[SYSINFO_STATS_MAX_PATH];
 	snprintf(name, SYSINFO_STATS_MAX_PATH, "system.threads.%" PRIu64, thread_id);
-	
+
 	size_t size = 0;
 	stats_thread_t *stats_thread =
 	    (stats_thread_t *) sysinfo_get_data(name, &size);
-	
+
 	if (size != sizeof(stats_thread_t)) {
 		if (stats_thread != NULL)
@@ -207,5 +207,5 @@
 		return NULL;
 	}
-	
+
 	return stats_thread;
 }
@@ -225,5 +225,5 @@
 	stats_exc_t *stats_exceptions =
 	    (stats_exc_t *) sysinfo_get_data("system.exceptions", &size);
-	
+
 	if ((size % sizeof(stats_exc_t)) != 0) {
 		if (stats_exceptions != NULL)
@@ -232,5 +232,5 @@
 		return NULL;
 	}
-	
+
 	*count = size / sizeof(stats_exc_t);
 	return stats_exceptions;
@@ -250,9 +250,9 @@
 	char name[SYSINFO_STATS_MAX_PATH];
 	snprintf(name, SYSINFO_STATS_MAX_PATH, "system.exceptions.%u", excn);
-	
+
 	size_t size = 0;
 	stats_exc_t *stats_exception =
 	    (stats_exc_t *) sysinfo_get_data(name, &size);
-	
+
 	if (size != sizeof(stats_exc_t)) {
 		if (stats_exception != NULL)
@@ -260,5 +260,5 @@
 		return NULL;
 	}
-	
+
 	return stats_exception;
 }
@@ -278,5 +278,5 @@
 	load_t *load =
 	    (load_t *) sysinfo_get_data("system.load", &size);
-	
+
 	if ((size % sizeof(load_t)) != 0) {
 		if (load != NULL)
@@ -285,5 +285,5 @@
 		return NULL;
 	}
-	
+
 	*count = size / sizeof(load_t);
 	return load;
@@ -303,7 +303,7 @@
 	/* Print the whole part */
 	printf("%u.", upper / LOAD_UNIT);
-	
+
 	load_t rest = (upper % LOAD_UNIT) * 10;
-	
+
 	unsigned int i;
 	for (i = 0; i < dec_length; i++) {
@@ -317,5 +317,5 @@
 	if (state <= Lingering)
 		return thread_states[state];
-	
+
 	return thread_states[Invalid];
 }
Index: uspace/lib/c/generic/str.c
===================================================================
--- uspace/lib/c/generic/str.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/str.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -85,13 +85,13 @@
 	if (*offset + 1 > size)
 		return 0;
-	
+
 	/* First byte read from string */
 	uint8_t b0 = (uint8_t) str[(*offset)++];
-	
+
 	/* Determine code length */
-	
+
 	unsigned int b0_bits;  /* Data bits in first byte */
 	unsigned int cbytes;   /* Number of continuation bytes */
-	
+
 	if ((b0 & 0x80) == 0) {
 		/* 0xxxxxxx (Plain ASCII) */
@@ -114,23 +114,23 @@
 		return U_SPECIAL;
 	}
-	
+
 	if (*offset + cbytes > size)
 		return U_SPECIAL;
-	
+
 	wchar_t ch = b0 & LO_MASK_8(b0_bits);
-	
+
 	/* Decode continuation bytes */
 	while (cbytes > 0) {
 		uint8_t b = (uint8_t) str[(*offset)++];
-		
+
 		/* Must be 10xxxxxx */
 		if ((b & 0xc0) != 0x80)
 			return U_SPECIAL;
-		
+
 		/* Shift data bits to ch */
 		ch = (ch << CONT_BITS) | (wchar_t) (b & LO_MASK_8(CONT_BITS));
 		cbytes--;
 	}
-	
+
 	return ch;
 }
@@ -155,10 +155,10 @@
 	if (*offset == 0)
 		return 0;
-	
+
 	size_t processed = 0;
 	/* Continue while continuation bytes found */
 	while (*offset > 0 && processed < 4) {
 		uint8_t b = (uint8_t) str[--(*offset)];
-		
+
 		if (processed == 0 && (b & 0x80) == 0) {
 			/* 0xxxxxxx (Plain ASCII) */
@@ -200,17 +200,17 @@
 	if (*offset >= size)
 		return EOVERFLOW;
-	
+
 	if (!chr_check(ch))
 		return EINVAL;
-	
+
 	/* Unsigned version of ch (bit operations should only be done
 	   on unsigned types). */
 	uint32_t cc = (uint32_t) ch;
-	
+
 	/* Determine how many continuation bytes are needed */
-	
+
 	unsigned int b0_bits;  /* Data bits in first byte */
 	unsigned int cbytes;   /* Number of continuation bytes */
-	
+
 	if ((cc & ~LO_MASK_32(7)) == 0) {
 		b0_bits = 7;
@@ -229,9 +229,9 @@
 		return EINVAL;
 	}
-	
+
 	/* Check for available space in buffer */
 	if (*offset + cbytes >= size)
 		return EOVERFLOW;
-	
+
 	/* Encode continuation bytes */
 	unsigned int i;
@@ -240,11 +240,11 @@
 		cc = cc >> CONT_BITS;
 	}
-	
+
 	/* Encode first byte */
 	str[*offset] = (cc & LO_MASK_32(b0_bits)) | HI_MASK_8(8 - b0_bits - 1);
-	
+
 	/* Advance offset */
 	*offset += cbytes + 1;
-	
+
 	return EOK;
 }
@@ -263,8 +263,8 @@
 {
 	size_t size = 0;
-	
+
 	while (*str++ != 0)
 		size++;
-	
+
 	return size;
 }
@@ -302,12 +302,12 @@
 	size_t len = 0;
 	size_t offset = 0;
-	
+
 	while (len < max_len) {
 		if (str_decode(str, &offset, STR_NO_LIMIT) == 0)
 			break;
-		
+
 		len++;
 	}
-	
+
 	return offset;
 }
@@ -327,8 +327,8 @@
 {
 	size_t size = 0;
-	
+
 	while ((*str++ != 0) && (size < max_size))
 		size++;
-	
+
 	return size;
 }
@@ -379,8 +379,8 @@
 	size_t len = 0;
 	size_t offset = 0;
-	
+
 	while (str_decode(str, &offset, STR_NO_LIMIT) != 0)
 		len++;
-	
+
 	return len;
 }
@@ -396,8 +396,8 @@
 {
 	size_t len = 0;
-	
+
 	while (*wstr++ != 0)
 		len++;
-	
+
 	return len;
 }
@@ -415,8 +415,8 @@
 	size_t len = 0;
 	size_t offset = 0;
-	
+
 	while (str_decode(str, &offset, size) != 0)
 		len++;
-	
+
 	return len;
 }
@@ -435,10 +435,10 @@
 	size_t limit = ALIGN_DOWN(size, sizeof(wchar_t));
 	size_t offset = 0;
-	
+
 	while ((offset < limit) && (*str++ != 0)) {
 		len++;
 		offset += sizeof(wchar_t);
 	}
-	
+
 	return len;
 }
@@ -464,8 +464,8 @@
 	size_t offset = 0;
 	wchar_t ch;
-	
+
 	while ((ch = str_decode(str, &offset, STR_NO_LIMIT)) != 0)
 		width += chr_width(ch);
-	
+
 	return width;
 }
@@ -480,5 +480,5 @@
 	if (WCHAR_SIGNED_CHECK(ch >= 0) && (ch <= 127))
 		return true;
-	
+
 	return false;
 }
@@ -493,5 +493,5 @@
 	if (WCHAR_SIGNED_CHECK(ch >= 0) && (ch <= 1114111))
 		return true;
-	
+
 	return false;
 }
@@ -666,8 +666,8 @@
 	wchar_t c1 = 0;
 	wchar_t c2 = 0;
-	
+
 	size_t off1 = 0;
 	size_t off2 = 0;
-	
+
 	size_t len = 0;
 
@@ -710,5 +710,5 @@
 	wchar_t c1 = 0;
 	wchar_t c2 = 0;
-	
+
 	size_t off1 = 0;
 	size_t off2 = 0;
@@ -717,5 +717,5 @@
 		c1 = str_decode(s, &off1, STR_NO_LIMIT);
 		c2 = str_decode(p, &off2, STR_NO_LIMIT);
-		
+
 		if (c2 == 0)
 			return true;
@@ -723,5 +723,5 @@
 		if (c1 != c2)
 			return false;
-		
+
 		if (c1 == 0)
 			break;
@@ -747,8 +747,8 @@
 	/* There must be space for a null terminator in the buffer. */
 	assert(size > 0);
-	
+
 	size_t src_off = 0;
 	size_t dest_off = 0;
-	
+
 	wchar_t ch;
 	while ((ch = str_decode(src, &src_off, STR_NO_LIMIT)) != 0) {
@@ -756,5 +756,5 @@
 			break;
 	}
-	
+
 	dest[dest_off] = '\0';
 }
@@ -780,8 +780,8 @@
 	/* There must be space for a null terminator in the buffer. */
 	assert(size > 0);
-	
+
 	size_t src_off = 0;
 	size_t dest_off = 0;
-	
+
 	wchar_t ch;
 	while ((ch = str_decode(src, &src_off, n)) != 0) {
@@ -789,5 +789,5 @@
 			break;
 	}
-	
+
 	dest[dest_off] = '\0';
 }
@@ -811,5 +811,5 @@
 	if (dstr_size >= size)
 		return;
-	
+
 	str_cpy(dest + dstr_size, size - dstr_size, src);
 }
@@ -896,5 +896,5 @@
 	/* There must be space for a null terminator in the buffer. */
 	assert(size > 0);
-	
+
 	src_idx = 0;
 	dest_off = 0;
@@ -971,5 +971,5 @@
 
 	assert(dlen > 0);
-	
+
 	while ((c = str_decode(src, &offset, STR_NO_LIMIT)) != 0) {
 		if (c > 0x10000) {
@@ -1109,9 +1109,9 @@
 {
 	size_t len = str_length(str);
-	
+
 	wchar_t *wstr = calloc(len+1, sizeof(wchar_t));
 	if (wstr == NULL)
 		return NULL;
-	
+
 	str_to_wstr(wstr, len + 1, str);
 	return wstr;
@@ -1130,5 +1130,5 @@
 	size_t off = 0;
 	size_t last = 0;
-	
+
 	while ((acc = str_decode(str, &off, STR_NO_LIMIT)) != 0) {
 		if (acc == ch)
@@ -1136,5 +1136,5 @@
 		last = off;
 	}
-	
+
 	return NULL;
 }
@@ -1207,5 +1207,5 @@
 	size_t last = 0;
 	const char *res = NULL;
-	
+
 	while ((acc = str_decode(str, &off, STR_NO_LIMIT)) != 0) {
 		if (acc == ch)
@@ -1213,5 +1213,5 @@
 		last = off;
 	}
-	
+
 	return (char *) res;
 }
@@ -1234,14 +1234,14 @@
 {
 	size_t len = wstr_length(str);
-	
+
 	if ((pos > len) || (pos + 1 > max_pos))
 		return false;
-	
+
 	size_t i;
 	for (i = len; i + 1 > pos; i--)
 		str[i + 1] = str[i];
-	
+
 	str[pos] = ch;
-	
+
 	return true;
 }
@@ -1262,12 +1262,12 @@
 {
 	size_t len = wstr_length(str);
-	
+
 	if (pos >= len)
 		return false;
-	
+
 	size_t i;
 	for (i = pos + 1; i <= len; i++)
 		str[i - 1] = str[i];
-	
+
 	return true;
 }
@@ -1296,5 +1296,5 @@
 	if (dest == NULL)
 		return (char *) NULL;
-	
+
 	str_cpy(dest, size, src);
 	return dest;
@@ -1326,9 +1326,9 @@
 	if (size > n)
 		size = n;
-	
+
 	char *dest = (char *) malloc(size + 1);
 	if (dest == NULL)
 		return (char *) NULL;
-	
+
 	str_ncpy(dest, size + 1, src, size);
 	return dest;
@@ -1353,5 +1353,5 @@
 	if (!s)
 		return NULL;
-	
+
 	size_t len = str_size(s);
 	size_t cur;
@@ -1398,12 +1398,12 @@
 	assert(neg != NULL);
 	assert(result != NULL);
-	
+
 	*neg = false;
 	const char *str = nptr;
-	
+
 	/* Ignore leading whitespace */
 	while (isspace(*str))
 		str++;
-	
+
 	if (*str == '-') {
 		*neg = true;
@@ -1411,13 +1411,13 @@
 	} else if (*str == '+')
 		str++;
-	
+
 	if (base == 0) {
 		/* Decode base if not specified */
 		base = 10;
-		
+
 		if (*str == '0') {
 			base = 8;
 			str++;
-			
+
 			switch (*str) {
 			case 'b':
@@ -1454,11 +1454,11 @@
 		}
 	}
-	
+
 	*result = 0;
 	const char *startstr = str;
-	
+
 	while (*str != 0) {
 		unsigned int digit;
-		
+
 		if ((*str >= 'a') && (*str <= 'z'))
 			digit = *str - 'a' + 10;
@@ -1469,11 +1469,11 @@
 		else
 			break;
-		
+
 		if (digit >= base)
 			break;
-		
+
 		uint64_t prev = *result;
 		*result = (*result) * base + digit;
-		
+
 		if (*result < prev) {
 			/* Overflow */
@@ -1481,8 +1481,8 @@
 			return EOVERFLOW;
 		}
-		
+
 		str++;
 	}
-	
+
 	if (str == startstr) {
 		/*
@@ -1492,10 +1492,10 @@
 		str = nptr;
 	}
-	
+
 	*endptr = (char *) str;
-	
+
 	if (str == nptr)
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -1517,32 +1517,32 @@
 {
 	assert(result != NULL);
-	
+
 	bool neg;
 	char *lendptr;
 	uint64_t res;
 	errno_t ret = str_uint(nptr, &lendptr, base, &neg, &res);
-	
+
 	if (endptr != NULL)
 		*endptr = (char *) lendptr;
-	
+
 	if (ret != EOK)
 		return ret;
-	
+
 	/* Do not allow negative values */
 	if (neg)
 		return EINVAL;
-	
+
 	/* Check whether we are at the end of
 	   the string in strict mode */
 	if ((strict) && (*lendptr != 0))
 		return EINVAL;
-	
+
 	/* Check for overflow */
 	uint8_t _res = (uint8_t) res;
 	if (_res != res)
 		return EOVERFLOW;
-	
+
 	*result = _res;
-	
+
 	return EOK;
 }
@@ -1564,32 +1564,32 @@
 {
 	assert(result != NULL);
-	
+
 	bool neg;
 	char *lendptr;
 	uint64_t res;
 	errno_t ret = str_uint(nptr, &lendptr, base, &neg, &res);
-	
+
 	if (endptr != NULL)
 		*endptr = (char *) lendptr;
-	
+
 	if (ret != EOK)
 		return ret;
-	
+
 	/* Do not allow negative values */
 	if (neg)
 		return EINVAL;
-	
+
 	/* Check whether we are at the end of
 	   the string in strict mode */
 	if ((strict) && (*lendptr != 0))
 		return EINVAL;
-	
+
 	/* Check for overflow */
 	uint16_t _res = (uint16_t) res;
 	if (_res != res)
 		return EOVERFLOW;
-	
+
 	*result = _res;
-	
+
 	return EOK;
 }
@@ -1611,32 +1611,32 @@
 {
 	assert(result != NULL);
-	
+
 	bool neg;
 	char *lendptr;
 	uint64_t res;
 	errno_t ret = str_uint(nptr, &lendptr, base, &neg, &res);
-	
+
 	if (endptr != NULL)
 		*endptr = (char *) lendptr;
-	
+
 	if (ret != EOK)
 		return ret;
-	
+
 	/* Do not allow negative values */
 	if (neg)
 		return EINVAL;
-	
+
 	/* Check whether we are at the end of
 	   the string in strict mode */
 	if ((strict) && (*lendptr != 0))
 		return EINVAL;
-	
+
 	/* Check for overflow */
 	uint32_t _res = (uint32_t) res;
 	if (_res != res)
 		return EOVERFLOW;
-	
+
 	*result = _res;
-	
+
 	return EOK;
 }
@@ -1658,24 +1658,24 @@
 {
 	assert(result != NULL);
-	
+
 	bool neg;
 	char *lendptr;
 	errno_t ret = str_uint(nptr, &lendptr, base, &neg, result);
-	
+
 	if (endptr != NULL)
 		*endptr = (char *) lendptr;
-	
+
 	if (ret != EOK)
 		return ret;
-	
+
 	/* Do not allow negative values */
 	if (neg)
 		return EINVAL;
-	
+
 	/* Check whether we are at the end of
 	   the string in strict mode */
 	if ((strict) && (*lendptr != 0))
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -1697,32 +1697,32 @@
 {
 	assert(result != NULL);
-	
+
 	bool neg;
 	char *lendptr;
 	uint64_t res;
 	errno_t ret = str_uint(nptr, &lendptr, base, &neg, &res);
-	
+
 	if (endptr != NULL)
 		*endptr = (char *) lendptr;
-	
+
 	if (ret != EOK)
 		return ret;
-	
+
 	/* Do not allow negative values */
 	if (neg)
 		return EINVAL;
-	
+
 	/* Check whether we are at the end of
 	   the string in strict mode */
 	if ((strict) && (*lendptr != 0))
 		return EINVAL;
-	
+
 	/* Check for overflow */
 	size_t _res = (size_t) res;
 	if (_res != res)
 		return EOVERFLOW;
-	
+
 	*result = _res;
-	
+
 	return EOK;
 }
Index: uspace/lib/c/generic/sysinfo.c
===================================================================
--- uspace/lib/c/generic/sysinfo.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/sysinfo.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -73,5 +73,5 @@
 	 * and transfer the keys as a single atomic operation.
 	 */
-	
+
 	/* Get the keys size */
 	errno_t ret = sysinfo_get_keys_size(path, size);
@@ -83,5 +83,5 @@
 		return NULL;
 	}
-	
+
 	char *data = malloc(*size);
 	if (data == NULL) {
@@ -89,5 +89,5 @@
 		return NULL;
 	}
-	
+
 	/* Get the data */
 	size_t sz;
@@ -99,5 +99,5 @@
 		return data;
 	}
-	
+
 	free(data);
 	*size = 0;
@@ -166,5 +166,5 @@
 	 * and transfer the data as a single atomic operation.
 	 */
-	
+
 	/* Get the binary data size */
 	errno_t ret = sysinfo_get_data_size(path, size);
@@ -177,5 +177,5 @@
 		return NULL;
 	}
-	
+
 	void *data = malloc(*size);
 	if (data == NULL) {
@@ -183,5 +183,5 @@
 		return NULL;
 	}
-	
+
 	/* Get the data */
 	size_t sz;
@@ -193,5 +193,5 @@
 		return data;
 	}
-	
+
 	free(data);
 	*size = 0;
@@ -219,5 +219,5 @@
 		return NULL;
 	}
-	
+
 	size_t pos = 0;
 	while (pos < total_size) {
@@ -226,36 +226,36 @@
 		if (((char *) data)[pos + cur_size] != 0)
 			break;
-		
+
 		bool found = (str_cmp(data + pos, name) == 0);
-		
+
 		pos += cur_size + 1;
 		if (pos >= total_size)
 			break;
-		
+
 		/* Process value size */
 		size_t value_size;
 		memcpy(&value_size, data + pos, sizeof(value_size));
-		
+
 		pos += sizeof(value_size);
 		if ((pos >= total_size) || (pos + value_size > total_size))
 			break;
-		
+
 		if (found) {
 			void *value = malloc(value_size);
 			if (value == NULL)
 				break;
-			
+
 			memcpy(value, data + pos, value_size);
 			free(data);
-			
+
 			*size = value_size;
 			return value;
 		}
-		
+
 		pos += value_size;
 	}
-	
+
 	free(data);
-	
+
 	*size = 0;
 	return NULL;
Index: uspace/lib/c/generic/task.c
===================================================================
--- uspace/lib/c/generic/task.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/task.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,8 +55,8 @@
 	task_id_t task_id;
 	(void) __SYSCALL1(SYS_TASK_GET_ID, (sysarg_t) &task_id);
-	
+
 	return task_id;
 #endif  /* __32_BITS__ */
-	
+
 #ifdef __64_BITS__
 	return (task_id_t) __SYSCALL0(SYS_TASK_GET_ID);
@@ -74,5 +74,5 @@
 {
 	assert(name);
-	
+
 	return (errno_t) __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name));
 }
@@ -108,13 +108,13 @@
 {
 	/* Send default files */
-	
+
 	int fd_stdin = -1;
 	int fd_stdout = -1;
 	int fd_stderr = -1;
-	
+
 	if (stdin != NULL) {
 		(void) vfs_fhandle(stdin, &fd_stdin);
 	}
-	
+
 	if (stdout != NULL) {
 		(void) vfs_fhandle(stdout, &fd_stdout);
@@ -124,5 +124,5 @@
 		(void) vfs_fhandle(stderr, &fd_stderr);
 	}
-	
+
 	return task_spawnvf(id, wait, path, args, fd_stdin, fd_stdout,
 	    fd_stderr);
@@ -153,7 +153,7 @@
 	if (ldr == NULL)
 		return EREFUSED;
-	
+
 	bool wait_initialized = false;
-	
+
 	/* Get task ID. */
 	task_id_t task_id;
@@ -161,20 +161,20 @@
 	if (rc != EOK)
 		goto error;
-	
+
 	/* Send spawner's current working directory. */
 	rc = loader_set_cwd(ldr);
 	if (rc != EOK)
 		goto error;
-	
+
 	/* Send program binary. */
 	rc = loader_set_program_path(ldr, path);
 	if (rc != EOK)
 		goto error;
-	
+
 	/* Send arguments. */
 	rc = loader_set_args(ldr, args);
 	if (rc != EOK)
 		goto error;
-	
+
 	/* Send files */
 	int root = vfs_root();
@@ -185,5 +185,5 @@
 			goto error;
 	}
-	
+
 	if (fd_stdin >= 0) {
 		rc = loader_add_inbox(ldr, "stdin", fd_stdin);
@@ -191,5 +191,5 @@
 			goto error;
 	}
-	
+
 	if (fd_stdout >= 0) {
 		rc = loader_add_inbox(ldr, "stdout", fd_stdout);
@@ -197,5 +197,5 @@
 			goto error;
 	}
-	
+
 	if (fd_stderr >= 0) {
 		rc = loader_add_inbox(ldr, "stderr", fd_stderr);
@@ -203,10 +203,10 @@
 			goto error;
 	}
-	
+
 	/* Load the program. */
 	rc = loader_load_program(ldr);
 	if (rc != EOK)
 		goto error;
-	
+
 	/* Setup waiting for return value if needed */
 	if (wait) {
@@ -216,20 +216,20 @@
 		wait_initialized = true;
 	}
-	
+
 	/* Run it. */
 	rc = loader_run(ldr);
 	if (rc != EOK)
 		goto error;
-	
+
 	/* Success */
 	if (id != NULL)
 		*id = task_id;
-	
+
 	return EOK;
-	
+
 error:
 	if (wait_initialized)
 		task_cancel_wait(wait);
-	
+
 	/* Error exit */
 	loader_abort(ldr);
@@ -259,5 +259,5 @@
 	if (arglist == NULL)
 		return ENOMEM;
-	
+
 	/* Fill in arguments. */
 	const char *arg;
@@ -267,8 +267,8 @@
 		arglist[cnt++] = arg;
 	} while (arg != NULL);
-	
+
 	/* Spawn task. */
 	errno_t rc = task_spawnv(task_id, wait, path, arglist);
-	
+
 	/* Free argument list. */
 	free(arglist);
@@ -293,9 +293,9 @@
 {
 	/* Count the number of arguments. */
-	
+
 	va_list ap;
 	const char *arg;
 	int cnt = 0;
-	
+
 	va_start(ap, path);
 	do {
@@ -304,9 +304,9 @@
 	} while (arg != NULL);
 	va_end(ap);
-	
+
 	va_start(ap, path);
 	errno_t rc = task_spawn(task_id, wait, path, cnt, ap);
 	va_end(ap);
-	
+
 	return rc;
 }
@@ -400,5 +400,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	return task_wait(&wait, texit, retval);
 }
@@ -413,5 +413,5 @@
 	errno_t rc = (errno_t) async_req_1_0(exch, NS_RETVAL, val);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
Index: uspace/lib/c/generic/thread.c
===================================================================
--- uspace/lib/c/generic/thread.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/thread.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,12 +65,12 @@
 	if (fibril == NULL)
 		thread_exit(0);
-	
+
 	__tcb_set(fibril->tcb);
-	
+
 #ifdef FUTEX_UPGRADABLE
 	rcu_register_fibril();
 	futex_upgrade_all_and_wait();
 #endif
-	
+
 	uarg->uspace_thread_function(uarg->uspace_thread_arg);
 	/*
@@ -80,5 +80,5 @@
 	 * free(uarg);
 	 */
-	
+
 	/* If there is a manager, destroy it */
 	async_destroy_manager();
@@ -87,7 +87,7 @@
 	rcu_deregister_fibril();
 #endif
-	
+
 	fibril_teardown(fibril, false);
-	
+
 	thread_exit(0);
 }
@@ -112,5 +112,5 @@
 	if (!uarg)
 		return ENOMEM;
-	
+
 	size_t stack_size = stack_size_get();
 	void *stack = as_area_create(AS_AREA_ANY, stack_size,
@@ -121,8 +121,8 @@
 		return ENOMEM;
 	}
-	
+
 	/* Make heap thread safe. */
 	malloc_enable_multithreaded();
-	
+
 	uarg->uspace_entry = (void *) FADDR(__thread_entry);
 	uarg->uspace_stack = stack;
@@ -131,8 +131,8 @@
 	uarg->uspace_thread_arg = arg;
 	uarg->uspace_uarg = uarg;
-	
+
 	errno_t rc = (errno_t) __SYSCALL4(SYS_THREAD_CREATE, (sysarg_t) uarg,
 	    (sysarg_t) name, (sysarg_t) str_size(name), (sysarg_t) tid);
-	
+
 	if (rc != EOK) {
 		/*
@@ -143,5 +143,5 @@
 		free(uarg);
 	}
-	
+
 	return rc;
 }
@@ -155,5 +155,5 @@
 {
 	__SYSCALL1(SYS_THREAD_EXIT, (sysarg_t) status);
-	
+
 	/* Unreachable */
 	while (1);
@@ -214,12 +214,12 @@
 	 * full argument range
 	 */
-	
+
 	while (sec > 0) {
 		unsigned int period = (sec > 1000) ? 1000 : sec;
-		
+
 		thread_usleep(period * 1000000);
 		sec -= period;
 	}
-	
+
 	return 0;
 }
Index: uspace/lib/c/generic/time.c
===================================================================
--- uspace/lib/c/generic/time.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/time.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -82,14 +82,14 @@
 {
 	year += 1900;
-	
+
 	if (year % 400 == 0)
 		return true;
-	
+
 	if (year % 100 == 0)
 		return false;
-	
+
 	if (year % 4 == 0)
 		return true;
-	
+
 	return false;
 }
@@ -110,9 +110,9 @@
 	assert(mon >= 0);
 	assert(mon <= 11);
-	
+
 	static int month_days[] = {
 		31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
 	};
-	
+
 	if (mon == 1) {
 		/* February */
@@ -120,5 +120,5 @@
 		return is_leap_year(year) ? 29 : 28;
 	}
-	
+
 	return month_days[mon];
 }
@@ -144,9 +144,9 @@
 		0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
 	};
-	
+
 	static int leap_mdays[] = {
 		0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335
 	};
-	
+
 	return (is_leap_year(year) ? leap_mdays[mon] : mdays[mon]) + mday - 1;
 }
@@ -166,5 +166,5 @@
 	if ((op1 >= 0) || (op1 % op2 == 0))
 		return op1 / op2;
-	
+
 	return op1 / op2 - 1;
 }
@@ -183,17 +183,17 @@
 {
 	time_t div = floor_div(op1, op2);
-	
+
 	/*
 	 * (a / b) * b + a % b == a
 	 * Thus: a % b == a - (a / b) * b
 	 */
-	
+
 	time_t result = op1 - div * op2;
-	
+
 	/* Some paranoid checking to ensure there is mistake here. */
 	assert(result >= 0);
 	assert(result < op2);
 	assert(div * op2 + result == op1);
-	
+
 	return result;
 }
@@ -261,5 +261,5 @@
 {
 	// TODO: DST correction
-	
+
 	/* Set initial values. */
 	time_t usec = tm->tm_usec + tv->tv_usec;
@@ -270,5 +270,5 @@
 	time_t mon = tm->tm_mon;
 	time_t year = tm->tm_year;
-	
+
 	/* Adjust time. */
 	sec += floor_div(usec, USECS_PER_SEC);
@@ -280,15 +280,15 @@
 	day += floor_div(hour, HOURS_PER_DAY);
 	hour = floor_mod(hour, HOURS_PER_DAY);
-	
+
 	/* Adjust month. */
 	year += floor_div(mon, 12);
 	mon = floor_mod(mon, 12);
-	
+
 	/* Now the difficult part - days of month. */
-	
+
 	/* First, deal with whole cycles of 400 years = 146097 days. */
 	year += floor_div(day, 146097) * 400;
 	day = floor_mod(day, 146097);
-	
+
 	/* Then, go in one year steps. */
 	if (mon <= 1) {
@@ -305,10 +305,10 @@
 		}
 	}
-	
+
 	/* Finally, finish it off month per month. */
 	while (day >= days_in_month(year, mon)) {
 		day -= days_in_month(year, mon);
 		mon++;
-		
+
 		if (mon >= 12) {
 			mon -= 12;
@@ -316,9 +316,9 @@
 		}
 	}
-	
+
 	/* Calculate the remaining two fields. */
 	tm->tm_yday = day_of_year(year, mon, day + 1);
 	tm->tm_wday = day_of_week(year, mon, day + 1);
-	
+
 	/* And put the values back to the struct. */
 	tm->tm_usec = (int) usec;
@@ -328,5 +328,5 @@
 	tm->tm_mday = (int) day + 1;
 	tm->tm_mon = (int) mon;
-	
+
 	/* Casts to work around POSIX brain-damage. */
 	if (year > ((int) INT_MAX) || year < ((int) INT_MIN)) {
@@ -334,5 +334,5 @@
 		return -1;
 	}
-	
+
 	tm->tm_year = (int) year;
 	return 0;
@@ -363,5 +363,5 @@
 {
 	int start_wday = day_of_week(year, 0, 1);
-	
+
 	return floor_mod(4 - start_wday, 7) - 3;
 }
@@ -377,15 +377,15 @@
 {
 	int day = tm->tm_yday - wbyear_offset(tm->tm_year);
-	
+
 	if (day < 0) {
 		/* Last week of previous year. */
 		return tm->tm_year - 1;
 	}
-	
+
 	if (day > 364 + is_leap_year(tm->tm_year)) {
 		/* First week of next year. */
 		return tm->tm_year + 1;
 	}
-	
+
 	/* All the other days are in the calendar year. */
 	return tm->tm_year;
@@ -405,5 +405,5 @@
 {
 	int first_day = (7 - day_of_week(tm->tm_year, 0, 1)) % 7;
-	
+
 	return (tm->tm_yday - first_day + 7) / 7;
 }
@@ -425,15 +425,15 @@
 {
 	int day = tm->tm_yday - wbyear_offset(tm->tm_year);
-	
+
 	if (day < 0) {
 		/* Last week of previous year. */
 		return 53;
 	}
-	
+
 	if (day > 364 + is_leap_year(tm->tm_year)) {
 		/* First week of next year. */
 		return 1;
 	}
-	
+
 	/* All the other days give correct answer. */
 	return (day / 7 + 1);
@@ -453,5 +453,5 @@
 {
 	int first_day = (1 - day_of_week(tm->tm_year, 0, 1)) % 7;
-	
+
 	return (tm->tm_yday - first_day + 7) / 7;
 }
@@ -535,8 +535,8 @@
 	if (tv1->tv_sec > tv2->tv_sec)
 		return true;
-	
+
 	if ((tv1->tv_sec == tv2->tv_sec) && (tv1->tv_usec > tv2->tv_usec))
 		return true;
-	
+
 	return false;
 }
@@ -555,8 +555,8 @@
 	if (tv1->tv_sec > tv2->tv_sec)
 		return true;
-	
+
 	if ((tv1->tv_sec == tv2->tv_sec) && (tv1->tv_usec >= tv2->tv_usec))
 		return true;
-	
+
 	return false;
 }
@@ -582,5 +582,5 @@
 		tz->tz_dsttime = DST_NONE;
 	}
-	
+
 	if (clock_conn == NULL) {
 		category_id_t cat_id;
@@ -588,5 +588,5 @@
 		if (rc != EOK)
 			goto fallback;
-		
+
 		service_id_t *svc_ids;
 		size_t svc_cnt;
@@ -594,8 +594,8 @@
 		if (rc != EOK)
 			goto fallback;
-		
+
 		if (svc_cnt == 0)
 			goto fallback;
-		
+
 		char *svc_name;
 		rc = loc_service_get_name(svc_ids[0], &svc_name);
@@ -603,5 +603,5 @@
 		if (rc != EOK)
 			goto fallback;
-		
+
 		service_id_t svc_id;
 		rc = loc_service_get_id(svc_name, &svc_id, 0);
@@ -609,5 +609,5 @@
 		if (rc != EOK)
 			goto fallback;
-		
+
 		clock_conn = loc_service_connect(svc_id, INTERFACE_DDF,
 		    IPC_FLAG_BLOCKING);
@@ -615,15 +615,15 @@
 			goto fallback;
 	}
-	
+
 	struct tm time;
 	errno_t rc = clock_dev_time_get(clock_conn, &time);
 	if (rc != EOK)
 		goto fallback;
-	
+
 	tv->tv_usec = time.tm_usec;
 	tv->tv_sec = mktime(&time);
-	
+
 	return;
-	
+
 fallback:
 	getuptime(tv);
@@ -639,5 +639,5 @@
 			goto fallback;
 		}
-		
+
 		void *addr = AS_AREA_ANY;
 		rc = physmem_map(faddr, 1, AS_AREA_READ | AS_AREA_CACHEABLE,
@@ -648,16 +648,16 @@
 			goto fallback;
 		}
-		
+
 		ktime = addr;
 	}
-	
+
 	sysarg_t s2 = ktime->seconds2;
-	
+
 	read_barrier();
 	tv->tv_usec = ktime->useconds;
-	
+
 	read_barrier();
 	sysarg_t s1 = ktime->seconds1;
-	
+
 	if (s1 != s2) {
 		tv->tv_sec = max(s1, s2);
@@ -665,7 +665,7 @@
 	} else
 		tv->tv_sec = s1;
-	
+
 	return;
-	
+
 fallback:
 	tv->tv_sec = 0;
@@ -677,8 +677,8 @@
 	struct timeval tv;
 	gettimeofday(&tv, NULL);
-	
+
 	if (tloc)
 		*tloc = tv.tv_sec;
-	
+
 	return tv.tv_sec;
 }
@@ -706,5 +706,5 @@
 	// TODO: take DST flag into account
 	// TODO: detect overflow
-	
+
 	normalize_tm_time(tm, 0);
 	return secs_since_epoch(tm);
@@ -755,33 +755,33 @@
 	assert(format != NULL);
 	assert(tm != NULL);
-	
+
 	// TODO: use locale
-	
+
 	static const char *wday_abbr[] = {
 		"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
 	};
-	
+
 	static const char *wday[] = {
 		"Sunday", "Monday", "Tuesday", "Wednesday",
 		"Thursday", "Friday", "Saturday"
 	};
-	
+
 	static const char *mon_abbr[] = {
 		"Jan", "Feb", "Mar", "Apr", "May", "Jun",
 		"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
 	};
-	
+
 	static const char *mon[] = {
 		"January", "February", "March", "April", "May", "June", "July",
 		"August", "September", "October", "November", "December"
 	};
-	
+
 	if (maxsize < 1)
 		return 0;
-	
+
 	char *ptr = s;
 	size_t consumed;
 	size_t remaining = maxsize;
-	
+
 	while (*format != '\0') {
 		if (*format != '%') {
@@ -790,5 +790,5 @@
 			continue;
 		}
-		
+
 		format++;
 		if ((*format == '0') || (*format == '+')) {
@@ -796,15 +796,15 @@
 			format++;
 		}
-		
+
 		while (isdigit(*format)) {
 			// TODO: padding
 			format++;
 		}
-		
+
 		if ((*format == 'O') || (*format == 'E')) {
 			// TODO: locale's alternative format
 			format++;
 		}
-		
+
 		switch (*format) {
 		case 'a':
@@ -938,12 +938,12 @@
 			while (*format != '%')
 				format--;
-			
+
 			APPEND("%%");
 			break;
 		}
-		
+
 		format++;
 	}
-	
+
 	return maxsize - remaining;
 }
@@ -960,5 +960,5 @@
 {
 	assert(result != NULL);
-	
+
 	/* Set result to epoch. */
 	result->tm_usec = 0;
@@ -969,8 +969,8 @@
 	result->tm_mon = 0;
 	result->tm_year = 70; /* 1970 */
-	
+
 	if (normalize_tm_time(result, time) == -1)
 		return EOVERFLOW;
-	
+
 	return EOK;
 }
@@ -993,5 +993,5 @@
 	if (ret != EOK)
 		return ret;
-	
+
 	time_tm2str(&tm, buf);
 	return EOK;
@@ -1011,14 +1011,14 @@
 	assert(timeptr != NULL);
 	assert(buf != NULL);
-	
+
 	static const char *wday[] = {
 		"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
 	};
-	
+
 	static const char *mon[] = {
 		"Jan", "Feb", "Mar", "Apr", "May", "Jun",
 		"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
 	};
-	
+
 	snprintf(buf, ASCTIME_BUF_LEN, "%s %s %2d %02d:%02d:%02d %d\n",
 	    wday[timeptr->tm_wday],
@@ -1043,5 +1043,5 @@
 	// TODO: Deal with timezones.
 	//       Currently assumes system and all times are in UTC
-	
+
 	/* Set result to epoch. */
 	result->tm_usec = 0;
@@ -1052,8 +1052,8 @@
 	result->tm_mon = 0;
 	result->tm_year = 70; /* 1970 */
-	
+
 	if (normalize_tm_tv(result, tv) == -1)
 		return EOVERFLOW;
-	
+
 	return EOK;
 }
@@ -1097,5 +1097,5 @@
 	if (ret != EOK)
 		return ret;
-	
+
 	time_tm2str(&loctime, buf);
 	return EOK;
Index: uspace/lib/c/generic/tls.c
===================================================================
--- uspace/lib/c/generic/tls.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/tls.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -74,14 +74,14 @@
 	tcb_t *tcb;
 	size_t tls_size = &_tbss_end - &_tdata_start;
-	
+
 #ifdef CONFIG_RTLD
 	if (runtime_env != NULL)
 		return rtld_tls_make(runtime_env);
 #endif
-	
+
 	tcb = tls_alloc_arch(&data, tls_size);
 	if (!tcb)
 		return NULL;
-	
+
 	/*
 	 * Copy thread local data from the initialization image.
@@ -119,5 +119,5 @@
 	if (!tcb)
 		return NULL;
-	
+
 	*data = ((void *) tcb) + sizeof(tcb_t);
 #ifdef CONFIG_RTLD
@@ -150,5 +150,5 @@
 {
 	tcb_t *tcb;
-	
+
 	size = ALIGN_UP(size, &_tls_alignment);
 	*data = memalign((uintptr_t) &_tls_alignment, sizeof(tcb_t) + size);
Index: uspace/lib/c/generic/udebug.c
===================================================================
--- uspace/lib/c/generic/udebug.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/udebug.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,12 +61,12 @@
 {
 	sysarg_t a_copied, a_needed;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_THREAD_READ,
 	    (sysarg_t) buffer, n, NULL, &a_copied, &a_needed);
-	
+
 	*copied = (size_t) a_copied;
 	*needed = (size_t) a_needed;
-	
+
 	return rc;
 }
@@ -76,12 +76,12 @@
 {
 	sysarg_t a_copied, a_needed;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_NAME_READ,
 	    (sysarg_t) buffer, n, NULL, &a_copied, &a_needed);
-	
+
 	*copied = (size_t) a_copied;
 	*needed = (size_t) a_needed;
-	
+
 	return rc;
 }
@@ -91,12 +91,12 @@
 {
 	sysarg_t a_copied, a_needed;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	errno_t rc = async_req_3_3(exch, IPC_M_DEBUG, UDEBUG_M_AREAS_READ,
 	    (sysarg_t) buffer, n, NULL, &a_copied, &a_needed);
-	
+
 	*copied = (size_t) a_copied;
 	*needed = (size_t) a_needed;
-	
+
 	return rc;
 }
@@ -127,9 +127,9 @@
 {
 	sysarg_t a_ev_type;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	errno_t rc = async_req_2_3(exch, IPC_M_DEBUG, UDEBUG_M_GO,
 	    tid, &a_ev_type, val0, val1);
-	
+
 	*ev_type = a_ev_type;
 	return rc;
Index: uspace/lib/c/generic/vfs/canonify.c
===================================================================
--- uspace/lib/c/generic/vfs/canonify.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/vfs/canonify.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -329,5 +329,5 @@
 		t = next_token(&t);
 	}
-	
+
 	switch (state) {
 	case S_RESTART:
Index: uspace/lib/c/generic/vfs/inbox.c
===================================================================
--- uspace/lib/c/generic/vfs/inbox.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/vfs/inbox.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 {
 	inbox_entry *next = NULL;
-	
+
 	list_foreach(inb_list, link, inbox_entry, e) {
 		int cmp = str_cmp(e->name, name);
Index: uspace/lib/c/generic/vfs/mtab.c
===================================================================
--- uspace/lib/c/generic/vfs/mtab.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/vfs/mtab.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 	else
 		str_cpy(ent->fs_name, sizeof(ent->fs_name), "?");
-	
+
 	list_append(&ent->link, mtab_list);
 }
Index: uspace/lib/c/generic/vfs/vfs.c
===================================================================
--- uspace/lib/c/generic/vfs/vfs.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/generic/vfs/vfs.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -264,13 +264,13 @@
 {
 	fibril_mutex_lock(&cwd_mutex);
-	
+
 	if ((cwd_size == 0) || (size < cwd_size + 1)) {
 		fibril_mutex_unlock(&cwd_mutex);
 		return ERANGE;
 	}
-	
+
 	str_cpy(buf, size, cwd_path);
 	fibril_mutex_unlock(&cwd_mutex);
-	
+
 	return EOK;
 }
@@ -288,5 +288,5 @@
 	if (!abs)
 		return ENOMEM;
-	
+
 	int fd;
 	errno_t rc = vfs_lookup(abs, WALK_DIRECTORY, &fd);
@@ -295,17 +295,17 @@
 		return rc;
 	}
-	
+
 	fibril_mutex_lock(&cwd_mutex);
-	
+
 	if (cwd_fd >= 0)
 		vfs_put(cwd_fd);
-	
+
 	if (cwd_path)
 		free(cwd_path);
-	
+
 	cwd_fd = fd;
 	cwd_path = abs;
 	cwd_size = abs_size;
-	
+
 	fibril_mutex_unlock(&cwd_mutex);
 	return EOK;
@@ -319,12 +319,12 @@
 {
 	fibril_mutex_lock(&vfs_mutex);
-	
+
 	while (vfs_sess == NULL) {
 		vfs_sess = service_connect_blocking(SERVICE_VFS, INTERFACE_VFS,
 		    0);
 	}
-	
+
 	fibril_mutex_unlock(&vfs_mutex);
-	
+
 	return async_exchange_begin(vfs_sess);
 }
@@ -356,8 +356,8 @@
 	if (rc != EOK)
 		return NULL;
-	
+
 	if (stat.service == 0)
 		return NULL;
-	
+
 	return loc_service_connect(stat.service, iface, 0);
 }
@@ -376,22 +376,22 @@
 {
 	errno_t rc;
-	
+
 	ipc_call_t answer;
 	async_exch_t *exch = vfs_exchange_begin();
 	aid_t req = async_send_1(exch, VFS_IN_FSPROBE, serv, &answer);
-	
+
 	rc = async_data_write_start(exch, (void *) fs_name,
 	    str_size(fs_name));
-	
+
 	async_wait_for(req, &rc);
-	
+
 	if (rc != EOK) {
 		vfs_exchange_end(exch);
 		return rc;
 	}
-	
+
 	rc = async_data_read_start(exch, info, sizeof(*info));
 	vfs_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -620,10 +620,10 @@
 {
 	errno_t rc, rc1;
-	
+
 	if (!mountedfd)
 		flags |= VFS_MOUNT_NO_REF;
 	if (mp < 0)
 		flags |= VFS_MOUNT_CONNECT_ONLY;
-	
+
 	ipc_call_t answer;
 	async_exch_t *exch = vfs_exchange_begin();
@@ -643,5 +643,5 @@
 	if (mountedfd)
 		*mountedfd = (int) IPC_GET_ARG1(answer);
-	
+
 	if (rc != EOK)
 		return rc;
@@ -665,5 +665,5 @@
 	int null_id = -1;
 	char null[LOC_NAME_MAXLEN];
-	
+
 	if (str_cmp(fqsn, "") == 0) {
 		/*
@@ -671,17 +671,17 @@
 		*/
 		null_id = loc_null_create();
-		
+
 		if (null_id == -1)
 			return ENOMEM;
-		
+
 		snprintf(null, LOC_NAME_MAXLEN, "null/%d", null_id);
 		fqsn = null;
 	}
-	
+
 	if (flags & IPC_FLAG_BLOCKING)
 		flags = VFS_MOUNT_BLOCKING;
 	else
 		flags = 0;
-	
+
 	service_id_t service_id;
 	errno_t res = loc_service_get_id(fqsn, &service_id, flags);
@@ -689,8 +689,8 @@
 		if (null_id != -1)
 			loc_null_destroy(null_id);
-		
+
 		return res;
 	}
-	
+
 	size_t mpa_size;
 	char *mpa = vfs_absolutize(mp, &mpa_size);
@@ -698,15 +698,15 @@
 		if (null_id != -1)
 			loc_null_destroy(null_id);
-		
+
 		return ENOMEM;
 	}
-	
+
 	fibril_mutex_lock(&root_mutex);
-	
+
 	errno_t rc;
-	
+
 	if (str_cmp(mpa, "/") == 0) {
 		/* Mounting root. */
-		
+
 		if (root_fd >= 0) {
 			fibril_mutex_unlock(&root_mutex);
@@ -715,5 +715,5 @@
 			return EBUSY;
 		}
-		
+
 		int root;
 		rc = vfs_mount(-1, fs_name, service_id, opts, flags, instance,
@@ -728,5 +728,5 @@
 			return EINVAL;
 		}
-		
+
 		int mpfd;
 		rc = vfs_walk(root_fd, mpa, WALK_DIRECTORY, &mpfd);
@@ -737,10 +737,10 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&root_mutex);
-	
+
 	if ((rc != EOK) && (null_id != -1))
 		loc_null_destroy(null_id);
-	
+
 	return (errno_t) rc;
 }
@@ -759,5 +759,5 @@
 	errno_t rc = async_req_2_0(exch, VFS_IN_OPEN, file, mode);
 	vfs_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -788,5 +788,5 @@
 	errno_t rc = async_req_1_0(exch, VFS_IN_PUT, file);
 	vfs_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -845,5 +845,5 @@
 	uint8_t *bp = (uint8_t *) buf;
 	errno_t rc;
-	
+
 	do {
 		bp += cnt;
@@ -852,10 +852,10 @@
 		rc = vfs_read_short(file, *pos, bp, nbyte - nr, &cnt);
 	} while (rc == EOK && cnt > 0 && (nbyte - nr - cnt) > 0);
-	
+
 	if (rc != EOK) {
 		*nread = nr;
 		return rc;
 	}
-	
+
 	nr += cnt;
 	*pos += cnt;
@@ -885,10 +885,10 @@
 	ipc_call_t answer;
 	aid_t req;
-	
+
 	if (nbyte > DATA_XFER_LIMIT)
 		nbyte = DATA_XFER_LIMIT;
-	
-	async_exch_t *exch = vfs_exchange_begin();
-	
+
+	async_exch_t *exch = vfs_exchange_begin();
+
 	req = async_send_3(exch, VFS_IN_READ, file, LOWER32(pos),
 	    UPPER32(pos), &answer);
@@ -896,13 +896,13 @@
 
 	vfs_exchange_end(exch);
-	
+
 	if (rc == EOK)
 		async_wait_for(req, &rc);
 	else
 		async_forget(req);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	*nread = (ssize_t) IPC_GET_ARG1(answer);
 	return EOK;
@@ -926,5 +926,5 @@
 	errno_t rc_orig;
 	aid_t req;
-	
+
 	size_t olda_size;
 	char *olda = vfs_absolutize(old, &olda_size);
@@ -938,5 +938,5 @@
 		return ENOMEM;
 	}
-	
+
 	async_exch_t *exch = vfs_exchange_begin();
 	int root = vfs_root();
@@ -946,5 +946,5 @@
 		return ENOENT;
 	}
-	
+
 	req = async_send_1(exch, VFS_IN_RENAME, root, NULL);
 	rc = async_data_write_start(exch, olda, olda_size);
@@ -994,5 +994,5 @@
 	    UPPER32(length));
 	vfs_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -1056,24 +1056,24 @@
 	errno_t rc;
 	aid_t req;
-	
-	async_exch_t *exch = vfs_exchange_begin();
-	
+
+	async_exch_t *exch = vfs_exchange_begin();
+
 	req = async_send_1(exch, VFS_IN_STAT, file, NULL);
 	rc = async_data_read_start(exch, (void *) stat, sizeof(vfs_stat_t));
 	if (rc != EOK) {
 		vfs_exchange_end(exch);
-		
+
 		errno_t rc_orig;
 		async_wait_for(req, &rc_orig);
-		
+
 		if (rc_orig != EOK)
 			rc = rc_orig;
-		
-		return rc;
-	}
-	
+
+		return rc;
+	}
+
 	vfs_exchange_end(exch);
 	async_wait_for(req, &rc);
-	
+
 	return rc;
 }
@@ -1092,5 +1092,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = vfs_stat(file, stat);
 
@@ -1138,5 +1138,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = vfs_statfs(file, st);
 
@@ -1157,5 +1157,5 @@
 	errno_t rc = async_req_1_0(exch, VFS_IN_SYNC, file);
 	vfs_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -1178,15 +1178,15 @@
 	errno_t rc;
 	aid_t req;
-	
-	async_exch_t *exch = vfs_exchange_begin();
-	
+
+	async_exch_t *exch = vfs_exchange_begin();
+
 	req = async_send_2(exch, VFS_IN_UNLINK, parent, expect, NULL);
 	rc = async_data_write_start(exch, child, str_size(child));
-	
-	vfs_exchange_end(exch);
-	
+
+	vfs_exchange_end(exch);
+
 	errno_t rc_orig;
 	async_wait_for(req, &rc_orig);
-	
+
 	if (rc_orig != EOK)
 		return (errno_t) rc_orig;
@@ -1219,5 +1219,5 @@
 
 	rc = vfs_unlink(parent, child, expect);
-	
+
 	free(child);
 	vfs_put(parent);
@@ -1252,5 +1252,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = vfs_unmount(mp);
 	vfs_put(mp);
@@ -1270,10 +1270,10 @@
 {
 	async_exch_t *exch = vfs_exchange_begin();
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, VFS_IN_WALK, parent, flags, &answer);
 	errno_t rc = async_data_write_start(exch, path, str_size(path));
 	vfs_exchange_end(exch);
-		
+
 	errno_t rc_orig;
 	async_wait_for(req, &rc_orig);
@@ -1281,8 +1281,8 @@
 	if (rc_orig != EOK)
 		return (errno_t) rc_orig;
-		
+
 	if (rc != EOK)
 		return (errno_t) rc;
-	
+
 	*handle = (int) IPC_GET_ARG1(answer);
 	return EOK;
@@ -1349,16 +1349,16 @@
 	ipc_call_t answer;
 	aid_t req;
-	
+
 	if (nbyte > DATA_XFER_LIMIT)
 		nbyte = DATA_XFER_LIMIT;
-	
-	async_exch_t *exch = vfs_exchange_begin();
-	
+
+	async_exch_t *exch = vfs_exchange_begin();
+
 	req = async_send_3(exch, VFS_IN_WRITE, file, LOWER32(pos),
 	    UPPER32(pos), &answer);
 	rc = async_data_write_start(exch, (void *) buf, nbyte);
-	
-	vfs_exchange_end(exch);
-	
+
+	vfs_exchange_end(exch);
+
 	if (rc == EOK)
 		async_wait_for(req, &rc);
@@ -1368,5 +1368,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	*nwritten = (ssize_t) IPC_GET_ARG1(answer);
 	return EOK;
Index: uspace/lib/c/include/adt/hash_table.h
===================================================================
--- uspace/lib/c/include/adt/hash_table.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/adt/hash_table.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,8 +51,8 @@
 	/** Returns the hash of the key stored in the item (ie its lookup key). */
 	size_t (*hash)(const ht_link_t *item);
-	
+
 	/** Returns the hash of the key. */
 	size_t (*key_hash)(void *key);
-	
+
 	/** True if the items are equal (have the same lookup keys). */
 	bool (*equal)(const ht_link_t *item1, const ht_link_t *item2);
Index: uspace/lib/c/include/adt/list.h
===================================================================
--- uspace/lib/c/include/adt/list.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/adt/list.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -231,5 +231,5 @@
 		link->prev->next = link->next;
 	}
-	
+
 	link_initialize(link);
 }
@@ -314,7 +314,7 @@
 	part1->prev->next = part2;
 	part2->prev->next = part1;
-	
+
 	link_t *hlp = part1->prev;
-	
+
 	part1->prev = part2->prev;
 	part2->prev = hlp;
@@ -378,14 +378,14 @@
 {
 	unsigned long cnt = 0;
-	
+
 	link_t *link = list_first(list);
 	while (link != NULL) {
 		if (cnt == n)
 			return link;
-		
+
 		cnt++;
 		link = list_next(link, list);
 	}
-	
+
 	return NULL;
 }
Index: uspace/lib/c/include/as.h
===================================================================
--- uspace/lib/c/include/as.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/as.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	if (size == 0)
 		return 0;
-	
+
 	return (size_t) ((size - 1) >> PAGE_WIDTH) + 1;
 }
Index: uspace/lib/c/include/async.h
===================================================================
--- uspace/lib/c/include/async.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/async.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -82,5 +82,5 @@
 	 */
 	EXCHANGE_ATOMIC = 0,
-	
+
 	/** Exchange management via mutual exclusion
 	 *
@@ -90,5 +90,5 @@
 	 */
 	EXCHANGE_SERIALIZE = 1,
-	
+
 	/** Exchange management via phone cloning
 	 *
Index: uspace/lib/c/include/bitops.h
===================================================================
--- uspace/lib/c/include/bitops.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/bitops.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,30 +66,30 @@
 {
 	unsigned int n = 0;
-	
+
 	if (arg >> 16) {
 		arg >>= 16;
 		n += 16;
 	}
-	
+
 	if (arg >> 8) {
 		arg >>= 8;
 		n += 8;
 	}
-	
+
 	if (arg >> 4) {
 		arg >>= 4;
 		n += 4;
 	}
-	
+
 	if (arg >> 2) {
 		arg >>= 2;
 		n += 2;
 	}
-	
+
 	if (arg >> 1) {
 		arg >>= 1;
 		n += 1;
 	}
-	
+
 	return n;
 }
@@ -98,10 +98,10 @@
 {
 	unsigned int n = 0;
-	
+
 	if (arg >> 32) {
 		arg >>= 32;
 		n += 32;
 	}
-	
+
 	return (n + fnzb32((uint32_t) arg));
 }
Index: uspace/lib/c/include/device/hw_res.h
===================================================================
--- uspace/lib/c/include/device/hw_res.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/device/hw_res.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -82,5 +82,5 @@
 			endianness_t endianness;
 		} mem_range;
-		
+
 		struct {
 			uint64_t address;
@@ -89,9 +89,9 @@
 			endianness_t endianness;
 		} io_range;
-		
+
 		struct {
 			int irq;
 		} interrupt;
-		
+
 		union {
 			unsigned int dma8;
@@ -112,5 +112,5 @@
 		hw_res->resources = NULL;
 	}
-	
+
 	hw_res->count = 0;
 }
Index: uspace/lib/c/include/device/hw_res_parsed.h
===================================================================
--- uspace/lib/c/include/device/hw_res_parsed.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/device/hw_res_parsed.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,5 +64,5 @@
 	/** Start address */
 	address64_t address;
-	
+
 	/** Area size */
 	size_t size;
@@ -82,5 +82,5 @@
 	/** Irq count */
 	size_t count;
-	
+
 	/** Array of IRQs */
 	int *irqs;
@@ -100,5 +100,5 @@
 	/** Areas count */
 	size_t count;
-	
+
 	/** Array of areas */
 	addr_range_t *ranges;
@@ -115,11 +115,11 @@
 	/** List of IRQs */
 	irq_list_t irqs;
-	
+
 	/** List of DMA channels */
 	dma_list_t dma_channels;
-	
+
 	/** List of memory areas */
 	mem_range_list_t mem_ranges;
-	
+
 	/** List of IO areas */
 	io_range_list_t io_ranges;
@@ -136,10 +136,10 @@
 	if (list == NULL)
 		return;
-	
+
 	free(list->irqs.irqs);
 	free(list->io_ranges.ranges);
 	free(list->mem_ranges.ranges);
 	free(list->dma_channels.channels);
-	
+
 	memset(list, 0, sizeof(hw_res_list_parsed_t));
 }
Index: uspace/lib/c/include/fibril.h
===================================================================
--- uspace/lib/c/include/fibril.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/fibril.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -73,9 +73,9 @@
 	errno_t (*func)(void *);
 	tcb_t *tcb;
-	
+
 	struct fibril *clean_after_me;
 	errno_t retval;
 	int flags;
-	
+
 	fibril_owner_info_t *waits_for;
 
Index: uspace/lib/c/include/fibril_synch.h
===================================================================
--- uspace/lib/c/include/fibril_synch.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/fibril_synch.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,5 +61,5 @@
 		} \
 	}
-	
+
 #define FIBRIL_MUTEX_INITIALIZE(name) \
 	fibril_mutex_t name = FIBRIL_MUTEX_INITIALIZER(name)
Index: uspace/lib/c/include/futex.h
===================================================================
--- uspace/lib/c/include/futex.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/futex.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -80,5 +80,5 @@
 	} \
 })
-		
+
 #define futex_unlock(fut) \
 ({ \
@@ -91,5 +91,5 @@
 
 extern void futex_upgrade_all_and_wait(void);
-		
+
 #else
 
@@ -99,5 +99,5 @@
 #define futex_trylock(fut)  futex_trydown((fut))
 #define futex_unlock(fut)   (void) futex_up((fut))
-		
+
 #endif
 
@@ -130,5 +130,5 @@
 	if ((atomic_signed_t) atomic_predec(&futex->val) < 0)
 		return (errno_t) __SYSCALL1(SYS_FUTEX_SLEEP, (sysarg_t) &futex->val.count);
-	
+
 	return EOK;
 }
@@ -147,5 +147,5 @@
 	if ((atomic_signed_t) atomic_postinc(&futex->val) < 0)
 		return (errno_t) __SYSCALL1(SYS_FUTEX_WAKEUP, (sysarg_t) &futex->val.count);
-	
+
 	return EOK;
 }
Index: uspace/lib/c/include/inet/addr.h
===================================================================
--- uspace/lib/c/include/inet/addr.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/inet/addr.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 	/** IP version */
 	ip_ver_t version;
-	
+
 	/** Address */
 	union {
@@ -72,5 +72,5 @@
 		addr128_t addr6;
 	};
-	
+
 	/** Number of valid bits */
 	uint8_t prefix;
Index: uspace/lib/c/include/io/charfield.h
===================================================================
--- uspace/lib/c/include/io/charfield.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/io/charfield.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -86,5 +86,5 @@
 	if (a1.type != a2.type)
 		return false;
-	
+
 	switch (a1.type) {
 	case CHAR_ATTR_STYLE:
@@ -98,5 +98,5 @@
 		    && (a1.val.rgb.fgcolor == a2.val.rgb.fgcolor);
 	}
-	
+
 	return false;
 }
Index: uspace/lib/c/include/io/chargrid.h
===================================================================
--- uspace/lib/c/include/io/chargrid.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/io/chargrid.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,14 +49,14 @@
 	size_t size;            /**< Structure size */
 	chargrid_flag_t flags;  /**< Screenbuffer flags */
-	
+
 	sysarg_t cols;          /**< Number of columns */
 	sysarg_t rows;          /**< Number of rows */
-	
+
 	sysarg_t col;           /**< Current column */
 	sysarg_t row;           /**< Current row */
 	bool cursor_visible;    /**< Cursor visibility */
-	
+
 	char_attrs_t attrs;     /**< Current attributes */
-	
+
 	sysarg_t top_row;       /**< The first row in the cyclic buffer */
 	charfield_t data[];     /**< Screen contents (cyclic buffer) */
Index: uspace/lib/c/include/io/console.h
===================================================================
--- uspace/lib/c/include/io/console.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/io/console.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,17 +49,17 @@
 	/** Console input file */
 	FILE *input;
-	
+
 	/** Console output file */
 	FILE *output;
-	
+
 	/** Console input session */
 	async_sess_t *input_sess;
-	
+
 	/** Console output session */
 	async_sess_t *output_sess;
-	
+
 	/** Input request call with timeout */
 	ipc_call_t input_call;
-	
+
 	/** Input response with timeout */
 	aid_t input_aid;
Index: uspace/lib/c/include/io/kbd_event.h
===================================================================
--- uspace/lib/c/include/io/kbd_event.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/io/kbd_event.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,14 +48,14 @@
 	/** List handle */
 	link_t link;
-	
+
 	/** Press or release event. */
 	kbd_event_type_t type;
-	
+
 	/** Keycode of the key that was pressed or released. */
 	keycode_t key;
-	
+
 	/** Bitmask of modifiers held. */
 	keymod_t mods;
-	
+
 	/** The character that was generated or '\0' for none. */
 	wchar_t c;
Index: uspace/lib/c/include/io/keycode.h
===================================================================
--- uspace/lib/c/include/io/keycode.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/io/keycode.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -93,5 +93,5 @@
 
 	KC_CAPS_LOCK,
-	
+
 	KC_A,
 	KC_S,
@@ -199,5 +199,5 @@
 	KC_N0,
 	KC_NPERIOD
-	
+
 } keycode_t;
 
@@ -212,5 +212,5 @@
 	KM_NUM_LOCK    = 0x080,
 	KM_SCROLL_LOCK = 0x100,
-	
+
 	KM_SHIFT       = KM_LSHIFT | KM_RSHIFT,
 	KM_CTRL        = KM_LCTRL | KM_RCTRL,
Index: uspace/lib/c/include/io/mode.h
===================================================================
--- uspace/lib/c/include/io/mode.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/io/mode.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,10 +55,10 @@
 	sysarg_t index;
 	sysarg_t version;
-	
+
 	sysarg_t refresh_rate;
 	aspect_ratio_t screen_aspect;
 	sysarg_t screen_width;
 	sysarg_t screen_height;
-	
+
 	aspect_ratio_t cell_aspect;
 	cell_visual_t cell_visual;
Index: uspace/lib/c/include/io/pixelmap.h
===================================================================
--- uspace/lib/c/include/io/pixelmap.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/io/pixelmap.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,11 +47,11 @@
 	/* Pixels outside of a pixmap are PIXEL(0, 0, 0, 0) */
 	PIXELMAP_EXTEND_TRANSPARENT_BLACK = 0,
-	
+
 	/* The pixmap is repeated infinetely */
 	PIXELMAP_EXTEND_TILE,
-	
+
 	/* If outside of a pixmap, return closest pixel from the edge */
 	PIXELMAP_EXTEND_SIDES,
-	
+
 	/* If outside of a pixmap, return closest pixel from the edge,
 	 * with alpha = 0
@@ -125,5 +125,5 @@
 			transparent = transparent_outside;
 		}
-		
+
 		if (y < 0) {
 			y = 0;
@@ -135,5 +135,5 @@
 		}
 	}
-	
+
 	if (x < 0 || ((sysarg_t) x) >= pixmap->width ||
 	    y < 0 || ((sysarg_t) y) >= pixmap->height)
@@ -141,8 +141,8 @@
 
 	pixel_t pixel = pixelmap_get_pixel(pixmap, x, y);
-	
+
 	if (transparent)
 		pixel = PIXEL(0, RED(pixel), GREEN(pixel), BLUE(pixel));
-	
+
 	return pixel;
 }
Index: uspace/lib/c/include/io/printf_core.h
===================================================================
--- uspace/lib/c/include/io/printf_core.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/io/printf_core.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,8 +43,8 @@
 	/* String output function, returns number of printed characters or EOF */
 	int (*str_write)(const char *, size_t, void *);
-	
+
 	/* Wide string output function, returns number of printed characters or EOF */
 	int (*wstr_write)(const wchar_t *, size_t, void *);
-	
+
 	/* User data - output stream specification, state, locks, etc. */
 	void *data;
Index: uspace/lib/c/include/ipc/devman.h
===================================================================
--- uspace/lib/c/include/ipc/devman.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/ipc/devman.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,5 +46,5 @@
 	/** Driver has not been started. */
 	DRIVER_NOT_STARTED = 0,
-	
+
 	/**
 	 * Driver has been started, but has not registered as running and ready
@@ -52,5 +52,5 @@
 	 */
 	DRIVER_STARTING,
-	
+
 	/** Driver is running and prepared to serve incomming requests. */
 	DRIVER_RUNNING
@@ -110,5 +110,5 @@
 	match_id_t *mid = NULL;
 	link_t *link = ids->ids.head.next;
-	
+
 	while (link != &ids->ids.head) {
 		mid = list_get_instance(link, match_id_t,link);
@@ -118,5 +118,5 @@
 		link = link->next;
 	}
-	
+
 	list_insert_before(&id->link, link);
 }
@@ -131,5 +131,5 @@
 	link_t *link = NULL;
 	match_id_t *id;
-	
+
 	while (!list_empty(&ids->ids)) {
 		link = list_first(&ids->ids);
Index: uspace/lib/c/include/ipc/graph.h
===================================================================
--- uspace/lib/c/include/ipc/graph.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/ipc/graph.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,5 +41,5 @@
 	VISUALIZER_CLAIM = IPC_FIRST_USER_METHOD,
 	VISUALIZER_YIELD,
-	
+
 	VISUALIZER_ENUMERATE_MODES,
 	VISUALIZER_GET_DEFAULT_MODE,
@@ -47,7 +47,7 @@
 	VISUALIZER_GET_MODE,
 	VISUALIZER_SET_MODE,
-	
+
 	VISUALIZER_UPDATE_DAMAGED_REGION,
-	
+
 	VISUALIZER_SUSPEND,
 	VISUALIZER_WAKE_UP,
Index: uspace/lib/c/include/ipc/output.h
===================================================================
--- uspace/lib/c/include/ipc/output.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/ipc/output.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,13 +45,13 @@
 	OUTPUT_GET_DIMENSIONS,
 	OUTPUT_GET_CAPS,
-	
+
 	OUTPUT_FRONTBUF_CREATE,
 	OUTPUT_FRONTBUF_DESTROY,
-	
+
 	OUTPUT_CURSOR_UPDATE,
 	OUTPUT_SET_STYLE,
 	OUTPUT_SET_COLOR,
 	OUTPUT_SET_RGB_COLOR,
-	
+
 	OUTPUT_UPDATE,
 	OUTPUT_DAMAGE
Index: uspace/lib/c/include/ipc/vfs.h
===================================================================
--- uspace/lib/c/include/ipc/vfs.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/ipc/vfs.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -170,9 +170,9 @@
 	WALK_MAY_CREATE = (1 << 0),
 	WALK_MUST_CREATE = (1 << 1),
-	
+
 	WALK_REGULAR = (1 << 2),
 	WALK_DIRECTORY = (1 << 3),
 	WALK_MOUNT_POINT = (1 << 4),
-	
+
 	WALK_ALL_FLAGS = WALK_MAY_CREATE | WALK_MUST_CREATE | WALK_REGULAR |
 	    WALK_DIRECTORY | WALK_MOUNT_POINT,
Index: uspace/lib/c/include/loader/pcb.h
===================================================================
--- uspace/lib/c/include/loader/pcb.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/loader/pcb.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,21 +55,21 @@
 	/** Program entry point. */
 	entry_point_t entry;
-	
+
 	/** Current working directory. */
 	char *cwd;
-	
+
 	/** Number of command-line arguments. */
 	int argc;
 	/** Command-line arguments. */
 	char **argv;
-	
+
 	/** List of inbox files. */
 	struct pcb_inbox_entry *inbox;
 	int inbox_entries;
-	
+
 	/*
 	 * ELF-specific data.
 	 */
-	
+
 	/** Pointer to ELF dynamic section of the program. */
 	void *dynamic;
Index: uspace/lib/c/include/nic/nic.h
===================================================================
--- uspace/lib/c/include/nic/nic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/c/include/nic/nic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -218,5 +218,5 @@
 
 	/* for cslip etc */
-	
+
 	/** Total compressed packets received. */
 	unsigned long receive_compressed;
Index: uspace/lib/clui/tinput.c
===================================================================
--- uspace/lib/clui/tinput.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/clui/tinput.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,9 +75,9 @@
 {
 	tinput_t *ti;
-	
+
 	ti = calloc(1, sizeof(tinput_t));
 	if (ti == NULL)
 		return NULL;
-	
+
 	tinput_init(ti);
 	return ti;
@@ -107,12 +107,12 @@
 	if (!dbuf)
 		return;
-	
+
 	size_t sa;
 	size_t sb;
 	tinput_sel_get_bounds(ti, &sa, &sb);
-	
+
 	tinput_console_set_lpos(ti, ti->text_coord + start);
 	console_set_style(ti->console, STYLE_NORMAL);
-	
+
 	size_t p = start;
 	if (p < sa) {
@@ -122,9 +122,9 @@
 		p = sa;
 	}
-	
+
 	if (p < sb) {
 		console_flush(ti->console);
 		console_set_style(ti->console, STYLE_SELECTED);
-		
+
 		memcpy(dbuf, ti->buffer + p,
 		    (sb - p) * sizeof(wchar_t));
@@ -133,8 +133,8 @@
 		p = sb;
 	}
-	
+
 	console_flush(ti->console);
 	console_set_style(ti->console, STYLE_NORMAL);
-	
+
 	if (p < ti->nc) {
 		memcpy(dbuf, ti->buffer + p,
@@ -143,8 +143,8 @@
 		printf("%ls", dbuf);
 	}
-	
+
 	for (p = 0; p < pad; p++)
 		putchar(' ');
-	
+
 	console_flush(ti->console);
 
@@ -188,8 +188,8 @@
 {
 	sysarg_t col0, row0;
-	
+
 	if (console_get_pos(ti->console, &col0, &row0) != EOK)
 		return EIO;
-	
+
 	ti->prompt_coord = row0 * ti->con_cols + col0;
 	ti->text_coord = ti->prompt_coord + str_length(ti->prompt);
@@ -206,5 +206,5 @@
 	if (ti->nc == INPUT_MAX_SIZE)
 		return;
-	
+
 	unsigned new_width = LIN_TO_COL(ti, ti->text_coord) + ti->nc + 1;
 	if (new_width % ti->con_cols == 0) {
@@ -216,9 +216,9 @@
 		}
 	}
-	
+
 	size_t i;
 	for (i = ti->nc; i > ti->pos; i--)
 		ti->buffer[i] = ti->buffer[i - 1];
-	
+
 	ti->buffer[ti->pos] = c;
 	ti->pos += 1;
@@ -226,5 +226,5 @@
 	ti->buffer[ti->nc] = '\0';
 	ti->sel_start = ti->pos;
-	
+
 	tinput_display_tail(ti, ti->pos - 1, 0);
 	tinput_update_origin(ti);
@@ -237,5 +237,5 @@
 	if (ilen == 0)
 		return;
-	
+
 	unsigned new_width = LIN_TO_COL(ti, ti->text_coord) + ti->nc + ilen;
 	unsigned new_height = (new_width / ti->con_cols) + 1;
@@ -244,5 +244,5 @@
 		return;
 	}
-	
+
 	if (ti->nc > 0) {
 		size_t i;
@@ -250,5 +250,5 @@
 			ti->buffer[i + ilen - 1] = ti->buffer[i - 1];
 	}
-	
+
 	size_t off = 0;
 	size_t i = 0;
@@ -257,18 +257,18 @@
 		if (c == '\0')
 			break;
-		
+
 		/* Filter out non-printable chars. */
 		if (c < 32)
 			c = 32;
-		
+
 		ti->buffer[ti->pos + i] = c;
 		i++;
 	}
-	
+
 	ti->pos += ilen;
 	ti->nc += ilen;
 	ti->buffer[ti->nc] = '\0';
 	ti->sel_start = ti->pos;
-	
+
 	tinput_display_tail(ti, ti->pos - ilen, 0);
 	tinput_update_origin(ti);
@@ -282,17 +282,17 @@
 		return;
 	}
-	
+
 	if (ti->pos == 0)
 		return;
-	
+
 	size_t i;
 	for (i = ti->pos; i < ti->nc; i++)
 		ti->buffer[i - 1] = ti->buffer[i];
-	
+
 	ti->pos -= 1;
 	ti->nc -= 1;
 	ti->buffer[ti->nc] = '\0';
 	ti->sel_start = ti->pos;
-	
+
 	tinput_display_tail(ti, ti->pos, 1);
 	tinput_position_caret(ti);
@@ -305,11 +305,11 @@
 		return;
 	}
-	
+
 	if (ti->pos == ti->nc)
 		return;
-	
+
 	ti->pos += 1;
 	ti->sel_start = ti->pos;
-	
+
 	tinput_backspace(ti);
 }
@@ -318,5 +318,5 @@
 {
 	tinput_pre_seek(ti, shift_held);
-	
+
 	if (dir == seek_forward) {
 		if (ti->pos < ti->nc)
@@ -326,5 +326,5 @@
 			ti->pos -= 1;
 	}
-	
+
 	tinput_post_seek(ti, shift_held);
 }
@@ -333,15 +333,15 @@
 {
 	tinput_pre_seek(ti, shift_held);
-	
+
 	if (dir == seek_forward) {
 		if (ti->pos == ti->nc)
 			return;
-		
+
 		while (true) {
 			ti->pos += 1;
-			
+
 			if (ti->pos == ti->nc)
 				break;
-			
+
 			if ((ti->buffer[ti->pos - 1] == ' ') &&
 			    (ti->buffer[ti->pos] != ' '))
@@ -351,18 +351,18 @@
 		if (ti->pos == 0)
 			return;
-		
+
 		while (true) {
 			ti->pos -= 1;
-			
+
 			if (ti->pos == 0)
 				break;
-			
+
 			if (ti->buffer[ti->pos - 1] == ' ' &&
 			    ti->buffer[ti->pos] != ' ')
 				break;
 		}
-	
-	}
-	
+
+	}
+
 	tinput_post_seek(ti, shift_held);
 }
@@ -371,5 +371,5 @@
 {
 	tinput_pre_seek(ti, shift_held);
-	
+
 	if (dir == seek_forward) {
 		if (ti->pos + ti->con_cols <= ti->nc)
@@ -379,5 +379,5 @@
 			ti->pos = ti->pos - ti->con_cols;
 	}
-	
+
 	tinput_post_seek(ti, shift_held);
 }
@@ -403,10 +403,10 @@
 {
 	tinput_pre_seek(ti, shift_held);
-	
+
 	if (dir == seek_backward)
 		ti->pos = 0;
 	else
 		ti->pos = ti->nc;
-	
+
 	tinput_post_seek(ti, shift_held);
 }
@@ -431,5 +431,5 @@
 		ti->sel_start = ti->pos;
 	}
-	
+
 	tinput_position_caret(ti);
 }
@@ -443,11 +443,11 @@
 			free(ti->history[HISTORY_LEN]);
 	}
-	
+
 	size_t i;
 	for (i = ti->hnum; i > 1; i--)
 		ti->history[i] = ti->history[i - 1];
-	
+
 	ti->history[1] = str_dup(str);
-	
+
 	if (ti->history[0] != NULL) {
 		free(ti->history[0]);
@@ -492,16 +492,16 @@
 	size_t sa;
 	size_t sb;
-	
+
 	tinput_sel_get_bounds(ti, &sa, &sb);
 	if (sa == sb)
 		return;
-	
+
 	memmove(ti->buffer + sa, ti->buffer + sb,
 	    (ti->nc - sb) * sizeof(wchar_t));
-	
+
 	ti->pos = ti->sel_start = sa;
 	ti->nc -= (sb - sa);
 	ti->buffer[ti->nc] = '\0';
-	
+
 	tinput_display_tail(ti, sa, sb - sa);
 	tinput_position_caret(ti);
@@ -512,9 +512,9 @@
 	size_t sa;
 	size_t sb;
-	
+
 	tinput_sel_get_bounds(ti, &sa, &sb);
-	
+
 	char *str;
-	
+
 	if (sb < ti->nc) {
 		wchar_t tmp_c = ti->buffer[sb];
@@ -524,14 +524,14 @@
 	} else
 		str = wstr_to_astr(ti->buffer + sa);
-	
+
 	if (str == NULL)
 		goto error;
-	
+
 	if (clipboard_put_str(str) != EOK)
 		goto error;
-	
+
 	free(str);
 	return;
-	
+
 error:
 	/* TODO: Give the user some kind of warning. */
@@ -543,10 +543,10 @@
 	char *str;
 	errno_t rc = clipboard_get_str(&str);
-	
+
 	if ((rc != EOK) || (str == NULL)) {
 		/* TODO: Give the user some kind of warning. */
 		return;
 	}
-	
+
 	tinput_insert_string(ti, str);
 	free(str);
@@ -562,17 +562,17 @@
 			return;
 	}
-	
+
 	if (ti->history[ti->hpos] != NULL) {
 		free(ti->history[ti->hpos]);
 		ti->history[ti->hpos] = NULL;
 	}
-	
+
 	ti->history[ti->hpos] = tinput_get_str(ti);
 	ti->hpos += offs;
-	
+
 	int pad = (int) ti->nc - str_length(ti->history[ti->hpos]);
 	if (pad < 0)
 		pad = 0;
-	
+
 	tinput_set_str(ti, ti->history[ti->hpos]);
 	tinput_display_tail(ti, 0, pad);
@@ -620,5 +620,5 @@
 	for (i = 0; i < cnum; i++)
 		max_width = max(max_width, str_width(compl[i]));
-	
+
 	unsigned int cols = max(1, (ti->con_cols + 1) / (max_width + 1));
 	unsigned int padding = 0;
@@ -628,7 +628,7 @@
 	unsigned int col_width = max_width + padding / cols;
 	unsigned int rows = cnum / cols + ((cnum % cols) != 0);
-	
+
 	unsigned int row, col;
-	
+
 	for (row = 0; row < rows; row++) {
 		unsigned int display_col = 0;
@@ -786,9 +786,9 @@
 	if (ti->prompt != NULL)
 		free(ti->prompt);
-	
+
 	ti->prompt = str_dup(prompt);
 	if (ti->prompt == NULL)
 		return ENOMEM;
-	
+
 	return EOK;
 }
@@ -815,17 +815,17 @@
 	    ((kev->mods & (KM_ALT | KM_SHIFT)) == 0))
 		tinput_key_ctrl(ti, kev);
-	
+
 	if (((kev->mods & KM_SHIFT) != 0) &&
 	    ((kev->mods & (KM_CTRL | KM_ALT)) == 0))
 		tinput_key_shift(ti, kev);
-	
+
 	if (((kev->mods & KM_CTRL) != 0) &&
 	    ((kev->mods & KM_SHIFT) != 0) &&
 	    ((kev->mods & KM_ALT) == 0))
 		tinput_key_ctrl_shift(ti, kev);
-	
+
 	if ((kev->mods & (KM_CTRL | KM_ALT | KM_SHIFT)) == 0)
 		tinput_key_unmod(ti, kev);
-	
+
 	if (kev->c >= ' ') {
 		tinput_sel_delete(ti);
@@ -868,5 +868,5 @@
 	if (console_get_size(ti->console, &ti->con_cols, &ti->con_rows) != EOK)
 		return EIO;
-	
+
 	tinput_set_str(ti, istr);
 
@@ -874,15 +874,15 @@
 	ti->done = false;
 	ti->exit_clui = false;
-	
+
 	if (tinput_display(ti) != EOK)
 		return EIO;
-	
+
 	while (!ti->done) {
 		console_flush(ti->console);
-		
+
 		cons_event_t ev;
 		if (!console_get_event(ti->console, &ev))
 			return EIO;
-		
+
 		switch (ev.type) {
 		case CEV_KEY:
@@ -897,18 +897,18 @@
 		}
 	}
-	
+
 	if (ti->exit_clui)
 		return ENOENT;
-	
+
 	ti->pos = ti->nc;
 	tinput_position_caret(ti);
 	putchar('\n');
-	
+
 	char *str = tinput_get_str(ti);
 	if (str_cmp(str, "") != 0)
 		tinput_history_insert(ti, str);
-	
+
 	ti->hpos = 0;
-	
+
 	*dstr = str;
 	return EOK;
Index: uspace/lib/clui/tinput.h
===================================================================
--- uspace/lib/clui/tinput.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/clui/tinput.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -104,44 +104,44 @@
 	/** Console */
 	console_ctrl_t *console;
-	
+
 	/** Prompt string */
 	char *prompt;
-	
+
 	/** Completion ops. */
 	tinput_compl_ops_t *compl_ops;
-	
+
 	/** Buffer holding text currently being edited */
 	wchar_t buffer[INPUT_MAX_SIZE + 1];
-	
+
 	/** Linear position on screen where the prompt starts */
 	unsigned prompt_coord;
 	/** Linear position on screen where the text field starts */
 	unsigned text_coord;
-	
+
 	/** Screen dimensions */
 	sysarg_t con_cols;
 	sysarg_t con_rows;
-	
+
 	/** Number of characters in @c buffer */
 	size_t nc;
-	
+
 	/** Caret position within buffer */
 	size_t pos;
-	
+
 	/** Selection mark position within buffer */
 	size_t sel_start;
-	
+
 	/** History (dynamically allocated strings) */
 	char *history[HISTORY_LEN + 1];
-	
+
 	/** Number of entries in @c history, not counting [0] */
 	size_t hnum;
-	
+
 	/** Current position in history */
 	size_t hpos;
-	
+
 	/** @c true if finished with this line (return to caller) */
 	bool done;
-	
+
 	/** @c true if user requested to abort interactive loop */
 	bool exit_clui;
Index: uspace/lib/compress/gzip.c
===================================================================
--- uspace/lib/compress/gzip.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/compress/gzip.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -89,13 +89,13 @@
 	gzip_header_t header;
 	gzip_footer_t footer;
-	
+
 	if ((srclen < sizeof(header)) || (srclen < sizeof(footer)))
 		return EINVAL;
-	
+
 	/* Decode header and footer */
-	
+
 	memcpy(&header, src, sizeof(header));
 	memcpy(&footer, src + srclen - sizeof(footer), sizeof(footer));
-	
+
 	if ((header.id1 != GZIP_ID1) ||
 	    (header.id2 != GZIP_ID2) ||
@@ -103,75 +103,75 @@
 	    ((header.flags & (~GZIP_FLAGS_MASK)) != 0))
 		return EINVAL;
-	
+
 	*destlen = uint32_t_le2host(footer.size);
-	
+
 	/* Ignore extra metadata */
-	
+
 	void *stream = src + sizeof(header);
 	size_t stream_length = srclen - sizeof(header) - sizeof(footer);
-	
+
 	if ((header.flags & GZIP_FLAG_FEXTRA) != 0) {
 		uint16_t extra_length;
-		
+
 		if (stream_length < sizeof(extra_length))
 			return EINVAL;
-		
+
 		memcpy(&extra_length, stream, sizeof(extra_length));
 		stream += sizeof(extra_length);
 		stream_length -= sizeof(extra_length);
-		
+
 		if (stream_length < extra_length)
 			return EINVAL;
-		
+
 		stream += extra_length;
 		stream_length -= extra_length;
 	}
-	
+
 	if ((header.flags & GZIP_FLAG_FNAME) != 0) {
 		while (*((uint8_t *) stream) != 0) {
 			if (stream_length == 0)
 				return EINVAL;
-			
+
 			stream++;
 			stream_length--;
 		}
-		
+
 		if (stream_length == 0)
 			return EINVAL;
-		
+
 		stream++;
 		stream_length--;
 	}
-	
+
 	if ((header.flags & GZIP_FLAG_FCOMMENT) != 0) {
 		while (*((uint8_t *) stream) != 0) {
 			if (stream_length == 0)
 				return EINVAL;
-			
+
 			stream++;
 			stream_length--;
 		}
-		
+
 		if (stream_length == 0)
 			return EINVAL;
-		
+
 		stream++;
 		stream_length--;
 	}
-	
+
 	if ((header.flags & GZIP_FLAG_FHCRC) != 0) {
 		if (stream_length < 2)
 			return EINVAL;
-		
+
 		stream += 2;
 		stream_length -= 2;
 	}
-	
+
 	/* Allocate output buffer and inflate the data */
-	
+
 	*dest = malloc(*destlen);
 	if (*dest == NULL)
 		return ENOMEM;
-	
+
 	errno_t ret = inflate(stream, stream_length, *dest, *destlen);
 	if (ret != EOK) {
@@ -179,5 +179,5 @@
 		return ret;
 	}
-	
+
 	return EOK;
 }
Index: uspace/lib/compress/inflate.c
===================================================================
--- uspace/lib/compress/inflate.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/compress/inflate.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -103,12 +103,12 @@
 	size_t destlen;   /**< Output buffer size */
 	size_t destcnt;   /**< Position in the output buffer */
-	
+
 	uint8_t *src;     /**< Input buffer */
 	size_t srclen;    /**< Input buffer size */
 	size_t srccnt;    /**< Position in the input buffer */
-	
+
 	uint16_t bitbuf;  /**< Bit buffer */
 	size_t bitlen;    /**< Number of bits in the bit buffer */
-	
+
 	bool overrun;     /**< Overrun condition */
 } inflate_state_t;
@@ -240,5 +240,5 @@
 	/* Bit accumulator for at least 20 bits */
 	uint32_t val = state->bitbuf;
-	
+
 	while (state->bitlen < cnt) {
 		if (state->srccnt == state->srclen) {
@@ -246,5 +246,5 @@
 			return 0;
 		}
-		
+
 		/* Load 8 more bits */
 		val |= ((uint32_t) state->src[state->srccnt]) << state->bitlen;
@@ -252,9 +252,9 @@
 		state->bitlen += 8;
 	}
-	
+
 	/* Update bits in the buffer */
 	state->bitbuf = (uint16_t) (val >> cnt);
 	state->bitlen -= cnt;
-	
+
 	return ((uint16_t) (val & ((1 << cnt) - 1)));
 }
@@ -275,32 +275,32 @@
 	state->bitbuf = 0;
 	state->bitlen = 0;
-	
+
 	if (state->srccnt + 4 > state->srclen)
 		return ELIMIT;
-	
+
 	uint16_t len =
 	    state->src[state->srccnt] | (state->src[state->srccnt + 1] << 8);
 	uint16_t len_compl =
 	    state->src[state->srccnt + 2] | (state->src[state->srccnt + 3] << 8);
-	
+
 	/* Check block length and its complement */
 	if (((int16_t) len) != ~((int16_t) len_compl))
 		return EINVAL;
-	
+
 	state->srccnt += 4;
-	
+
 	/* Check input buffer size */
 	if (state->srccnt + len > state->srclen)
 		return ELIMIT;
-	
+
 	/* Check output buffer size */
 	if (state->destcnt + len > state->destlen)
 		return ENOMEM;
-	
+
 	/* Copy data */
 	memcpy(state->dest + state->destcnt, state->src + state->srccnt, len);
 	state->srccnt += len;
 	state->destcnt += len;
-	
+
 	return EOK;
 }
@@ -323,5 +323,5 @@
 	size_t index = 0;  /* Index of the first code of the given length
 	                      in the symbol table */
-	
+
 	size_t len;  /* Current number of bits in the code */
 	for (len = 1; len <= MAX_HUFFMAN_BIT; len++) {
@@ -329,5 +329,5 @@
 		code |= get_bits(state, 1);
 		CHECK_OVERRUN(*state);
-		
+
 		uint16_t count = huffman->count[len];
 		if (code < first + count) {
@@ -336,5 +336,5 @@
 			return EOK;
 		}
-		
+
 		/* Update for next length */
 		index += count;
@@ -343,5 +343,5 @@
 		code <<= 1;
 	}
-	
+
 	return EINVAL;
 }
@@ -364,15 +364,15 @@
 	for (len = 0; len <= MAX_HUFFMAN_BIT; len++)
 		huffman->count[len] = 0;
-	
+
 	/* We assume that the lengths are within bounds */
 	size_t symbol;
 	for (symbol = 0; symbol < n; symbol++)
 		huffman->count[length[symbol]]++;
-	
+
 	if (huffman->count[0] == n) {
 		/* The code is complete, but decoding will fail */
 		return 0;
 	}
-	
+
 	/* Check for an over-subscribed or incomplete set of lengths */
 	int16_t left = 1;
@@ -385,12 +385,12 @@
 		}
 	}
-	
+
 	/* Generate offsets into symbol table */
 	uint16_t offs[MAX_HUFFMAN_BIT + 1];
-	
+
 	offs[1] = 0;
 	for (len = 1; len < MAX_HUFFMAN_BIT; len++)
 		offs[len + 1] = offs[len] + huffman->count[len];
-	
+
 	for (symbol = 0; symbol < n; symbol++) {
 		if (length[symbol] != 0) {
@@ -399,5 +399,5 @@
 		}
 	}
-	
+
 	return left;
 }
@@ -422,5 +422,5 @@
 {
 	uint16_t symbol;
-	
+
 	do {
 		errno_t err = huffman_decode(state, len_code, &symbol);
@@ -429,10 +429,10 @@
 			return err;
 		}
-		
+
 		if (symbol < 256) {
 			/* Write out literal */
 			if (state->destcnt == state->destlen)
 				return ENOMEM;
-			
+
 			state->dest[state->destcnt] = (uint8_t) symbol;
 			state->destcnt++;
@@ -442,20 +442,20 @@
 			if (symbol >= 29)
 				return EINVAL;
-			
+
 			size_t len = lens[symbol] + get_bits(state, lens_ext[symbol]);
 			CHECK_OVERRUN(*state);
-			
+
 			/* Get distance */
 			err = huffman_decode(state, dist_code, &symbol);
 			if (err != EOK)
 				return err;
-			
+
 			size_t dist = dists[symbol] + get_bits(state, dists_ext[symbol]);
 			if (dist > state->destcnt)
 				return ENOENT;
-			
+
 			if (state->destcnt + len > state->destlen)
 				return ENOMEM;
-			
+
 			while (len > 0) {
 				/* Copy len bytes from distance bytes back */
@@ -467,5 +467,5 @@
 		}
 	} while (symbol != 256);
-	
+
 	return EOK;
 }
@@ -510,25 +510,25 @@
 	huffman_t dyn_len_code;
 	huffman_t dyn_dist_code;
-	
+
 	dyn_len_code.count = dyn_len_count;
 	dyn_len_code.symbol = dyn_len_symbol;
-	
+
 	dyn_dist_code.count = dyn_dist_count;
 	dyn_dist_code.symbol = dyn_dist_symbol;
-	
+
 	/* Get number of bits in each table */
 	uint16_t nlen = get_bits(state, 5) + 257;
 	CHECK_OVERRUN(*state);
-	
+
 	uint16_t ndist = get_bits(state, 5) + 1;
 	CHECK_OVERRUN(*state);
-	
+
 	uint16_t ncode = get_bits(state, 4) + 4;
 	CHECK_OVERRUN(*state);
-	
+
 	if ((nlen > MAX_LITLEN) || (ndist > MAX_DIST)
 	    || (ncode > MAX_ORDER))
 		return EINVAL;
-	
+
 	/* Read code length code lengths */
 	uint16_t index;
@@ -537,14 +537,14 @@
 		CHECK_OVERRUN(*state);
 	}
-	
+
 	/* Set missing lengths to zero */
 	for (index = ncode; index < MAX_ORDER; index++)
 		length[order[index]] = 0;
-	
+
 	/* Build Huffman code */
 	int16_t rc = huffman_construct(&dyn_len_code, length, MAX_ORDER);
 	if (rc != 0)
 		return EINVAL;
-	
+
 	/* Read length/literal and distance code length tables */
 	index = 0;
@@ -554,5 +554,5 @@
 		if (err != EOK)
 			return EOK;
-		
+
 		if (symbol < 16) {
 			length[index] = symbol;
@@ -560,9 +560,9 @@
 		} else {
 			uint16_t len = 0;
-			
+
 			if (symbol == 16) {
 				if (index == 0)
 					return EINVAL;
-				
+
 				len = length[index - 1];
 				symbol = get_bits(state, 2) + 3;
@@ -575,8 +575,8 @@
 				CHECK_OVERRUN(*state);
 			}
-			
+
 			if (index + symbol > nlen + ndist)
 				return EINVAL;
-			
+
 			while (symbol > 0) {
 				length[index] = len;
@@ -586,19 +586,19 @@
 		}
 	}
-	
+
 	/* Check for end-of-block code */
 	if (length[256] == 0)
 		return EINVAL;
-	
+
 	/* Build Huffman tables for literal/length codes */
 	rc = huffman_construct(&dyn_len_code, length, nlen);
 	if ((rc < 0) || ((rc > 0) && (dyn_len_code.count[0] + 1 != nlen)))
 		return EINVAL;
-	
+
 	/* Build Huffman tables for distance codes */
 	rc = huffman_construct(&dyn_dist_code, length + nlen, ndist);
 	if ((rc < 0) || ((rc > 0) && (dyn_dist_code.count[0] + 1 != ndist)))
 		return EINVAL;
-	
+
 	return inflate_codes(state, &dyn_len_code, &dyn_dist_code);
 }
@@ -622,30 +622,30 @@
 	/* Initialize the state */
 	inflate_state_t state;
-	
+
 	state.dest = (uint8_t *) dest;
 	state.destlen = destlen;
 	state.destcnt = 0;
-	
+
 	state.src = (uint8_t *) src;
 	state.srclen = srclen;
 	state.srccnt = 0;
-	
+
 	state.bitbuf = 0;
 	state.bitlen = 0;
-	
+
 	state.overrun = false;
-	
+
 	uint16_t last;
 	errno_t ret = EOK;
-	
+
 	do {
 		/* Last block is indicated by a non-zero bit */
 		last = get_bits(&state, 1);
 		CHECK_OVERRUN(state);
-		
+
 		/* Block type */
 		uint16_t type = get_bits(&state, 2);
 		CHECK_OVERRUN(state);
-		
+
 		switch (type) {
 		case 0:
@@ -662,5 +662,5 @@
 		}
 	} while ((!last) && (ret == 0));
-	
+
 	return ret;
 }
Index: uspace/lib/crypto/aes.c
===================================================================
--- uspace/lib/crypto/aes.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/crypto/aes.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -213,8 +213,8 @@
 	uint8_t i = byte >> 4;
 	uint8_t j = byte & 0xF;
-	
+
 	if (!inv)
 		return sbox[i][j];
-	
+
 	return inv_sbox[i][j];
 }
@@ -229,5 +229,5 @@
 {
 	uint8_t val;
-	
+
 	for (size_t i = 0; i < ELEMS; i++) {
 		for (size_t j = 0; j < ELEMS; j++) {
@@ -246,5 +246,5 @@
 {
 	uint8_t temp[ELEMS];
-	
+
 	for (size_t i = 1; i < ELEMS; i++) {
 		memcpy(temp, state[i], i);
@@ -262,5 +262,5 @@
 {
 	uint8_t temp[ELEMS];
-	
+
 	for (size_t i = 1; i < ELEMS; i++) {
 		memcpy(temp, state[i], ELEMS - i);
@@ -282,18 +282,18 @@
 	uint8_t result = 0;
 	uint8_t f_bith;
-	
+
 	for (size_t i = 0; i < 8; i++) {
 		if (y & 1)
 			result ^= x;
-		
+
 		f_bith = (x & 0x80);
 		x <<= 1;
-		
+
 		if (f_bith)
 			x ^= AES_IP;
-		
+
 		y >>= 1;
 	}
-	
+
 	return result;
 }
@@ -308,5 +308,5 @@
 	uint8_t orig_state[ELEMS][ELEMS];
 	memcpy(orig_state, state, BLOCK_LEN);
-	
+
 	for (size_t j = 0; j < ELEMS; j++) {
 		state[0][j] =
@@ -342,5 +342,5 @@
 	uint8_t orig_state[ELEMS][ELEMS];
 	memcpy(orig_state, state, BLOCK_LEN);
-	
+
 	for (size_t j = 0; j < ELEMS; j++) {
 		state[0][j] =
@@ -378,5 +378,5 @@
 	uint8_t shift;
 	uint32_t mask = 0xff;
-	
+
 	for (size_t j = 0; j < ELEMS; j++) {
 		for (size_t i = 0; i < ELEMS; i++) {
@@ -399,8 +399,8 @@
 	uint32_t temp = word;
 	uint8_t *start = (uint8_t *) &temp;
-	
+
 	for (size_t i = 0; i < 4; i++)
 		*(start + i) = sub_byte(*(start + i), false);
-	
+
 	return temp;
 }
@@ -427,5 +427,5 @@
 {
 	uint32_t temp;
-	
+
 	for (size_t i = 0; i < CIPHER_ELEMS; i++) {
 		key_exp[i] =
@@ -435,13 +435,13 @@
 		    (key[4 * i + 3]);
 	}
-	
+
 	for (size_t i = CIPHER_ELEMS; i < ELEMS * (ROUNDS + 1); i++) {
 		temp = key_exp[i - 1];
-		
+
 		if ((i % CIPHER_ELEMS) == 0) {
 			temp = sub_word(rot_word(temp)) ^
 			    r_con_array[i / CIPHER_ELEMS - 1];
 		}
-		
+
 		key_exp[i] = key_exp[i - CIPHER_ELEMS] ^ temp;
 	}
@@ -463,12 +463,12 @@
 	if ((!key) || (!input))
 		return EINVAL;
-	
+
 	if (!output)
 		return ENOMEM;
-	
+
 	/* Create key expansion. */
 	uint32_t key_exp[ELEMS * (ROUNDS + 1)];
 	key_expansion(key, key_exp);
-	
+
 	/* Copy input into state array. */
 	uint8_t state[ELEMS][ELEMS];
@@ -477,18 +477,18 @@
 			state[i][j] = input[i + ELEMS * j];
 	}
-	
+
 	/* Processing loop. */
 	add_round_key(state, key_exp);
-	
+
 	for (size_t k = 1; k <= ROUNDS; k++) {
 		sub_bytes(state, false);
 		shift_rows(state);
-		
+
 		if (k < ROUNDS)
 			mix_columns(state);
-		
+
 		add_round_key(state, key_exp + k * ELEMS);
 	}
-	
+
 	/* Copy state array into output. */
 	for (size_t i = 0; i < ELEMS; i++) {
@@ -496,5 +496,5 @@
 			output[i + j * ELEMS] = state[i][j];
 	}
-	
+
 	return EOK;
 }
@@ -515,12 +515,12 @@
 	if ((!key) || (!input))
 		return EINVAL;
-	
+
 	if (!output)
 		return ENOMEM;
-	
+
 	/* Create key expansion. */
 	uint32_t key_exp[ELEMS * (ROUNDS + 1)];
 	key_expansion(key, key_exp);
-	
+
 	/* Copy input into state array. */
 	uint8_t state[ELEMS][ELEMS];
@@ -529,17 +529,17 @@
 			state[i][j] = input[i + ELEMS * j];
 	}
-	
+
 	/* Processing loop. */
 	add_round_key(state, key_exp + ROUNDS * ELEMS);
-	
+
 	for (int k = ROUNDS - 1; k >= 0; k--) {
 		inv_shift_rows(state);
 		sub_bytes(state, true);
 		add_round_key(state, key_exp + k * ELEMS);
-		
+
 		if (k > 0)
 			inv_mix_columns(state);
 	}
-	
+
 	/* Copy state array into output. */
 	for (size_t i = 0; i < ELEMS; i++) {
@@ -547,5 +547,5 @@
 			output[i + j * ELEMS] = state[i][j];
 	}
-	
+
 	return EOK;
 }
Index: uspace/lib/crypto/crypto.c
===================================================================
--- uspace/lib/crypto/crypto.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/crypto/crypto.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -101,7 +101,7 @@
 	uint32_t f, g, temp;
 	uint32_t w[HASH_MD5 / 4];
-	
+
 	memcpy(w, h, (HASH_MD5 / 4) * sizeof(uint32_t));
-	
+
 	for (size_t k = 0; k < 64; k++) {
 		if (k < 16) {
@@ -118,5 +118,5 @@
 			g = 7 * k % 16;
 		}
-		
+
 		temp = w[3];
 		w[3] = w[2];
@@ -127,5 +127,5 @@
 		w[0] = temp;
 	}
-	
+
 	for (uint8_t k = 0; k < HASH_MD5 / 4; k++)
 		h[k] += w[k];
@@ -142,5 +142,5 @@
 	uint32_t f, cf, temp;
 	uint32_t w[HASH_SHA1 / 4];
-	
+
 	for (size_t k = 16; k < 80; k++) {
 		sched_arr[k] = rotl_uint32(
@@ -151,7 +151,7 @@
 		    1);
 	}
-	
+
 	memcpy(w, h, (HASH_SHA1 / 4) * sizeof(uint32_t));
-	
+
 	for (size_t k = 0; k < 80; k++) {
 		if (k < 20) {
@@ -168,7 +168,7 @@
 			cf = 0xca62c1d6;
 		}
-		
+
 		temp = rotl_uint32(w[0], 5) + f + w[4] + cf + sched_arr[k];
-		
+
 		w[4] = w[3];
 		w[3] = w[2];
@@ -177,5 +177,5 @@
 		w[0] = temp;
 	}
-	
+
 	for (uint8_t k = 0; k < HASH_SHA1 / 4; k++)
 		h[k] += w[k];
@@ -199,15 +199,15 @@
 	if (!input)
 		return EINVAL;
-	
+
 	if (!output)
 		return ENOMEM;
-	
+
 	hash_fnc_t hash_func = (hash_sel == HASH_MD5) ? md5_proc : sha1_proc;
-	
+
 	/* Prepare scheduled input. */
 	uint8_t work_input[input_size + 1];
 	memcpy(work_input, input, input_size);
 	work_input[input_size] = 0x80;
-	
+
 	// FIXME: double?
 	size_t blocks = ceil_uint32((((double) input_size + 1) / 4 + 2) / 16);
@@ -222,12 +222,12 @@
 		}
 	}
-	
+
 	uint64_t bits_size = (uint64_t) (input_size * 8);
 	if (hash_sel == HASH_MD5)
 		bits_size = uint64_t_byteorder_swap(bits_size);
-	
+
 	work_arr[(blocks - 1) * 16 + 14] = bits_size >> 32;
 	work_arr[(blocks - 1) * 16 + 15] = bits_size & 0xffffffff;
-	
+
 	/* Hash computation. */
 	uint32_t h[hash_sel / 4];
@@ -237,16 +237,16 @@
 		for (size_t k = 0; k < 16; k++)
 			sched_arr[k] = work_arr[i * 16 + k];
-		
+
 		hash_func(h, sched_arr);
 	}
-	
+
 	/* Copy hash parts into final result. */
 	for (size_t i = 0; i < hash_sel / 4; i++) {
 		if (hash_sel == HASH_SHA1)
 			h[i] = uint32_t_byteorder_swap(h[i]);
-		
+
 		memcpy(output + i * sizeof(uint32_t), &h[i], sizeof(uint32_t));
 	}
-	
+
 	return EOK;
 }
@@ -271,8 +271,8 @@
 	if ((!key) || (!msg))
 		return EINVAL;
-	
+
 	if (!hash)
 		return ENOMEM;
-	
+
 	uint8_t work_key[HMAC_BLOCK_LENGTH];
 	uint8_t o_key_pad[HMAC_BLOCK_LENGTH];
@@ -280,27 +280,27 @@
 	uint8_t temp_hash[hash_sel];
 	memset(work_key, 0, HMAC_BLOCK_LENGTH);
-	
+
 	if(key_size > HMAC_BLOCK_LENGTH)
 		create_hash(key, key_size, work_key, hash_sel);
 	else
 		memcpy(work_key, key, key_size);
-	
+
 	for (size_t i = 0; i < HMAC_BLOCK_LENGTH; i++) {
 		o_key_pad[i] = work_key[i] ^ 0x5c;
 		i_key_pad[i] = work_key[i] ^ 0x36;
 	}
-	
+
 	uint8_t temp_work[HMAC_BLOCK_LENGTH + max(msg_size, hash_sel)];
 	memcpy(temp_work, i_key_pad, HMAC_BLOCK_LENGTH);
 	memcpy(temp_work + HMAC_BLOCK_LENGTH, msg, msg_size);
-	
+
 	create_hash(temp_work, HMAC_BLOCK_LENGTH + msg_size, temp_hash,
 	    hash_sel);
-	
+
 	memcpy(temp_work, o_key_pad, HMAC_BLOCK_LENGTH);
 	memcpy(temp_work + HMAC_BLOCK_LENGTH, temp_hash, hash_sel);
-	
+
 	create_hash(temp_work, HMAC_BLOCK_LENGTH + hash_sel, hash, hash_sel);
-	
+
 	return EOK;
 }
@@ -327,8 +327,8 @@
 	if ((!pass) || (!salt))
 		return EINVAL;
-	
+
 	if (!hash)
 		return ENOMEM;
-	
+
 	uint8_t work_salt[salt_size + 4];
 	memcpy(work_salt, salt, salt_size);
@@ -337,27 +337,27 @@
 	uint8_t xor_hmac[HASH_SHA1];
 	uint8_t temp_hash[HASH_SHA1 * 2];
-	
+
 	for (size_t i = 0; i < 2; i++) {
 		uint32_t be_i = host2uint32_t_be(i + 1);
-		
+
 		memcpy(work_salt + salt_size, &be_i, 4);
 		hmac(pass, pass_size, work_salt, salt_size + 4,
 		    work_hmac, HASH_SHA1);
 		memcpy(xor_hmac, work_hmac, HASH_SHA1);
-		
+
 		for (size_t k = 1; k < 4096; k++) {
 			memcpy(temp_hmac, work_hmac, HASH_SHA1);
 			hmac(pass, pass_size, temp_hmac, HASH_SHA1,
 			    work_hmac, HASH_SHA1);
-			
+
 			for (size_t t = 0; t < HASH_SHA1; t++)
 				xor_hmac[t] ^= work_hmac[t];
 		}
-		
+
 		memcpy(temp_hash + i * HASH_SHA1, xor_hmac, HASH_SHA1);
 	}
-	
+
 	memcpy(hash, temp_hash, PBKDF2_KEY_LENGTH);
-	
+
 	return EOK;
 }
Index: uspace/lib/crypto/rc4.c
===================================================================
--- uspace/lib/crypto/rc4.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/crypto/rc4.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 	for (size_t i = 0; i < SBOX_SIZE; i++)
 		sbox[i] = i;
-	
+
 	uint8_t j = 0;
 	for (size_t i = 0; i < SBOX_SIZE; i++) {
@@ -93,12 +93,12 @@
 	if ((!key) || (!input))
 		return EINVAL;
-	
+
 	if (!output)
 		return ENOMEM;
-	
+
 	/* Initialize sbox. */
 	uint8_t sbox[SBOX_SIZE];
 	create_sbox(key, key_size, sbox);
-	
+
 	/* Skip first x bytes. */
 	uint8_t i = 0;
@@ -109,5 +109,5 @@
 		swap(i, j, sbox);
 	}
-	
+
 	/* Processing loop. */
 	uint8_t val;
@@ -119,5 +119,5 @@
 		output[k] = val ^ input[k];
 	}
-	
+
 	return EOK;
 }
Index: uspace/lib/draw/codec/tga.c
===================================================================
--- uspace/lib/draw/codec/tga.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/codec/tga.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -46,9 +46,9 @@
 	uint8_t cmap_type;
 	uint8_t img_type;
-	
+
 	uint16_t cmap_first_entry;
 	uint16_t cmap_entries;
 	uint8_t cmap_bpp;
-	
+
 	uint16_t startx;
 	uint16_t starty;
@@ -79,9 +79,9 @@
 	cmap_type_t cmap_type;
 	img_type_t img_type;
-	
+
 	uint16_t cmap_first_entry;
 	uint16_t cmap_entries;
 	uint8_t cmap_bpp;
-	
+
 	uint16_t startx;
 	uint16_t starty;
@@ -91,11 +91,11 @@
 	uint8_t img_alpha_bpp;
 	uint8_t img_alpha_dir;
-	
+
 	void *id_data;
 	size_t id_length;
-	
+
 	void *cmap_data;
 	size_t cmap_length;
-	
+
 	void *img_data;
 	size_t img_length;
@@ -117,20 +117,20 @@
 	if (size < sizeof(tga_header_t))
 		return false;
-	
+
 	tga_header_t *head = (tga_header_t *) data;
-	
+
 	/* Image ID field */
 	tga->id_data = data + sizeof(tga_header_t);
 	tga->id_length = head->id_length;
-	
+
 	if (size < sizeof(tga_header_t) + tga->id_length)
 		return false;
-	
+
 	/* Color map type */
 	tga->cmap_type = head->cmap_type;
-	
+
 	/* Image type */
 	tga->img_type = head->img_type;
-	
+
 	/* Color map specification */
 	tga->cmap_first_entry = uint16_t_le2host(head->cmap_first_entry);
@@ -139,9 +139,9 @@
 	tga->cmap_data = tga->id_data + tga->id_length;
 	tga->cmap_length = ALIGN_UP(tga->cmap_entries * tga->cmap_bpp, 8) >> 3;
-	
+
 	if (size < sizeof(tga_header_t) + tga->id_length +
 	    tga->cmap_length)
 		return false;
-	
+
 	/* Image specification */
 	tga->startx = uint16_t_le2host(head->startx);
@@ -154,9 +154,9 @@
 	tga->img_data = tga->cmap_data + tga->cmap_length;
 	tga->img_length = ALIGN_UP(tga->width * tga->height * tga->img_bpp, 8) >> 3;
-	
+
 	if (size < sizeof(tga_header_t) + tga->id_length +
 	    tga->cmap_length + tga->img_length)
 		return false;
-	
+
 	return true;
 }
@@ -182,9 +182,9 @@
 	if (!decode_tga_header(data, size, &tga))
 		return NULL;
-	
+
 	/*
 	 * Check for unsupported features.
 	 */
-	
+
 	switch (tga.cmap_type) {
 	case CMAP_NOT_PRESENT:
@@ -194,5 +194,5 @@
 		return NULL;
 	}
-	
+
 	switch (tga.img_type) {
 	case IMG_BGRA:
@@ -208,20 +208,20 @@
 		return NULL;
 	}
-	
+
 	if (tga.img_alpha_bpp != 0)
 		return NULL;
-	
+
 	sysarg_t twidth = tga.startx + tga.width;
 	sysarg_t theight = tga.starty + tga.height;
-	
+
 	surface_t *surface = surface_create(twidth, theight, NULL, flags);
 	if (surface == NULL)
 		return NULL;
-	
+
 	/*
 	 * TGA is encoded in a bottom-up manner, the true-color
 	 * variant is in BGR 8:8:8 encoding.
 	 */
-	
+
 	switch (tga.img_type) {
 	case IMG_BGRA:
@@ -230,5 +230,5 @@
 				size_t offset =
 				    ((y - tga.starty) * tga.width + (x - tga.startx)) * 3;
-				
+
 				pixel_t pixel =
 				    bgr_888_2pixel(((uint8_t *) tga.img_data) + offset);
@@ -242,5 +242,5 @@
 				size_t offset =
 				    (y - tga.starty) * tga.width + (x - tga.startx);
-				
+
 				pixel_t pixel =
 				    gray_8_2pixel(((uint8_t *) tga.img_data) + offset);
@@ -252,5 +252,5 @@
 		break;
 	}
-	
+
 	return surface;
 }
Index: uspace/lib/draw/codec/tga.gz.c
===================================================================
--- uspace/lib/draw/codec/tga.gz.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/codec/tga.gz.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,11 +58,11 @@
 	void *data_expanded;
 	size_t size_expanded;
-	
+
 	errno_t ret = gzip_expand(data, size, &data_expanded, &size_expanded);
 	if (ret != EOK)
 		return NULL;
-	
+
 	surface_t *surface = decode_tga(data_expanded, size_expanded, flags);
-	
+
 	free(data_expanded);
 	return surface;
Index: uspace/lib/draw/codec/webp.c
===================================================================
--- uspace/lib/draw/codec/webp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/codec/webp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -84,12 +84,12 @@
 	bool alpha_used;
 	uint8_t version;
-	
+
 	uint8_t *src;     /**< Input buffer */
 	size_t srclen;    /**< Input buffer size */
 	size_t srccnt;    /**< Position in the input buffer */
-	
+
 	uint32_t bitbuf;  /**< Bit buffer */
 	size_t bitlen;    /**< Number of bits in the bit buffer */
-	
+
 	bool overrun;     /**< Overrun condition */
 } webp_t;
@@ -107,5 +107,5 @@
 	/* Bit accumulator for at least 36 bits */
 	uint64_t val = state->bitbuf;
-	
+
 	while (state->bitlen < cnt) {
 		if (state->srccnt == state->srclen) {
@@ -113,5 +113,5 @@
 			return 0;
 		}
-		
+
 		/* Load 8 more bits */
 		val |= ((uint64_t) state->src[state->srccnt]) << state->bitlen;
@@ -119,9 +119,9 @@
 		state->bitlen += 8;
 	}
-	
+
 	/* Update bits in the buffer */
 	state->bitbuf = (uint32_t) (val >> cnt);
 	state->bitlen -= cnt;
-	
+
 	return ((uint32_t) (val & ((1 << cnt) - 1)));
 }
@@ -143,33 +143,33 @@
 	    (size - sizeof(riff_header_t) < sizeof(webp_header_t)))
 		return false;
-	
+
 	riff_header_t *riff_header = (riff_header_t *) data;
 	if (riff_header->fourcc != FOURCC_RIFF)
 		return false;
-	
+
 	/* Check payload size */
 	size_t payload_size = uint32_t_le2host(riff_header->payload_size);
 	if (payload_size + sizeof(riff_header_t) > size)
 		return false;
-	
+
 	data += sizeof(riff_header_t);
 	webp_header_t *webp_header = (webp_header_t *) data;
 	if (webp_header->fourcc != FOURCC_WEBP)
 		return false;
-	
+
 	/* Only lossless encoding supported so far */
 	if (webp_header->encoding != FOURCC_WEBP_LOSSLESS)
 		return false;
-	
+
 	webp->stream_size = uint32_t_le2host(webp_header->stream_size);
 	if (webp->stream_size + sizeof(riff_header_t) +
 	    sizeof(webp_header_t) > size)
 		return false;
-	
+
 	if (webp_header->signature != SIGNATURE_WEBP_LOSSLESS)
 		return false;
-	
+
 	data += sizeof(webp_header_t);
-	
+
 	/* Setup decoding state */
 	webp->src = (uint8_t *) data;
@@ -179,21 +179,21 @@
 	webp->bitlen = 0;
 	webp->overrun = false;
-	
+
 	/* Decode the rest of the metadata */
 	webp->width = get_bits(webp, 14) + 1;
 	CHECK_OVERRUN(*webp, false);
-	
+
 	webp->height = get_bits(webp, 14) + 1;
 	CHECK_OVERRUN(*webp, false);
-	
+
 	webp->alpha_used = get_bits(webp, 1);
 	CHECK_OVERRUN(*webp, false);
-	
+
 	webp->version = get_bits(webp, 3);
 	CHECK_OVERRUN(*webp, false);
-	
+
 	if (webp->version != 0)
 		return false;
-	
+
 	return true;
 }
@@ -218,26 +218,26 @@
 	if (!decode_webp_header(data, size, &webp))
 		return NULL;
-	
+
 	bool transform_present = false;
-	
+
 	do {
 		transform_present = get_bits(&webp, 1);
 		CHECK_OVERRUN(webp, NULL);
-		
+
 		if (transform_present) {
 			webp_transform_t transform = get_bits(&webp, 2);
 			CHECK_OVERRUN(webp, NULL);
-			
+
 			if (transform == TRANSFORM_PREDICTOR) {
 				// FIXME TODO
 			} else
 				return NULL;
-			
+
 			// FIXME: decode other transforms
 		}
 	} while (transform_present);
-	
+
 	// FIXME: decode image data
-	
+
 	return NULL;
 }
Index: uspace/lib/draw/cursor/embedded.c
===================================================================
--- uspace/lib/draw/cursor/embedded.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/cursor/embedded.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,5 +47,5 @@
 	assert(state_count);
 	assert(data);
-	
+
 	(*state_count) = 1;
 	(*data) = NULL;
@@ -56,9 +56,9 @@
 	if (state != 0)
 		return NULL;
-	
+
 	surface_t *surface = surface_create(CURSOR_WIDTH, CURSOR_HEIGHT, NULL, 0);
 	if (!surface)
 		return NULL;
-	
+
 	for (unsigned int y = 0; y < CURSOR_HEIGHT; ++y) {
 		for (unsigned int x = 0; x < CURSOR_WIDTH; ++x) {
@@ -67,10 +67,10 @@
 			pixel_t pixel = (cursor_texture[offset] & (1 << (x % 8))) ?
 			    PIXEL(255, 0, 0, 0) : PIXEL(255, 255, 255, 255);
-			
+
 			if (visible)
 				surface_put_pixel(surface, x, y, pixel);
 		}
 	}
-	
+
 	return surface;
 }
Index: uspace/lib/draw/font.c
===================================================================
--- uspace/lib/draw/font.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/font.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,8 +48,8 @@
 	if (font == NULL)
 		return NULL;
-	
+
 	font->backend = backend;
 	font->backend_data = backend_data;
-	
+
 	return font;
 }
@@ -97,5 +97,5 @@
 		if (c == 0)
 			break;
-		
+
 		glyph_id_t glyph_id;
 		rc = font_resolve_glyph(font, c, &glyph_id);
@@ -106,10 +106,10 @@
 			}
 		}
-		
+
 		glyph_metrics_t glyph_metrics;
 		rc = font_get_glyph_metrics(font, glyph_id, &glyph_metrics);
 		if (rc != EOK)
 			return rc;
-		
+
 		x += glyph_metrics_get_advancement(&glyph_metrics);
 	}
@@ -140,5 +140,5 @@
 		if (c == 0)
 			break;
-		
+
 		glyph_id_t glyph_id;
 		rc = font_resolve_glyph(font, c, &glyph_id);
@@ -149,5 +149,5 @@
 			}
 		}
-		
+
 		glyph_metrics_t glyph_metrics;
 		rc = font_get_glyph_metrics(font, glyph_id, &glyph_metrics);
Index: uspace/lib/draw/font.h
===================================================================
--- uspace/lib/draw/font.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/font.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,16 +51,16 @@
 	/* Horizontal distance between origin and left side of the glyph */
 	metric_t left_side_bearing;
-	
+
 	/* Width of the actual glyph drawn */
 	metric_t width;
-	
+
 	/* Horizontal distance between right side of the glyph and origin
 	   of the next glyph */
 	metric_t right_side_bearing;
-	
+
 	/* Vertical distance between baseline and top of the glyph
 	   (positive to top) */
 	metric_t ascender;
-	
+
 	/* Height of the actual glyph drawn */
 	metric_t height;
@@ -80,8 +80,8 @@
 	/* Distance between top of the line and baseline */
 	metric_t ascender;
-	
+
 	/* Distance between baseline and bottom of the line */
 	metric_t descender;
-	
+
 	/* Distance between bottom of the line and top of the next line */
 	metric_t leading;
Index: uspace/lib/draw/font/bitmap_backend.c
===================================================================
--- uspace/lib/draw/font/bitmap_backend.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/font/bitmap_backend.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,7 +62,7 @@
 {
 	bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data;
-	
+
 	*font_metrics = data->font_metrics;
-	
+
 	return EOK;
 }
@@ -78,20 +78,20 @@
 {
 	bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data;
-	
+
 	if (glyph_id >= data->glyph_count)
 		return ENOENT;
-	
+
 	if (data->glyph_cache[glyph_id].metrics_loaded) {
 		*glyph_metrics = data->glyph_cache[glyph_id].metrics;
 		return EOK;
 	}
-	
+
 	glyph_metrics_t gm;
-	
+
 	errno_t rc = data->decoder->load_glyph_metrics(data->decoder_data, glyph_id,
 	    &gm);
 	if (rc != EOK)
 		return rc;
-	
+
 	if (data->scale) {
 		gm.left_side_bearing = (metric_t)
@@ -106,7 +106,7 @@
 		    (data->scale_ratio * gm.height + 0.5);
 	}
-	
-	
-	
+
+
+
 	data->glyph_cache[glyph_id].metrics = gm;
 	data->glyph_cache[glyph_id].metrics_loaded = true;
@@ -120,10 +120,10 @@
 	if (glyph_id >= data->glyph_count)
 		return ENOENT;
-	
+
 	if (data->glyph_cache[glyph_id].surface != NULL) {
 		*result = data->glyph_cache[glyph_id].surface;
 		return EOK;
 	}
-	
+
 	surface_t *raw_surface;
 	errno_t rc = data->decoder->load_glyph_surface(data->decoder_data, glyph_id,
@@ -131,14 +131,14 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t w;
 	sysarg_t h;
 	surface_get_resolution(raw_surface, &w, &h);
-	
+
 	if (!data->scale) {
 		*result = raw_surface;
 		return EOK;
 	}
-	
+
 	source_t source;
 	source_init(&source);
@@ -167,5 +167,5 @@
 
 	surface_destroy(raw_surface);
-	
+
 	data->glyph_cache[glyph_id].surface = scaled_surface;
 	*result = scaled_surface;
@@ -177,18 +177,18 @@
 {
 	bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data;
-	
+
 	glyph_metrics_t glyph_metrics;
 	errno_t rc = bb_get_glyph_metrics(backend_data, glyph_id, &glyph_metrics);
 	if (rc != EOK)
 		return rc;
-	
+
 	surface_t *glyph_surface;
 	rc = get_glyph_surface(data, glyph_id, &glyph_surface);
 	if (rc != EOK)
 		return rc;
-	
+
 	native_t x = ox + glyph_metrics.left_side_bearing;
 	native_t y = oy - glyph_metrics.ascender;
-	
+
 	transform_t transform;
 	transform_identity(&transform);
@@ -230,5 +230,5 @@
 	if (glyph_count == 0)
 		return EINVAL;
-	
+
 	bitmap_backend_data_t *data = malloc(sizeof(bitmap_backend_data_t));
 	if (data == NULL)
@@ -275,5 +275,5 @@
 		return ENOMEM;
 	}
-	
+
 	*out_font = font;
 	return EOK;
Index: uspace/lib/draw/font/embedded.c
===================================================================
--- uspace/lib/draw/font/embedded.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/font/embedded.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 	if (!found)
 		return ENOENT;
-	
+
 	*glyph_id = glyph;
 	return EOK;
@@ -62,5 +62,5 @@
 	if (!surface)
 		return ENOMEM;
-	
+
 	for (unsigned int y = 0; y < FONT_SCANLINES; ++y) {
 		for (unsigned int x = 0; x < FONT_WIDTH; ++x) {
@@ -70,5 +70,5 @@
 		}
 	}
-	
+
 	*out_surface = surface;
 	return EOK;
@@ -84,5 +84,5 @@
 	gm->ascender = FONT_ASCENDER;
 	gm->height = FONT_SCANLINES;
-	
+
 	return EOK;
 }
Index: uspace/lib/draw/font/pcf.c
===================================================================
--- uspace/lib/draw/font/pcf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/font/pcf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -151,5 +151,5 @@
 {
 	pcf_data_t *data = (pcf_data_t *) opaque_data;
-	
+
 	/* TODO is this correct? */
 	uint8_t byte1 = (chr >> 8) & 0xff;
@@ -160,25 +160,25 @@
 	    (byte1 - e->min_byte1) * (e->max_byte2 - e->min_byte2 + 1) +
 	    (byte2 - e->min_byte2);
-	
+
 	aoff64_t entry_offset = data->encodings_table.offset +
 	    (sizeof(uint32_t) + 5 * sizeof(uint16_t)) +
 	    entry_index * sizeof(uint16_t);
-	
+
 	int rc = fseek(data->file, entry_offset, SEEK_SET);
 	if (rc != 0)
 		return errno;
-	
+
 	uint16_t glyph = 0;
 	size_t records_read = fread(&glyph, sizeof(uint16_t), 1, data->file);
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	glyph = uint16_t_pcf2host(glyph, data->encodings_table.format);
-	
+
 	if (glyph == 0xffff)
 		return ENOENT;
-	
+
 	*glyph_id = glyph;
-	
+
 	return EOK;
 }
@@ -190,13 +190,13 @@
 	int rc;
 	size_t records_read;
-	
+
 	if (table->format & PCF_FORMAT_COMPRESSED_METRICS) {
 		offset = table->offset + sizeof(uint32_t) + sizeof(uint16_t) +
 		    glyph_id * sizeof(pcf_compressed_metrics_t);
-		
+
 		rc = fseek(data->file, offset, SEEK_SET);
 		if (rc != 0)
 			return errno;
-		
+
 		pcf_compressed_metrics_t compressed_metrics;
 		records_read = fread(&compressed_metrics,
@@ -204,5 +204,5 @@
 		if (records_read != 1)
 			return EINVAL;
-		
+
 		metrics->left_side_bearing =
 		    compressed2int(compressed_metrics.left_side_bearing);
@@ -220,9 +220,9 @@
 		offset = table->offset + 2 * sizeof(uint32_t) +
 		    glyph_id * sizeof(pcf_default_metrics_t);
-		
+
 		rc = fseek(data->file, offset, SEEK_SET);
 		if (rc != 0)
 			return errno;
-	
+
 		pcf_default_metrics_t uncompressed_metrics;
 		records_read = fread(&uncompressed_metrics,
@@ -230,5 +230,5 @@
 		if (records_read != 1)
 			return EINVAL;
-		
+
 		metrics->left_side_bearing =
 		    int16_t_pcf2host(uncompressed_metrics.left_side_bearing,
@@ -250,5 +250,5 @@
 		    table->format);
 	}
-	
+
 	return EOK;
 }
@@ -258,5 +258,5 @@
 {
 	pcf_data_t *data = (pcf_data_t *) opaque_data;
-	
+
 	pcf_default_metrics_t pcf_metrics;
 	memset(&pcf_metrics, 0, sizeof(pcf_default_metrics_t));
@@ -265,11 +265,11 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	aoff64_t offset = data->bitmap_table.offset + (2 * sizeof(uint32_t)) +
 	    (glyph_id * sizeof(uint32_t));
-	
+
 	if (fseek(data->file, offset, SEEK_SET) < 0)
 		return errno;
-	
+
 	uint32_t bitmap_offset = 0;
 	size_t records_read = fread(&bitmap_offset, sizeof(uint32_t), 1,
@@ -279,12 +279,12 @@
 	bitmap_offset = uint32_t_pcf2host(bitmap_offset,
 	    data->bitmap_table.format);
-	
+
 	offset = data->bitmap_table.offset + (2 * sizeof(uint32_t)) +
 	    (data->glyph_count * sizeof(uint32_t)) + (4 * sizeof(uint32_t))
 	    + bitmap_offset;
-	
+
 	if (fseek(data->file, offset, SEEK_SET) < 0)
 		return errno;
-	
+
 	surface_coord_t width = pcf_metrics.character_width;
 	surface_coord_t height = pcf_metrics.character_ascent +
@@ -294,12 +294,12 @@
 	size_t row_bytes = ALIGN_UP(ALIGN_UP(width, 8) / 8, row_padding_bytes);
 	size_t bitmap_bytes = height * row_bytes;
-	
+
 	uint8_t *bitmap = malloc(bitmap_bytes);
 	if (bitmap == NULL)
 		return ENOMEM;
-	
+
 	records_read = fread(bitmap, sizeof(uint8_t), bitmap_bytes,
 	    data->file);
-	
+
 	surface_t *surface = surface_create(width, height, NULL, 0);
 	if (!surface) {
@@ -307,5 +307,5 @@
 		return ENOMEM;
 	}
-	
+
 	for (unsigned int y = 0; y < height; ++y) {
 		size_t row_offset = row_bytes * y;
@@ -334,5 +334,5 @@
 		}
 	}
-	
+
 	*out_surface = surface;
 	free(bitmap);
@@ -344,5 +344,5 @@
 {
 	pcf_data_t *data = (pcf_data_t *) opaque_data;
-	
+
 	pcf_default_metrics_t pcf_metrics;
 	memset(&pcf_metrics, 0, sizeof(pcf_default_metrics_t));
@@ -351,5 +351,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	gm->left_side_bearing = pcf_metrics.left_side_bearing;
 	gm->width = pcf_metrics.character_width;
@@ -359,5 +359,5 @@
 	    pcf_metrics.character_ascent;
 	gm->ascender = pcf_metrics.character_ascent;
-	
+
 	return EOK;
 }
@@ -366,5 +366,5 @@
 {
 	pcf_data_t *data = (pcf_data_t *) opaque_data;
-	
+
 	fclose(data->file);
 	free(data);
@@ -383,20 +383,20 @@
 	if (rc != 0)
 		return errno;
-	
+
 	aoff64_t file_size = ftell(data->file);
-	
+
 	rc = fseek(data->file, 0, SEEK_SET);
 	if (rc != 0)
 		return errno;
-	
+
 	char header[4];
 	size_t records_read = fread(header, sizeof(char), 4, data->file);
 	if (records_read != 4)
 		return EINVAL;
-	
+
 	if (header[0] != 1 || header[1] != 'f' || header[2] != 'c' ||
 	    header[3] != 'p')
 		return EINVAL;
-	
+
 	uint32_t table_count;
 	records_read = fread(&table_count, sizeof(uint32_t), 1,
@@ -404,12 +404,12 @@
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	table_count = uint32_t_le2host(table_count);
-	
+
 	bool found_bitmap_table = false;
 	bool found_metrics_table = false;
 	bool found_encodings_table = false;
 	bool found_accelerators_table = false;
-	
+
 	for (uint32_t index = 0; index < table_count; index++) {
 		pcf_toc_entry_t toc_entry;
@@ -420,12 +420,12 @@
 		toc_entry.size = uint32_t_le2host(toc_entry.size);
 		toc_entry.offset = uint32_t_le2host(toc_entry.offset);
-		
+
 		if (toc_entry.offset >= file_size)
 			continue;
-		
+
 		aoff64_t end = ((aoff64_t) toc_entry.offset) + ((aoff64_t) toc_entry.size);
 		if (end > file_size)
 			continue;
-		
+
 		if (toc_entry.type == PCF_TABLE_BITMAPS) {
 			if (found_bitmap_table)
@@ -453,9 +453,9 @@
 		}
 	}
-	
+
 	if (!found_bitmap_table || !found_metrics_table ||
 	    !found_encodings_table || !found_accelerators_table)
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -467,13 +467,13 @@
 	if (rc != 0)
 		return errno;
-	
+
 	size_t records_read = fread(&format, sizeof(uint32_t), 1, data->file);
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	format = uint32_t_le2host(format);
 	if (format != table->format)
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -484,8 +484,8 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	if ((data->bitmap_table.format & PCF_FORMAT_MASK) != PCF_FORMAT_DEFAULT)
 		return EINVAL;
-	
+
 	uint32_t glyph_count = 0;
 	size_t records_read = fread(&glyph_count, sizeof(uint32_t), 1,
@@ -504,5 +504,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	size_t records_read;
 	uint32_t metrics_count;
@@ -525,8 +525,8 @@
 		    data->metrics_table.format);
 	}
-	
+
 	if (metrics_count != data->glyph_count)
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -537,5 +537,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	pcf_encoding_t encoding;
 	size_t records_read = fread(&encoding, sizeof(pcf_encoding_t), 1,
@@ -543,5 +543,5 @@
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	encoding.min_byte1 = uint16_t_pcf2host(encoding.min_byte1,
 	    data->encodings_table.format);
@@ -554,5 +554,5 @@
 	encoding.default_char = uint16_t_pcf2host(encoding.default_char,
 	    data->encodings_table.format);
-	
+
 	data->encoding = encoding;
 	return EOK;
@@ -564,5 +564,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	pcf_accelerators_t accelerators;
 	size_t records_read = fread(&accelerators, sizeof(pcf_accelerators_t),
@@ -570,5 +570,5 @@
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	data->font_metrics.ascender = int32_t_pcf2host(accelerators.font_ascent,
 	    data->accelerators_table.format);
@@ -576,5 +576,5 @@
 	    data->accelerators_table.format);
 	data->font_metrics.leading = 0;
-	
+
 	return EOK;
 }
@@ -586,34 +586,34 @@
 	if (data == NULL)
 		return ENOMEM;
-	
+
 	data->file = fopen(filename, "rb");
 	if (data->file == NULL)
 		goto read_error;
-	
+
 	rc = pcf_read_toc(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = pcf_read_bitmap_table_header(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = pcf_read_metrics_table_header(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = pcf_read_encodings_table_header(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = pcf_read_accelerators_table(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = bitmap_font_create(&fd_pcf, data, data->glyph_count,
 	    data->font_metrics, points, font);
 	if (rc != EOK)
 		goto error;
-	
+
 	return EOK;
 read_error:
Index: uspace/lib/draw/gfx/font-8x16.c
===================================================================
--- uspace/lib/draw/gfx/font-8x16.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/gfx/font-8x16.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,323 +51,323 @@
 	if (found)
 		*found = true;
-	
+
 	if (ch == 0x0000)
 		return 0;
-	
+
 	if ((ch >= 0x0020) && (ch <= 0x007f))
 		return (ch - 32);
-	
+
 	if ((ch >= 0x00a0) && (ch <= 0x021f))
 		return (ch - 64);
-	
+
 	if ((ch >= 0x0222) && (ch <= 0x0233))
 		return (ch - 66);
-	
+
 	if ((ch >= 0x0250) && (ch <= 0x02ad))
 		return (ch - 94);
-	
+
 	if ((ch >= 0x02b0) && (ch <= 0x02cf))
 		return (ch - 96);
-	
+
 	if ((ch >= 0x02d8) && (ch <= 0x02dd))
 		return (ch - 104);
-	
+
 	if (ch == 0x02ee)
 		return 630;
-	
+
 	if ((ch >= 0x0300) && (ch <= 0x0301))
 		return (ch - 137);
-	
+
 	if (ch == 0x0303)
 		return 633;
-	
+
 	if (ch == 0x0309)
 		return 634;
-	
+
 	if ((ch >= 0x0312) && (ch <= 0x0314))
 		return (ch - 151);
-	
+
 	if (ch == 0x0323)
 		return 638;
-	
+
 	if ((ch >= 0x0340) && (ch <= 0x0341))
 		return (ch - 193);
-	
+
 	if ((ch >= 0x0374) && (ch <= 0x0375))
 		return (ch - 243);
-	
+
 	if (ch == 0x037a)
 		return 643;
-	
+
 	if (ch == 0x037e)
 		return 644;
-	
+
 	if ((ch >= 0x0384) && (ch <= 0x038a))
 		return (ch - 255);
-	
+
 	if (ch == 0x038c)
 		return 652;
-	
+
 	if ((ch >= 0x038e) && (ch <= 0x03a1))
 		return (ch - 257);
-	
+
 	if ((ch >= 0x03a3) && (ch <= 0x03ce))
 		return (ch - 258);
-	
+
 	if ((ch >= 0x03d0) && (ch <= 0x03d7))
 		return (ch - 259);
-	
+
 	if ((ch >= 0x03da) && (ch <= 0x03f3))
 		return (ch - 261);
-	
+
 	if ((ch >= 0x0400) && (ch <= 0x0486))
 		return (ch - 273);
-	
+
 	if ((ch >= 0x0488) && (ch <= 0x04ce))
 		return (ch - 274);
-	
+
 	if ((ch >= 0x04d0) && (ch <= 0x04f5))
 		return (ch - 275);
-	
+
 	if ((ch >= 0x04f8) && (ch <= 0x04f9))
 		return (ch - 277);
-	
+
 	if ((ch >= 0x0500) && (ch <= 0x050f))
 		return (ch - 283);
-	
+
 	if ((ch >= 0x0530) && (ch <= 0x0556))
 		return (ch - 315);
-	
+
 	if ((ch >= 0x0559) && (ch <= 0x055f))
 		return (ch - 317);
-	
+
 	if ((ch >= 0x0561) && (ch <= 0x0587))
 		return (ch - 318);
-	
+
 	if ((ch >= 0x0589) && (ch <= 0x058a))
 		return (ch - 319);
-	
+
 	if ((ch >= 0x0591) && (ch <= 0x05a1))
 		return (ch - 325);
-	
+
 	if ((ch >= 0x05a3) && (ch <= 0x05b9))
 		return (ch - 326);
-	
+
 	if ((ch >= 0x05bb) && (ch <= 0x05c4))
 		return (ch - 327);
-	
+
 	if ((ch >= 0x05d0) && (ch <= 0x05ea))
 		return (ch - 338);
-	
+
 	if ((ch >= 0x05f0) && (ch <= 0x05f4))
 		return (ch - 343);
-	
+
 	if (ch == 0x060c)
 		return 1182;
-	
+
 	if (ch == 0x061b)
 		return 1183;
-	
+
 	if (ch == 0x061f)
 		return 1184;
-	
+
 	if ((ch >= 0x0621) && (ch <= 0x063a))
 		return (ch - 384);
-	
+
 	if ((ch >= 0x0640) && (ch <= 0x0655))
 		return (ch - 389);
-	
+
 	if ((ch >= 0x0660) && (ch <= 0x066d))
 		return (ch - 399);
-	
+
 	if ((ch >= 0x0670) && (ch <= 0x06ed))
 		return (ch - 401);
-	
+
 	if ((ch >= 0x06f0) && (ch <= 0x06fe))
 		return (ch - 403);
-	
+
 	if (ch == 0x10d3)
 		return 1388;
-	
+
 	if (ch == 0x10d7)
 		return 1389;
-	
+
 	if (ch == 0x10da)
 		return 1390;
-	
+
 	if (ch == 0x10dd)
 		return 1391;
-	
+
 	if (ch == 0x10e6)
 		return 1392;
-	
+
 	if ((ch >= 0x1e00) && (ch <= 0x1e9b))
 		return (ch - 6287);
-	
+
 	if ((ch >= 0x1ea0) && (ch <= 0x1ef9))
 		return (ch - 6291);
-	
+
 	if ((ch >= 0x1f00) && (ch <= 0x1f07))
 		return (ch - 6297);
-	
+
 	if ((ch >= 0x2000) && (ch <= 0x2027))
 		return (ch - 6545);
-	
+
 	if ((ch >= 0x2030) && (ch <= 0x2046))
 		return (ch - 6553);
-	
+
 	if ((ch >= 0x2048) && (ch <= 0x204d))
 		return (ch - 6554);
-	
+
 	if (ch == 0x2070)
 		return 1716;
-	
+
 	if ((ch >= 0x2074) && (ch <= 0x208f))
 		return (ch - 6591);
-	
+
 	if ((ch >= 0x20a0) && (ch <= 0x20af))
 		return (ch - 6607);
-	
+
 	if ((ch >= 0x2100) && (ch <= 0x213a))
 		return (ch - 6687);
-	
+
 	if ((ch >= 0x2153) && (ch <= 0x2183))
 		return (ch - 6711);
-	
+
 	if ((ch >= 0x2190) && (ch <= 0x21f3))
 		return (ch - 6723);
-	
+
 	if ((ch >= 0x2200) && (ch <= 0x22f1))
 		return (ch - 6735);
-	
+
 	if (ch == 0x2300)
 		return 2211;
-	
+
 	if (ch == 0x2302)
 		return 2212;
-	
+
 	if ((ch >= 0x2308) && (ch <= 0x230b))
 		return (ch - 6755);
-	
+
 	if (ch == 0x2310)
 		return 2217;
-	
+
 	if (ch == 0x2318)
 		return 2218;
-	
+
 	if ((ch >= 0x231a) && (ch <= 0x231b))
 		return (ch - 6767);
-	
+
 	if ((ch >= 0x2320) && (ch <= 0x2321))
 		return (ch - 6771);
-	
+
 	if ((ch >= 0x2329) && (ch <= 0x232a))
 		return (ch - 6778);
-	
+
 	if ((ch >= 0x239b) && (ch <= 0x23bd))
 		return (ch - 6890);
-	
+
 	if (ch == 0x23ce)
 		return 2260;
-	
+
 	if ((ch >= 0x2409) && (ch <= 0x240d))
 		return (ch - 6964);
-	
+
 	if ((ch >= 0x2423) && (ch <= 0x2424))
 		return (ch - 6985);
-	
+
 	if (ch == 0x2426)
 		return 2268;
-	
+
 	if ((ch >= 0x2500) && (ch <= 0x2595))
 		return (ch - 7203);
-	
+
 	if ((ch >= 0x25a0) && (ch <= 0x25f7))
 		return (ch - 7213);
-	
+
 	if ((ch >= 0x2600) && (ch <= 0x2602))
 		return (ch - 7221);
-	
+
 	if ((ch >= 0x2605) && (ch <= 0x260d))
 		return (ch - 7223);
-	
+
 	if ((ch >= 0x2610) && (ch <= 0x2613))
 		return (ch - 7225);
-	
+
 	if (ch == 0x2620)
 		return 2523;
-	
+
 	if (ch == 0x2622)
 		return 2524;
-	
+
 	if (ch == 0x2626)
 		return 2525;
-	
+
 	if ((ch >= 0x2628) && (ch <= 0x262b))
 		return (ch - 7242);
-	
+
 	if ((ch >= 0x262e) && (ch <= 0x2637))
 		return (ch - 7244);
-	
+
 	if ((ch >= 0x2639) && (ch <= 0x2653))
 		return (ch - 7245);
-	
+
 	if ((ch >= 0x2660) && (ch <= 0x2667))
 		return (ch - 7257);
-	
+
 	if ((ch >= 0x2669) && (ch <= 0x266f))
 		return (ch - 7258);
-	
+
 	if ((ch >= 0xfb00) && (ch <= 0xfb05))
 		return (ch - 61674);
-	
+
 	if ((ch >= 0xfb50) && (ch <= 0xfbb1))
 		return (ch - 61748);
-	
+
 	if ((ch >= 0xfbd3) && (ch <= 0xfbe9))
 		return (ch - 61781);
-	
+
 	if ((ch >= 0xfbfc) && (ch <= 0xfbff))
 		return (ch - 61799);
-	
+
 	if ((ch >= 0xfc5b) && (ch <= 0xfc63))
 		return (ch - 61890);
-	
+
 	if (ch == 0xfc90)
 		return 2722;
-	
+
 	if ((ch >= 0xfcf2) && (ch <= 0xfcf4))
 		return (ch - 62031);
-	
+
 	if ((ch >= 0xfd3c) && (ch <= 0xfd3f))
 		return (ch - 62102);
-	
+
 	if (ch == 0xfdf2)
 		return 2730;
-	
+
 	if ((ch >= 0xfe50) && (ch <= 0xfe52))
 		return (ch - 62373);
-	
+
 	if ((ch >= 0xfe54) && (ch <= 0xfe66))
 		return (ch - 62374);
-	
+
 	if ((ch >= 0xfe68) && (ch <= 0xfe6b))
 		return (ch - 62375);
-	
+
 	if ((ch >= 0xfe70) && (ch <= 0xfe72))
 		return (ch - 62379);
-	
+
 	if (ch == 0xfe74)
 		return 2760;
-	
+
 	if ((ch >= 0xfe76) && (ch <= 0xfefc))
 		return (ch - 62381);
-	
+
 	if (ch == 0xfeff)
 		return 2896;
-	
+
 	if (found)
 		*found = false;
-	
+
 	return 2898;
 }
@@ -3272,5 +3272,5 @@
 	{0xf1, 0x35, 0x55, 0x8a, 0xe0, 0x06, 0x95, 0xd6, 0xb5, 0x97, 0x00, 0xee, 0x8a, 0xee, 0x28, 0xe8},
 	{0x00, 0x38, 0x7c, 0x7c, 0xc6, 0x92, 0xf2, 0xe6, 0xfe, 0xe6, 0x7c, 0x7c, 0x38, 0x00, 0x00, 0x00},
-	
+
 	/* Special glyph for unknown character */
 	{0x00, 0x00, 0x7c, 0xc6, 0xc6, 0x0c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00}
Index: uspace/lib/draw/path.c
===================================================================
--- uspace/lib/draw/path.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/path.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -83,5 +83,5 @@
 		step->to_y = path->cur_y;
 		list_append(&step->link, &path->list);
-		
+
 	}
 }
Index: uspace/lib/draw/source.c
===================================================================
--- uspace/lib/draw/source.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/source.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
 	transform_identity(&source->transform);
 	source->filter = filter_nearest;
-	
+
 	source->color = PIXEL(0, 0, 0, 0);
 	source->texture = NULL;
Index: uspace/lib/draw/surface.c
===================================================================
--- uspace/lib/draw/surface.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/draw/surface.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 		return NULL;
 	}
-	
+
 	size_t pixbuf_size = width * height * sizeof(pixel_t);
 
@@ -124,5 +124,5 @@
 	assert(width);
 	assert(height);
-	
+
 	*width = surface->pixmap.width;
 	*height = surface->pixmap.height;
Index: uspace/lib/drv/generic/driver.c
===================================================================
--- uspace/lib/drv/generic/driver.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/driver.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -97,10 +97,10 @@
 {
 	assert(fibril_mutex_is_locked(&devices_mutex));
-	
+
 	list_foreach(devices, link, ddf_dev_t, dev) {
 		if (dev->handle == handle)
 			return dev;
 	}
-	
+
 	return NULL;
 }
@@ -109,10 +109,10 @@
 {
 	assert(fibril_mutex_is_locked(&functions_mutex));
-	
+
 	list_foreach(functions, link, ddf_fun_t, fun) {
 		if (fun->handle == handle)
 			return fun;
 	}
-	
+
 	return NULL;
 }
@@ -122,5 +122,5 @@
 	devman_handle_t dev_handle = IPC_GET_ARG1(*icall);
 	devman_handle_t parent_fun_handle = IPC_GET_ARG2(*icall);
-	
+
 	char *dev_name = NULL;
 	errno_t rc = async_data_write_accept((void **) &dev_name, true, 0, 0, 0, 0);
@@ -129,5 +129,5 @@
 		return;
 	}
-	
+
 	fibril_rwlock_read_lock(&stopping_lock);
 
@@ -137,5 +137,5 @@
 		return;
 	}
-	
+
 	ddf_dev_t *dev = create_device();
 	if (!dev) {
@@ -145,10 +145,10 @@
 		return;
 	}
-	
+
 	/* Add one reference that will be dropped by driver_dev_remove() */
 	dev_add_ref(dev);
 	dev->handle = dev_handle;
 	dev->name = dev_name;
-	
+
 	/*
 	 * Currently not used, parent fun handle is stored in context
@@ -156,7 +156,7 @@
 	 */
 	(void) parent_fun_handle;
-	
+
 	errno_t res = driver->driver_ops->dev_add(dev);
-	
+
 	if (res != EOK) {
 		fibril_rwlock_read_unlock(&stopping_lock);
@@ -165,10 +165,10 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&devices_mutex);
 	list_append(&dev->link, &devices);
 	fibril_mutex_unlock(&devices_mutex);
 	fibril_rwlock_read_unlock(&stopping_lock);
-	
+
 	async_answer_0(iid, res);
 }
@@ -177,5 +177,5 @@
 {
 	devman_handle_t devh = IPC_GET_ARG1(*icall);
-	
+
 	fibril_mutex_lock(&devices_mutex);
 	ddf_dev_t *dev = driver_get_device(devh);
@@ -183,17 +183,17 @@
 		dev_add_ref(dev);
 	fibril_mutex_unlock(&devices_mutex);
-	
+
 	if (dev == NULL) {
 		async_answer_0(iid, ENOENT);
 		return;
 	}
-	
+
 	errno_t rc;
-	
+
 	if (driver->driver_ops->dev_remove != NULL)
 		rc = driver->driver_ops->dev_remove(dev);
 	else
 		rc = ENOTSUP;
-	
+
 	if (rc == EOK) {
 		fibril_mutex_lock(&devices_mutex);
@@ -202,5 +202,5 @@
 		dev_del_ref(dev);
 	}
-	
+
 	dev_del_ref(dev);
 	async_answer_0(iid, rc);
@@ -210,5 +210,5 @@
 {
 	devman_handle_t devh = IPC_GET_ARG1(*icall);
-	
+
 	fibril_mutex_lock(&devices_mutex);
 	ddf_dev_t *dev = driver_get_device(devh);
@@ -216,17 +216,17 @@
 		dev_add_ref(dev);
 	fibril_mutex_unlock(&devices_mutex);
-	
+
 	if (dev == NULL) {
 		async_answer_0(iid, ENOENT);
 		return;
 	}
-	
+
 	errno_t rc;
-	
+
 	if (driver->driver_ops->dev_gone != NULL)
 		rc = driver->driver_ops->dev_gone(dev);
 	else
 		rc = ENOTSUP;
-	
+
 	if (rc == EOK) {
 		fibril_mutex_lock(&devices_mutex);
@@ -235,5 +235,5 @@
 		dev_del_ref(dev);
 	}
-	
+
 	dev_del_ref(dev);
 	async_answer_0(iid, rc);
@@ -243,5 +243,5 @@
 {
 	devman_handle_t funh = IPC_GET_ARG1(*icall);
-	
+
 	/*
 	 * Look the function up. Bump reference count so that
@@ -250,26 +250,26 @@
 	 */
 	fibril_mutex_lock(&functions_mutex);
-	
+
 	ddf_fun_t *fun = driver_get_function(funh);
 	if (fun != NULL)
 		fun_add_ref(fun);
-	
+
 	fibril_mutex_unlock(&functions_mutex);
-	
+
 	if (fun == NULL) {
 		async_answer_0(iid, ENOENT);
 		return;
 	}
-	
+
 	/* Call driver entry point */
 	errno_t rc;
-	
+
 	if (driver->driver_ops->fun_online != NULL)
 		rc = driver->driver_ops->fun_online(fun);
 	else
 		rc = ENOTSUP;
-	
+
 	fun_del_ref(fun);
-	
+
 	async_answer_0(iid, rc);
 }
@@ -278,5 +278,5 @@
 {
 	devman_handle_t funh = IPC_GET_ARG1(*icall);
-	
+
 	/*
 	 * Look the function up. Bump reference count so that
@@ -285,24 +285,24 @@
 	 */
 	fibril_mutex_lock(&functions_mutex);
-	
+
 	ddf_fun_t *fun = driver_get_function(funh);
 	if (fun != NULL)
 		fun_add_ref(fun);
-	
+
 	fibril_mutex_unlock(&functions_mutex);
-	
+
 	if (fun == NULL) {
 		async_answer_0(iid, ENOENT);
 		return;
 	}
-	
+
 	/* Call driver entry point */
 	errno_t rc;
-	
+
 	if (driver->driver_ops->fun_offline != NULL)
 		rc = driver->driver_ops->fun_offline(fun);
 	else
 		rc = ENOTSUP;
-	
+
 	async_answer_0(iid, rc);
 }
@@ -342,12 +342,12 @@
 	/* Accept connection */
 	async_answer_0(iid, EOK);
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case DRIVER_DEV_ADD:
@@ -394,5 +394,5 @@
 		fun_add_ref(fun);
 	fibril_mutex_unlock(&functions_mutex);
-	
+
 	if (fun == NULL) {
 		printf("%s: driver_connection_gen error - no function with handle"
@@ -401,5 +401,5 @@
 		return;
 	}
-	
+
 	if (fun->conn_handler != NULL) {
 		/* Driver has a custom connection handler. */
@@ -408,15 +408,15 @@
 		return;
 	}
-	
+
 	/*
 	 * TODO - if the client is not a driver, check whether it is allowed to
 	 * use the device.
 	 */
-	
+
 	errno_t ret = EOK;
 	/* Open device function */
 	if (fun->ops != NULL && fun->ops->open != NULL)
 		ret = (*fun->ops->open)(fun);
-	
+
 	async_answer_0(iid, ret);
 	if (ret != EOK) {
@@ -424,5 +424,5 @@
 		return;
 	}
-	
+
 	while (true) {
 		ipc_callid_t callid;
@@ -430,5 +430,5 @@
 		callid = async_get_call(&call);
 		sysarg_t method = IPC_GET_IMETHOD(call);
-		
+
 		if (!method) {
 			/* Close device function */
@@ -439,9 +439,9 @@
 			return;
 		}
-		
+
 		/* Convert ipc interface id to interface index */
-		
+
 		int iface_idx = DEV_IFACE_IDX(method);
-		
+
 		if (!is_valid_iface_idx(iface_idx)) {
 			remote_handler_t *default_handler =
@@ -451,5 +451,5 @@
 				continue;
 			}
-			
+
 			/*
 			 * Function has no such interface and
@@ -462,7 +462,7 @@
 			continue;
 		}
-		
+
 		/* Calling one of the function's interfaces */
-		
+
 		/* Get the interface ops structure. */
 		void *ops = function_get_ops(fun, iface_idx);
@@ -474,5 +474,5 @@
 			continue;
 		}
-		
+
 		/*
 		 * Get the corresponding interface for remote request
@@ -481,5 +481,5 @@
 		const remote_iface_t *rem_iface = get_remote_iface(iface_idx);
 		assert(rem_iface != NULL);
-		
+
 		/* get the method of the remote interface */
 		sysarg_t iface_method_idx = IPC_GET_ARG1(call);
@@ -493,5 +493,5 @@
 			continue;
 		}
-		
+
 		/*
 		 * Call the remote interface's method, which will
@@ -624,9 +624,9 @@
 {
 	assert(dev->driver_data == NULL);
-	
+
 	void *data = calloc(1, size);
 	if (data == NULL)
 		return NULL;
-	
+
 	dev->driver_data = data;
 	return data;
@@ -732,12 +732,12 @@
 	if (fun == NULL)
 		return NULL;
-	
+
 	/* Add one reference that will be dropped by ddf_fun_destroy() */
 	fun->dev = dev;
 	fun_add_ref(fun);
-	
+
 	fun->bound = false;
 	fun->ftype = ftype;
-	
+
 	if (name != NULL) {
 		fun->name = str_dup(name);
@@ -747,5 +747,5 @@
 		}
 	}
-	
+
 	return fun;
 }
@@ -756,9 +756,9 @@
 	assert(fun->bound == false);
 	assert(fun->driver_data == NULL);
-	
+
 	void *data = calloc(1, size);
 	if (data == NULL)
 		return NULL;
-	
+
 	fun->driver_data = data;
 	return data;
@@ -792,5 +792,5 @@
 {
 	assert(fun->bound == false);
-	
+
 	/*
 	 * Drop the reference added by ddf_fun_create(). This will deallocate
@@ -807,5 +807,5 @@
 	if (fun->ops == NULL)
 		return NULL;
-	
+
 	return fun->ops->interfaces[idx];
 }
@@ -830,5 +830,5 @@
 	assert(fun->name != NULL);
 	assert(fun->dev != NULL);
-	
+
 	add_to_functions_list(fun);
 	errno_t res = devman_add_function(fun->name, fun->ftype, &fun->match_ids,
@@ -838,5 +838,5 @@
 		return res;
 	}
-	
+
 	fun->bound = true;
 	return res;
@@ -856,11 +856,11 @@
 {
 	assert(fun->bound == true);
-	
+
 	errno_t res = devman_remove_function(fun->handle);
 	if (res != EOK)
 		return res;
-	
+
 	remove_from_functions_list(fun);
-	
+
 	fun->bound = false;
 	return EOK;
@@ -877,9 +877,9 @@
 {
 	assert(fun->bound == true);
-	
+
 	errno_t res = devman_drv_fun_online(fun->handle);
 	if (res != EOK)
 		return res;
-	
+
 	return EOK;
 }
@@ -895,9 +895,9 @@
 {
 	assert(fun->bound == true);
-	
+
 	errno_t res = devman_drv_fun_offline(fun->handle);
 	if (res != EOK)
 		return res;
-	
+
 	return EOK;
 }
@@ -921,12 +921,12 @@
 	assert(fun->bound == false);
 	assert(fun->ftype == fun_inner);
-	
+
 	match_id_t *match_id = create_match_id();
 	if (match_id == NULL)
 		return ENOMEM;
-	
+
 	match_id->id = str_dup(match_id_str);
 	match_id->score = match_score;
-	
+
 	add_match_id(&fun->match_ids, match_id);
 	return EOK;
@@ -967,5 +967,5 @@
 	assert(fun->bound == true);
 	assert(fun->ftype == fun_exposed);
-	
+
 	return devman_add_device_to_category(fun->handle, cat_name);
 }
@@ -978,5 +978,5 @@
 	 */
 	driver = drv;
-	
+
 	/*
 	 * Register driver with device manager using generic handler for
@@ -990,5 +990,5 @@
 		return rc;
 	}
-	
+
 	rc = async_create_port(INTERFACE_DDF_DEVMAN, driver_connection_devman,
 	    NULL, &port);
@@ -997,7 +997,7 @@
 		return rc;
 	}
-	
+
 	async_set_fallback_port_handler(driver_connection_client, NULL);
-	
+
 	rc = devman_driver_register(driver->name);
 	if (rc != EOK) {
@@ -1005,8 +1005,8 @@
 		    "(%s).\n", (rc == EEXIST) ? "driver already started" :
 		    str_error(rc));
-		
+
 		return rc;
 	}
-	
+
 	/* Return success from the task since server has started. */
 	rc = task_retval(0);
@@ -1015,7 +1015,7 @@
 		return rc;
 	}
-	
+
 	async_manager();
-	
+
 	/* Never reached. */
 	return EOK;
Index: uspace/lib/drv/generic/log.c
===================================================================
--- uspace/lib/drv/generic/log.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/log.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 {
 	va_list args;
-	
+
 	va_start(args, fmt);
 	log_msgv(LOG_DEFAULT, level, fmt, args);
Index: uspace/lib/drv/generic/private/driver.h
===================================================================
--- uspace/lib/drv/generic/private/driver.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/private/driver.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,17 +49,17 @@
 	 */
 	devman_handle_t handle;
-	
+
 	/** Reference count */
 	atomic_t refcnt;
-	
+
 	/** Session with the parent device driver */
 	async_sess_t *parent_sess;
-	
+
 	/** Device name */
 	char *name;
-	
+
 	/** Driver-specific data associated with this device */
 	void *driver_data;
-	
+
 	/** Link in the list of devices handled by the driver */
 	link_t link;
@@ -70,32 +70,32 @@
 	/** True if bound to the device manager */
 	bool bound;
-	
+
 	/** Function indentifier (asigned by device manager) */
 	devman_handle_t handle;
-	
+
 	/** Reference count */
 	atomic_t refcnt;
-	
+
 	/** Device which this function belogs to */
 	struct ddf_dev *dev;
-	
+
 	/** Function type */
 	fun_type_t ftype;
-	
+
 	/** Function name */
 	char *name;
-	
+
 	/** List of device ids for driver matching */
 	match_id_list_t match_ids;
-	
+
 	/** Driver-specific data associated with this function */
 	void *driver_data;
-	
+
 	/** Implementation of operations provided by this function */
 	const ddf_dev_ops_t *ops;
-	
+
 	/** Connection handler or @c NULL to use the DDF default handler. */
 	async_port_handler_t conn_handler;
-	
+
 	/** Link in the list of functions handled by the driver */
 	link_t link;
Index: uspace/lib/drv/generic/remote_ahci.c
===================================================================
--- uspace/lib/drv/generic/remote_ahci.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_ahci.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,17 +62,17 @@
 {
 	// FIXME: Use a better way than substring match
-	
+
 	*name = NULL;
-	
+
 	char devn[MAX_NAME_LENGTH];
 	errno_t rc = devman_fun_get_name(funh, devn, MAX_NAME_LENGTH);
 	if (rc != EOK)
 		return NULL;
-	
+
 	size_t devn_size = str_size(devn);
-	
+
 	if ((devn_size > 5) && (str_lcmp(devn, "ahci_", 5) == 0)) {
 		async_sess_t *sess = devman_device_connect(funh, IPC_FLAG_BLOCKING);
-		
+
 		if (sess) {
 			*name = str_dup(devn);
@@ -80,5 +80,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -90,13 +90,13 @@
 	if (!exch)
 		return EINVAL;
-	
+
 	aid_t req = async_send_2(exch, DEV_IFACE_ID(AHCI_DEV_IFACE),
 	    IPC_M_AHCI_GET_SATA_DEVICE_NAME, sata_dev_name_length, NULL);
-	
+
 	async_data_read_start(exch, sata_dev_name, sata_dev_name_length);
-	
+
 	errno_t rc;
 	async_wait_for(req, &rc);
-	
+
 	return rc;
 }
@@ -107,17 +107,17 @@
 	if (!exch)
 		return EINVAL;
-	
+
 	sysarg_t blocks_hi;
 	sysarg_t blocks_lo;
 	errno_t rc = async_req_1_2(exch, DEV_IFACE_ID(AHCI_DEV_IFACE),
 	    IPC_M_AHCI_GET_NUM_BLOCKS, &blocks_hi, &blocks_lo);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc == EOK) {
 		*blocks = (((uint64_t) blocks_hi) << 32)
 		    | (((uint64_t) blocks_lo) & 0xffffffff);
 	}
-	
+
 	return rc;
 }
@@ -128,14 +128,14 @@
 	if (!exch)
 		return EINVAL;
-	
+
 	sysarg_t bs;
 	errno_t rc = async_req_1_1(exch, DEV_IFACE_ID(AHCI_DEV_IFACE),
 	    IPC_M_AHCI_GET_BLOCK_SIZE, &bs);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc == EOK)
 		*blocks_size = (size_t) bs;
-	
+
 	return rc;
 }
@@ -147,16 +147,16 @@
 	if (!exch)
 		return EINVAL;
-	
+
 	aid_t req;
 	req = async_send_4(exch, DEV_IFACE_ID(AHCI_DEV_IFACE),
 	    IPC_M_AHCI_READ_BLOCKS, HI(blocknum),  LO(blocknum), count, NULL);
-	
+
 	async_share_out_start(exch, buf, AS_AREA_READ | AS_AREA_WRITE);
-	
+
 	async_exchange_end(exch);
-	
+
 	errno_t rc;
 	async_wait_for(req, &rc);
-	
+
 	return rc;
 }
@@ -168,15 +168,15 @@
 	if (!exch)
 		return EINVAL;
-	
+
 	aid_t req = async_send_4(exch, DEV_IFACE_ID(AHCI_DEV_IFACE),
 	    IPC_M_AHCI_WRITE_BLOCKS, HI(blocknum),  LO(blocknum), count, NULL);
-	
+
 	async_share_out_start(exch, buf, AS_AREA_READ | AS_AREA_WRITE);
-	
+
 	async_exchange_end(exch);
-	
+
 	errno_t rc;
 	async_wait_for(req, &rc);
-	
+
 	return rc;
 }
@@ -213,13 +213,13 @@
 {
 	const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface;
-	
+
 	if (ahci_iface->get_sata_device_name == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	const size_t sata_dev_name_length =
 	    (size_t) DEV_IPC_GET_ARG1(*call);
-	
+
 	char* sata_dev_name = malloc(sata_dev_name_length);
 	if (sata_dev_name == NULL) {
@@ -227,8 +227,8 @@
 		return;
 	}
-	
+
 	const errno_t ret = ahci_iface->get_sata_device_name(fun,
 	    sata_dev_name_length, sata_dev_name);
-	
+
 	size_t real_size;
 	ipc_callid_t cid;
@@ -236,5 +236,5 @@
 	    (real_size == sata_dev_name_length))
 		async_data_read_finalize(cid, sata_dev_name, sata_dev_name_length);
-	
+
 	free(sata_dev_name);
 	async_answer_0(callid, ret);
@@ -245,13 +245,13 @@
 {
 	const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface;
-	
+
 	if (ahci_iface->get_num_blocks == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	uint64_t blocks;
 	const errno_t ret = ahci_iface->get_num_blocks(fun, &blocks);
-	
+
 	if (ret != EOK)
 		async_answer_0(callid, ret);
@@ -264,13 +264,13 @@
 {
 	const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface;
-	
+
 	if (ahci_iface->get_block_size == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	size_t blocks;
 	const errno_t ret = ahci_iface->get_block_size(fun, &blocks);
-	
+
 	if (ret != EOK)
 		async_answer_0(callid, ret);
@@ -283,26 +283,26 @@
 {
 	const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface;
-	
+
 	if (ahci_iface->read_blocks == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	size_t maxblock_size;
 	unsigned int flags;
-	
+
 	ipc_callid_t cid;
 	async_share_out_receive(&cid, &maxblock_size, &flags);
-	
+
 	void *buf;
 	async_share_out_finalize(cid, &buf);
-	
+
 	const uint64_t blocknum =
 	    (((uint64_t) (DEV_IPC_GET_ARG1(*call))) << 32) |
 	    (((uint64_t) (DEV_IPC_GET_ARG2(*call))) & 0xffffffff);
 	const size_t cnt = (size_t) DEV_IPC_GET_ARG3(*call);
-	
+
 	const errno_t ret = ahci_iface->read_blocks(fun, blocknum, cnt, buf);
-	
+
 	async_answer_0(callid, ret);
 }
@@ -312,26 +312,26 @@
 {
 	const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface;
-	
+
 	if (ahci_iface->read_blocks == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	size_t maxblock_size;
 	unsigned int flags;
-	
+
 	ipc_callid_t cid;
 	async_share_out_receive(&cid, &maxblock_size, &flags);
-	
+
 	void *buf;
 	async_share_out_finalize(cid, &buf);
-	
+
 	const uint64_t blocknum =
 	    (((uint64_t)(DEV_IPC_GET_ARG1(*call))) << 32) |
 	    (((uint64_t)(DEV_IPC_GET_ARG2(*call))) & 0xffffffff);
 	const size_t cnt = (size_t) DEV_IPC_GET_ARG3(*call);
-	
+
 	const errno_t ret = ahci_iface->write_blocks(fun, blocknum, cnt, buf);
-	
+
 	async_answer_0(callid, ret);
 }
Index: uspace/lib/drv/generic/remote_audio_pcm.c
===================================================================
--- uspace/lib/drv/generic/remote_audio_pcm.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_audio_pcm.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -318,5 +318,5 @@
 
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	errno_t ret = async_req_1_0(exch, DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE),
 	    IPC_M_AUDIO_PCM_REGISTER_EVENTS);
@@ -326,5 +326,5 @@
 		    event_callback, arg, &port);
 	}
-	
+
 	async_exchange_end(exch);
 	return ret;
Index: uspace/lib/drv/generic/remote_hw_res.c
===================================================================
--- uspace/lib/drv/generic/remote_hw_res.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_hw_res.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,10 +72,10 @@
 {
 	hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops;
-	
+
 	if (hw_res_ops->enable_interrupt == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	const int irq = DEV_IPC_GET_ARG1(*call);
 	const errno_t ret = hw_res_ops->enable_interrupt(fun, irq);
@@ -87,10 +87,10 @@
 {
 	hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops;
-	
+
 	if (hw_res_ops->disable_interrupt == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	const int irq = DEV_IPC_GET_ARG1(*call);
 	const errno_t ret = hw_res_ops->disable_interrupt(fun, irq);
@@ -102,10 +102,10 @@
 {
 	hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops;
-	
+
 	if (hw_res_ops->clear_interrupt == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	const int irq = DEV_IPC_GET_ARG1(*call);
 	const errno_t ret = hw_res_ops->enable_interrupt(fun, irq);
@@ -122,5 +122,5 @@
 		return;
 	}
-	
+
 	hw_resource_list_t *hw_resources = hw_res_ops->get_resource_list(fun);
 	if (hw_resources == NULL){
@@ -128,5 +128,5 @@
 		return;
 	}
-	
+
 	async_answer_1(callid, EOK, hw_resources->count);
 
Index: uspace/lib/drv/generic/remote_ieee80211.c
===================================================================
--- uspace/lib/drv/generic/remote_ieee80211.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_ieee80211.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,7 +66,7 @@
 {
 	assert(results);
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	aid_t aid = async_send_2(exch, DEV_IFACE_ID(IEEE80211_DEV_IFACE),
 	    IEEE80211_GET_SCAN_RESULTS, now, NULL);
@@ -74,11 +74,11 @@
 	    sizeof(ieee80211_scan_results_t));
 	async_exchange_end(exch);
-	
+
 	errno_t res;
 	async_wait_for(aid, &res);
-	
+
 	if(res != EOK)
 		return (errno_t) res;
-	
+
 	return rc;
 }
@@ -90,5 +90,5 @@
 			return false;
 	}
-	
+
 	return true;
 }
@@ -99,18 +99,18 @@
 	inet_link_info_t link_info;
 	size_t count;
-	
+
 	errno_t rc = inetcfg_get_link_list(&link_list, &count);
 	if (rc != EOK)
 		return -1;
-	
+
 	for (size_t i = 0; i < count; i++) {
 		rc = inetcfg_link_get(link_list[i], &link_info);
 		if (rc != EOK)
 			return -1;
-		
+
 		if (mac_matches(mac, link_info.mac_addr))
 			return link_list[i];
 	}
-	
+
 	return -1;
 }
@@ -129,12 +129,12 @@
 {
 	assert(ssid_start);
-	
+
 	errno_t rc_orig;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	aid_t aid = async_send_1(exch, DEV_IFACE_ID(IEEE80211_DEV_IFACE),
 	    IEEE80211_CONNECT, NULL);
-	
+
 	errno_t rc = async_data_write_start(exch, ssid_start,
 	    str_size(ssid_start) + 1);
@@ -142,32 +142,32 @@
 		async_exchange_end(exch);
 		async_wait_for(aid, &rc_orig);
-		
+
 		if (rc_orig == EOK)
 			return (errno_t) rc;
-		
+
 		return (errno_t) rc_orig;
 	}
-	
+
 	// FIXME: Typecasting string literal
 	if (password == NULL)
 		password = (char *) "";
-	
+
 	rc = async_data_write_start(exch, password, str_size(password) + 1);
 	if (rc != EOK) {
 		async_exchange_end(exch);
 		async_wait_for(aid, &rc_orig);
-		
+
 		if (rc_orig == EOK)
 			return (errno_t) rc;
-		
+
 		return (errno_t) rc_orig;
 	}
-	
+
 	async_exchange_end(exch);
-	
+
 	async_wait_for(aid, &rc);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Send DHCP discover. */
 	nic_address_t wifi_mac;
@@ -175,11 +175,11 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t link_id = get_link_id(wifi_mac.address);
 	if (link_id == ((sysarg_t) -1))
 		return EINVAL;
-	
+
 	rc = dhcp_discover(link_id);
-	
+
 	return (errno_t) rc;
 }
@@ -199,13 +199,13 @@
 	    IEEE80211_DISCONNECT);
 	async_exchange_end(exch);
-	
-	if (rc != EOK)
-		return rc;
-	
+
+	if (rc != EOK)
+		return rc;
+
 	nic_address_t wifi_mac;
 	rc = nic_get_address(dev_sess, &wifi_mac);
 	if (rc != EOK)
 		return rc;
-	
+
 	inet_link_info_t link_info;
 	inet_addr_info_t addr_info;
@@ -214,19 +214,19 @@
 	sysarg_t *route_list;
 	size_t count;
-	
+
 	/* Remove previous DHCP address. */
 	rc = inetcfg_get_addr_list(&addr_list, &count);
 	if (rc != EOK)
 		return rc;
-	
+
 	for (size_t i = 0; i < count; i++) {
 		rc = inetcfg_addr_get(addr_list[i], &addr_info);
 		if (rc != EOK)
 			return rc;
-		
+
 		rc = inetcfg_link_get(addr_info.ilink, &link_info);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (mac_matches(wifi_mac.address, link_info.mac_addr)) {
 			if (str_test_prefix(addr_info.name, "dhcp")) {
@@ -234,10 +234,10 @@
 				if (rc != EOK)
 					return rc;
-				
+
 				break;
 			}
 		}
 	}
-	
+
 	/*
 	 * TODO: At this moment there can be only one DHCP route,
@@ -249,19 +249,19 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	for (size_t i = 0; i < count; i++) {
 		rc = inetcfg_sroute_get(route_list[i], &route_info);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (str_test_prefix(route_info.name, "dhcp")) {
 			rc = inetcfg_sroute_delete(route_list[i]);
 			if (rc != EOK)
 				return rc;
-			
+
 			break;
 		}
 	}
-	
+
 	return rc;
 }
@@ -272,10 +272,10 @@
 	ieee80211_iface_t *ieee80211_iface = (ieee80211_iface_t *) iface;
 	assert(ieee80211_iface->get_scan_results);
-	
+
 	ieee80211_scan_results_t scan_results;
 	memset(&scan_results, 0, sizeof(ieee80211_scan_results_t));
-	
+
 	bool now = IPC_GET_ARG2(*call);
-	
+
 	errno_t rc = ieee80211_iface->get_scan_results(fun, &scan_results, now);
 	if (rc == EOK) {
@@ -287,5 +287,5 @@
 			return;
 		}
-		
+
 		if (max_len < sizeof(ieee80211_scan_results_t)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -293,9 +293,9 @@
 			return;
 		}
-		
+
 		async_data_read_finalize(data_callid, &scan_results,
 		    sizeof(ieee80211_scan_results_t));
 	}
-	
+
 	async_answer_0(callid, rc);
 }
@@ -306,8 +306,8 @@
 	ieee80211_iface_t *ieee80211_iface = (ieee80211_iface_t *) iface;
 	assert(ieee80211_iface->connect);
-	
+
 	char ssid_start[MAX_STRING_SIZE];
 	char password[MAX_STRING_SIZE];
-	
+
 	ipc_callid_t data_callid;
 	size_t len;
@@ -317,5 +317,5 @@
 		return;
 	}
-	
+
 	if (len > MAX_STRING_SIZE) {
 		async_answer_0(data_callid, EINVAL);
@@ -323,5 +323,5 @@
 		return;
 	}
-	
+
 	errno_t rc = async_data_write_finalize(data_callid, ssid_start, len);
 	if (rc != EOK) {
@@ -330,5 +330,5 @@
 		return;
 	}
-	
+
 	if (!async_data_write_receive(&data_callid, &len)) {
 		async_answer_0(data_callid, EINVAL);
@@ -336,5 +336,5 @@
 		return;
 	}
-	
+
 	if (len > MAX_STRING_SIZE) {
 		async_answer_0(data_callid, EINVAL);
@@ -342,5 +342,5 @@
 		return;
 	}
-	
+
 	rc = async_data_write_finalize(data_callid, password, len);
 	if (rc != EOK) {
@@ -349,7 +349,7 @@
 		return;
 	}
-	
+
 	rc = ieee80211_iface->connect(fun, ssid_start, password);
-	
+
 	async_answer_0(callid, rc);
 }
Index: uspace/lib/drv/generic/remote_led_dev.c
===================================================================
--- uspace/lib/drv/generic/remote_led_dev.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_led_dev.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,10 +71,10 @@
 	led_dev_ops_t *led_dev_ops = (led_dev_ops_t *) ops;
 	pixel_t color = DEV_IPC_GET_ARG1(*call);
-	
+
 	if (!led_dev_ops->color_set) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	errno_t rc = (*led_dev_ops->color_set)(fun, color);
 	async_answer_0(callid, rc);
Index: uspace/lib/drv/generic/remote_nic.c
===================================================================
--- uspace/lib/drv/generic/remote_nic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_nic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -101,12 +101,12 @@
 {
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_SEND_MESSAGE, &answer);
 	errno_t retval = async_data_write_start(exch, data, size);
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	if (retval != EOK) {
 		async_forget(req);
@@ -132,9 +132,9 @@
 	errno_t rc;
 	errno_t retval;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	aid_t req = async_send_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_CALLBACK_CREATE, &answer);
-	
+
 	port_id_t port;
 	rc = async_create_callback_port(exch, INTERFACE_NIC_CB, 0, 0,
@@ -145,5 +145,5 @@
 	}
 	async_exchange_end(exch);
-	
+
 	async_wait_for(req, &retval);
 	return retval;
@@ -161,14 +161,14 @@
 {
 	assert(state);
-	
+
 	sysarg_t _state;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_GET_STATE, &_state);
 	async_exchange_end(exch);
-	
+
 	*state = (nic_device_state_t) _state;
-	
+
 	return rc;
 }
@@ -188,5 +188,5 @@
 	    NIC_SET_STATE, state);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -203,5 +203,5 @@
 {
 	assert(address);
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	aid_t aid = async_send_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
@@ -209,11 +209,11 @@
 	errno_t rc = async_data_read_start(exch, address, sizeof(nic_address_t));
 	async_exchange_end(exch);
-	
+
 	errno_t res;
 	async_wait_for(aid, &res);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	return res;
 }
@@ -230,5 +230,5 @@
 {
 	assert(address);
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	aid_t aid = async_send_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
@@ -236,11 +236,11 @@
 	errno_t rc = async_data_write_start(exch, address, sizeof(nic_address_t));
 	async_exchange_end(exch);
-	
+
 	errno_t res;
 	async_wait_for(aid, &res);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	return res;
 }
@@ -257,7 +257,7 @@
 {
 	assert(stats);
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	errno_t rc = async_req_1_0(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_GET_STATS);
@@ -266,9 +266,9 @@
 		return rc;
 	}
-	
+
 	rc = async_data_read_start(exch, stats, sizeof(nic_device_stats_t));
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	return rc;
 }
@@ -287,7 +287,7 @@
 {
 	assert(device_info);
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	aid_t aid = async_send_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_GET_DEVICE_INFO, NULL);
@@ -297,8 +297,8 @@
 	errno_t res;
 	async_wait_for(aid, &res);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	return res;
 }
@@ -315,14 +315,14 @@
 {
 	assert(cable_state);
-	
+
 	sysarg_t _cable_state;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_GET_CABLE_STATE, &_cable_state);
 	async_exchange_end(exch);
-	
+
 	*cable_state = (nic_cable_state_t) _cable_state;
-	
+
 	return rc;
 }
@@ -344,19 +344,19 @@
 	sysarg_t _duplex;
 	sysarg_t _role;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_3(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_GET_OPERATION_MODE, &_speed, &_duplex, &_role);
 	async_exchange_end(exch);
-	
+
 	if (speed)
 		*speed = (int) _speed;
-	
+
 	if (duplex)
 		*duplex = (nic_channel_mode_t) _duplex;
-	
+
 	if (role)
 		*role = (nic_role_t) _role;
-	
+
 	return rc;
 }
@@ -383,5 +383,5 @@
 	    (sysarg_t) role);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -406,5 +406,5 @@
 	    NIC_AUTONEG_ENABLE, (sysarg_t) advertisement);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -423,5 +423,5 @@
 	    NIC_AUTONEG_DISABLE);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -452,5 +452,5 @@
 	sysarg_t _result;
 	sysarg_t _their_result;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_4(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
@@ -458,17 +458,17 @@
 	    &_result, &_their_result);
 	async_exchange_end(exch);
-	
+
 	if (our_advertisement)
 		*our_advertisement = (uint32_t) _our_advertisement;
-	
+
 	if (*their_advertisement)
 		*their_advertisement = (uint32_t) _their_advertisement;
-	
+
 	if (result)
 		*result = (nic_result_t) _result;
-	
+
 	if (their_result)
 		*their_result = (nic_result_t) _their_result;
-	
+
 	return rc;
 }
@@ -487,5 +487,5 @@
 	    NIC_AUTONEG_RESTART);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -507,19 +507,19 @@
 	sysarg_t _we_receive;
 	sysarg_t _pause;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_3(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_GET_PAUSE, &_we_send, &_we_receive, &_pause);
 	async_exchange_end(exch);
-	
+
 	if (we_send)
 		*we_send = _we_send;
-	
+
 	if (we_receive)
 		*we_receive = _we_receive;
-	
+
 	if (pause)
 		*pause = _pause;
-	
+
 	return rc;
 }
@@ -546,5 +546,5 @@
 	    NIC_SET_PAUSE, allow_send, allow_receive, pause);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -570,13 +570,13 @@
 {
 	assert(mode);
-	
+
 	sysarg_t _mode;
 	sysarg_t _address_count;
-	
+
 	if (!address_list)
 		max_count = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	errno_t rc = async_req_2_2(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_UNICAST_GET_MODE, max_count, &_mode, &_address_count);
@@ -585,15 +585,15 @@
 		return rc;
 	}
-	
+
 	*mode = (nic_unicast_mode_t) _mode;
 	if (address_count)
 		*address_count = (size_t) _address_count;
-	
+
 	if ((max_count) && (_address_count))
 		rc = async_data_read_start(exch, address_list,
 		    max_count * sizeof(nic_address_t));
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	return rc;
 }
@@ -614,10 +614,10 @@
 	if (address_list == NULL)
 		address_count = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	aid_t message_id = async_send_3(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_UNICAST_SET_MODE, (sysarg_t) mode, address_count, NULL);
-	
+
 	errno_t rc;
 	if (address_count)
@@ -626,13 +626,13 @@
 	else
 		rc = EOK;
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	errno_t res;
 	async_wait_for(message_id, &res);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	return res;
 }
@@ -659,12 +659,12 @@
 {
 	assert(mode);
-	
+
 	sysarg_t _mode;
-	
+
 	if (!address_list)
 		max_count = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	sysarg_t ac;
 	errno_t rc = async_req_2_2(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
@@ -674,13 +674,13 @@
 		return rc;
 	}
-	
+
 	*mode = (nic_multicast_mode_t) _mode;
 	if (address_count)
 		*address_count = (size_t) ac;
-	
+
 	if ((max_count) && (ac))
 		rc = async_data_read_start(exch, address_list,
 		    max_count * sizeof(nic_address_t));
-	
+
 	async_exchange_end(exch);
 	return rc;
@@ -702,10 +702,10 @@
 	if (address_list == NULL)
 		address_count = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	aid_t message_id = async_send_3(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_MULTICAST_SET_MODE, (sysarg_t) mode, address_count, NULL);
-	
+
 	errno_t rc;
 	if (address_count)
@@ -714,13 +714,13 @@
 	else
 		rc = EOK;
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	errno_t res;
 	async_wait_for(message_id, &res);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	return res;
 }
@@ -737,14 +737,14 @@
 {
 	assert(mode);
-	
+
 	sysarg_t _mode;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_BROADCAST_GET_MODE, &_mode);
 	async_exchange_end(exch);
-	
+
 	*mode = (nic_broadcast_mode_t) _mode;
-	
+
 	return rc;
 }
@@ -764,5 +764,5 @@
 	    NIC_BROADCAST_SET_MODE, mode);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -779,14 +779,14 @@
 {
 	assert(mode);
-	
+
 	sysarg_t _mode;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_DEFECTIVE_GET_MODE, &_mode);
 	async_exchange_end(exch);
-	
+
 	*mode = (uint32_t) _mode;
-	
+
 	return rc;
 }
@@ -806,5 +806,5 @@
 	    NIC_DEFECTIVE_SET_MODE, mode);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -827,7 +827,7 @@
 	if (!address_list)
 		max_count = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	sysarg_t ac;
 	errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
@@ -837,12 +837,12 @@
 		return rc;
 	}
-	
+
 	if (address_count)
 		*address_count = (size_t) ac;
-	
+
 	if ((max_count) && (ac))
 		rc = async_data_read_start(exch, address_list,
 		    max_count * sizeof(nic_address_t));
-	
+
 	async_exchange_end(exch);
 	return rc;
@@ -863,10 +863,10 @@
 	if (address_list == NULL)
 		address_count = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	aid_t message_id = async_send_2(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_BLOCKED_SOURCES_SET, address_count, NULL);
-	
+
 	errno_t rc;
 	if (address_count)
@@ -875,13 +875,13 @@
 	else
 		rc = EOK;
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	errno_t res;
 	async_wait_for(message_id, &res);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	return res;
 }
@@ -898,5 +898,5 @@
 {
 	assert(mask);
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_0(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
@@ -906,8 +906,8 @@
 		return rc;
 	}
-	
+
 	rc = async_data_read_start(exch, mask, sizeof(nic_vlan_mask_t));
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -926,8 +926,8 @@
 {
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	aid_t message_id = async_send_2(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_VLAN_SET_MASK, mask != NULL, NULL);
-	
+
 	errno_t rc;
 	if (mask != NULL)
@@ -935,13 +935,13 @@
 	else
 		rc = EOK;
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	errno_t res;
 	async_wait_for(message_id, &res);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	return res;
 }
@@ -969,5 +969,5 @@
 	    NIC_VLAN_SET_TAG, (sysarg_t) tag, (sysarg_t) add, (sysarg_t) strip);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -989,12 +989,12 @@
 {
 	assert(id);
-	
+
 	bool send_data = ((data != NULL) && (length != 0));
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	ipc_call_t result;
 	aid_t message_id = async_send_3(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_WOL_VIRTUE_ADD, (sysarg_t) type, send_data, &result);
-	
+
 	errno_t res;
 	if (send_data) {
@@ -1006,8 +1006,8 @@
 		}
 	}
-	
+
 	async_exchange_end(exch);
 	async_wait_for(message_id, &res);
-	
+
 	*id = IPC_GET_ARG1(result);
 	return res;
@@ -1028,5 +1028,5 @@
 	    NIC_WOL_VIRTUE_REMOVE, (sysarg_t) id);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -1050,10 +1050,10 @@
 	sysarg_t _type;
 	sysarg_t _length;
-	
+
 	if (data == NULL)
 		max_length = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	errno_t rc = async_req_3_2(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_WOL_VIRTUE_PROBE, (sysarg_t) id, max_length,
@@ -1063,14 +1063,14 @@
 		return rc;
 	}
-	
+
 	if (type)
 		*type = _type;
-	
+
 	if (length)
 		*length = _length;
-	
+
 	if ((max_length) && (_length != 0))
 		rc = async_data_read_start(exch, data, max_length);
-	
+
 	async_exchange_end(exch);
 	return rc;
@@ -1100,22 +1100,22 @@
 	if (id_list == NULL)
 		max_count = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	sysarg_t count;
 	errno_t rc = async_req_3_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_WOL_VIRTUE_LIST, (sysarg_t) type, max_count, &count);
-	
+
 	if (id_count)
 		*id_count = (size_t) count;
-	
+
 	if ((rc != EOK) || (!max_count)) {
 		async_exchange_end(exch);
 		return rc;
 	}
-	
+
 	rc = async_data_read_start(exch, id_list,
 	    max_count * sizeof(nic_wv_id_t));
-	
+
 	async_exchange_end(exch);
 	return rc;
@@ -1139,12 +1139,12 @@
 {
 	assert(count);
-	
+
 	sysarg_t _count;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_WOL_VIRTUE_GET_CAPS, (sysarg_t) type, &_count);
 	async_exchange_end(exch);
-	
+
 	*count = (int) _count;
 	return rc;
@@ -1177,13 +1177,13 @@
 {
 	assert(matched_type);
-	
+
 	sysarg_t _matched_type;
 	sysarg_t _frame_length;
-	
+
 	if (frame == NULL)
 		max_length = 0;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	errno_t rc = async_req_2_2(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_WOL_LOAD_INFO, max_length, &_matched_type, &_frame_length);
@@ -1192,12 +1192,12 @@
 		return rc;
 	}
-	
+
 	*matched_type = (nic_wv_type_t) _matched_type;
 	if (frame_length)
 		*frame_length = (size_t) _frame_length;
-	
+
 	if ((max_length != 0) && (_frame_length != 0))
 		rc = async_data_read_start(exch, frame, max_length);
-	
+
 	async_exchange_end(exch);
 	return rc;
@@ -1218,13 +1218,13 @@
 	assert(supported);
 	assert(active);
-	
+
 	sysarg_t _supported;
 	sysarg_t _active;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
 	errno_t rc = async_req_1_2(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_OFFLOAD_PROBE, &_supported, &_active);
 	async_exchange_end(exch);
-	
+
 	*supported = (uint32_t) _supported;
 	*active = (uint32_t) _active;
@@ -1247,5 +1247,5 @@
 	    NIC_AUTONEG_RESTART, (sysarg_t) mask, (sysarg_t) active);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -1265,9 +1265,9 @@
 {
 	assert(mode);
-	
+
 	sysarg_t _mode;
-	
-	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
+	async_exch_t *exch = async_exchange_begin(dev_sess);
+
 	errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_POLL_GET_MODE, period != NULL, &_mode);
@@ -1276,10 +1276,10 @@
 		return rc;
 	}
-	
+
 	*mode = (nic_poll_mode_t) _mode;
-	
+
 	if (period != NULL)
 		rc = async_data_read_start(exch, period, sizeof(struct timeval));
-	
+
 	async_exchange_end(exch);
 	return rc;
@@ -1299,8 +1299,8 @@
 {
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	aid_t message_id = async_send_3(exch, DEV_IFACE_ID(NIC_DEV_IFACE),
 	    NIC_POLL_SET_MODE, (sysarg_t) mode, period != NULL, NULL);
-	
+
 	errno_t rc;
 	if (period)
@@ -1308,13 +1308,13 @@
 	else
 		rc = EOK;
-	
-	async_exchange_end(exch);
-	
+
+	async_exchange_end(exch);
+
 	errno_t res;
 	async_wait_for(message_id, &res);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	return res;
 }
@@ -1332,5 +1332,5 @@
 	errno_t rc = async_req_1_0(exch, DEV_IFACE_ID(NIC_DEV_IFACE), NIC_POLL_NOW);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -1341,9 +1341,9 @@
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
 	assert(nic_iface->send_frame);
-	
+
 	void *data;
 	size_t size;
 	errno_t rc;
-	
+
 	rc = async_data_write_accept(&data, false, 0, 0, 0, &size);
 	if (rc != EOK) {
@@ -1351,5 +1351,5 @@
 		return;
 	}
-	
+
 	rc = nic_iface->send_frame(dev, data, size);
 	async_answer_0(callid, rc);
@@ -1362,5 +1362,5 @@
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
 	assert(nic_iface->callback_create);
-	
+
 	errno_t rc = nic_iface->callback_create(dev);
 	async_answer_0(callid, rc);
@@ -1372,7 +1372,7 @@
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
 	assert(nic_iface->get_state);
-	
+
 	nic_device_state_t state = NIC_STATE_MAX;
-	
+
 	errno_t rc = nic_iface->get_state(dev, &state);
 	async_answer_1(callid, rc, state);
@@ -1384,7 +1384,7 @@
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
 	assert(nic_iface->set_state);
-	
+
 	nic_device_state_t state = (nic_device_state_t) IPC_GET_ARG2(*call);
-	
+
 	errno_t rc = nic_iface->set_state(dev, state);
 	async_answer_0(callid, rc);
@@ -1396,13 +1396,13 @@
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
 	assert(nic_iface->get_address);
-	
+
 	nic_address_t address;
 	memset(&address, 0, sizeof(nic_address_t));
-	
+
 	errno_t rc = nic_iface->get_address(dev, &address);
 	if (rc == EOK) {
 		size_t max_len;
 		ipc_callid_t data_callid;
-		
+
 		/* All errors will be translated into EPARTY anyway */
 		if (!async_data_read_receive(&data_callid, &max_len)) {
@@ -1411,5 +1411,5 @@
 			return;
 		}
-		
+
 		if (max_len != sizeof(nic_address_t)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -1417,9 +1417,9 @@
 			return;
 		}
-		
+
 		async_data_read_finalize(data_callid, &address,
 		    sizeof(nic_address_t));
 	}
-	
+
 	async_answer_0(callid, rc);
 }
@@ -1429,5 +1429,5 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	size_t length;
 	ipc_callid_t data_callid;
@@ -1437,5 +1437,5 @@
 		return;
 	}
-	
+
 	if (length > sizeof(nic_address_t)) {
 		async_answer_0(data_callid, ELIMIT);
@@ -1443,5 +1443,5 @@
 		return;
 	}
-	
+
 	nic_address_t address;
 	if (async_data_write_finalize(data_callid, &address, length) != EOK) {
@@ -1449,5 +1449,5 @@
 		return;
 	}
-	
+
 	if (nic_iface->set_address != NULL) {
 		errno_t rc = nic_iface->set_address(dev, &address);
@@ -1465,8 +1465,8 @@
 		return;
 	}
-	
+
 	nic_device_stats_t stats;
 	memset(&stats, 0, sizeof(nic_device_stats_t));
-	
+
 	errno_t rc = nic_iface->get_stats(dev, &stats);
 	if (rc == EOK) {
@@ -1478,5 +1478,5 @@
 			return;
 		}
-		
+
 		if (max_len < sizeof(nic_device_stats_t)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -1484,9 +1484,9 @@
 			return;
 		}
-		
+
 		async_data_read_finalize(data_callid, &stats,
 		    sizeof(nic_device_stats_t));
 	}
-	
+
 	async_answer_0(callid, rc);
 }
@@ -1500,8 +1500,8 @@
 		return;
 	}
-	
+
 	nic_device_info_t info;
 	memset(&info, 0, sizeof(nic_device_info_t));
-	
+
 	errno_t rc = nic_iface->get_device_info(dev, &info);
 	if (rc == EOK) {
@@ -1513,5 +1513,5 @@
 			return;
 		}
-		
+
 		if (max_len < sizeof (nic_device_info_t)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -1519,9 +1519,9 @@
 			return;
 		}
-		
+
 		async_data_read_finalize(data_callid, &info,
 		    sizeof(nic_device_info_t));
 	}
-	
+
 	async_answer_0(callid, rc);
 }
@@ -1535,7 +1535,7 @@
 		return;
 	}
-	
+
 	nic_cable_state_t cs = NIC_CS_UNKNOWN;
-	
+
 	errno_t rc = nic_iface->get_cable_state(dev, &cs);
 	async_answer_1(callid, rc, (sysarg_t) cs);
@@ -1550,9 +1550,9 @@
 		return;
 	}
-	
+
 	int speed = 0;
 	nic_channel_mode_t duplex = NIC_CM_UNKNOWN;
 	nic_role_t role = NIC_ROLE_UNKNOWN;
-	
+
 	errno_t rc = nic_iface->get_operation_mode(dev, &speed, &duplex, &role);
 	async_answer_3(callid, rc, (sysarg_t) speed, (sysarg_t) duplex,
@@ -1568,9 +1568,9 @@
 		return;
 	}
-	
+
 	int speed = (int) IPC_GET_ARG2(*call);
 	nic_channel_mode_t duplex = (nic_channel_mode_t) IPC_GET_ARG3(*call);
 	nic_role_t role = (nic_role_t) IPC_GET_ARG4(*call);
-	
+
 	errno_t rc = nic_iface->set_operation_mode(dev, speed, duplex, role);
 	async_answer_0(callid, rc);
@@ -1585,7 +1585,7 @@
 		return;
 	}
-	
+
 	uint32_t advertisement = (uint32_t) IPC_GET_ARG2(*call);
-	
+
 	errno_t rc = nic_iface->autoneg_enable(dev, advertisement);
 	async_answer_0(callid, rc);
@@ -1600,5 +1600,5 @@
 		return;
 	}
-	
+
 	errno_t rc = nic_iface->autoneg_disable(dev);
 	async_answer_0(callid, rc);
@@ -1613,10 +1613,10 @@
 		return;
 	}
-	
+
 	uint32_t our_adv = 0;
 	uint32_t their_adv = 0;
 	nic_result_t result = NIC_RESULT_NOT_AVAILABLE;
 	nic_result_t their_result = NIC_RESULT_NOT_AVAILABLE;
-	
+
 	errno_t rc = nic_iface->autoneg_probe(dev, &our_adv, &their_adv, &result,
 	    &their_result);
@@ -1633,5 +1633,5 @@
 		return;
 	}
-	
+
 	errno_t rc = nic_iface->autoneg_restart(dev);
 	async_answer_0(callid, rc);
@@ -1646,9 +1646,9 @@
 		return;
 	}
-	
+
 	nic_result_t we_send;
 	nic_result_t we_receive;
 	uint16_t pause;
-	
+
 	errno_t rc = nic_iface->get_pause(dev, &we_send, &we_receive, &pause);
 	async_answer_3(callid, rc, we_send, we_receive, pause);
@@ -1663,9 +1663,9 @@
 		return;
 	}
-	
+
 	int allow_send = (int) IPC_GET_ARG2(*call);
 	int allow_receive = (int) IPC_GET_ARG3(*call);
 	uint16_t pause = (uint16_t) IPC_GET_ARG4(*call);
-	
+
 	errno_t rc = nic_iface->set_pause(dev, allow_send, allow_receive,
 	    pause);
@@ -1681,8 +1681,8 @@
 		return;
 	}
-	
+
 	size_t max_count = IPC_GET_ARG2(*call);
 	nic_address_t *address_list = NULL;
-	
+
 	if (max_count != 0) {
 		address_list = malloc(max_count * sizeof (nic_address_t));
@@ -1692,12 +1692,12 @@
 		}
 	}
-	
+
 	memset(address_list, 0, max_count * sizeof(nic_address_t));
 	nic_unicast_mode_t mode = NIC_UNICAST_DEFAULT;
 	size_t address_count = 0;
-	
+
 	errno_t rc = nic_iface->unicast_get_mode(dev, &mode, max_count, address_list,
 	    &address_count);
-	
+
 	if ((rc != EOK) || (max_count == 0) || (address_count == 0)) {
 		free(address_list);
@@ -1705,5 +1705,5 @@
 		return;
 	}
-	
+
 	ipc_callid_t data_callid;
 	size_t max_len;
@@ -1714,14 +1714,14 @@
 		return;
 	}
-	
+
 	if (max_len > address_count * sizeof(nic_address_t))
 		max_len = address_count * sizeof(nic_address_t);
-	
+
 	if (max_len > max_count * sizeof(nic_address_t))
 		max_len = max_count * sizeof(nic_address_t);
-	
+
 	async_data_read_finalize(data_callid, address_list, max_len);
 	async_answer_0(data_callid, EINVAL);
-	
+
 	free(address_list);
 	async_answer_2(callid, rc, mode, address_count);
@@ -1732,10 +1732,10 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	size_t length;
 	nic_unicast_mode_t mode = IPC_GET_ARG2(*call);
 	size_t address_count = IPC_GET_ARG3(*call);
 	nic_address_t *address_list = NULL;
-	
+
 	if (address_count) {
 		ipc_callid_t data_callid;
@@ -1745,5 +1745,5 @@
 			return;
 		}
-		
+
 		if (length != address_count * sizeof(nic_address_t)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -1751,5 +1751,5 @@
 			return;
 		}
-		
+
 		address_list = malloc(length);
 		if (address_list == NULL) {
@@ -1758,5 +1758,5 @@
 			return;
 		}
-		
+
 		if (async_data_write_finalize(data_callid, address_list,
 		    length) != EOK) {
@@ -1766,5 +1766,5 @@
 		}
 	}
-	
+
 	if (nic_iface->unicast_set_mode != NULL) {
 		errno_t rc = nic_iface->unicast_set_mode(dev, mode, address_list,
@@ -1773,5 +1773,5 @@
 	} else
 		async_answer_0(callid, ENOTSUP);
-	
+
 	free(address_list);
 }
@@ -1785,8 +1785,8 @@
 		return;
 	}
-	
+
 	size_t max_count = IPC_GET_ARG2(*call);
 	nic_address_t *address_list = NULL;
-	
+
 	if (max_count != 0) {
 		address_list = malloc(max_count * sizeof(nic_address_t));
@@ -1796,13 +1796,13 @@
 		}
 	}
-	
+
 	memset(address_list, 0, max_count * sizeof(nic_address_t));
 	nic_multicast_mode_t mode = NIC_MULTICAST_BLOCKED;
 	size_t address_count = 0;
-	
+
 	errno_t rc = nic_iface->multicast_get_mode(dev, &mode, max_count, address_list,
 	    &address_count);
-	
-	
+
+
 	if ((rc != EOK) || (max_count == 0) || (address_count == 0)) {
 		free(address_list);
@@ -1810,5 +1810,5 @@
 		return;
 	}
-	
+
 	ipc_callid_t data_callid;
 	size_t max_len;
@@ -1819,13 +1819,13 @@
 		return;
 	}
-	
+
 	if (max_len > address_count * sizeof(nic_address_t))
 		max_len = address_count * sizeof(nic_address_t);
-	
+
 	if (max_len > max_count * sizeof(nic_address_t))
 		max_len = max_count * sizeof(nic_address_t);
-	
+
 	async_data_read_finalize(data_callid, address_list, max_len);
-	
+
 	free(address_list);
 	async_answer_2(callid, rc, mode, address_count);
@@ -1836,9 +1836,9 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	nic_multicast_mode_t mode = IPC_GET_ARG2(*call);
 	size_t address_count = IPC_GET_ARG3(*call);
 	nic_address_t *address_list = NULL;
-	
+
 	if (address_count) {
 		ipc_callid_t data_callid;
@@ -1849,5 +1849,5 @@
 			return;
 		}
-		
+
 		if (length != address_count * sizeof (nic_address_t)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -1855,5 +1855,5 @@
 			return;
 		}
-		
+
 		address_list = malloc(length);
 		if (address_list == NULL) {
@@ -1862,5 +1862,5 @@
 			return;
 		}
-		
+
 		if (async_data_write_finalize(data_callid, address_list,
 		    length) != EOK) {
@@ -1870,5 +1870,5 @@
 		}
 	}
-	
+
 	if (nic_iface->multicast_set_mode != NULL) {
 		errno_t rc = nic_iface->multicast_set_mode(dev, mode, address_list,
@@ -1877,5 +1877,5 @@
 	} else
 		async_answer_0(callid, ENOTSUP);
-	
+
 	free(address_list);
 }
@@ -1889,7 +1889,7 @@
 		return;
 	}
-	
+
 	nic_broadcast_mode_t mode = NIC_BROADCAST_ACCEPTED;
-	
+
 	errno_t rc = nic_iface->broadcast_get_mode(dev, &mode);
 	async_answer_1(callid, rc, mode);
@@ -1904,7 +1904,7 @@
 		return;
 	}
-	
+
 	nic_broadcast_mode_t mode = IPC_GET_ARG2(*call);
-	
+
 	errno_t rc = nic_iface->broadcast_set_mode(dev, mode);
 	async_answer_0(callid, rc);
@@ -1919,7 +1919,7 @@
 		return;
 	}
-	
+
 	uint32_t mode = 0;
-	
+
 	errno_t rc = nic_iface->defective_get_mode(dev, &mode);
 	async_answer_1(callid, rc, mode);
@@ -1934,7 +1934,7 @@
 		return;
 	}
-	
+
 	uint32_t mode = IPC_GET_ARG2(*call);
-	
+
 	errno_t rc = nic_iface->defective_set_mode(dev, mode);
 	async_answer_0(callid, rc);
@@ -1949,8 +1949,8 @@
 		return;
 	}
-	
+
 	size_t max_count = IPC_GET_ARG2(*call);
 	nic_address_t *address_list = NULL;
-	
+
 	if (max_count != 0) {
 		address_list = malloc(max_count * sizeof(nic_address_t));
@@ -1960,11 +1960,11 @@
 		}
 	}
-	
+
 	memset(address_list, 0, max_count * sizeof(nic_address_t));
 	size_t address_count = 0;
-	
+
 	errno_t rc = nic_iface->blocked_sources_get(dev, max_count, address_list,
 	    &address_count);
-	
+
 	if ((rc != EOK) || (max_count == 0) || (address_count == 0)) {
 		async_answer_1(callid, rc, address_count);
@@ -1972,5 +1972,5 @@
 		return;
 	}
-	
+
 	ipc_callid_t data_callid;
 	size_t max_len;
@@ -1981,14 +1981,14 @@
 		return;
 	}
-	
+
 	if (max_len > address_count * sizeof(nic_address_t))
 		max_len = address_count * sizeof(nic_address_t);
-	
+
 	if (max_len > max_count * sizeof(nic_address_t))
 		max_len = max_count * sizeof(nic_address_t);
-	
+
 	async_data_read_finalize(data_callid, address_list, max_len);
 	async_answer_0(data_callid, EINVAL);
-	
+
 	free(address_list);
 	async_answer_1(callid, rc, address_count);
@@ -1999,9 +1999,9 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	size_t length;
 	size_t address_count = IPC_GET_ARG2(*call);
 	nic_address_t *address_list = NULL;
-	
+
 	if (address_count) {
 		ipc_callid_t data_callid;
@@ -2011,5 +2011,5 @@
 			return;
 		}
-		
+
 		if (length != address_count * sizeof(nic_address_t)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -2017,5 +2017,5 @@
 			return;
 		}
-		
+
 		address_list = malloc(length);
 		if (address_list == NULL) {
@@ -2024,5 +2024,5 @@
 			return;
 		}
-		
+
 		if (async_data_write_finalize(data_callid, address_list,
 		    length) != EOK) {
@@ -2032,5 +2032,5 @@
 		}
 	}
-	
+
 	if (nic_iface->blocked_sources_set != NULL) {
 		errno_t rc = nic_iface->blocked_sources_set(dev, address_list,
@@ -2039,5 +2039,5 @@
 	} else
 		async_answer_0(callid, ENOTSUP);
-	
+
 	free(address_list);
 }
@@ -2051,8 +2051,8 @@
 		return;
 	}
-	
+
 	nic_vlan_mask_t vlan_mask;
 	memset(&vlan_mask, 0, sizeof(nic_vlan_mask_t));
-	
+
 	errno_t rc = nic_iface->vlan_get_mask(dev, &vlan_mask);
 	if (rc == EOK) {
@@ -2064,5 +2064,5 @@
 			return;
 		}
-		
+
 		if (max_len != sizeof(nic_vlan_mask_t)) {
 			async_answer_0(data_callid, EINVAL);
@@ -2070,8 +2070,8 @@
 			return;
 		}
-		
+
 		async_data_read_finalize(data_callid, &vlan_mask, max_len);
 	}
-	
+
 	async_answer_0(callid, rc);
 }
@@ -2081,9 +2081,9 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	nic_vlan_mask_t vlan_mask;
 	nic_vlan_mask_t *vlan_mask_pointer = NULL;
 	bool vlan_mask_set = (bool) IPC_GET_ARG2(*call);
-	
+
 	if (vlan_mask_set) {
 		ipc_callid_t data_callid;
@@ -2094,5 +2094,5 @@
 			return;
 		}
-		
+
 		if (length != sizeof(nic_vlan_mask_t)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -2100,5 +2100,5 @@
 			return;
 		}
-		
+
 		if (async_data_write_finalize(data_callid, &vlan_mask,
 		    length) != EOK) {
@@ -2106,8 +2106,8 @@
 			return;
 		}
-		
+
 		vlan_mask_pointer = &vlan_mask;
 	}
-	
+
 	if (nic_iface->vlan_set_mask != NULL) {
 		errno_t rc = nic_iface->vlan_set_mask(dev, vlan_mask_pointer);
@@ -2121,14 +2121,14 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	if (nic_iface->vlan_set_tag == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	uint16_t tag = (uint16_t) IPC_GET_ARG2(*call);
 	bool add = (int) IPC_GET_ARG3(*call);
 	bool strip = (int) IPC_GET_ARG4(*call);
-	
+
 	errno_t rc = nic_iface->vlan_set_tag(dev, tag, add, strip);
 	async_answer_0(callid, rc);
@@ -2139,8 +2139,8 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	int send_data = (int) IPC_GET_ARG3(*call);
 	ipc_callid_t data_callid;
-	
+
 	if (nic_iface->wol_virtue_add == NULL) {
 		if (send_data) {
@@ -2148,11 +2148,11 @@
 			async_answer_0(data_callid, ENOTSUP);
 		}
-		
-		async_answer_0(callid, ENOTSUP);
-	}
-	
+
+		async_answer_0(callid, ENOTSUP);
+	}
+
 	size_t length = 0;
 	void *data = NULL;
-	
+
 	if (send_data) {
 		if (!async_data_write_receive(&data_callid, &length)) {
@@ -2161,5 +2161,5 @@
 			return;
 		}
-		
+
 		data = malloc(length);
 		if (data == NULL) {
@@ -2168,5 +2168,5 @@
 			return;
 		}
-		
+
 		if (async_data_write_finalize(data_callid, data,
 		    length) != EOK) {
@@ -2176,8 +2176,8 @@
 		}
 	}
-	
+
 	nic_wv_id_t id = 0;
 	nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(*call);
-	
+
 	errno_t rc = nic_iface->wol_virtue_add(dev, type, data, length, &id);
 	async_answer_1(callid, rc, (sysarg_t) id);
@@ -2189,12 +2189,12 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	if (nic_iface->wol_virtue_remove == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	nic_wv_id_t id = (nic_wv_id_t) IPC_GET_ARG2(*call);
-	
+
 	errno_t rc = nic_iface->wol_virtue_remove(dev, id);
 	async_answer_0(callid, rc);
@@ -2205,10 +2205,10 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	if (nic_iface->wol_virtue_probe == NULL) {
 		async_answer_0(callid, ENOTSUP);
 		return;
 	}
-	
+
 	nic_wv_id_t id = (nic_wv_id_t) IPC_GET_ARG2(*call);
 	size_t max_length = IPC_GET_ARG3(*call);
@@ -2217,5 +2217,5 @@
 	ipc_callid_t data_callid;
 	void *data = NULL;
-	
+
 	if (max_length != 0) {
 		data = malloc(max_length);
@@ -2225,10 +2225,10 @@
 		}
 	}
-	
+
 	memset(data, 0, max_length);
-	
+
 	errno_t rc = nic_iface->wol_virtue_probe(dev, id, &type, max_length,
 	    data, &length);
-	
+
 	if ((max_length != 0) && (length != 0)) {
 		size_t req_length;
@@ -2239,14 +2239,14 @@
 			return;
 		}
-		
+
 		if (req_length > length)
 			req_length = length;
-		
+
 		if (req_length > max_length)
 			req_length = max_length;
-		
+
 		async_data_read_finalize(data_callid, data, req_length);
 	}
-	
+
 	async_answer_2(callid, rc, (sysarg_t) type, (sysarg_t) length);
 	free(data);
@@ -2261,5 +2261,5 @@
 		return;
 	}
-	
+
 	nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(*call);
 	size_t max_count = IPC_GET_ARG3(*call);
@@ -2267,5 +2267,5 @@
 	nic_wv_id_t *id_list = NULL;
 	ipc_callid_t data_callid;
-	
+
 	if (max_count != 0) {
 		id_list = malloc(max_count * sizeof(nic_wv_id_t));
@@ -2275,10 +2275,10 @@
 		}
 	}
-	
+
 	memset(id_list, 0, max_count * sizeof (nic_wv_id_t));
-	
+
 	errno_t rc = nic_iface->wol_virtue_list(dev, type, max_count, id_list,
 	    &count);
-	
+
 	if ((max_count != 0) && (count != 0)) {
 		size_t req_length;
@@ -2289,14 +2289,14 @@
 			return;
 		}
-		
+
 		if (req_length > count * sizeof(nic_wv_id_t))
 			req_length = count * sizeof(nic_wv_id_t);
-		
+
 		if (req_length > max_count * sizeof(nic_wv_id_t))
 			req_length = max_count * sizeof(nic_wv_id_t);
-		
+
 		rc = async_data_read_finalize(data_callid, id_list, req_length);
 	}
-	
+
 	async_answer_1(callid, rc, (sysarg_t) count);
 	free(id_list);
@@ -2311,8 +2311,8 @@
 		return;
 	}
-	
+
 	int count = -1;
 	nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(*call);
-	
+
 	errno_t rc = nic_iface->wol_virtue_get_caps(dev, type, &count);
 	async_answer_1(callid, rc, (sysarg_t) count);
@@ -2327,10 +2327,10 @@
 		return;
 	}
-	
+
 	size_t max_length = (size_t) IPC_GET_ARG2(*call);
 	size_t frame_length = 0;
 	nic_wv_type_t type = NIC_WV_NONE;
 	uint8_t *data = NULL;
-	
+
 	if (max_length != 0) {
 		data = malloc(max_length);
@@ -2340,7 +2340,7 @@
 		}
 	}
-	
+
 	memset(data, 0, max_length);
-	
+
 	errno_t rc = nic_iface->wol_load_info(dev, &type, max_length, data,
 	    &frame_length);
@@ -2354,10 +2354,10 @@
 			return;
 		}
-		
+
 		req_length = req_length > max_length ? max_length : req_length;
 		req_length = req_length > frame_length ? frame_length : req_length;
 		async_data_read_finalize(data_callid, data, req_length);
 	}
-	
+
 	async_answer_2(callid, rc, (sysarg_t) type, (sysarg_t) frame_length);
 	free(data);
@@ -2372,8 +2372,8 @@
 		return;
 	}
-	
+
 	uint32_t supported = 0;
 	uint32_t active = 0;
-	
+
 	errno_t rc = nic_iface->offload_probe(dev, &supported, &active);
 	async_answer_2(callid, rc, supported, active);
@@ -2388,8 +2388,8 @@
 		return;
 	}
-	
+
 	uint32_t mask = (uint32_t) IPC_GET_ARG2(*call);
 	uint32_t active = (uint32_t) IPC_GET_ARG3(*call);
-	
+
 	errno_t rc = nic_iface->offload_set(dev, mask, active);
 	async_answer_0(callid, rc);
@@ -2404,5 +2404,5 @@
 		return;
 	}
-	
+
 	nic_poll_mode_t mode = NIC_POLL_IMMEDIATE;
 	int request_data = IPC_GET_ARG2(*call);
@@ -2411,10 +2411,10 @@
 		.tv_usec = 0
 	};
-	
+
 	errno_t rc = nic_iface->poll_get_mode(dev, &mode, &period);
 	if ((rc == EOK) && (request_data)) {
 		size_t max_len;
 		ipc_callid_t data_callid;
-		
+
 		if (!async_data_read_receive(&data_callid, &max_len)) {
 			async_answer_0(data_callid, EINVAL);
@@ -2422,5 +2422,5 @@
 			return;
 		}
-		
+
 		if (max_len != sizeof(struct timeval)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -2428,9 +2428,9 @@
 			return;
 		}
-		
+
 		async_data_read_finalize(data_callid, &period,
 		    sizeof(struct timeval));
 	}
-	
+
 	async_answer_1(callid, rc, (sysarg_t) mode);
 }
@@ -2440,5 +2440,5 @@
 {
 	nic_iface_t *nic_iface = (nic_iface_t *) iface;
-	
+
 	nic_poll_mode_t mode = IPC_GET_ARG2(*call);
 	int has_period = IPC_GET_ARG3(*call);
@@ -2446,5 +2446,5 @@
 	struct timeval *period = NULL;
 	size_t length;
-	
+
 	if (has_period) {
 		ipc_callid_t data_callid;
@@ -2454,5 +2454,5 @@
 			return;
 		}
-		
+
 		if (length != sizeof(struct timeval)) {
 			async_answer_0(data_callid, ELIMIT);
@@ -2460,5 +2460,5 @@
 			return;
 		}
-		
+
 		period = &period_buf;
 		if (async_data_write_finalize(data_callid, period,
@@ -2468,5 +2468,5 @@
 		}
 	}
-	
+
 	if (nic_iface->poll_set_mode != NULL) {
 		errno_t rc = nic_iface->poll_set_mode(dev, mode, period);
@@ -2484,5 +2484,5 @@
 		return;
 	}
-	
+
 	errno_t rc = nic_iface->poll_now(dev);
 	async_answer_0(callid, rc);
Index: uspace/lib/drv/generic/remote_pci.c
===================================================================
--- uspace/lib/drv/generic/remote_pci.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_pci.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,10 +54,10 @@
 {
 	sysarg_t res = 0;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
 	    IPC_M_CONFIG_SPACE_READ_8, address, &res);
 	async_exchange_end(exch);
-	
+
 	*val = (uint8_t) res;
 	return rc;
@@ -68,10 +68,10 @@
 {
 	sysarg_t res = 0;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
 	    IPC_M_CONFIG_SPACE_READ_16, address, &res);
 	async_exchange_end(exch);
-	
+
 	*val = (uint16_t) res;
 	return rc;
@@ -82,10 +82,10 @@
 {
 	sysarg_t res = 0;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE),
 	    IPC_M_CONFIG_SPACE_READ_32, address, &res);
 	async_exchange_end(exch);
-	
+
 	*val = (uint32_t) res;
 	return rc;
@@ -98,5 +98,5 @@
 	    IPC_M_CONFIG_SPACE_WRITE_8, address, val);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -109,5 +109,5 @@
 	    IPC_M_CONFIG_SPACE_WRITE_16, address, val);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
@@ -120,5 +120,5 @@
 	    IPC_M_CONFIG_SPACE_WRITE_32, address, val);
 	async_exchange_end(exch);
-	
+
 	return rc;
 }
Index: uspace/lib/drv/generic/remote_pio_window.c
===================================================================
--- uspace/lib/drv/generic/remote_pio_window.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_pio_window.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 		return;
 	}
-	
+
 	pio_window_t *pio_window = pio_win_ops->get_pio_window(fun);
 	if (!pio_window) {
@@ -68,5 +68,5 @@
 		return;
 	}
-	
+
 	async_answer_0(callid, EOK);
 
Index: uspace/lib/drv/generic/remote_usbdiag.c
===================================================================
--- uspace/lib/drv/generic/remote_usbdiag.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_usbdiag.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -188,5 +188,5 @@
 		return;
 	}
-	
+
 	if (async_data_read_finalize(data_callid, &results, size) != EOK) {
 		async_answer_0(callid, EINVAL);
@@ -242,5 +242,5 @@
 		return;
 	}
-	
+
 	if (async_data_read_finalize(data_callid, &results, size) != EOK) {
 		async_answer_0(callid, EINVAL);
Index: uspace/lib/drv/generic/remote_usbhid.c
===================================================================
--- uspace/lib/drv/generic/remote_usbhid.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/generic/remote_usbhid.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,5 +67,5 @@
 	 */
 	IPC_M_USBHID_GET_EVENT,
-	
+
 	/** Get the size of the report descriptor from the HID device.
 	 *
@@ -78,5 +78,5 @@
 	 */
 	IPC_M_USBHID_GET_REPORT_DESCRIPTOR_LENGTH,
-	
+
 	/** Get the report descriptor from the HID device.
 	 *
@@ -101,18 +101,18 @@
 	if (!dev_sess)
 		return EINVAL;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	sysarg_t len;
 	errno_t rc = async_req_1_1(exch, DEV_IFACE_ID(USBHID_DEV_IFACE),
 	    IPC_M_USBHID_GET_EVENT_LENGTH, &len);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc == EOK) {
 		if (size != NULL)
 			*size = (size_t) len;
 	}
-	
+
 	return rc;
 }
@@ -137,23 +137,23 @@
 	if (!dev_sess)
 		return EINVAL;
-	
+
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	if (size == 0)
 		return EINVAL;
-	
+
 	size_t buffer_size =  size;
 	uint8_t *buffer = malloc(buffer_size);
 	if (buffer == NULL)
 		return ENOMEM;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	ipc_call_t opening_request_call;
 	aid_t opening_request = async_send_2(exch,
 	    DEV_IFACE_ID(USBHID_DEV_IFACE), IPC_M_USBHID_GET_EVENT,
 	    flags, &opening_request_call);
-	
+
 	if (opening_request == 0) {
 		async_exchange_end(exch);
@@ -161,11 +161,11 @@
 		return ENOMEM;
 	}
-	
+
 	ipc_call_t data_request_call;
 	aid_t data_request = async_data_read(exch, buffer, buffer_size,
 	    &data_request_call);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (data_request == 0) {
 		async_forget(opening_request);
@@ -173,10 +173,10 @@
 		return ENOMEM;
 	}
-	
+
 	errno_t data_request_rc;
 	errno_t opening_request_rc;
 	async_wait_for(data_request, &data_request_rc);
 	async_wait_for(opening_request, &opening_request_rc);
-	
+
 	if (data_request_rc != EOK) {
 		/* Prefer return code of the opening request. */
@@ -186,19 +186,19 @@
 			return (errno_t) data_request_rc;
 	}
-	
+
 	if (opening_request_rc != EOK)
 		return (errno_t) opening_request_rc;
-	
+
 	size_t act_size = IPC_GET_ARG2(data_request_call);
-	
+
 	/* Copy the individual items. */
 	memcpy(buf, buffer, act_size);
-	
+
 	if (actual_size != NULL)
 		*actual_size = act_size;
-	
+
 	if (event_nr != NULL)
 		*event_nr = IPC_GET_ARG1(opening_request_call);
-	
+
 	return EOK;
 }
@@ -209,18 +209,18 @@
 	if (!dev_sess)
 		return EINVAL;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	sysarg_t arg_size;
 	errno_t rc = async_req_1_1(exch, DEV_IFACE_ID(USBHID_DEV_IFACE),
 	    IPC_M_USBHID_GET_REPORT_DESCRIPTOR_LENGTH, &arg_size);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc == EOK) {
 		if (size != NULL)
 			*size = (size_t) arg_size;
 	}
-	
+
 	return rc;
 }
@@ -231,13 +231,13 @@
 	if (!dev_sess)
 		return EINVAL;
-	
+
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	if (size == 0)
 		return EINVAL;
-	
+
 	async_exch_t *exch = async_exchange_begin(dev_sess);
-	
+
 	aid_t opening_request = async_send_1(exch,
 	    DEV_IFACE_ID(USBHID_DEV_IFACE), IPC_M_USBHID_GET_REPORT_DESCRIPTOR,
@@ -247,21 +247,21 @@
 		return ENOMEM;
 	}
-	
+
 	ipc_call_t data_request_call;
 	aid_t data_request = async_data_read(exch, buf, size,
 	    &data_request_call);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (data_request == 0) {
 		async_forget(opening_request);
 		return ENOMEM;
 	}
-	
+
 	errno_t data_request_rc;
 	errno_t opening_request_rc;
 	async_wait_for(data_request, &data_request_rc);
 	async_wait_for(opening_request, &opening_request_rc);
-	
+
 	if (data_request_rc != EOK) {
 		/* Prefer return code of the opening request. */
@@ -271,13 +271,13 @@
 			return (errno_t) data_request_rc;
 	}
-	
+
 	if (opening_request_rc != EOK)
 		return (errno_t) opening_request_rc;
-	
+
 	size_t act_size = IPC_GET_ARG2(data_request_call);
-	
+
 	if (actual_size != NULL)
 		*actual_size = act_size;
-	
+
 	return EOK;
 }
@@ -312,5 +312,5 @@
 {
 	printf("remote_usbhid_get_event_length()\n");
-	
+
 	usbhid_iface_t *hid_iface = (usbhid_iface_t *) iface;
 
@@ -326,5 +326,5 @@
 //	}
 	async_answer_1(callid, EOK, len);
-	
+
 //	if (len < 0) {
 //		async_answer_0(callid, len);
Index: uspace/lib/drv/include/ddf/driver.h
===================================================================
--- uspace/lib/drv/include/ddf/driver.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/include/ddf/driver.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,5 +57,5 @@
 	 */
 	errno_t (*open)(ddf_fun_t *);
-	
+
 	/**
 	 * Optional callback function called when a client is disconnecting from
@@ -63,8 +63,8 @@
 	 */
 	void (*close)(ddf_fun_t *);
-	
+
 	/** The table of standard interfaces implemented by the device. */
 	void *interfaces[DEV_IFACE_COUNT];
-	
+
 	/**
 	 * The default handler of remote client requests. If the client's remote
@@ -89,14 +89,14 @@
 	/** Callback method for passing a new device to the device driver */
 	errno_t (*dev_add)(ddf_dev_t *);
-	
+
 	/** Ask driver to remove a device */
 	errno_t (*dev_remove)(ddf_dev_t *);
-	
+
 	/** Inform driver a device disappeared */
 	errno_t (*dev_gone)(ddf_dev_t *);
-	
+
 	/** Ask driver to online a specific function */
 	errno_t (*fun_online)(ddf_fun_t *);
-	
+
 	/** Ask driver to offline a specific function */
 	errno_t (*fun_offline)(ddf_fun_t *);
Index: uspace/lib/drv/include/ops/ieee80211.h
===================================================================
--- uspace/lib/drv/include/ops/ieee80211.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/include/ops/ieee80211.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,5 +52,5 @@
 	 */
 	errno_t (*get_scan_results)(ddf_fun_t *, ieee80211_scan_results_t *, bool);
-	
+
 	/** Connect IEEE 802.11 device to specified network.
 	 *
@@ -63,5 +63,5 @@
 	 */
 	errno_t (*connect)(ddf_fun_t *, char *, char *);
-	
+
 	/** Disconnect IEEE 802.11 device from network.
 	 *
Index: uspace/lib/drv/include/ops/nic.h
===================================================================
--- uspace/lib/drv/include/ops/nic.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/include/ops/nic.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 	errno_t (*set_state)(ddf_fun_t *, nic_device_state_t);
 	errno_t (*get_address)(ddf_fun_t *, nic_address_t *);
-	
+
 	/** Optional methods */
 	errno_t (*set_address)(ddf_fun_t *, const nic_address_t *);
@@ -55,5 +55,5 @@
 	errno_t (*get_device_info)(ddf_fun_t *, nic_device_info_t *);
 	errno_t (*get_cable_state)(ddf_fun_t *, nic_cable_state_t *);
-	
+
 	errno_t (*get_operation_mode)(ddf_fun_t *, int *, nic_channel_mode_t *,
 	    nic_role_t *);
@@ -68,5 +68,5 @@
 	    uint16_t *);
 	errno_t (*set_pause)(ddf_fun_t *, int, int, uint16_t);
-	
+
 	errno_t (*unicast_get_mode)(ddf_fun_t *, nic_unicast_mode_t *, size_t,
 	    nic_address_t *, size_t *);
@@ -84,9 +84,9 @@
 	    size_t *);
 	errno_t (*blocked_sources_set)(ddf_fun_t *, const nic_address_t *, size_t);
-	
+
 	errno_t (*vlan_get_mask)(ddf_fun_t *, nic_vlan_mask_t *);
 	errno_t (*vlan_set_mask)(ddf_fun_t *, const nic_vlan_mask_t *);
 	errno_t (*vlan_set_tag)(ddf_fun_t *, uint16_t, bool, bool);
-	
+
 	errno_t (*wol_virtue_add)(ddf_fun_t *, nic_wv_type_t, const void *,
 	    size_t, nic_wv_id_t *);
@@ -99,8 +99,8 @@
 	errno_t (*wol_load_info)(ddf_fun_t *, nic_wv_type_t *, size_t,
 	    uint8_t *, size_t *);
-	
+
 	errno_t (*offload_probe)(ddf_fun_t *, uint32_t *, uint32_t *);
 	errno_t (*offload_set)(ddf_fun_t *, uint32_t, uint32_t);
-	
+
 	errno_t (*poll_get_mode)(ddf_fun_t *, nic_poll_mode_t *,
 	    struct timeval *);
Index: uspace/lib/drv/include/usbhid_iface.h
===================================================================
--- uspace/lib/drv/include/usbhid_iface.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/drv/include/usbhid_iface.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 	errno_t (*get_event)(ddf_fun_t *fun, uint8_t *buffer, size_t size,
 	    size_t *act_size, int *event_nr, unsigned int flags);
-	
+
 	/** Get size of the report descriptor in bytes.
 	 *
@@ -72,5 +72,5 @@
 	 */
 	size_t (*get_report_descriptor_length)(ddf_fun_t *fun);
-	
+
 	/** Get the report descriptor from the HID device.
 	 *
Index: uspace/lib/ext4/include/ext4/types.h
===================================================================
--- uspace/lib/ext4/include/ext4/types.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/include/ext4/types.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 	uint16_t def_resuid;                /* Default uid for reserved blocks */
 	uint16_t def_resgid;                /* Default gid for reserved blocks */
-	
+
 	/* Fields for EXT4_DYNAMIC_REV superblocks only. */
 	uint32_t first_inode;             /* First non-reserved inode */
@@ -78,5 +78,5 @@
 	char last_mounted[64];            /* Directory where last mounted */
 	uint32_t algorithm_usage_bitmap;  /* For compression */
-	
+
 	/*
 	 * Performance hints. Directory preallocation should only
@@ -86,5 +86,5 @@
 	uint8_t prealloc_dir_blocks;    /* Number to preallocate for dirs */
 	uint16_t reserved_gdt_blocks;   /* Per group desc for online growth */
-	
+
 	/*
 	 * Journaling support valid if EXT4_FEATURE_COMPAT_HAS_JOURNAL set.
@@ -251,5 +251,5 @@
 	uint16_t itable_unused_lo;            /* Unused inodes count */
 	uint16_t checksum;                    /* crc16(sb_uuid+group+desc) */
-	
+
 	uint32_t block_bitmap_hi;             /* Blocks bitmap block MSB */
 	uint32_t inode_bitmap_hi;             /* I-nodes bitmap block MSB */
@@ -307,5 +307,5 @@
 	uint32_t size_hi;
 	uint32_t obso_faddr;                 /* Obsoleted fragment address */
-	
+
 	union {
 		struct {
@@ -324,5 +324,5 @@
 		} hurd2;
 	} __attribute__ ((packed)) osd2;
-	
+
 	uint16_t extra_isize;
 	uint16_t pad1;
@@ -403,10 +403,10 @@
 	uint16_t entry_length;  /* Distance to the next directory entry */
 	uint8_t name_length;    /* Lower 8 bits of name length */
-	
+
 	union {
 		uint8_t name_length_high;  /* Higher 8 bits of name length */
 		uint8_t inode_type;        /* Type of referenced inode (in rev >= 0.5) */
 	} __attribute__ ((packed));
-	
+
 	uint8_t name[EXT4_DIRECTORY_FILENAME_LEN];  /* Entry name */
 } __attribute__((packed)) ext4_directory_entry_ll_t;
@@ -495,5 +495,5 @@
 typedef struct ext4_extent_index {
 	uint32_t first_block;  /* Index covers logical blocks from 'block' */
-	
+
 	/**
 	 * Pointer to the physical block of the next
Index: uspace/lib/ext4/src/balloc.c
===================================================================
--- uspace/lib/ext4/src/balloc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/balloc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -57,10 +57,10 @@
 	ext4_filesystem_t *fs = inode_ref->fs;
 	ext4_superblock_t *sb = fs->superblock;
-	
+
 	/* Compute indexes */
 	uint32_t block_group = ext4_filesystem_blockaddr2group(sb, block_addr);
 	uint32_t index_in_group =
 	    ext4_filesystem_blockaddr2_index_in_group(sb, block_addr);
-	
+
 	/* Load block group reference */
 	ext4_block_group_ref_t *bg_ref;
@@ -68,5 +68,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Load block with bitmap */
 	uint32_t bitmap_block_addr =
@@ -78,9 +78,9 @@
 		return rc;
 	}
-	
+
 	/* Modify bitmap */
 	ext4_bitmap_free_bit(bitmap_block->data, index_in_group);
 	bitmap_block->dirty = true;
-	
+
 	/* Release block with bitmap */
 	rc = block_put(bitmap_block);
@@ -90,7 +90,7 @@
 		return rc;
 	}
-	
+
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
-	
+
 	/* Update superblock free blocks count */
 	uint32_t sb_free_blocks =
@@ -98,5 +98,5 @@
 	sb_free_blocks++;
 	ext4_superblock_set_free_blocks_count(sb, sb_free_blocks);
-	
+
 	/* Update inode blocks count */
 	uint64_t ino_blocks =
@@ -105,5 +105,5 @@
 	ext4_inode_set_blocks_count(sb, inode_ref->inode, ino_blocks);
 	inode_ref->dirty = true;
-	
+
 	/* Update block group free blocks count */
 	uint32_t free_blocks =
@@ -113,5 +113,5 @@
 	    sb, free_blocks);
 	bg_ref->dirty = true;
-	
+
 	/* Release block group reference */
 	return ext4_filesystem_put_block_group_ref(bg_ref);
@@ -346,5 +346,5 @@
 {
 	uint32_t allocated_block = 0;
-	
+
 	uint32_t bitmap_block_addr;
 	block_t *bitmap_block;
@@ -352,5 +352,5 @@
 	uint32_t free_blocks;
 	uint32_t goal;
-	
+
 	/* Find GOAL */
 	errno_t rc = ext4_balloc_find_goal(inode_ref, &goal);
@@ -359,10 +359,10 @@
 
 	ext4_superblock_t *sb = inode_ref->fs->superblock;
-	
+
 	/* Load block group number for goal and relative index */
 	uint32_t block_group = ext4_filesystem_blockaddr2group(sb, goal);
 	uint32_t index_in_group =
 	    ext4_filesystem_blockaddr2_index_in_group(sb, goal);
-	
+
 	/* Load block group reference */
 	ext4_block_group_ref_t *bg_ref;
@@ -378,19 +378,19 @@
 		goto goal_failed;
 	}
-	
+
 	/* Compute indexes */
 	uint32_t first_in_group =
 	    ext4_balloc_get_first_data_block_in_group(sb, bg_ref);
-	
+
 	uint32_t first_in_group_index =
 	    ext4_filesystem_blockaddr2_index_in_group(sb, first_in_group);
-	
+
 	if (index_in_group < first_in_group_index)
 		index_in_group = first_in_group_index;
-	
+
 	/* Load block with bitmap */
 	bitmap_block_addr =
 	    ext4_block_group_get_block_bitmap(bg_ref->block_group, sb);
-	
+
 	rc = block_get(&bitmap_block, inode_ref->fs->device,
 	    bitmap_block_addr, BLOCK_FLAGS_NONE);
@@ -399,5 +399,5 @@
 		return rc;
 	}
-	
+
 	/* Check if goal is free */
 	if (ext4_bitmap_is_free_bit(bitmap_block->data, index_in_group)) {
@@ -409,19 +409,19 @@
 			return rc;
 		}
-		
+
 		allocated_block =
 		    ext4_filesystem_index_in_group2blockaddr(sb, index_in_group,
 		    block_group);
-		
+
 		goto success;
 	}
-	
+
 	uint32_t blocks_in_group =
 	    ext4_superblock_get_blocks_in_group(sb, block_group);
-	
+
 	uint32_t end_idx = (index_in_group + 63) & ~63;
 	if (end_idx > blocks_in_group)
 		end_idx = blocks_in_group;
-	
+
 	/* Try to find free block near to goal */
 	for (uint32_t tmp_idx = index_in_group + 1; tmp_idx < end_idx;
@@ -433,13 +433,13 @@
 			if (rc != EOK)
 				return rc;
-			
+
 			allocated_block =
 			    ext4_filesystem_index_in_group2blockaddr(sb, tmp_idx,
 			    block_group);
-			
+
 			goto success;
 		}
 	}
-	
+
 	/* Find free BYTE in bitmap */
 	rc = ext4_bitmap_find_free_byte_and_set_bit(bitmap_block->data,
@@ -450,12 +450,12 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		allocated_block =
 		    ext4_filesystem_index_in_group2blockaddr(sb, rel_block_idx,
 		    block_group);
-		
+
 		goto success;
 	}
-	
+
 	/* Find free bit in bitmap */
 	rc = ext4_bitmap_find_free_bit_and_set(bitmap_block->data,
@@ -466,12 +466,12 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		allocated_block =
 		    ext4_filesystem_index_in_group2blockaddr(sb, rel_block_idx,
 		    block_group);
-		
+
 		goto success;
 	}
-	
+
 	/* No free block found yet */
 	rc = block_put(bitmap_block);
@@ -486,11 +486,11 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Try other block groups */
 	uint32_t block_group_count = ext4_superblock_get_block_group_count(sb);
-	
+
 	uint32_t bgid = (block_group + 1) % block_group_count;
 	uint32_t count = block_group_count;
-	
+
 	while (count > 0) {
 		rc = ext4_filesystem_get_block_group_ref(inode_ref->fs, bgid,
@@ -509,5 +509,5 @@
 		bitmap_block_addr =
 		    ext4_block_group_get_block_bitmap(bg_ref->block_group, sb);
-		
+
 		rc = block_get(&bitmap_block, inode_ref->fs->device,
 		    bitmap_block_addr, 0);
@@ -516,5 +516,5 @@
 			return rc;
 		}
-		
+
 		/* Compute indexes */
 		first_in_group =
@@ -523,11 +523,11 @@
 		    ext4_filesystem_blockaddr2_index_in_group(sb, first_in_group);
 		blocks_in_group = ext4_superblock_get_blocks_in_group(sb, bgid);
-		
+
 		first_in_group_index =
 		    ext4_filesystem_blockaddr2_index_in_group(sb, first_in_group);
-		
+
 		if (index_in_group < first_in_group_index)
 			index_in_group = first_in_group_index;
-		
+
 		/* Try to find free byte in bitmap */
 		rc = ext4_bitmap_find_free_byte_and_set_bit(bitmap_block->data,
@@ -540,12 +540,12 @@
 				return rc;
 			}
-			
+
 			allocated_block =
 			    ext4_filesystem_index_in_group2blockaddr(sb, rel_block_idx,
 			    bgid);
-			
+
 			goto success;
 		}
-		
+
 		/* Try to find free bit in bitmap */
 		rc = ext4_bitmap_find_free_bit_and_set(bitmap_block->data,
@@ -558,12 +558,12 @@
 				return rc;
 			}
-			
+
 			allocated_block =
 			    ext4_filesystem_index_in_group2blockaddr(sb, rel_block_idx,
 			    bgid);
-			
+
 			goto success;
 		}
-		
+
 		rc = block_put(bitmap_block);
 		if (rc != EOK) {
@@ -576,23 +576,23 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Goto next group */
 		bgid = (bgid + 1) % block_group_count;
 		count--;
 	}
-	
+
 	return ENOSPC;
-	
+
 success:
 	/* Empty command - because of syntax */
 	;
-	
+
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
-	
+
 	/* Update superblock free blocks count */
 	uint32_t sb_free_blocks = ext4_superblock_get_free_blocks_count(sb);
 	sb_free_blocks--;
 	ext4_superblock_set_free_blocks_count(sb, sb_free_blocks);
-	
+
 	/* Update inode blocks (different block size!) count */
 	uint64_t ino_blocks =
@@ -601,5 +601,5 @@
 	ext4_inode_set_blocks_count(sb, inode_ref->inode, ino_blocks);
 	inode_ref->dirty = true;
-	
+
 	/* Update block group free blocks count */
 	uint32_t bg_free_blocks =
@@ -609,7 +609,7 @@
 	    bg_free_blocks);
 	bg_ref->dirty = true;
-	
+
 	rc = ext4_filesystem_put_block_group_ref(bg_ref);
-	
+
 	*fblock = allocated_block;
 	return rc;
@@ -629,13 +629,13 @@
 {
 	errno_t rc;
-	
+
 	ext4_filesystem_t *fs = inode_ref->fs;
 	ext4_superblock_t *sb = fs->superblock;
-	
+
 	/* Compute indexes */
 	uint32_t block_group = ext4_filesystem_blockaddr2group(sb, fblock);
 	uint32_t index_in_group =
 	    ext4_filesystem_blockaddr2_index_in_group(sb, fblock);
-	
+
 	/* Load block group reference */
 	ext4_block_group_ref_t *bg_ref;
@@ -643,5 +643,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Load block with bitmap */
 	uint32_t bitmap_block_addr =
@@ -653,8 +653,8 @@
 		return rc;
 	}
-	
+
 	/* Check if block is free */
 	*free = ext4_bitmap_is_free_bit(bitmap_block->data, index_in_group);
-	
+
 	/* Allocate block if possible */
 	if (*free) {
@@ -662,5 +662,5 @@
 		bitmap_block->dirty = true;
 	}
-	
+
 	/* Release block with bitmap */
 	rc = block_put(bitmap_block);
@@ -670,16 +670,16 @@
 		return rc;
 	}
-	
+
 	/* If block is not free, return */
 	if (!(*free))
 		goto terminate;
-	
+
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
-	
+
 	/* Update superblock free blocks count */
 	uint32_t sb_free_blocks = ext4_superblock_get_free_blocks_count(sb);
 	sb_free_blocks--;
 	ext4_superblock_set_free_blocks_count(sb, sb_free_blocks);
-	
+
 	/* Update inode blocks count */
 	uint64_t ino_blocks =
@@ -688,5 +688,5 @@
 	ext4_inode_set_blocks_count(sb, inode_ref->inode, ino_blocks);
 	inode_ref->dirty = true;
-	
+
 	/* Update block group free blocks count */
 	uint32_t free_blocks =
@@ -696,5 +696,5 @@
 	    sb, free_blocks);
 	bg_ref->dirty = true;
-	
+
 terminate:
 	return ext4_filesystem_put_block_group_ref(bg_ref);
Index: uspace/lib/ext4/src/bitmap.c
===================================================================
--- uspace/lib/ext4/src/bitmap.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/bitmap.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,7 +52,7 @@
 	uint32_t byte_index = index / 8;
 	uint32_t bit_index = index % 8;
-	
+
 	uint8_t *target = bitmap + byte_index;
-	
+
 	*target &= ~ (1 << bit_index);
 }
@@ -73,45 +73,45 @@
 	uint32_t remaining = count;
 	uint32_t byte_index;
-	
+
 	/* Align index to multiple of 8 */
 	while (((idx % 8) != 0) && (remaining > 0)) {
 		byte_index = idx / 8;
 		uint32_t bit_index = idx % 8;
-		
+
 		target = bitmap + byte_index;
 		*target &= ~ (1 << bit_index);
-		
+
 		idx++;
 		remaining--;
 	}
-	
+
 	/* For < 8 bits this check necessary */
 	if (remaining == 0)
 		return;
-	
+
 	assert((idx % 8) == 0);
-	
+
 	byte_index = idx / 8;
 	target = bitmap + byte_index;
-	
+
 	/* Zero the whole bytes */
 	while (remaining >= 8) {
 		*target = 0;
-		
+
 		idx += 8;
 		remaining -= 8;
 		target++;
 	}
-	
+
 	assert(remaining < 8);
-	
+
 	/* Zero remaining bytes */
 	while (remaining != 0) {
 		byte_index = idx / 8;
 		uint32_t bit_index = idx % 8;
-		
+
 		target = bitmap + byte_index;
 		*target &= ~ (1 << bit_index);
-		
+
 		idx++;
 		remaining--;
@@ -129,7 +129,7 @@
 	uint32_t byte_index = index / 8;
 	uint32_t bit_index = index % 8;
-	
+
 	uint8_t *target = bitmap + byte_index;
-	
+
 	*target |= 1 << bit_index;
 }
@@ -147,7 +147,7 @@
 	uint32_t byte_index = index / 8;
 	uint32_t bit_index = index % 8;
-	
+
 	uint8_t *target = bitmap + byte_index;
-	
+
 	if (*target & (1 << bit_index))
 		return false;
@@ -173,5 +173,5 @@
 {
 	uint32_t idx;
-	
+
 	/* Align idx */
 	if (start % 8)
@@ -179,20 +179,20 @@
 	else
 		idx = start;
-	
+
 	uint8_t *pos = bitmap + (idx / 8);
-	
+
 	/* Try to find free byte */
 	while (idx < max) {
 		if (*pos == 0) {
 			*pos |= 1;
-			
+
 			*index = idx;
 			return EOK;
 		}
-		
+
 		idx += 8;
 		++pos;
 	}
-	
+
 	/* Free byte not found */
 	return ENOSPC;
@@ -217,9 +217,9 @@
 	uint32_t idx = start_idx;
 	bool byte_part = false;
-	
+
 	/* Check the rest of first byte */
 	while ((idx % 8) != 0) {
 		byte_part = true;
-		
+
 		if ((*pos & (1 << (idx % 8))) == 0) {
 			*pos |= (1 << (idx % 8));
@@ -227,11 +227,11 @@
 			return EOK;
 		}
-		
+
 		++idx;
 	}
-	
+
 	if (byte_part)
 		++pos;
-	
+
 	/* Check the whole bytes (255 = 11111111 binary) */
 	while (idx < max) {
@@ -240,9 +240,9 @@
 			break;
 		}
-		
+
 		idx += 8;
 		++pos;
 	}
-	
+
 	/* If idx < max, some free bit found */
 	if (idx < max) {
@@ -252,13 +252,13 @@
 				/* Free bit found */
 				*pos |= (1 << i);
-				
+
 				*index = idx;
 				return EOK;
 			}
-			
+
 			idx++;
 		}
 	}
-	
+
 	/* Free bit not found */
 	return ENOSPC;
Index: uspace/lib/ext4/src/block_group.c
===================================================================
--- uspace/lib/ext4/src/block_group.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/block_group.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,5 +70,5 @@
 {
 	bg->block_bitmap_lo = host2uint32_t_le((block_bitmap << 32) >> 32);
-	
+
 	if (ext4_superblock_get_desc_size(sb) >
 	    EXT4_MIN_BLOCK_GROUP_DESCRIPTOR_SIZE)
@@ -106,5 +106,5 @@
 {
 	bg->inode_bitmap_lo = host2uint32_t_le((inode_bitmap << 32) >> 32);
-	
+
 	if (ext4_superblock_get_desc_size(sb) >
 	    EXT4_MIN_BLOCK_GROUP_DESCRIPTOR_SIZE)
@@ -144,5 +144,5 @@
 	bg->inode_table_first_block_lo =
 	    host2uint32_t_le((inode_table_first << 32) >> 32);
-	
+
 	if (ext4_superblock_get_desc_size(sb) >
 	    EXT4_MIN_BLOCK_GROUP_DESCRIPTOR_SIZE)
@@ -353,5 +353,5 @@
 	if (ext4_block_group_get_flags(bg) & flag)
 		return true;
-	
+
 	return false;
 }
Index: uspace/lib/ext4/src/directory.c
===================================================================
--- uspace/lib/ext4/src/directory.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/directory.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -110,5 +110,5 @@
 		return ((uint16_t)de->name_length_high) << 8 |
 		    ((uint16_t)de->name_length);
-	
+
 	return de->name_length;
 
@@ -126,9 +126,9 @@
 {
 	de->name_length = (length << 8) >> 8;
-	
+
 	if ((ext4_superblock_get_rev_level(sb) == 0) &&
 	    (ext4_superblock_get_minor_rev_level(sb) < 5))
 		de->name_length_high = length >> 8;
-	
+
 	/* Else do nothing */
 }
@@ -148,5 +148,5 @@
 	    (ext4_superblock_get_minor_rev_level(sb) >= 5))
 		return de->inode_type;
-	
+
 	return EXT4_DIRECTORY_FILETYPE_UNKNOWN;
 }
@@ -165,5 +165,5 @@
 	    (ext4_superblock_get_minor_rev_level(sb) >= 5))
 		de->inode_type = type;
-	
+
 	/* Else do nothing */
 }
@@ -190,5 +190,5 @@
 	it->current_offset = 0;
 	it->current_block = NULL;
-	
+
 	return ext4_directory_iterator_seek(it, pos);
 }
@@ -204,7 +204,7 @@
 {
 	assert(it->current != NULL);
-	
+
 	uint16_t skip = ext4_directory_entry_ll_get_entry_length(it->current);
-	
+
 	return ext4_directory_iterator_seek(it, it->current_offset + skip);
 }
@@ -224,8 +224,8 @@
 	uint64_t size = ext4_inode_get_size(it->inode_ref->fs->superblock,
 	    it->inode_ref->inode);
-	
+
 	/* The iterator is not valid until we seek to the desired position */
 	it->current = NULL;
-	
+
 	/* Are we at the end? */
 	if (pos >= size) {
@@ -233,13 +233,13 @@
 			errno_t rc = block_put(it->current_block);
 			it->current_block = NULL;
-			
+
 			if (rc != EOK)
 				return rc;
 		}
-		
+
 		it->current_offset = pos;
 		return EOK;
 	}
-	
+
 	/* Compute next block address */
 	uint32_t block_size =
@@ -247,5 +247,5 @@
 	aoff64_t current_block_idx = it->current_offset / block_size;
 	aoff64_t next_block_idx = pos / block_size;
-	
+
 	/*
 	 * If we don't have a block or are moving accross block boundary,
@@ -257,9 +257,9 @@
 			errno_t rc = block_put(it->current_block);
 			it->current_block = NULL;
-			
+
 			if (rc != EOK)
 				return rc;
 		}
-		
+
 		uint32_t next_block_phys_idx;
 		errno_t rc = ext4_filesystem_get_inode_data_block_index(it->inode_ref,
@@ -267,5 +267,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		rc = block_get(&it->current_block, it->inode_ref->fs->device,
 		    next_block_phys_idx, BLOCK_FLAGS_NONE);
@@ -275,7 +275,7 @@
 		}
 	}
-	
+
 	it->current_offset = pos;
-	
+
 	return ext4_directory_iterator_set(it, block_size);
 }
@@ -293,28 +293,28 @@
 {
 	it->current = NULL;
-	
+
 	uint32_t offset_in_block = it->current_offset % block_size;
-	
+
 	/* Ensure proper alignment */
 	if ((offset_in_block % 4) != 0)
 		return EIO;
-	
+
 	/* Ensure that the core of the entry does not overflow the block */
 	if (offset_in_block > block_size - 8)
 		return EIO;
-	
+
 	ext4_directory_entry_ll_t *entry =
 	    it->current_block->data + offset_in_block;
-	
+
 	/* Ensure that the whole entry does not overflow the block */
 	uint16_t length = ext4_directory_entry_ll_get_entry_length(entry);
 	if (offset_in_block + length > block_size)
 		return EIO;
-	
+
 	/* Ensure the name length is not too large */
 	if (ext4_directory_entry_ll_get_name_length(
 	    it->inode_ref->fs->superblock, entry) > length-8)
 		return EIO;
-	
+
 	/* Everything OK - "publish" the entry */
 	it->current = entry;
@@ -335,8 +335,8 @@
 	it->inode_ref = NULL;
 	it->current = NULL;
-	
+
 	if (it->current_block)
 		return block_put(it->current_block);
-	
+
 	return EOK;
 }
@@ -359,13 +359,13 @@
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
 	assert(entry_len <= block_size);
-	
+
 	/* Set basic attributes */
 	ext4_directory_entry_ll_set_inode(entry, child->index);
 	ext4_directory_entry_ll_set_entry_length(entry, entry_len);
 	ext4_directory_entry_ll_set_name_length(sb, entry, name_len);
-	
+
 	/* Write name */
 	memcpy(entry->name, name, name_len);
-	
+
 	/* Set type of entry */
 	if (ext4_inode_is_type(sb, child->inode, EXT4_INODE_MODE_DIRECTORY))
@@ -390,5 +390,5 @@
 {
 	ext4_filesystem_t *fs = parent->fs;
-	
+
 	/* Index adding (if allowed) */
 	if ((ext4_superblock_has_feature_compatible(fs->superblock,
@@ -405,7 +405,7 @@
 		parent->dirty = true;
 	}
-	
+
 	/* Linear algorithm */
-	
+
 	uint32_t iblock = 0;
 	uint32_t fblock = 0;
@@ -413,7 +413,7 @@
 	uint32_t inode_size = ext4_inode_get_size(fs->superblock, parent->inode);
 	uint32_t total_blocks = inode_size / block_size;
-	
+
 	uint32_t name_len = str_size(name);
-	
+
 	/* Find block, where is space for new entry and try to add */
 	bool success = false;
@@ -423,10 +423,10 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		block_t *block;
 		rc = block_get(&block, fs->device, fblock, BLOCK_FLAGS_NONE);
 		if (rc != EOK)
 			return rc;
-		
+
 		/* If adding is successful, function can finish */
 		rc = ext4_directory_try_insert_entry(fs->superblock, block,
@@ -434,15 +434,15 @@
 		if (rc == EOK)
 			success = true;
-		
+
 		rc = block_put(block);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (success)
 			return EOK;
 	}
-	
+
 	/* No free block found - needed to allocate next data block */
-	
+
 	iblock = 0;
 	fblock = 0;
@@ -450,5 +450,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Load new block */
 	block_t *new_block;
@@ -456,5 +456,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Fill block with zeroes */
 	memset(new_block->data, 0, block_size);
@@ -462,9 +462,9 @@
 	ext4_directory_write_entry(fs->superblock, block_entry, block_size,
 	    child, name, name_len);
-	
+
 	/* Save new block */
 	new_block->dirty = true;
 	rc = block_put(new_block);
-	
+
 	return rc;
 }
@@ -483,7 +483,7 @@
 {
 	uint32_t name_len = str_size(name);
-	
+
 	ext4_superblock_t *sb = parent->fs->superblock;
-	
+
 	/* Index search */
 	if ((ext4_superblock_has_feature_compatible(sb,
@@ -492,20 +492,20 @@
 		errno_t rc = ext4_directory_dx_find_entry(result, parent, name_len,
 		    name);
-		
+
 		/* Check if index is not corrupted */
 		if (rc != EXT4_ERR_BAD_DX_DIR) {
 			if (rc != EOK)
 				return rc;
-			
+
 			return EOK;
 		}
-		
+
 		/* Needed to clear dir index flag if corrupted */
 		ext4_inode_clear_flag(parent->inode, EXT4_INODE_FLAG_INDEX);
 		parent->dirty = true;
 	}
-	
+
 	/* Linear algorithm */
-	
+
 	uint32_t iblock;
 	uint32_t fblock;
@@ -513,5 +513,5 @@
 	uint32_t inode_size = ext4_inode_get_size(sb, parent->inode);
 	uint32_t total_blocks = inode_size / block_size;
-	
+
 	/* Walk through all data blocks */
 	for (iblock = 0; iblock < total_blocks; ++iblock) {
@@ -521,5 +521,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Load data block */
 		block_t *block;
@@ -527,5 +527,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Try to find entry in block */
 		ext4_directory_entry_ll_t *res_entry;
@@ -537,17 +537,17 @@
 			return EOK;
 		}
-		
+
 		/* Entry not found - put block and continue to the next block */
-		
+
 		rc = block_put(block);
 		if (rc != EOK)
 			return rc;
 	}
-	
+
 	/* Entry was not found */
-	
+
 	result->block = NULL;
 	result->dentry =  NULL;
-	
+
 	return ENOENT;
 }
@@ -567,5 +567,5 @@
 	    EXT4_INODE_MODE_DIRECTORY))
 		return ENOTDIR;
-	
+
 	/* Try to find entry */
 	ext4_directory_search_result_t result;
@@ -573,11 +573,11 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Invalidate entry */
 	ext4_directory_entry_ll_set_inode(result.dentry, 0);
-	
+
 	/* Store entry position in block */
 	uint32_t pos = (void *) result.dentry - result.block->data;
-	
+
 	/*
 	 * If entry is not the first in block, it must be merged
@@ -586,10 +586,10 @@
 	if (pos != 0) {
 		uint32_t offset = 0;
-		
+
 		/* Start from the first entry in block */
 		ext4_directory_entry_ll_t *tmp_dentry = result.block->data;
 		uint16_t tmp_dentry_length =
 		    ext4_directory_entry_ll_get_entry_length(tmp_dentry);
-		
+
 		/* Find direct predecessor of removed entry */
 		while ((offset + tmp_dentry_length) < pos) {
@@ -600,7 +600,7 @@
 			    ext4_directory_entry_ll_get_entry_length(tmp_dentry);
 		}
-		
+
 		assert(tmp_dentry_length + offset == pos);
-		
+
 		/* Add to removed entry length to predecessor's length */
 		uint16_t del_entry_length =
@@ -609,7 +609,7 @@
 		    tmp_dentry_length + del_entry_length);
 	}
-	
+
 	result.block->dirty = true;
-	
+
 	return ext4_directory_destroy_result(&result);
 }
@@ -633,12 +633,12 @@
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
 	uint16_t required_len = sizeof(ext4_fake_directory_entry_t) + name_len;
-	
+
 	if ((required_len % 4) != 0)
 		required_len += 4 - (required_len % 4);
-	
+
 	/* Initialize pointers, stop means to upper bound */
 	ext4_directory_entry_ll_t *dentry = target_block->data;
 	ext4_directory_entry_ll_t *stop = target_block->data + block_size;
-	
+
 	/*
 	 * Walk through the block and check for invalid entries
@@ -648,5 +648,5 @@
 		uint32_t inode = ext4_directory_entry_ll_get_inode(dentry);
 		uint16_t rec_len = ext4_directory_entry_ll_get_entry_length(dentry);
-		
+
 		/* If invalid and large enough entry, use it */
 		if ((inode == 0) && (rec_len >= required_len)) {
@@ -654,21 +654,21 @@
 			    name, name_len);
 			target_block->dirty = true;
-			
+
 			return EOK;
 		}
-		
+
 		/* Valid entry, try to split it */
 		if (inode != 0) {
 			uint16_t used_name_len =
 			    ext4_directory_entry_ll_get_name_length(sb, dentry);
-			
+
 			uint16_t used_space =
 			    sizeof(ext4_fake_directory_entry_t) + used_name_len;
-			
+
 			if ((used_name_len % 4) != 0)
 				used_space += 4 - (used_name_len % 4);
-			
+
 			uint16_t free_space = rec_len - used_space;
-			
+
 			/* There is free space for new entry */
 			if (free_space >= required_len) {
@@ -679,15 +679,15 @@
 				ext4_directory_write_entry(sb, new_entry,
 				    free_space, child, name, name_len);
-				
+
 				target_block->dirty = true;
-				
+
 				return EOK;
 			}
 		}
-		
+
 		/* Jump to the next entry */
 		dentry = (void *) dentry + rec_len;
 	}
-	
+
 	/* No free space found for new entry */
 	return ENOSPC;
@@ -711,8 +711,8 @@
 	ext4_directory_entry_ll_t *dentry =
 	    (ext4_directory_entry_ll_t *) block->data;
-	
+
 	/* Set upper bound for cycling */
 	uint8_t *addr_limit = block->data + ext4_superblock_get_block_size(sb);
-	
+
 	/* Walk through the block and check entries */
 	while ((uint8_t *) dentry < addr_limit) {
@@ -720,5 +720,5 @@
 		if ((uint8_t *) dentry + name_len > addr_limit)
 			break;
-		
+
 		/* Valid entry - check it */
 		if (dentry->inode != 0) {
@@ -733,16 +733,16 @@
 			}
 		}
-		
+
 		uint16_t dentry_len =
 		    ext4_directory_entry_ll_get_entry_length(dentry);
-		
+
 		/* Corrupted entry */
 		if (dentry_len == 0)
 			return EINVAL;
-		
+
 		/* Jump to next entry */
 		dentry = (ext4_directory_entry_ll_t *) ((uint8_t *) dentry + dentry_len);
 	}
-	
+
 	/* Entry not found */
 	return ENOENT;
@@ -760,5 +760,5 @@
 	if (result->block)
 		return block_put(result->block);
-	
+
 	return EOK;
 }
Index: uspace/lib/ext4/src/directory_index.c
===================================================================
--- uspace/lib/ext4/src/directory_index.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/directory_index.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -244,27 +244,27 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	block_t *block;
 	rc = block_get(&block, dir->fs->device, fblock, BLOCK_FLAGS_NONE);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Initialize pointers to data structures */
 	ext4_directory_dx_root_t *root = block->data;
 	ext4_directory_dx_root_info_t *info = &(root->info);
-	
+
 	/* Initialize root info structure */
 	uint8_t hash_version =
 	    ext4_superblock_get_default_hash_version(dir->fs->superblock);
-	
+
 	ext4_directory_dx_root_info_set_hash_version(info, hash_version);
 	ext4_directory_dx_root_info_set_indirect_levels(info, 0);
 	ext4_directory_dx_root_info_set_info_length(info, 8);
-	
+
 	/* Set limit and current number of entries */
 	ext4_directory_dx_countlimit_t *countlimit =
 	    (ext4_directory_dx_countlimit_t *) &root->entries;
 	ext4_directory_dx_countlimit_set_count(countlimit, 1);
-	
+
 	uint32_t block_size =
 	    ext4_superblock_get_block_size(dir->fs->superblock);
@@ -274,5 +274,5 @@
 	uint16_t root_limit = entry_space / sizeof(ext4_directory_dx_entry_t);
 	ext4_directory_dx_countlimit_set_limit(countlimit, root_limit);
-	
+
 	/* Append new block, where will be new entries inserted in the future */
 	uint32_t iblock;
@@ -282,5 +282,5 @@
 		return rc;
 	}
-	
+
 	block_t *new_block;
 	rc = block_get(&new_block, dir->fs->device, fblock, BLOCK_FLAGS_NOREAD);
@@ -289,10 +289,10 @@
 		return rc;
 	}
-	
+
 	/* Fill the whole block with empty entry */
 	ext4_directory_entry_ll_t *block_entry = new_block->data;
 	ext4_directory_entry_ll_set_entry_length(block_entry, block_size);
 	ext4_directory_entry_ll_set_inode(block_entry, 0);
-	
+
 	new_block->dirty = true;
 	rc = block_put(new_block);
@@ -301,11 +301,11 @@
 		return rc;
 	}
-	
+
 	/* Connect new block to the only entry in index */
 	ext4_directory_dx_entry_t *entry = root->entries;
 	ext4_directory_dx_entry_set_block(entry, iblock);
-	
+
 	block->dirty = true;
-	
+
 	return block_put(block);
 }
@@ -328,18 +328,18 @@
 	ext4_directory_dx_root_t *root =
 	    (ext4_directory_dx_root_t *) root_block->data;
-	
+
 	if ((root->info.hash_version != EXT4_HASH_VERSION_TEA) &&
 	    (root->info.hash_version != EXT4_HASH_VERSION_HALF_MD4) &&
 	    (root->info.hash_version != EXT4_HASH_VERSION_LEGACY))
 		return EXT4_ERR_BAD_DX_DIR;
-	
+
 	/* Check unused flags */
 	if (root->info.unused_flags != 0)
 		return EXT4_ERR_BAD_DX_DIR;
-	
+
 	/* Check indirect levels */
 	if (root->info.indirect_levels > 1)
 		return EXT4_ERR_BAD_DX_DIR;
-	
+
 	/* Check if node limit is correct */
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
@@ -348,10 +348,10 @@
 	entry_space -= sizeof(ext4_directory_dx_root_info_t);
 	entry_space = entry_space / sizeof(ext4_directory_dx_entry_t);
-	
+
 	uint16_t limit = ext4_directory_dx_countlimit_get_limit(
 	    (ext4_directory_dx_countlimit_t *) &root->entries);
 	if (limit != entry_space)
 		return EXT4_ERR_BAD_DX_DIR;
-	
+
 	/* Check hash version and modify if necessary */
 	hinfo->hash_version =
@@ -362,12 +362,12 @@
 		hinfo->hash_version += 3;
 	}
-	
+
 	/* Load hash seed from superblock */
 	hinfo->seed = ext4_superblock_get_hash_seed(sb);
-	
+
 	/* Compute hash value of name */
 	if (name)
 		ext4_hash_string(hinfo, name_len, name);
-	
+
 	return EOK;
 }
@@ -393,10 +393,10 @@
 	ext4_directory_dx_entry_t *entries =
 	    (ext4_directory_dx_entry_t *) &root->entries;
-	
+
 	uint16_t limit = ext4_directory_dx_countlimit_get_limit(
 	    (ext4_directory_dx_countlimit_t *) entries);
 	uint8_t indirect_level =
 	    ext4_directory_dx_root_info_get_indirect_levels(&root->info);
-	
+
 	block_t *tmp_block = root_block;
 	ext4_directory_dx_entry_t *p;
@@ -404,5 +404,5 @@
 	ext4_directory_dx_entry_t *m;
 	ext4_directory_dx_entry_t *at;
-	
+
 	/* Walk through the index tree */
 	while (true) {
@@ -411,9 +411,9 @@
 		if ((count == 0) || (count > limit))
 			return EXT4_ERR_BAD_DX_DIR;
-		
+
 		/* Do binary search in every node */
 		p = entries + 1;
 		q = entries + count - 1;
-		
+
 		while (p <= q) {
 			m = p + (q - p) / 2;
@@ -423,12 +423,12 @@
 				p = m + 1;
 		}
-		
+
 		at = p - 1;
-		
+
 		/* Write results */
 		tmp_dx_block->block = tmp_block;
 		tmp_dx_block->entries = entries;
 		tmp_dx_block->position = at;
-		
+
 		/* Is algorithm in the leaf? */
 		if (indirect_level == 0) {
@@ -436,10 +436,10 @@
 			return EOK;
 		}
-		
+
 		/* Goto child node */
 		uint32_t next_block = ext4_directory_dx_entry_get_block(at);
-		
+
 		indirect_level--;
-		
+
 		uint32_t fblock;
 		errno_t rc = ext4_filesystem_get_inode_data_block_index(inode_ref,
@@ -447,27 +447,27 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		rc = block_get(&tmp_block, inode_ref->fs->device, fblock,
 		    BLOCK_FLAGS_NONE);
 		if (rc != EOK)
 			return rc;
-		
+
 		entries = ((ext4_directory_dx_node_t *) tmp_block->data)->entries;
 		limit = ext4_directory_dx_countlimit_get_limit(
 		    (ext4_directory_dx_countlimit_t *) entries);
-		
+
 		uint16_t entry_space =
 		    ext4_superblock_get_block_size(inode_ref->fs->superblock) -
 		    sizeof(ext4_directory_dx_dot_entry_t);
 		entry_space = entry_space / sizeof(ext4_directory_dx_entry_t);
-		
+
 		if (limit != entry_space) {
 			block_put(tmp_block);
 			return EXT4_ERR_BAD_DX_DIR;
 		}
-		
+
 		++tmp_dx_block;
 	}
-	
+
 	/* Unreachable */
 	return EOK;
@@ -490,5 +490,5 @@
 	uint32_t num_handles = 0;
 	ext4_directory_dx_block_t *p = dx_block;
-	
+
 	/* Try to find data block with next bunch of entries */
 	while (true) {
@@ -496,15 +496,15 @@
 		uint16_t count = ext4_directory_dx_countlimit_get_count(
 		    (ext4_directory_dx_countlimit_t *) p->entries);
-		
+
 		if (p->position < p->entries + count)
 			break;
-		
+
 		if (p == dx_blocks)
 			return EOK;
-		
+
 		num_handles++;
 		p--;
 	}
-	
+
 	/* Check hash collision (if not occured - no next block cannot be used) */
 	uint32_t current_hash = ext4_directory_dx_entry_get_hash(p->position);
@@ -513,5 +513,5 @@
 			return 0;
 	}
-	
+
 	/* Fill new path */
 	while (num_handles--) {
@@ -519,27 +519,27 @@
 		    ext4_directory_dx_entry_get_block(p->position);
 		uint32_t block_addr;
-		
+
 		errno_t rc = ext4_filesystem_get_inode_data_block_index(inode_ref,
 		    block_idx, &block_addr);
 		if (rc != EOK)
 			return rc;
-		
+
 		block_t *block;
 		rc = block_get(&block, inode_ref->fs->device, block_addr, BLOCK_FLAGS_NONE);
 		if (rc != EOK)
 			return rc;
-		
+
 		p++;
-		
+
 		/* Don't forget to put old block (prevent memory leak) */
 		rc = block_put(p->block);
 		if (rc != EOK)
 			return rc;
-		
+
 		p->block = block;
 		p->entries = ((ext4_directory_dx_node_t *) block->data)->entries;
 		p->position = p->entries;
 	}
-	
+
 	return ENOENT;
 }
@@ -566,7 +566,7 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	ext4_filesystem_t *fs = inode_ref->fs;
-	
+
 	block_t *root_block;
 	rc = block_get(&root_block, fs->device, root_block_addr,
@@ -574,5 +574,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Initialize hash info (compute hash value) */
 	ext4_hash_info_t hinfo;
@@ -583,5 +583,5 @@
 		return EXT4_ERR_BAD_DX_DIR;
 	}
-	
+
 	/*
 	 * Hardcoded number 2 means maximum height of index tree,
@@ -591,5 +591,5 @@
 	ext4_directory_dx_block_t *dx_block;
 	ext4_directory_dx_block_t *tmp;
-	
+
 	rc = ext4_directory_dx_get_leaf(&hinfo, inode_ref, root_block,
 	    &dx_block, dx_blocks);
@@ -598,5 +598,5 @@
 		return EXT4_ERR_BAD_DX_DIR;
 	}
-	
+
 	do {
 		/* Load leaf block */
@@ -604,10 +604,10 @@
 		    ext4_directory_dx_entry_get_block(dx_block->position);
 		uint32_t leaf_block_addr;
-		
+
 		rc = ext4_filesystem_get_inode_data_block_index(inode_ref,
 		    leaf_block_idx, &leaf_block_addr);
 		if (rc != EOK)
 			goto cleanup;
-		
+
 		block_t *leaf_block;
 		rc = block_get(&leaf_block, fs->device, leaf_block_addr,
@@ -615,10 +615,10 @@
 		if (rc != EOK)
 			goto cleanup;
-		
+
 		/* Linear search inside block */
 		ext4_directory_entry_ll_t *res_dentry;
 		rc = ext4_directory_find_in_block(leaf_block, fs->superblock,
 		    name_len, name, &res_dentry);
-		
+
 		/* Found => return it */
 		if (rc == EOK) {
@@ -627,13 +627,13 @@
 			goto cleanup;
 		}
-		
+
 		/* Not found, leave untouched */
 		rc2 = block_put(leaf_block);
 		if (rc2 != EOK)
 			goto cleanup;
-		
+
 		if (rc != ENOENT)
 			goto cleanup;
-		
+
 		/* check if the next block could be checked */
 		rc = ext4_directory_dx_next_block(inode_ref, hinfo.hash,
@@ -643,12 +643,12 @@
 
 	} while (rc == ENOENT);
-	
+
 	/* Entry not found */
 	rc = ENOENT;
-	
+
 cleanup:
 	/* The whole path must be released (preventing memory leak) */
 	tmp = dx_blocks;
-	
+
 	while (tmp <= dx_block) {
 		rc2 = block_put(tmp->block);
@@ -657,5 +657,5 @@
 		++tmp;
 	}
-	
+
 	return rc;
 }
@@ -677,8 +677,8 @@
 	ext4_dx_sort_entry_t const *entry1 = arg1;
 	ext4_dx_sort_entry_t const *entry2 = arg2;
-	
+
 	if (entry1->hash == entry2->hash)
 		return 0;
-	
+
 	if (entry1->hash < entry2->hash)
 		return -1;
@@ -701,19 +701,19 @@
 	ext4_directory_dx_entry_t *old_index_entry = index_block->position;
 	ext4_directory_dx_entry_t *new_index_entry = old_index_entry + 1;
-	
+
 	ext4_directory_dx_countlimit_t *countlimit =
 	    (ext4_directory_dx_countlimit_t *) index_block->entries;
 	uint32_t count = ext4_directory_dx_countlimit_get_count(countlimit);
-	
+
 	ext4_directory_dx_entry_t *start_index = index_block->entries;
 	size_t bytes = (void *) (start_index + count) - (void *) (new_index_entry);
-	
+
 	memmove(new_index_entry + 1, new_index_entry, bytes);
-	
+
 	ext4_directory_dx_entry_set_block(new_index_entry, iblock);
 	ext4_directory_dx_entry_set_hash(new_index_entry, hash);
-	
+
 	ext4_directory_dx_countlimit_set_count(countlimit, count + 1);
-	
+
 	index_block->block->dirty = true;
 }
@@ -733,5 +733,5 @@
 {
 	errno_t rc = EOK;
-	
+
 	/* Allocate buffer for directory entries */
 	uint32_t block_size =
@@ -740,9 +740,9 @@
 	if (entry_buffer == NULL)
 		return ENOMEM;
-	
+
 	/* dot entry has the smallest size available */
 	uint32_t max_entry_count =
 	    block_size / sizeof(ext4_directory_dx_dot_entry_t);
-	
+
 	/* Allocate sort entry */
 	ext4_dx_sort_entry_t *sort_array =
@@ -752,12 +752,12 @@
 		return ENOMEM;
 	}
-	
+
 	uint32_t idx = 0;
 	uint32_t real_size = 0;
-	
+
 	/* Initialize hinfo */
 	ext4_hash_info_t tmp_hinfo;
 	memcpy(&tmp_hinfo, hinfo, sizeof(ext4_hash_info_t));
-	
+
 	/* Load all valid entries to the buffer */
 	ext4_directory_entry_ll_t *dentry = old_data_block->data;
@@ -769,29 +769,29 @@
 			    inode_ref->fs->superblock, dentry);
 			ext4_hash_string(&tmp_hinfo, len, (char *) dentry->name);
-			
+
 			uint32_t rec_len = 8 + len;
-			
+
 			if ((rec_len % 4) != 0)
 				rec_len += 4 - (rec_len % 4);
-			
+
 			memcpy(entry_buffer_ptr, dentry, rec_len);
-			
+
 			sort_array[idx].dentry = entry_buffer_ptr;
 			sort_array[idx].rec_len = rec_len;
 			sort_array[idx].hash = tmp_hinfo.hash;
-			
+
 			entry_buffer_ptr += rec_len;
 			real_size += rec_len;
 			idx++;
 		}
-		
+
 		dentry = (void *) dentry +
 		    ext4_directory_entry_ll_get_entry_length(dentry);
 	}
-	
+
 	/* Sort all entries */
 	qsort(sort_array, idx, sizeof(ext4_dx_sort_entry_t),
 	    ext4_directory_dx_entry_comparator);
-	
+
 	/* Allocate new block for store the second part of entries */
 	uint32_t new_fblock;
@@ -804,5 +804,5 @@
 		return rc;
 	}
-	
+
 	/* Load new block */
 	block_t *new_data_block_tmp;
@@ -814,5 +814,5 @@
 		return rc;
 	}
-	
+
 	/*
 	 * Distribute entries to two blocks (by size)
@@ -828,21 +828,21 @@
 			break;
 		}
-		
+
 		current_size += sort_array[i].rec_len;
 	}
-	
+
 	/* Check hash collision */
 	uint32_t continued = 0;
 	if (new_hash == sort_array[mid-1].hash)
 		continued = 1;
-	
+
 	uint32_t offset = 0;
 	void *ptr;
-	
+
 	/* First part - to the old block */
 	for (uint32_t i = 0; i < mid; ++i) {
 		ptr = old_data_block->data + offset;
 		memcpy(ptr, sort_array[i].dentry, sort_array[i].rec_len);
-		
+
 		ext4_directory_entry_ll_t *tmp = ptr;
 		if (i < (mid - 1))
@@ -852,8 +852,8 @@
 			ext4_directory_entry_ll_set_entry_length(tmp,
 			    block_size - offset);
-		
+
 		offset += sort_array[i].rec_len;
 	}
-	
+
 	/* Second part - to the new block */
 	offset = 0;
@@ -861,5 +861,5 @@
 		ptr = new_data_block_tmp->data + offset;
 		memcpy(ptr, sort_array[i].dentry, sort_array[i].rec_len);
-		
+
 		ext4_directory_entry_ll_t *tmp = ptr;
 		if (i < (idx - 1))
@@ -869,20 +869,20 @@
 			ext4_directory_entry_ll_set_entry_length(tmp,
 			    block_size - offset);
-		
+
 		offset += sort_array[i].rec_len;
 	}
-	
+
 	/* Do some steps to finish operation */
 	old_data_block->dirty = true;
 	new_data_block_tmp->dirty = true;
-	
+
 	free(sort_array);
 	free(entry_buffer);
-	
+
 	ext4_directory_dx_insert_entry(index_block, new_hash + continued,
 	    new_iblock);
-	
+
 	*new_data_block = new_data_block_tmp;
-	
+
 	return EOK;
 }
@@ -907,20 +907,20 @@
 		entries =
 		    ((ext4_directory_dx_node_t *) dx_block->block->data)->entries;
-	
+
 	ext4_directory_dx_countlimit_t *countlimit =
 	    (ext4_directory_dx_countlimit_t *) entries;
-	
+
 	uint16_t leaf_limit =
 	    ext4_directory_dx_countlimit_get_limit(countlimit);
 	uint16_t leaf_count =
 	    ext4_directory_dx_countlimit_get_count(countlimit);
-	
+
 	/* Check if is necessary to split index block */
 	if (leaf_limit == leaf_count) {
 		size_t levels = dx_block - dx_blocks;
-		
+
 		ext4_directory_dx_entry_t *root_entries =
 		    ((ext4_directory_dx_root_t *) dx_blocks[0].block->data)->entries;
-		
+
 		ext4_directory_dx_countlimit_t *root_countlimit =
 		    (ext4_directory_dx_countlimit_t *) root_entries;
@@ -929,9 +929,9 @@
 		uint16_t root_count =
 		    ext4_directory_dx_countlimit_get_count(root_countlimit);
-		
+
 		/* Linux limitation */
 		if ((levels > 0) && (root_limit == root_count))
 			return ENOSPC;
-		
+
 		/* Add new block to directory */
 		uint32_t new_fblock;
@@ -941,5 +941,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* load new block */
 		block_t *new_block;
@@ -948,11 +948,11 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		ext4_directory_dx_node_t *new_node = new_block->data;
 		ext4_directory_dx_entry_t *new_entries = new_node->entries;
-		
+
 		uint32_t block_size =
 		    ext4_superblock_get_block_size(inode_ref->fs->superblock);
-		
+
 		/* Split leaf node */
 		if (levels > 0) {
@@ -961,9 +961,9 @@
 			uint32_t hash_right =
 			    ext4_directory_dx_entry_get_hash(entries + count_left);
-			
+
 			/* Copy data to new node */
 			memcpy((void *) new_entries, (void *) (entries + count_left),
 			    count_right * sizeof(ext4_directory_dx_entry_t));
-			
+
 			/* Initialize new node */
 			ext4_directory_dx_countlimit_t *left_countlimit =
@@ -971,8 +971,8 @@
 			ext4_directory_dx_countlimit_t *right_countlimit =
 			    (ext4_directory_dx_countlimit_t *) new_entries;
-			
+
 			ext4_directory_dx_countlimit_set_count(left_countlimit, count_left);
 			ext4_directory_dx_countlimit_set_count(right_countlimit, count_right);
-			
+
 			uint32_t entry_space =
 			    block_size - sizeof(ext4_fake_directory_entry_t);
@@ -980,10 +980,10 @@
 			    entry_space / sizeof(ext4_directory_dx_entry_t);
 			ext4_directory_dx_countlimit_set_limit(right_countlimit, node_limit);
-			
+
 			/* Which index block is target for new entry */
 			uint32_t position_index = (dx_block->position - dx_block->entries);
 			if (position_index >= count_left) {
 				dx_block->block->dirty = true;
-				
+
 				block_t *block_tmp = dx_block->block;
 				dx_block->block = new_block;
@@ -991,22 +991,22 @@
 				    new_entries + position_index - count_left;
 				dx_block->entries = new_entries;
-				
+
 				new_block = block_tmp;
 			}
-			
+
 			/* Finally insert new entry */
 			ext4_directory_dx_insert_entry(dx_blocks, hash_right, new_iblock);
-			
+
 			return block_put(new_block);
 		} else {
 			/* Create second level index */
-			
+
 			/* Copy data from root to child block */
 			memcpy((void *) new_entries, (void *) entries,
 			    leaf_count * sizeof(ext4_directory_dx_entry_t));
-			
+
 			ext4_directory_dx_countlimit_t *new_countlimit =
 			    (ext4_directory_dx_countlimit_t *) new_entries;
-			
+
 			uint32_t entry_space =
 			    block_size - sizeof(ext4_fake_directory_entry_t);
@@ -1014,15 +1014,15 @@
 			    entry_space / sizeof(ext4_directory_dx_entry_t);
 			ext4_directory_dx_countlimit_set_limit(new_countlimit, node_limit);
-			
+
 			/* Set values in root node */
 			ext4_directory_dx_countlimit_t *new_root_countlimit =
 			    (ext4_directory_dx_countlimit_t *) entries;
-			
+
 			ext4_directory_dx_countlimit_set_count(new_root_countlimit, 1);
 			ext4_directory_dx_entry_set_block(entries, new_iblock);
-			
+
 			((ext4_directory_dx_root_t *)
 			    dx_blocks[0].block->data)->info.indirect_levels = 1;
-			
+
 			/* Add new entry to the path */
 			dx_block = dx_blocks + 1;
@@ -1032,5 +1032,5 @@
 		}
 	}
-	
+
 	return EOK;
 }
@@ -1049,5 +1049,5 @@
 {
 	errno_t rc2 = EOK;
-	
+
 	/* Get direct block 0 (index root) */
 	uint32_t root_block_addr;
@@ -1056,7 +1056,7 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	ext4_filesystem_t *fs = parent->fs;
-	
+
 	block_t *root_block;
 	rc = block_get(&root_block, fs->device, root_block_addr,
@@ -1064,5 +1064,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Initialize hinfo structure (mainly compute hash) */
 	uint32_t name_len = str_size(name);
@@ -1074,5 +1074,5 @@
 		return EXT4_ERR_BAD_DX_DIR;
 	}
-	
+
 	/*
 	 * Hardcoded number 2 means maximum height of index
@@ -1082,5 +1082,5 @@
 	ext4_directory_dx_block_t *dx_block;
 	ext4_directory_dx_block_t *dx_it;
-	
+
 	rc = ext4_directory_dx_get_leaf(&hinfo, parent, root_block,
 	    &dx_block, dx_blocks);
@@ -1089,5 +1089,5 @@
 		goto release_index;
 	}
-	
+
 	/* Try to insert to existing data block */
 	uint32_t leaf_block_idx =
@@ -1098,5 +1098,5 @@
 	if (rc != EOK)
 		goto release_index;
-	
+
 	block_t *target_block;
 	rc = block_get(&target_block, fs->device, leaf_block_addr,
@@ -1104,5 +1104,5 @@
 	if (rc != EOK)
 		goto release_index;
-	
+
 	/* Check if insert operation passed */
 	rc = ext4_directory_try_insert_entry(fs->superblock, target_block, child,
@@ -1110,5 +1110,5 @@
 	if (rc == EOK)
 		goto release_target_index;
-	
+
 	/*
 	 * Check if there is needed to split index node
@@ -1118,5 +1118,5 @@
 	if (rc != EOK)
 		goto release_target_index;
-	
+
 	/* Split entries to two blocks (includes sorting by hash value) */
 	block_t *new_block = NULL;
@@ -1127,5 +1127,5 @@
 		goto release_target_index;
 	}
-	
+
 	/* Where to save new entry */
 	uint32_t new_block_hash =
@@ -1137,33 +1137,33 @@
 		rc = ext4_directory_try_insert_entry(fs->superblock, target_block,
 		    child, name, name_len);
-	
+
 	/* Cleanup */
 	rc = block_put(new_block);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Cleanup operations */
-	
+
 release_target_index:
 	rc2 = rc;
-	
+
 	rc = block_put(target_block);
 	if (rc != EOK)
 		return rc;
-	
+
 release_index:
 	if (rc != EOK)
 		rc2 = rc;
-	
+
 	dx_it = dx_blocks;
-	
+
 	while (dx_it <= dx_block) {
 		rc = block_put(dx_it->block);
 		if (rc != EOK)
 			return rc;
-		
+
 		dx_it++;
 	}
-	
+
 	return rc2;
 }
Index: uspace/lib/ext4/src/extent.c
===================================================================
--- uspace/lib/ext4/src/extent.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/extent.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -295,17 +295,17 @@
 	ext4_extent_index_t *l;
 	ext4_extent_index_t *m;
-	
+
 	uint16_t entries_count =
 	    ext4_extent_header_get_entries_count(header);
-	
+
 	/* Initialize bounds */
 	l = EXT4_EXTENT_FIRST_INDEX(header) + 1;
 	r = EXT4_EXTENT_FIRST_INDEX(header) + entries_count - 1;
-	
+
 	/* Do binary search */
 	while (l <= r) {
 		m = l + (r - l) / 2;
 		uint32_t first_block = ext4_extent_index_get_first_block(m);
-		
+
 		if (iblock < first_block)
 			r = m - 1;
@@ -313,5 +313,5 @@
 			l = m + 1;
 	}
-	
+
 	/* Set output value */
 	*index = l - 1;
@@ -332,8 +332,8 @@
 	ext4_extent_t *l;
 	ext4_extent_t *m;
-	
+
 	uint16_t entries_count =
 	    ext4_extent_header_get_entries_count(header);
-	
+
 	if (entries_count == 0) {
 		/* this leaf is empty */
@@ -341,14 +341,14 @@
 		return;
 	}
-	
+
 	/* Initialize bounds */
 	l = EXT4_EXTENT_FIRST(header) + 1;
 	r = EXT4_EXTENT_FIRST(header) + entries_count - 1;
-	
+
 	/* Do binary search */
 	while (l <= r) {
 		m = l + (r - l) / 2;
 		uint32_t first_block = ext4_extent_get_first_block(m);
-		
+
 		if (iblock < first_block)
 			r = m - 1;
@@ -356,5 +356,5 @@
 			l = m + 1;
 	}
-	
+
 	/* Set output value */
 	*extent = l - 1;
@@ -379,10 +379,10 @@
 	uint64_t inode_size =
 	    ext4_inode_get_size(inode_ref->fs->superblock, inode_ref->inode);
-	
+
 	uint32_t block_size =
 	    ext4_superblock_get_block_size(inode_ref->fs->superblock);
-	
+
 	uint32_t last_idx = (inode_size - 1) / block_size;
-	
+
 	/* Check if requested iblock is not over size of i-node */
 	if (iblock > last_idx) {
@@ -390,19 +390,19 @@
 		return EOK;
 	}
-	
+
 	block_t *block = NULL;
-	
+
 	/* Walk through extent tree */
 	ext4_extent_header_t *header =
 	    ext4_inode_get_extent_header(inode_ref->inode);
-	
+
 	while (ext4_extent_header_get_depth(header) != 0) {
 		/* Search index in node */
 		ext4_extent_index_t *index;
 		ext4_extent_binsearch_idx(header, &index, iblock);
-		
+
 		/* Load child node and set values for the next iteration */
 		uint64_t child = ext4_extent_index_get_leaf(index);
-		
+
 		if (block != NULL) {
 			rc = block_put(block);
@@ -410,17 +410,17 @@
 				return rc;
 		}
-		
+
 		rc = block_get(&block, inode_ref->fs->device, child,
 		    BLOCK_FLAGS_NONE);
 		if (rc != EOK)
 			return rc;
-		
+
 		header = (ext4_extent_header_t *)block->data;
 	}
-	
+
 	/* Search extent in the leaf block */
 	ext4_extent_t* extent = NULL;
 	ext4_extent_binsearch(header, &extent, iblock);
-	
+
 	/* Prevent empty leaf */
 	if (extent == NULL) {
@@ -431,12 +431,12 @@
 		uint32_t first = ext4_extent_get_first_block(extent);
 		phys_block = ext4_extent_get_start(extent) + iblock - first;
-		
+
 		*fblock = phys_block;
 	}
-	
+
 	/* Cleanup */
 	if (block != NULL)
 		rc = block_put(block);
-	
+
 	return rc;
 }
@@ -459,18 +459,18 @@
 	ext4_extent_header_t *eh =
 	    ext4_inode_get_extent_header(inode_ref->inode);
-	
+
 	uint16_t depth = ext4_extent_header_get_depth(eh);
-	
+
 	ext4_extent_path_t *tmp_path;
-	
+
 	/* Added 2 for possible tree growing */
 	tmp_path = malloc(sizeof(ext4_extent_path_t) * (depth + 2));
 	if (tmp_path == NULL)
 		return ENOMEM;
-	
+
 	/* Initialize structure for algorithm start */
 	tmp_path[0].block = inode_ref->block;
 	tmp_path[0].header = eh;
-	
+
 	/* Walk through the extent tree */
 	uint16_t pos = 0;
@@ -480,13 +480,13 @@
 		ext4_extent_binsearch_idx(tmp_path[pos].header,
 		    &tmp_path[pos].index, iblock);
-		
+
 		tmp_path[pos].depth = depth;
 		tmp_path[pos].extent = NULL;
-		
+
 		assert(tmp_path[pos].index != NULL);
-		
+
 		/* Load information for the next iteration */
 		uint64_t fblock = ext4_extent_index_get_leaf(tmp_path[pos].index);
-		
+
 		block_t *block;
 		rc = block_get(&block, inode_ref->fs->device, fblock,
@@ -494,22 +494,22 @@
 		if (rc != EOK)
 			goto cleanup;
-		
+
 		pos++;
-		
+
 		eh = (ext4_extent_header_t *)block->data;
 		tmp_path[pos].block = block;
 		tmp_path[pos].header = eh;
 	}
-	
+
 	tmp_path[pos].depth = 0;
 	tmp_path[pos].extent = NULL;
 	tmp_path[pos].index = NULL;
-	
+
 	/* Find extent in the leaf node */
 	ext4_extent_binsearch(tmp_path[pos].header, &tmp_path[pos].extent, iblock);
 	*ret_path = tmp_path;
-	
+
 	return EOK;
-	
+
 cleanup:
 	;
@@ -528,8 +528,8 @@
 		}
 	}
-	
+
 	/* Destroy temporary data structure */
 	free(tmp_path);
-	
+
 	return rc;
 }
@@ -549,5 +549,5 @@
 	uint64_t start = ext4_extent_get_start(extent);
 	uint16_t block_count = ext4_extent_get_block_count(extent);
-	
+
 	return ext4_balloc_free_blocks(inode_ref, start, block_count);
 }
@@ -569,16 +569,16 @@
 {
 	uint32_t fblock = ext4_extent_index_get_leaf(index);
-	
+
 	block_t* block;
 	errno_t rc = block_get(&block, inode_ref->fs->device, fblock, BLOCK_FLAGS_NONE);
 	if (rc != EOK)
 		return rc;
-	
+
 	ext4_extent_header_t *header = block->data;
-	
+
 	if (ext4_extent_header_get_depth(header)) {
 		/* The node is non-leaf, do recursion */
 		ext4_extent_index_t *idx = EXT4_EXTENT_FIRST_INDEX(header);
-		
+
 		/* Release all subbranches */
 		for (uint32_t i = 0;
@@ -592,5 +592,5 @@
 		/* Leaf node reached */
 		ext4_extent_t *ext = EXT4_EXTENT_FIRST(header);
-		
+
 		/* Release all extents and stop recursion */
 		for (uint32_t i = 0;
@@ -602,11 +602,11 @@
 		}
 	}
-	
+
 	/* Release data block where the node was stored */
-	
+
 	rc = block_put(block);
 	if (rc != EOK)
 		return rc;
-	
+
 	return ext4_balloc_free_block(inode_ref, fblock);
 }
@@ -626,12 +626,12 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Jump to last item of the path (extent) */
 	ext4_extent_path_t *path_ptr = path;
 	while (path_ptr->depth != 0)
 		path_ptr++;
-	
+
 	assert(path_ptr->extent != NULL);
-	
+
 	/* First extent maybe released partially */
 	uint32_t first_iblock =
@@ -639,19 +639,19 @@
 	uint32_t first_fblock =
 	    ext4_extent_get_start(path_ptr->extent) + iblock_from - first_iblock;
-	
+
 	uint16_t block_count = ext4_extent_get_block_count(path_ptr->extent);
-	
+
 	uint16_t delete_count = block_count -
 	    (ext4_extent_get_start(path_ptr->extent) - first_fblock);
-	
+
 	/* Release all blocks */
 	rc = ext4_balloc_free_blocks(inode_ref, first_fblock, delete_count);
 	if (rc != EOK)
 		goto cleanup;
-	
+
 	/* Correct counter */
 	block_count -= delete_count;
 	ext4_extent_set_block_count(path_ptr->extent, block_count);
-	
+
 	/* Initialize the following loop */
 	uint16_t entries =
@@ -659,28 +659,28 @@
 	ext4_extent_t *tmp_ext = path_ptr->extent + 1;
 	ext4_extent_t *stop_ext = EXT4_EXTENT_FIRST(path_ptr->header) + entries;
-	
+
 	/* If first extent empty, release it */
 	if (block_count == 0)
 		entries--;
-	
+
 	/* Release all successors of the first extent in the same node */
 	while (tmp_ext < stop_ext) {
 		first_fblock = ext4_extent_get_start(tmp_ext);
 		delete_count = ext4_extent_get_block_count(tmp_ext);
-		
+
 		rc = ext4_balloc_free_blocks(inode_ref, first_fblock, delete_count);
 		if (rc != EOK)
 			goto cleanup;
-		
+
 		entries--;
 		tmp_ext++;
 	}
-	
+
 	ext4_extent_header_set_entries_count(path_ptr->header, entries);
 	path_ptr->block->dirty = true;
-	
+
 	/* If leaf node is empty, parent entry must be modified */
 	bool remove_parent_record = false;
-	
+
 	/* Don't release root block (including inode data) !!! */
 	if ((path_ptr != path) && (entries == 0)) {
@@ -688,11 +688,11 @@
 		if (rc != EOK)
 			goto cleanup;
-		
+
 		remove_parent_record = true;
 	}
-	
+
 	/* Jump to the parent */
 	--path_ptr;
-	
+
 	/* Release all successors in all tree levels */
 	while (path_ptr >= path) {
@@ -701,9 +701,9 @@
 		ext4_extent_index_t *stop =
 		    EXT4_EXTENT_FIRST_INDEX(path_ptr->header) + entries;
-		
+
 		/* Correct entries count because of changes in the previous iteration */
 		if (remove_parent_record)
 			entries--;
-		
+
 		/* Iterate over all entries and release the whole subtrees */
 		while (index < stop) {
@@ -711,12 +711,12 @@
 			if (rc != EOK)
 				goto cleanup;
-			
+
 			++index;
 			--entries;
 		}
-		
+
 		ext4_extent_header_set_entries_count(path_ptr->header, entries);
 		path_ptr->block->dirty = true;
-		
+
 		/* Free the node if it is empty */
 		if ((entries == 0) && (path_ptr != path)) {
@@ -724,13 +724,13 @@
 			if (rc != EOK)
 				goto cleanup;
-			
+
 			/* Mark parent to be checked */
 			remove_parent_record = true;
 		} else
 			remove_parent_record = false;
-		
+
 		--path_ptr;
 	}
-	
+
 cleanup:
 	;
@@ -749,8 +749,8 @@
 		}
 	}
-	
+
 	/* Destroy temporary data structure */
 	free(path);
-	
+
 	return rc;
 }
@@ -771,8 +771,8 @@
 {
 	ext4_extent_path_t *path_ptr = path + path->depth;
-	
+
 	uint32_t block_size =
 	    ext4_superblock_get_block_size(inode_ref->fs->superblock);
-	
+
 	/* Start splitting */
 	while (path_ptr > path) {
@@ -781,5 +781,5 @@
 		uint16_t limit =
 		    ext4_extent_header_get_max_entries_count(path_ptr->header);
-		
+
 		if (entries == limit) {
 			/* Full node - allocate block for new one */
@@ -788,5 +788,5 @@
 			if (rc != EOK)
 				return rc;
-			
+
 			block_t *block;
 			rc = block_get(&block, inode_ref->fs->device, fblock,
@@ -796,5 +796,5 @@
 				return rc;
 			}
-			
+
 			/* Put back not modified old block */
 			rc = block_put(path_ptr->block);
@@ -804,9 +804,9 @@
 				return rc;
 			}
-			
+
 			/* Initialize newly allocated block and remember it */
 			memset(block->data, 0, block_size);
 			path_ptr->block = block;
-			
+
 			/* Update pointers in extent path structure */
 			path_ptr->header = block->data;
@@ -823,5 +823,5 @@
 				    sizeof(ext4_extent_t);
 			}
-			
+
 			/* Initialize on-disk structure (header) */
 			ext4_extent_header_set_entries_count(path_ptr->header, 1);
@@ -830,7 +830,7 @@
 			ext4_extent_header_set_depth(path_ptr->header, path_ptr->depth);
 			ext4_extent_header_set_generation(path_ptr->header, 0);
-			
+
 			path_ptr->block->dirty = true;
-			
+
 			/* Jump to the preceeding item */
 			path_ptr--;
@@ -845,20 +845,20 @@
 				ext4_extent_set_first_block(path_ptr->extent, iblock);
 			}
-			
+
 			ext4_extent_header_set_entries_count(path_ptr->header, entries + 1);
 			path_ptr->block->dirty = true;
-			
+
 			/* No more splitting needed */
 			return EOK;
 		}
 	}
-	
+
 	assert(path_ptr == path);
-	
+
 	/* Should be the root split too? */
-	
+
 	uint16_t entries = ext4_extent_header_get_entries_count(path->header);
 	uint16_t limit = ext4_extent_header_get_max_entries_count(path->header);
-	
+
 	if (entries == limit) {
 		uint32_t new_fblock;
@@ -866,5 +866,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		block_t *block;
 		rc = block_get(&block, inode_ref->fs->device, new_fblock,
@@ -872,30 +872,30 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Initialize newly allocated block */
 		memset(block->data, 0, block_size);
-		
+
 		/* Move data from root to the new block */
 		memcpy(block->data, inode_ref->inode->blocks,
 		    EXT4_INODE_BLOCKS * sizeof(uint32_t));
-		
+
 		/* Data block is initialized */
-		
+
 		block_t *root_block = path->block;
 		uint16_t root_depth = path->depth;
 		ext4_extent_header_t *root_header = path->header;
-		
+
 		/* Make space for tree growing */
 		ext4_extent_path_t *new_root = path;
 		ext4_extent_path_t *old_root = path + 1;
-		
+
 		size_t nbytes = sizeof(ext4_extent_path_t) * (path->depth + 1);
 		memmove(old_root, new_root, nbytes);
 		memset(new_root, 0, sizeof(ext4_extent_path_t));
-		
+
 		/* Update old root structure */
 		old_root->block = block;
 		old_root->header = (ext4_extent_header_t *)block->data;
-		
+
 		/* Add new entry and update limit for entries */
 		if (old_root->depth) {
@@ -913,10 +913,10 @@
 			old_root->index = NULL;
 		}
-		
+
 		ext4_extent_header_set_entries_count(old_root->header, entries + 1);
 		ext4_extent_header_set_max_entries_count(old_root->header, limit);
-		
+
 		old_root->block->dirty = true;
-		
+
 		/* Re-initialize new root metadata */
 		new_root->depth = root_depth + 1;
@@ -925,12 +925,12 @@
 		new_root->extent = NULL;
 		new_root->index = EXT4_EXTENT_FIRST_INDEX(new_root->header);
-		
+
 		ext4_extent_header_set_depth(new_root->header, new_root->depth);
-		
+
 		/* Create new entry in root */
 		ext4_extent_header_set_entries_count(new_root->header, 1);
 		ext4_extent_index_set_first_block(new_root->index, 0);
 		ext4_extent_index_set_leaf(new_root->index, new_fblock);
-		
+
 		new_root->block->dirty = true;
 	} else {
@@ -943,9 +943,9 @@
 			ext4_extent_set_first_block(path->extent, iblock);
 		}
-		
+
 		ext4_extent_header_set_entries_count(path->header, entries + 1);
 		path->block->dirty = true;
 	}
-	
+
 	return EOK;
 }
@@ -970,5 +970,5 @@
 	uint64_t inode_size = ext4_inode_get_size(sb, inode_ref->inode);
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
-	
+
 	/* Calculate number of new logical block */
 	uint32_t new_block_idx = 0;
@@ -976,8 +976,8 @@
 		if ((inode_size % block_size) != 0)
 			inode_size += block_size - (inode_size % block_size);
-		
+
 		new_block_idx = inode_size / block_size;
 	}
-	
+
 	/* Load the nearest leaf (with extent) */
 	ext4_extent_path_t *path;
@@ -985,17 +985,17 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Jump to last item of the path (extent) */
 	ext4_extent_path_t *path_ptr = path;
 	while (path_ptr->depth != 0)
 		path_ptr++;
-	
+
 	/* Add new extent to the node if not present */
 	if (path_ptr->extent == NULL)
 		goto append_extent;
-	
+
 	uint16_t block_count = ext4_extent_get_block_count(path_ptr->extent);
 	uint16_t block_limit = (1 << 15);
-	
+
 	uint32_t phys_block = 0;
 	if (block_count < block_limit) {
@@ -1006,10 +1006,10 @@
 			if (rc != EOK)
 				goto finish;
-			
+
 			/* Initialize extent */
 			ext4_extent_set_first_block(path_ptr->extent, new_block_idx);
 			ext4_extent_set_start(path_ptr->extent, phys_block);
 			ext4_extent_set_block_count(path_ptr->extent, 1);
-			
+
 			/* Update i-node */
 			if (update_size) {
@@ -1017,7 +1017,7 @@
 				inode_ref->dirty = true;
 			}
-			
+
 			path_ptr->block->dirty = true;
-			
+
 			goto finish;
 		} else {
@@ -1025,5 +1025,5 @@
 			phys_block = ext4_extent_get_start(path_ptr->extent);
 			phys_block += ext4_extent_get_block_count(path_ptr->extent);
-			
+
 			/* Check if the following block is free for allocation */
 			bool free;
@@ -1031,13 +1031,13 @@
 			if (rc != EOK)
 				goto finish;
-			
+
 			if (!free) {
 				/* Target is not free, new block must be appended to new extent */
 				goto append_extent;
 			}
-			
+
 			/* Update extent */
 			ext4_extent_set_block_count(path_ptr->extent, block_count + 1);
-			
+
 			/* Update i-node */
 			if (update_size) {
@@ -1045,21 +1045,21 @@
 				inode_ref->dirty = true;
 			}
-			
+
 			path_ptr->block->dirty = true;
-			
+
 			goto finish;
 		}
 	}
-	
-	
+
+
 append_extent:
 	/* Append new extent to the tree */
 	phys_block = 0;
-	
+
 	/* Allocate new data block */
 	rc = ext4_balloc_alloc_block(inode_ref, &phys_block);
 	if (rc != EOK)
 		goto finish;
-	
+
 	/* Append extent for new block (includes tree splitting if needed) */
 	rc = ext4_extent_append_extent(inode_ref, path, new_block_idx);
@@ -1068,13 +1068,13 @@
 		goto finish;
 	}
-	
+
 	uint32_t tree_depth = ext4_extent_header_get_depth(path->header);
 	path_ptr = path + tree_depth;
-	
+
 	/* Initialize newly created extent */
 	ext4_extent_set_block_count(path_ptr->extent, 1);
 	ext4_extent_set_first_block(path_ptr->extent, new_block_idx);
 	ext4_extent_set_start(path_ptr->extent, phys_block);
-	
+
 	/* Update i-node */
 	if (update_size) {
@@ -1082,7 +1082,7 @@
 		inode_ref->dirty = true;
 	}
-	
+
 	path_ptr->block->dirty = true;
-	
+
 finish:
 	;
@@ -1093,5 +1093,5 @@
 	*iblock = new_block_idx;
 	*fblock = phys_block;
-	
+
 	/*
 	 * Put loaded blocks
@@ -1105,8 +1105,8 @@
 		}
 	}
-	
+
 	/* Destroy temporary data structure */
 	free(path);
-	
+
 	return rc;
 }
Index: uspace/lib/ext4/src/filesystem.c
===================================================================
--- uspace/lib/ext4/src/filesystem.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/filesystem.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -289,5 +289,5 @@
 		return EOK;
 	}
-	
+
 	/*
 	 * Check incompatible features - if filesystem has some,
@@ -300,5 +300,5 @@
 	if (incompatible_features > 0)
 		return ENOTSUP;
-	
+
 	/*
 	 * Check read-only features, if filesystem has some,
@@ -313,5 +313,5 @@
 		return EOK;
 	}
-	
+
 	return EOK;
 }
@@ -331,5 +331,5 @@
 	uint32_t blocks_per_group = ext4_superblock_get_blocks_per_group(sb);
 	uint32_t first_block = ext4_superblock_get_first_data_block(sb);
-	
+
 	/* First block == 0 or 1 */
 	if (first_block == 0)
@@ -351,5 +351,5 @@
 {
 	uint32_t blocks_per_group = ext4_superblock_get_blocks_per_group(sb);
-	
+
 	if (ext4_superblock_get_first_data_block(sb) == 0)
 		return bgid * blocks_per_group + index;
@@ -392,5 +392,5 @@
 	uint64_t bitmap_inode_addr = ext4_block_group_get_inode_bitmap(
 	    bg_ref->block_group, bg_ref->fs->superblock);
-	
+
 	block_t *bitmap_block;
 	errno_t rc = block_get(&bitmap_block, bg_ref->fs->device,
@@ -398,11 +398,11 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	uint8_t *bitmap = bitmap_block->data;
-	
+
 	/* Initialize all bitmap bits to zero */
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
 	memset(bitmap, 0, block_size);
-	
+
 	/* Determine the number of reserved blocks in the group */
 	uint32_t reserved_cnt = ext4_filesystem_bg_get_backup_blocks(bg_ref);
@@ -439,5 +439,5 @@
 
 	bitmap_block->dirty = true;
-	
+
 	/* Save bitmap */
 	return block_put(bitmap_block);
@@ -457,12 +457,12 @@
 	    bg_ref->block_group, bg_ref->fs->superblock);
 	block_t *bitmap_block;
-	
+
 	errno_t rc = block_get(&bitmap_block, bg_ref->fs->device,
 	    bitmap_block_addr, BLOCK_FLAGS_NOREAD);
 	if (rc != EOK)
 		return rc;
-	
+
 	uint8_t *bitmap = bitmap_block->data;
-	
+
 	/* Initialize all bitmap bits to zero */
 	uint32_t block_size = ext4_superblock_get_block_size(bg_ref->fs->superblock);
@@ -470,17 +470,17 @@
 	    ext4_superblock_get_inodes_per_group(bg_ref->fs->superblock);
 	memset(bitmap, 0, (inodes_per_group + 7) / 8);
-	
+
 	uint32_t start_bit = inodes_per_group;
 	uint32_t end_bit = block_size * 8;
-	
+
 	uint32_t i;
 	for (i = start_bit; i < ((start_bit + 7) & ~7UL); i++)
 		ext4_bitmap_set_bit(bitmap, i);
-	
+
 	if (i < end_bit)
 		memset(bitmap + (i >> 3), 0xff, (end_bit - i) >> 3);
-	
+
 	bitmap_block->dirty = true;
-	
+
 	/* Save bitmap */
 	return block_put(bitmap_block);
@@ -497,23 +497,23 @@
 {
 	ext4_superblock_t *sb = bg_ref->fs->superblock;
-	
+
 	uint32_t inode_size = ext4_superblock_get_inode_size(sb);
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
 	uint32_t inodes_per_block = block_size / inode_size;
-	
+
 	uint32_t inodes_in_group =
 	    ext4_superblock_get_inodes_in_group(sb, bg_ref->index);
-	
+
 	uint32_t table_blocks = inodes_in_group / inodes_per_block;
-	
+
 	if (inodes_in_group % inodes_per_block)
 		table_blocks++;
-	
+
 	/* Compute initialization bounds */
 	uint32_t first_block = ext4_block_group_get_inode_table_first_block(
 	    bg_ref->block_group, sb);
-	
+
 	uint32_t last_block = first_block + table_blocks - 1;
-	
+
 	/* Initialization of all itable blocks */
 	for (uint32_t fblock = first_block; fblock <= last_block; ++fblock) {
@@ -523,13 +523,13 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		memset(block->data, 0, block_size);
 		block->dirty = true;
-		
+
 		rc = block_put(block);
 		if (rc != EOK)
 			return rc;
 	}
-	
+
 	return EOK;
 }
@@ -552,19 +552,19 @@
 	if (newref == NULL)
 		return ENOMEM;
-	
+
 	/* Compute number of descriptors, that fits in one data block */
 	uint32_t descriptors_per_block =
 	    ext4_superblock_get_block_size(fs->superblock) /
 	    ext4_superblock_get_desc_size(fs->superblock);
-	
+
 	/* Block group descriptor table starts at the next block after superblock */
 	aoff64_t block_id =
 	    ext4_superblock_get_first_data_block(fs->superblock) + 1;
-	
+
 	/* Find the block containing the descriptor we are looking for */
 	block_id += bgid / descriptors_per_block;
 	uint32_t offset = (bgid % descriptors_per_block) *
 	    ext4_superblock_get_desc_size(fs->superblock);
-	
+
 	/* Load block with descriptors */
 	errno_t rc = block_get(&newref->block, fs->device, block_id, 0);
@@ -573,5 +573,5 @@
 		return rc;
 	}
-	
+
 	/* Initialize in-memory representation */
 	newref->block_group = newref->block->data + offset;
@@ -579,7 +579,7 @@
 	newref->index = bgid;
 	newref->dirty = false;
-	
+
 	*ref = newref;
-	
+
 	if (ext4_block_group_has_flag(newref->block_group,
 	    EXT4_BLOCK_GROUP_BLOCK_UNINIT)) {
@@ -590,11 +590,11 @@
 			return rc;
 		}
-		
+
 		ext4_block_group_clear_flag(newref->block_group,
 		    EXT4_BLOCK_GROUP_BLOCK_UNINIT);
-		
+
 		newref->dirty = true;
 	}
-	
+
 	if (ext4_block_group_has_flag(newref->block_group,
 	    EXT4_BLOCK_GROUP_INODE_UNINIT)) {
@@ -605,8 +605,8 @@
 			return rc;
 		}
-		
+
 		ext4_block_group_clear_flag(newref->block_group,
 		    EXT4_BLOCK_GROUP_INODE_UNINIT);
-		
+
 		if (!ext4_block_group_has_flag(newref->block_group,
 		    EXT4_BLOCK_GROUP_ITABLE_ZEROED)) {
@@ -614,12 +614,12 @@
 			if (rc != EOK)
 				return rc;
-			
+
 			ext4_block_group_set_flag(newref->block_group,
 			    EXT4_BLOCK_GROUP_ITABLE_ZEROED);
 		}
-		
+
 		newref->dirty = true;
 	}
-	
+
 	return EOK;
 }
@@ -645,22 +645,22 @@
 		void *base = bg;
 		void *checksum = &bg->checksum;
-		
+
 		uint32_t offset = (uint32_t) (checksum - base);
-		
+
 		/* Convert block group index to little endian */
 		uint32_t le_group = host2uint32_t_le(bgid);
-		
+
 		/* Initialization */
 		crc = crc16_ibm(~0, sb->uuid, sizeof(sb->uuid));
-		
+
 		/* Include index of block group */
 		crc = crc16_ibm(crc, (uint8_t *) &le_group, sizeof(le_group));
-		
+
 		/* Compute crc from the first part (stop before checksum field) */
 		crc = crc16_ibm(crc, (uint8_t *) bg, offset);
-		
+
 		/* Skip checksum */
 		offset += sizeof(bg->checksum);
-		
+
 		/* Checksum of the rest of block group descriptor */
 		if ((ext4_superblock_has_feature_incompatible(sb,
@@ -670,5 +670,5 @@
 			    ext4_superblock_get_desc_size(sb) - offset);
 	}
-	
+
 	return crc;
 }
@@ -813,13 +813,13 @@
 		    ref->block_group);
 		ext4_block_group_set_checksum(ref->block_group, checksum);
-		
+
 		/* Mark block dirty for writing changes to physical device */
 		ref->block->dirty = true;
 	}
-	
+
 	/* Put back block, that contains block group descriptor */
 	errno_t rc = block_put(ref->block);
 	free(ref);
-	
+
 	return rc;
 }
@@ -842,9 +842,9 @@
 	if (newref == NULL)
 		return ENOMEM;
-	
+
 	/* Compute number of i-nodes, that fits in one data block */
 	uint32_t inodes_per_group =
 	    ext4_superblock_get_inodes_per_group(fs->superblock);
-	
+
 	/*
 	 * Inode numbers are 1-based, but it is simpler to work with 0-based
@@ -854,5 +854,5 @@
 	uint32_t block_group = index / inodes_per_group;
 	uint32_t offset_in_group = index % inodes_per_group;
-	
+
 	/* Load block group, where i-node is located */
 	ext4_block_group_ref_t *bg_ref;
@@ -862,10 +862,10 @@
 		return rc;
 	}
-	
+
 	/* Load block address, where i-node table is located */
 	uint32_t inode_table_start =
 	    ext4_block_group_get_inode_table_first_block(bg_ref->block_group,
 	    fs->superblock);
-	
+
 	/* Put back block group reference (not needed more) */
 	rc = ext4_filesystem_put_block_group_ref(bg_ref);
@@ -874,10 +874,10 @@
 		return rc;
 	}
-	
+
 	/* Compute position of i-node in the block group */
 	uint16_t inode_size = ext4_superblock_get_inode_size(fs->superblock);
 	uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
 	uint32_t byte_offset_in_group = offset_in_group * inode_size;
-	
+
 	/* Compute block address */
 	aoff64_t block_id = inode_table_start + (byte_offset_in_group / block_size);
@@ -887,16 +887,16 @@
 		return rc;
 	}
-	
+
 	/* Compute position of i-node in the data block */
 	uint32_t offset_in_block = byte_offset_in_group % block_size;
 	newref->inode = newref->block->data + offset_in_block;
-	
+
 	/* We need to store the original value of index in the reference */
 	newref->index = index + 1;
 	newref->fs = fs;
 	newref->dirty = false;
-	
+
 	*ref = newref;
-	
+
 	return EOK;
 }
@@ -916,9 +916,9 @@
 		ref->block->dirty = true;
 	}
-	
+
 	/* Put back block, that contains i-node */
 	errno_t rc = block_put(ref->block);
 	free(ref);
-	
+
 	return rc;
 }
@@ -940,5 +940,5 @@
 	if (flags & L_DIRECTORY)
 		is_dir = true;
-	
+
 	/* Allocate inode by allocation algorithm */
 	uint32_t index;
@@ -946,5 +946,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Load i-node from on-disk i-node table */
 	rc = ext4_filesystem_get_inode_ref(fs, index, inode_ref);
@@ -953,8 +953,8 @@
 		return rc;
 	}
-	
+
 	/* Initialize i-node */
 	ext4_inode_t *inode = (*inode_ref)->inode;
-	
+
 	uint16_t mode;
 	if (is_dir) {
@@ -963,5 +963,5 @@
 		 * 0777 (octal) == rwxrwxrwx
 		 */
-		
+
 		mode = 0777;
 		mode |= EXT4_INODE_MODE_DIRECTORY;
@@ -973,5 +973,5 @@
 		 * 0666 (octal) == rw-rw-rw-
 		 */
-		
+
 		mode = 0666;
 		mode |= EXT4_INODE_MODE_FILE;
@@ -979,5 +979,5 @@
 		ext4_inode_set_links_count(inode, 0);
 	}
-	
+
 	ext4_inode_set_uid(inode, 0);
 	ext4_inode_set_gid(inode, 0);
@@ -990,14 +990,14 @@
 	ext4_inode_set_flags(inode, 0);
 	ext4_inode_set_generation(inode, 0);
-	
+
 	/* Reset blocks array */
 	for (uint32_t i = 0; i < EXT4_INODE_BLOCKS; i++)
 		inode->blocks[i] = 0;
-	
+
 	/* Initialize extents if needed */
 	if (ext4_superblock_has_feature_incompatible(
 	    fs->superblock, EXT4_FEATURE_INCOMPAT_EXTENTS)) {
 		ext4_inode_set_flag(inode, EXT4_INODE_FLAG_EXTENTS);
-		
+
 		/* Initialize extent root header */
 		ext4_extent_header_t *header = ext4_inode_get_extent_header(inode);
@@ -1006,13 +1006,13 @@
 		ext4_extent_header_set_generation(header, 0);
 		ext4_extent_header_set_magic(header, EXT4_EXTENT_MAGIC);
-		
+
 		uint16_t max_entries = (EXT4_INODE_BLOCKS * sizeof(uint32_t) -
 		    sizeof(ext4_extent_header_t)) / sizeof(ext4_extent_t);
-		
+
 		ext4_extent_header_set_max_entries_count(header, max_entries);
 	}
-	
+
 	(*inode_ref)->dirty = true;
-	
+
 	return EOK;
 }
@@ -1028,5 +1028,5 @@
 {
 	ext4_filesystem_t *fs = inode_ref->fs;
-	
+
 	/* For extents must be data block destroyed by other way */
 	if ((ext4_superblock_has_feature_incompatible(fs->superblock,
@@ -1036,7 +1036,7 @@
 		goto finish;
 	}
-	
+
 	/* Release all indirect (no data) blocks */
-	
+
 	/* 1) Single indirect */
 	uint32_t fblock = ext4_inode_get_indirect_block(inode_ref->inode, 0);
@@ -1045,12 +1045,12 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		ext4_inode_set_indirect_block(inode_ref->inode, 0, 0);
 	}
-	
+
 	block_t *block;
 	uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
 	uint32_t count = block_size / sizeof(uint32_t);
-	
+
 	/* 2) Double indirect */
 	fblock = ext4_inode_get_indirect_block(inode_ref->inode, 1);
@@ -1059,9 +1059,9 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		uint32_t ind_block;
 		for (uint32_t offset = 0; offset < count; ++offset) {
 			ind_block = uint32_t_le2host(((uint32_t *) block->data)[offset]);
-			
+
 			if (ind_block != 0) {
 				rc = ext4_balloc_free_block(inode_ref, ind_block);
@@ -1072,5 +1072,5 @@
 			}
 		}
-		
+
 		rc = block_put(block);
 		if (rc != EOK)
@@ -1080,8 +1080,8 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		ext4_inode_set_indirect_block(inode_ref->inode, 1, 0);
 	}
-	
+
 	/* 3) Tripple indirect */
 	block_t *subblock;
@@ -1091,9 +1091,9 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		uint32_t ind_block;
 		for (uint32_t offset = 0; offset < count; ++offset) {
 			ind_block = uint32_t_le2host(((uint32_t *) block->data)[offset]);
-			
+
 			if (ind_block != 0) {
 				rc = block_get(&subblock, fs->device, ind_block,
@@ -1103,5 +1103,5 @@
 					return rc;
 				}
-				
+
 				uint32_t ind_subblock;
 				for (uint32_t suboffset = 0; suboffset < count;
@@ -1109,5 +1109,5 @@
 					ind_subblock = uint32_t_le2host(((uint32_t *)
 					    subblock->data)[suboffset]);
-					
+
 					if (ind_subblock != 0) {
 						rc = ext4_balloc_free_block(inode_ref, ind_subblock);
@@ -1119,5 +1119,5 @@
 					}
 				}
-				
+
 				rc = block_put(subblock);
 				if (rc != EOK) {
@@ -1126,5 +1126,5 @@
 				}
 			}
-			
+
 			rc = ext4_balloc_free_block(inode_ref, ind_block);
 			if (rc != EOK) {
@@ -1133,5 +1133,5 @@
 			}
 		}
-		
+
 		rc = block_put(block);
 		if (rc != EOK)
@@ -1141,12 +1141,12 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		ext4_inode_set_indirect_block(inode_ref->inode, 2, 0);
 	}
-	
+
 finish:
 	/* Mark inode dirty for writing to the physical device */
 	inode_ref->dirty = true;
-	
+
 	/* Free block with extended attributes if present */
 	uint32_t xattr_block = ext4_inode_get_file_acl(
@@ -1156,8 +1156,8 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		ext4_inode_set_file_acl(inode_ref->inode, fs->superblock, 0);
 	}
-	
+
 	/* Free inode by allocator */
 	errno_t rc;
@@ -1167,5 +1167,5 @@
 	else
 		rc = ext4_ialloc_free_inode(fs, inode_ref->index, false);
-	
+
 	return rc;
 }
@@ -1183,18 +1183,18 @@
 {
 	ext4_superblock_t *sb = inode_ref->fs->superblock;
-	
+
 	/* Check flags, if i-node can be truncated */
 	if (!ext4_inode_can_truncate(sb, inode_ref->inode))
 		return EINVAL;
-	
+
 	/* If sizes are equal, nothing has to be done. */
 	aoff64_t old_size = ext4_inode_get_size(sb, inode_ref->inode);
 	if (old_size == new_size)
 		return EOK;
-	
+
 	/* It's not suppported to make the larger file by truncate operation */
 	if (old_size < new_size)
 		return EINVAL;
-	
+
 	/* Compute how many blocks will be released */
 	aoff64_t size_diff = old_size - new_size;
@@ -1203,9 +1203,9 @@
 	if (size_diff % block_size != 0)
 		diff_blocks_count++;
-	
+
 	uint32_t old_blocks_count = old_size / block_size;
 	if (old_size % block_size != 0)
 		old_blocks_count++;
-	
+
 	if ((ext4_superblock_has_feature_incompatible(inode_ref->fs->superblock,
 	    EXT4_FEATURE_INCOMPAT_EXTENTS)) &&
@@ -1218,5 +1218,5 @@
 	} else {
 		/* Release data blocks from the end of file */
-		
+
 		/* Starting from 1 because of logical blocks are numbered from 0 */
 		for (uint32_t i = 1; i <= diff_blocks_count; ++i) {
@@ -1227,9 +1227,9 @@
 		}
 	}
-	
+
 	/* Update i-node */
 	ext4_inode_set_size(inode_ref->inode, new_size);
 	inode_ref->dirty = true;
-	
+
 	return EOK;
 }
@@ -1248,5 +1248,5 @@
 {
 	ext4_filesystem_t *fs = inode_ref->fs;
-	
+
 	/* For empty file is situation simple */
 	if (ext4_inode_get_size(fs->superblock, inode_ref->inode) == 0) {
@@ -1254,7 +1254,7 @@
 		return EOK;
 	}
-	
+
 	uint32_t current_block;
-	
+
 	/* Handle i-node using extents */
 	if ((ext4_superblock_has_feature_incompatible(fs->superblock,
@@ -1264,11 +1264,11 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		*fblock = current_block;
 		return EOK;
 	}
-	
+
 	ext4_inode_t *inode = inode_ref->inode;
-	
+
 	/* Direct block are read directly from array in i-node structure */
 	if (iblock < EXT4_INODE_DIRECT_BLOCK_COUNT) {
@@ -1277,5 +1277,5 @@
 		return EOK;
 	}
-	
+
 	/* Determine indirection level of the target block */
 	unsigned int level = 0;
@@ -1286,8 +1286,8 @@
 		}
 	}
-	
+
 	if (level == 0)
 		return EIO;
-	
+
 	/* Compute offsets for the topmost level */
 	aoff64_t block_offset_in_level =
@@ -1296,5 +1296,5 @@
 	uint32_t offset_in_block =
 	    block_offset_in_level / fs->inode_blocks_per_level[level - 1];
-	
+
 	/* Sparse file */
 	if (current_block == 0) {
@@ -1302,7 +1302,7 @@
 		return EOK;
 	}
-	
+
 	block_t *block;
-	
+
 	/*
 	 * Navigate through other levels, until we find the block number
@@ -1314,14 +1314,14 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Read block address from indirect block */
 		current_block =
 		    uint32_t_le2host(((uint32_t *) block->data)[offset_in_block]);
-		
+
 		/* Put back indirect block untouched */
 		rc = block_put(block);
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Check for sparse file */
 		if (current_block == 0) {
@@ -1329,12 +1329,12 @@
 			return EOK;
 		}
-		
+
 		/* Jump to the next level */
 		level--;
-		
+
 		/* Termination condition - we have address of data block loaded */
 		if (level == 0)
 			break;
-		
+
 		/* Visit the next level */
 		block_offset_in_level %= fs->inode_blocks_per_level[level];
@@ -1342,7 +1342,7 @@
 		    block_offset_in_level / fs->inode_blocks_per_level[level - 1];
 	}
-	
+
 	*fblock = current_block;
-	
+
 	return EOK;
 }
@@ -1361,5 +1361,5 @@
 {
 	ext4_filesystem_t *fs = inode_ref->fs;
-	
+
 	/* Handle inode using extents */
 	if ((ext4_superblock_has_feature_compatible(fs->superblock,
@@ -1369,13 +1369,13 @@
 		return ENOTSUP;
 	}
-	
+
 	/* Handle simple case when we are dealing with direct reference */
 	if (iblock < EXT4_INODE_DIRECT_BLOCK_COUNT) {
 		ext4_inode_set_direct_block(inode_ref->inode, (uint32_t) iblock, fblock);
 		inode_ref->dirty = true;
-		
+
 		return EOK;
 	}
-	
+
 	/* Determine the indirection level needed to get the desired block */
 	unsigned int level = 0;
@@ -1386,10 +1386,10 @@
 		}
 	}
-	
+
 	if (level == 0)
 		return EIO;
-	
+
 	uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
-	
+
 	/* Compute offsets for the topmost level */
 	aoff64_t block_offset_in_level =
@@ -1399,9 +1399,9 @@
 	uint32_t offset_in_block =
 	    block_offset_in_level / fs->inode_blocks_per_level[level - 1];
-	
+
 	uint32_t new_block_addr;
 	block_t *block;
 	block_t *new_block;
-	
+
 	/* Is needed to allocate indirect block on the i-node level */
 	if (current_block == 0) {
@@ -1410,10 +1410,10 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Update i-node */
 		ext4_inode_set_indirect_block(inode_ref->inode, level - 1,
 		    new_block_addr);
 		inode_ref->dirty = true;
-		
+
 		/* Load newly allocated block */
 		rc = block_get(&new_block, fs->device, new_block_addr,
@@ -1423,17 +1423,17 @@
 			return rc;
 		}
-		
+
 		/* Initialize new block */
 		memset(new_block->data, 0, block_size);
 		new_block->dirty = true;
-		
+
 		/* Put back the allocated block */
 		rc = block_put(new_block);
 		if (rc != EOK)
 			return rc;
-		
+
 		current_block = new_block_addr;
 	}
-	
+
 	/*
 	 * Navigate through other levels, until we find the block number
@@ -1444,8 +1444,8 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		current_block =
 		    uint32_t_le2host(((uint32_t *) block->data)[offset_in_block]);
-		
+
 		if ((level > 1) && (current_block == 0)) {
 			/* Allocate new block */
@@ -1455,5 +1455,5 @@
 				return rc;
 			}
-			
+
 			/* Load newly allocated block */
 			rc = block_get(&new_block, fs->device, new_block_addr,
@@ -1463,9 +1463,9 @@
 				return rc;
 			}
-			
+
 			/* Initialize allocated block */
 			memset(new_block->data, 0, block_size);
 			new_block->dirty = true;
-			
+
 			rc = block_put(new_block);
 			if (rc != EOK) {
@@ -1473,5 +1473,5 @@
 				return rc;
 			}
-			
+
 			/* Write block address to the parent */
 			((uint32_t *) block->data)[offset_in_block] =
@@ -1480,5 +1480,5 @@
 			current_block = new_block_addr;
 		}
-		
+
 		/* Will be finished, write the fblock address */
 		if (level == 1) {
@@ -1487,11 +1487,11 @@
 			block->dirty = true;
 		}
-		
+
 		rc = block_put(block);
 		if (rc != EOK)
 			return rc;
-		
+
 		level--;
-		
+
 		/*
 		 * If we are on the last level, break here as
@@ -1500,5 +1500,5 @@
 		if (level == 0)
 			break;
-		
+
 		/* Visit the next level */
 		block_offset_in_level %= fs->inode_blocks_per_level[level];
@@ -1506,5 +1506,5 @@
 		    block_offset_in_level / fs->inode_blocks_per_level[level - 1];
 	}
-	
+
 	return EOK;
 }
@@ -1522,26 +1522,26 @@
 {
 	uint32_t fblock;
-	
+
 	ext4_filesystem_t *fs = inode_ref->fs;
-	
+
 	/* Extents are handled otherwise = there is not support in this function */
 	assert(!(ext4_superblock_has_feature_incompatible(fs->superblock,
 	    EXT4_FEATURE_INCOMPAT_EXTENTS) &&
 	    (ext4_inode_has_flag(inode_ref->inode, EXT4_INODE_FLAG_EXTENTS))));
-	
+
 	ext4_inode_t *inode = inode_ref->inode;
-	
+
 	/* Handle simple case when we are dealing with direct reference */
 	if (iblock < EXT4_INODE_DIRECT_BLOCK_COUNT) {
 		fblock = ext4_inode_get_direct_block(inode, iblock);
-		
+
 		/* Sparse file */
 		if (fblock == 0)
 			return EOK;
-		
+
 		ext4_inode_set_direct_block(inode, iblock, 0);
 		return ext4_balloc_free_block(inode_ref, fblock);
 	}
-	
+
 	/* Determine the indirection level needed to get the desired block */
 	unsigned int level = 0;
@@ -1552,8 +1552,8 @@
 		}
 	}
-	
+
 	if (level == 0)
 		return EIO;
-	
+
 	/* Compute offsets for the topmost level */
 	aoff64_t block_offset_in_level =
@@ -1563,5 +1563,5 @@
 	uint32_t offset_in_block =
 	    block_offset_in_level / fs->inode_blocks_per_level[level - 1];
-	
+
 	/*
 	 * Navigate through other levels, until we find the block number
@@ -1570,16 +1570,16 @@
 	block_t *block;
 	while (level > 0) {
-		
+
 		/* Sparse check */
 		if (current_block == 0)
 			return EOK;
-		
+
 		errno_t rc = block_get(&block, fs->device, current_block, 0);
 		if (rc != EOK)
 			return rc;
-		
+
 		current_block =
 		    uint32_t_le2host(((uint32_t *) block->data)[offset_in_block]);
-		
+
 		/* Set zero if physical data block address found */
 		if (level == 1) {
@@ -1588,11 +1588,11 @@
 			block->dirty = true;
 		}
-		
+
 		rc = block_put(block);
 		if (rc != EOK)
 			return rc;
-		
+
 		level--;
-		
+
 		/*
 		 * If we are on the last level, break here as
@@ -1601,5 +1601,5 @@
 		if (level == 0)
 			break;
-		
+
 		/* Visit the next level */
 		block_offset_in_level %= fs->inode_blocks_per_level[level];
@@ -1607,9 +1607,9 @@
 		    block_offset_in_level / fs->inode_blocks_per_level[level - 1];
 	}
-	
+
 	fblock = current_block;
 	if (fblock == 0)
 		return EOK;
-	
+
 	/* Physical block is not referenced, it can be released */
 	return ext4_balloc_free_block(inode_ref, fblock);
@@ -1633,18 +1633,18 @@
 	    (ext4_inode_has_flag(inode_ref->inode, EXT4_INODE_FLAG_EXTENTS)))
 		return ext4_extent_append_block(inode_ref, iblock, fblock, true);
-	
+
 	ext4_superblock_t *sb = inode_ref->fs->superblock;
-	
+
 	/* Compute next block index and allocate data block */
 	uint64_t inode_size = ext4_inode_get_size(sb, inode_ref->inode);
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
-	
+
 	/* Align size i-node size */
 	if ((inode_size % block_size) != 0)
 		inode_size += block_size - (inode_size % block_size);
-	
+
 	/* Logical blocks are numbered from 0 */
 	uint32_t new_block_idx = inode_size / block_size;
-	
+
 	/* Allocate new physical block */
 	uint32_t phys_block;
@@ -1652,5 +1652,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Add physical block address to the i-node */
 	rc = ext4_filesystem_set_inode_data_block_index(inode_ref,
@@ -1660,12 +1660,12 @@
 		return rc;
 	}
-	
+
 	/* Update i-node */
 	ext4_inode_set_size(inode_ref->inode, inode_size + block_size);
 	inode_ref->dirty = true;
-	
+
 	*fblock = phys_block;
 	*iblock = new_block_idx;
-	
+
 	return EOK;
 }
Index: uspace/lib/ext4/src/ialloc.c
===================================================================
--- uspace/lib/ext4/src/ialloc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/ialloc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -100,13 +100,13 @@
 {
 	ext4_superblock_t *sb = fs->superblock;
-	
+
 	/* Compute index of block group and load it */
 	uint32_t block_group = ext4_ialloc_get_bgid_of_inode(sb, index);
-	
+
 	ext4_block_group_ref_t *bg_ref;
 	errno_t rc = ext4_filesystem_get_block_group_ref(fs, block_group, &bg_ref);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Load i-node bitmap */
 	uint32_t bitmap_block_addr = ext4_block_group_get_inode_bitmap(
@@ -117,10 +117,10 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Free i-node in the bitmap */
 	uint32_t index_in_group = ext4_ialloc_inode2index_in_group(sb, index);
 	ext4_bitmap_free_bit(bitmap_block->data, index_in_group);
 	bitmap_block->dirty = true;
-	
+
 	/* Put back the block with bitmap */
 	rc = block_put(bitmap_block);
@@ -130,5 +130,5 @@
 		return rc;
 	}
-	
+
 	/* If released i-node is a directory, decrement used directories count */
 	if (is_dir) {
@@ -139,5 +139,5 @@
 		    bg_used_dirs);
 	}
-	
+
 	/* Update block group free inodes count */
 	uint32_t free_inodes = ext4_block_group_get_free_inodes_count(
@@ -146,12 +146,12 @@
 	ext4_block_group_set_free_inodes_count(bg_ref->block_group, sb,
 	    free_inodes);
-	
+
 	bg_ref->dirty = true;
-	
+
 	/* Put back the modified block group */
 	rc = ext4_filesystem_put_block_group_ref(bg_ref);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Update superblock free inodes count */
 	uint32_t sb_free_inodes =
@@ -159,5 +159,5 @@
 	sb_free_inodes++;
 	ext4_superblock_set_free_inodes_count(sb, sb_free_inodes);
-	
+
 	return EOK;
 }
@@ -178,10 +178,10 @@
 {
 	ext4_superblock_t *sb = fs->superblock;
-	
+
 	uint32_t bgid = 0;
 	uint32_t bg_count = ext4_superblock_get_block_group_count(sb);
 	uint32_t sb_free_inodes = ext4_superblock_get_free_inodes_count(sb);
 	uint32_t avg_free_inodes = sb_free_inodes / bg_count;
-	
+
 	/* Try to find free i-node in all block groups */
 	while (bgid < bg_count) {
@@ -191,12 +191,12 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		ext4_block_group_t *bg = bg_ref->block_group;
-		
+
 		/* Read necessary values for algorithm */
 		uint32_t free_blocks = ext4_block_group_get_free_blocks_count(bg, sb);
 		uint32_t free_inodes = ext4_block_group_get_free_inodes_count(bg, sb);
 		uint32_t used_dirs = ext4_block_group_get_used_dirs_count(bg, sb);
-		
+
 		/*
 		 * Check if this block group is a good candidate
@@ -216,5 +216,5 @@
 			uint32_t bitmap_block_addr = ext4_block_group_get_inode_bitmap(
 			    bg_ref->block_group, sb);
-			
+
 			block_t *bitmap_block;
 			rc = block_get(&bitmap_block, fs->device, bitmap_block_addr,
@@ -224,5 +224,5 @@
 				return rc;
 			}
-			
+
 			/* Try to allocate i-node in the bitmap */
 			uint32_t inodes_in_group = ext4_superblock_get_inodes_in_group(sb, bgid);
@@ -230,5 +230,5 @@
 			rc = ext4_bitmap_find_free_bit_and_set(bitmap_block->data,
 			    0, &index_in_group, inodes_in_group);
-			
+
 			/* Block group has not any free i-node */
 			if (rc == ENOSPC) {
@@ -246,8 +246,8 @@
 				continue;
 			}
-			
+
 			/* Free i-node found, save the bitmap */
 			bitmap_block->dirty = true;
-			
+
 			rc = block_put(bitmap_block);
 			if (rc != EOK) {
@@ -255,9 +255,9 @@
 				return rc;
 			}
-			
+
 			/* Modify filesystem counters */
 			free_inodes--;
 			ext4_block_group_set_free_inodes_count(bg, sb, free_inodes);
-			
+
 			/* Increment used directories counter */
 			if (is_dir) {
@@ -265,5 +265,5 @@
 				ext4_block_group_set_used_dirs_count(bg, sb, used_dirs);
 			}
-			
+
 			/* Decrease unused inodes count */
 			if (ext4_block_group_has_flag(bg,
@@ -271,10 +271,10 @@
 				uint32_t unused =
 				    ext4_block_group_get_itable_unused(bg, sb);
-				
+
 				uint32_t inodes_in_group =
 				    ext4_superblock_get_inodes_in_group(sb, bgid);
-				
+
 				uint32_t free = inodes_in_group - unused;
-				
+
 				if (index_in_group >= free) {
 					unused = inodes_in_group - (index_in_group + 1);
@@ -282,22 +282,22 @@
 				}
 			}
-			
+
 			/* Save modified block group */
 			bg_ref->dirty = true;
-			
+
 			rc = ext4_filesystem_put_block_group_ref(bg_ref);
 			if (rc != EOK)
 				return rc;
-			
+
 			/* Update superblock */
 			sb_free_inodes--;
 			ext4_superblock_set_free_inodes_count(sb, sb_free_inodes);
-			
+
 			/* Compute the absolute i-nodex number */
 			*index = ext4_ialloc_index_in_group2inode(sb, index_in_group, bgid);
-			
+
 			return EOK;
 		}
-		
+
 		/* Block group not modified, put it and jump to the next block group */
 		rc = ext4_filesystem_put_block_group_ref(bg_ref);
@@ -307,5 +307,5 @@
 		++bgid;
 	}
-	
+
 	return ENOSPC;
 }
Index: uspace/lib/ext4/src/inode.c
===================================================================
--- uspace/lib/ext4/src/inode.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/inode.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,10 +53,10 @@
 	uint32_t bits = 8;
 	uint32_t size = block_size;
-	
+
 	do {
 		bits++;
 		size = size >> 1;
 	} while (size > 256);
-	
+
 	return bits;
 }
@@ -76,5 +76,5 @@
 		    ((uint32_t) uint16_t_le2host(inode->mode));
 	}
-	
+
 	return uint16_t_le2host(inode->mode);
 }
@@ -90,5 +90,5 @@
 {
 	inode->mode = host2uint16_t_le((mode << 16) >> 16);
-	
+
 	if (ext4_superblock_get_creator_os(sb) == EXT4_SUPERBLOCK_OS_HURD)
 		inode->osd2.hurd2.mode_high = host2uint16_t_le(mode >> 16);
@@ -129,10 +129,10 @@
 {
 	uint32_t major_rev = ext4_superblock_get_rev_level(sb);
-	
+
 	if ((major_rev > 0) &&
 	    (ext4_inode_is_type(sb, inode, EXT4_INODE_MODE_FILE)))
 		return ((uint64_t)uint32_t_le2host(inode->size_hi)) << 32 |
 		    ((uint64_t)uint32_t_le2host(inode->size_lo));
-	
+
 	return uint32_t_le2host(inode->size_lo);
 }
@@ -304,5 +304,5 @@
 		    uint16_t_le2host(inode->osd2.linux2.blocks_high)) << 32 |
 		    uint32_t_le2host(inode->blocks_count_lo);
-		
+
 		if (ext4_inode_has_flag(inode, EXT4_INODE_FLAG_HUGE_FILE)) {
 			uint32_t block_size = ext4_superblock_get_block_size(sb);
@@ -330,22 +330,22 @@
 	uint64_t max = 0;
 	max = ~max >> 32;
-	
+
 	if (count <= max) {
 		inode->blocks_count_lo = host2uint32_t_le(count);
 		inode->osd2.linux2.blocks_high = 0;
 		ext4_inode_clear_flag(inode, EXT4_INODE_FLAG_HUGE_FILE);
-		
+
 		return EOK;
 	}
-	
+
 	/* Check if there can be used huge files (many blocks) */
 	if (!ext4_superblock_has_feature_read_only(sb,
 	    EXT4_FEATURE_RO_COMPAT_HUGE_FILE))
 		return EINVAL;
-	
+
 	/* 48-bit maximum */
 	max = 0;
 	max = ~max >> 16;
-	
+
 	if (count <= max) {
 		inode->blocks_count_lo = host2uint32_t_le(count);
@@ -360,5 +360,5 @@
 		inode->osd2.linux2.blocks_high = host2uint16_t_le(count >> 32);
 	}
-	
+
 	return EOK;
 }
@@ -424,5 +424,5 @@
 		    uint16_t_le2host(inode->osd2.linux2.file_acl_high)) << 16 |
 		    (uint32_t_le2host(inode->file_acl_lo));
-	
+
 	return uint32_t_le2host(inode->file_acl_lo);
 }
@@ -439,5 +439,5 @@
 {
 	inode->file_acl_lo = host2uint32_t_le((file_acl << 32) >> 32);
-	
+
 	if (ext4_superblock_get_creator_os(sb) == EXT4_SUPERBLOCK_OS_LINUX)
 		inode->osd2.linux2.file_acl_high = host2uint16_t_le(file_acl >> 32);
@@ -455,5 +455,5 @@
 {
 	assert(idx < EXT4_INODE_DIRECT_BLOCK_COUNT);
-	
+
 	return uint32_t_le2host(inode->blocks[idx]);
 }
@@ -469,5 +469,5 @@
 {
 	assert(idx < EXT4_INODE_DIRECT_BLOCK_COUNT);
-	
+
 	inode->blocks[idx] = host2uint32_t_le(fblock);
 }
@@ -540,5 +540,5 @@
 	if (ext4_inode_get_flags(inode) & flag)
 		return true;
-	
+
 	return false;
 }
@@ -583,9 +583,9 @@
 	    (ext4_inode_has_flag(inode, EXT4_INODE_FLAG_IMMUTABLE)))
 		return false;
-	
+
 	if ((ext4_inode_is_type(sb, inode, EXT4_INODE_MODE_FILE)) ||
 	    (ext4_inode_is_type(sb, inode, EXT4_INODE_MODE_DIRECTORY)))
 		return true;
-	
+
 	return false;
 }
Index: uspace/lib/ext4/src/ops.c
===================================================================
--- uspace/lib/ext4/src/ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -117,5 +117,5 @@
 	node_key_t *key = (node_key_t *)key_arg;
 	ext4_node_t *enode = hash_table_get_inst(item, ext4_node_t, link);
-	
+
 	return key->service_id == enode->instance->service_id
 		&& key->index == enode->inode_ref->index;
@@ -142,5 +142,5 @@
 	if (!hash_table_create(&open_nodes, 0, 0, &open_nodes_ops))
 		return ENOMEM;
-	
+
 	return EOK;
 }
@@ -173,10 +173,10 @@
 {
 	fibril_mutex_lock(&instance_list_mutex);
-	
+
 	if (list_empty(&instance_list)) {
 		fibril_mutex_unlock(&instance_list_mutex);
 		return EINVAL;
 	}
-	
+
 	list_foreach(instance_list, link, ext4_instance_t, tmp) {
 		if (tmp->service_id == service_id) {
@@ -186,5 +186,5 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&instance_list_mutex);
 	return EINVAL;
@@ -219,9 +219,9 @@
 	ext4_node_t *eparent = EXT4_NODE(pfn);
 	ext4_filesystem_t *fs = eparent->instance->filesystem;
-	
+
 	if (!ext4_inode_is_type(fs->superblock, eparent->inode_ref->inode,
 	    EXT4_INODE_MODE_DIRECTORY))
 		return ENOTDIR;
-	
+
 	/* Try to find entry */
 	ext4_directory_search_result_t result;
@@ -233,8 +233,8 @@
 			return EOK;
 		}
-		
-		return rc;
-	}
-	
+
+		return rc;
+	}
+
 	/* Load node from search result */
 	uint32_t inode = ext4_directory_entry_ll_get_inode(result.dentry);
@@ -268,5 +268,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	return ext4_node_get_core(rfn, inst, index);
 }
@@ -285,5 +285,5 @@
 {
 	fibril_mutex_lock(&open_nodes_lock);
-	
+
 	/* Check if the node is not already open */
 	node_key_t key = {
@@ -291,5 +291,5 @@
 		.index = index
 	};
-	
+
 	ht_link_t *already_open = hash_table_find(&open_nodes, &key);
 	ext4_node_t *enode = NULL;
@@ -298,9 +298,9 @@
 		*rfn = enode->fs_node;
 		enode->references++;
-		
+
 		fibril_mutex_unlock(&open_nodes_lock);
 		return EOK;
 	}
-	
+
 	/* Prepare new enode */
 	enode = malloc(sizeof(ext4_node_t));
@@ -309,5 +309,5 @@
 		return ENOMEM;
 	}
-	
+
 	/* Prepare new fs_node and initialize */
 	fs_node_t *fs_node = malloc(sizeof(fs_node_t));
@@ -317,7 +317,7 @@
 		return ENOMEM;
 	}
-	
+
 	fs_node_initialize(fs_node);
-	
+
 	/* Load i-node from filesystem */
 	ext4_inode_ref_t *inode_ref;
@@ -330,5 +330,5 @@
 		return rc;
 	}
-	
+
 	/* Initialize enode */
 	enode->inode_ref = inode_ref;
@@ -336,13 +336,13 @@
 	enode->references = 1;
 	enode->fs_node = fs_node;
-	
+
 	fs_node->data = enode;
 	*rfn = fs_node;
-	
+
 	hash_table_insert(&open_nodes, &enode->link);
 	inst->open_nodes_count++;
-	
+
 	fibril_mutex_unlock(&open_nodes_lock);
-	
+
 	return EOK;
 }
@@ -360,14 +360,14 @@
 	assert(enode->instance->open_nodes_count > 0);
 	enode->instance->open_nodes_count--;
-	
+
 	/* Put inode back in filesystem */
 	errno_t rc = ext4_filesystem_put_inode_ref(enode->inode_ref);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Destroy data structure */
 	free(enode->fs_node);
 	free(enode);
-	
+
 	return EOK;
 }
@@ -399,5 +399,5 @@
 {
 	fibril_mutex_lock(&open_nodes_lock);
-	
+
 	ext4_node_t *enode = EXT4_NODE(fn);
 	assert(enode->references > 0);
@@ -410,7 +410,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&open_nodes_lock);
-	
+
 	return EOK;
 }
@@ -432,5 +432,5 @@
 	if (enode == NULL)
 		return ENOMEM;
-	
+
 	/* Allocate fs_node */
 	fs_node_t *fs_node;
@@ -440,5 +440,5 @@
 		return ENOMEM;
 	}
-	
+
 	/* Load instance */
 	ext4_instance_t *inst;
@@ -449,5 +449,5 @@
 		return rc;
 	}
-	
+
 	/* Allocate new i-node in filesystem */
 	ext4_inode_ref_t *inode_ref;
@@ -458,22 +458,22 @@
 		return rc;
 	}
-	
+
 	/* Do some interconnections in references */
 	enode->inode_ref = inode_ref;
 	enode->instance = inst;
 	enode->references = 1;
-	
+
 	fibril_mutex_lock(&open_nodes_lock);
 	hash_table_insert(&open_nodes, &enode->link);
 	fibril_mutex_unlock(&open_nodes_lock);
 	inst->open_nodes_count++;
-	
+
 	enode->inode_ref->dirty = true;
-	
+
 	fs_node_initialize(fs_node);
 	fs_node->data = enode;
 	enode->fs_node = fs_node;
 	*rfn = fs_node;
-	
+
 	return EOK;
 }
@@ -495,13 +495,13 @@
 		return rc;
 	}
-	
+
 	if (has_children) {
 		ext4_node_put(fn);
 		return EINVAL;
 	}
-	
+
 	ext4_node_t *enode = EXT4_NODE(fn);
 	ext4_inode_ref_t *inode_ref = enode->inode_ref;
-	
+
 	/* Release data blocks */
 	rc = ext4_filesystem_truncate_inode(inode_ref, 0);
@@ -510,5 +510,5 @@
 		return rc;
 	}
-	
+
 	/*
 	 * TODO: Sset real deletion time when it will be supported.
@@ -517,5 +517,5 @@
 	ext4_inode_set_deletion_time(inode_ref->inode, 0xdeadbeef);
 	inode_ref->dirty = true;
-	
+
 	/* Free inode */
 	rc = ext4_filesystem_free_inode(inode_ref);
@@ -524,5 +524,5 @@
 		return rc;
 	}
-	
+
 	return ext4_node_put(fn);
 }
@@ -542,9 +542,9 @@
 	if (str_size(name) > EXT4_DIRECTORY_FILENAME_LEN)
 		return ENAMETOOLONG;
-	
+
 	ext4_node_t *parent = EXT4_NODE(pfn);
 	ext4_node_t *child = EXT4_NODE(cfn);
 	ext4_filesystem_t *fs = parent->instance->filesystem;
-	
+
 	/* Add entry to parent directory */
 	errno_t rc = ext4_directory_add_entry(parent->inode_ref, name,
@@ -552,5 +552,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Fill new dir -> add '.' and '..' entries */
 	if (ext4_inode_is_type(fs->superblock, child->inode_ref->inode,
@@ -562,5 +562,5 @@
 			return rc;
 		}
-		
+
 		rc = ext4_directory_add_entry(child->inode_ref, "..",
 		    parent->inode_ref);
@@ -570,5 +570,5 @@
 			return rc;
 		}
-		
+
 		/* Initialize directory index if supported */
 		if (ext4_superblock_has_feature_compatible(fs->superblock,
@@ -577,25 +577,25 @@
 			if (rc != EOK)
 				return rc;
-			
+
 			ext4_inode_set_flag(child->inode_ref->inode,
 			    EXT4_INODE_FLAG_INDEX);
 			child->inode_ref->dirty = true;
 		}
-	
+
 		uint16_t parent_links =
 		    ext4_inode_get_links_count(parent->inode_ref->inode);
 		parent_links++;
 		ext4_inode_set_links_count(parent->inode_ref->inode, parent_links);
-		
+
 		parent->inode_ref->dirty = true;
 	}
-	
+
 	uint16_t child_links =
 	    ext4_inode_get_links_count(child->inode_ref->inode);
 	child_links++;
 	ext4_inode_set_links_count(child->inode_ref->inode, child_links);
-	
+
 	child->inode_ref->dirty = true;
-	
+
 	return EOK;
 }
@@ -616,9 +616,9 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Cannot unlink non-empty node */
 	if (has_children)
 		return ENOTEMPTY;
-	
+
 	/* Remove entry from parent directory */
 	ext4_inode_ref_t *parent = EXT4_NODE(pfn)->inode_ref;
@@ -626,26 +626,26 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Decrement links count */
 	ext4_inode_ref_t *child_inode_ref = EXT4_NODE(cfn)->inode_ref;
-	
+
 	uint32_t lnk_count =
 	    ext4_inode_get_links_count(child_inode_ref->inode);
 	lnk_count--;
-	
+
 	/* If directory - handle links from parent */
 	if ((lnk_count <= 1) && (ext4_is_directory(cfn))) {
 		assert(lnk_count == 1);
-		
+
 		lnk_count--;
-		
+
 		ext4_inode_ref_t *parent_inode_ref = EXT4_NODE(pfn)->inode_ref;
-		
+
 		uint32_t parent_lnk_count = ext4_inode_get_links_count(
 		    parent_inode_ref->inode);
-		
+
 		parent_lnk_count--;
 		ext4_inode_set_links_count(parent_inode_ref->inode, parent_lnk_count);
-		
+
 		parent->dirty = true;
 	}
@@ -659,5 +659,5 @@
 	 * parent->dirty = true;
 	 */
-	
+
 	/*
 	 * TODO: Update timestamp for inode.
@@ -666,8 +666,8 @@
 	 *     (uint32_t) now);
 	 */
-	
+
 	ext4_inode_set_links_count(child_inode_ref->inode, lnk_count);
 	child_inode_ref->dirty = true;
-	
+
 	return EOK;
 }
@@ -687,5 +687,5 @@
 	ext4_node_t *enode = EXT4_NODE(fn);
 	ext4_filesystem_t *fs = enode->instance->filesystem;
-	
+
 	/* Check if node is directory */
 	if (!ext4_inode_is_type(fs->superblock, enode->inode_ref->inode,
@@ -694,10 +694,10 @@
 		return EOK;
 	}
-	
+
 	ext4_directory_iterator_t it;
 	errno_t rc = ext4_directory_iterator_init(&it, enode->inode_ref, 0);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Find a non-empty directory entry */
 	bool found = false;
@@ -712,5 +712,5 @@
 			}
 		}
-		
+
 		rc = ext4_directory_iterator_next(&it);
 		if (rc != EOK) {
@@ -719,11 +719,11 @@
 		}
 	}
-	
+
 	rc = ext4_directory_iterator_fini(&it);
 	if (rc != EOK)
 		return rc;
-	
+
 	*has_children = found;
-	
+
 	return EOK;
 }
@@ -767,5 +767,5 @@
 	ext4_node_t *enode = EXT4_NODE(fn);
 	uint32_t lnkcnt = ext4_inode_get_links_count(enode->inode_ref->inode);
-	
+
 	if (ext4_is_directory(fn)) {
 		if (lnkcnt > 1)
@@ -774,5 +774,5 @@
 			return 0;
 	}
-	
+
 	/* For regular files return real links count */
 	return lnkcnt;
@@ -790,5 +790,5 @@
 	ext4_node_t *enode = EXT4_NODE(fn);
 	ext4_superblock_t *sb = enode->instance->filesystem->superblock;
-	
+
 	return ext4_inode_is_type(sb, enode->inode_ref->inode,
 	    EXT4_INODE_MODE_DIRECTORY);
@@ -806,5 +806,5 @@
 	ext4_node_t *enode = EXT4_NODE(fn);
 	ext4_superblock_t *sb = enode->instance->filesystem->superblock;
-	
+
 	return ext4_inode_is_type(sb, enode->inode_ref->inode,
 	    EXT4_INODE_MODE_FILE);
@@ -928,5 +928,5 @@
 {
 	ext4_filesystem_t *fs;
-	
+
 	/* Allocate instance structure */
 	ext4_instance_t *inst = (ext4_instance_t *)
@@ -934,5 +934,5 @@
 	if (inst == NULL)
 		return ENOMEM;
-	
+
 	enum cache_mode cmode;
 	if (str_cmp(opts, "wtcache") == 0)
@@ -940,10 +940,10 @@
 	else
 		cmode = CACHE_MODE_WB;
-	
+
 	/* Initialize instance */
 	link_initialize(&inst->link);
 	inst->service_id = service_id;
 	inst->open_nodes_count = 0;
-	
+
 	/* Initialize the filesystem */
 	aoff64_t rnsize;
@@ -953,13 +953,13 @@
 		return rc;
 	}
-	
+
 	/* Add instance to the list */
 	fibril_mutex_lock(&instance_list_mutex);
 	list_append(&inst->link, &instance_list);
 	fibril_mutex_unlock(&instance_list_mutex);
-	
+
 	*index = EXT4_INODE_ROOT_INDEX;
 	*size = rnsize;
-	
+
 	return EOK;
 }
@@ -980,19 +980,19 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	fibril_mutex_lock(&open_nodes_lock);
-	
+
 	if (inst->open_nodes_count != 0) {
 		fibril_mutex_unlock(&open_nodes_lock);
 		return EBUSY;
 	}
-	
+
 	/* Remove the instance from the list */
 	fibril_mutex_lock(&instance_list_mutex);
 	list_remove(&inst->link);
 	fibril_mutex_unlock(&instance_list_mutex);
-	
+
 	fibril_mutex_unlock(&open_nodes_lock);
-	
+
 	rc = ext4_filesystem_close(inst->filesystem);
 	if (rc != EOK) {
@@ -1028,5 +1028,5 @@
 		return EINVAL;
 	}
-	
+
 	ext4_instance_t *inst;
 	errno_t rc = ext4_instance_get(service_id, &inst);
@@ -1035,5 +1035,5 @@
 		return rc;
 	}
-	
+
 	/* Load i-node */
 	ext4_inode_ref_t *inode_ref;
@@ -1043,5 +1043,5 @@
 		return rc;
 	}
-	
+
 	/* Read from i-node by type */
 	if (ext4_inode_is_type(inst->filesystem->superblock, inode_ref->inode,
@@ -1058,7 +1058,7 @@
 		rc = ENOTSUP;
 	}
-	
+
 	errno_t const rc2 = ext4_filesystem_put_inode_ref(inode_ref);
-	
+
 	return rc == EOK ? rc2 : rc;
 }
@@ -1076,8 +1076,8 @@
 	if ((name_size == 1) && (name[0] == '.'))
 		return true;
-	
+
 	if ((name_size == 2) && (name[0] == '.') && (name[1] == '.'))
 		return true;
-	
+
 	return false;
 }
@@ -1104,5 +1104,5 @@
 		return rc;
 	}
-	
+
 	/*
 	 * Find next interesting directory entry.
@@ -1114,12 +1114,12 @@
 		if (it.current->inode == 0)
 			goto skip;
-		
+
 		uint16_t name_size = ext4_directory_entry_ll_get_name_length(
 		    inst->filesystem->superblock, it.current);
-		
+
 		/* Skip . and .. */
 		if (ext4_is_dots(it.current->name, name_size))
 			goto skip;
-		
+
 		/*
 		 * The on-disk entry does not contain \0 at the end
@@ -1133,13 +1133,13 @@
 			return ENOMEM;
 		}
-		
+
 		memcpy(buf, &it.current->name, name_size);
 		*(buf + name_size) = 0;
 		found = true;
-		
+
 		(void) async_data_read_finalize(callid, buf, name_size + 1);
 		free(buf);
 		break;
-		
+
 skip:
 		rc = ext4_directory_iterator_next(&it);
@@ -1150,5 +1150,5 @@
 		}
 	}
-	
+
 	uint64_t next;
 	if (found) {
@@ -1156,12 +1156,12 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		next = it.current_offset;
 	}
-	
+
 	rc = ext4_directory_iterator_fini(&it);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Prepare return values */
 	if (found) {
@@ -1191,5 +1191,5 @@
 	ext4_superblock_t *sb = inst->filesystem->superblock;
 	uint64_t file_size = ext4_inode_get_size(sb, inode_ref->inode);
-	
+
 	if (pos >= file_size) {
 		/* Read 0 bytes successfully */
@@ -1198,5 +1198,5 @@
 		return EOK;
 	}
-	
+
 	/* For now, we only read data from one block at a time */
 	uint32_t block_size = ext4_superblock_get_block_size(sb);
@@ -1204,9 +1204,9 @@
 	uint32_t offset_in_block = pos % block_size;
 	uint32_t bytes = min(block_size - offset_in_block, size);
-	
+
 	/* Handle end of file */
 	if (pos + bytes > file_size)
 		bytes = file_size - pos;
-	
+
 	/* Get the real block number */
 	uint32_t fs_block;
@@ -1217,5 +1217,5 @@
 		return rc;
 	}
-	
+
 	/*
 	 * Check for sparse file.
@@ -1231,14 +1231,14 @@
 			return ENOMEM;
 		}
-		
+
 		memset(buffer, 0, bytes);
-		
+
 		rc = async_data_read_finalize(callid, buffer, bytes);
 		*rbytes = bytes;
-		
+
 		free(buffer);
 		return rc;
 	}
-	
+
 	/* Usual case - we need to read a block from device */
 	block_t *block;
@@ -1248,5 +1248,5 @@
 		return rc;
 	}
-	
+
 	assert(offset_in_block + bytes <= block_size);
 	rc = async_data_read_finalize(callid, block->data + offset_in_block, bytes);
@@ -1255,9 +1255,9 @@
 		return rc;
 	}
-	
+
 	rc = block_put(block);
 	if (rc != EOK)
 		return rc;
-	
+
 	*rbytes = bytes;
 	return EOK;
@@ -1282,5 +1282,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	ipc_callid_t callid;
 	size_t len;
@@ -1290,20 +1290,20 @@
 		goto exit;
 	}
-	
+
 	ext4_node_t *enode = EXT4_NODE(fn);
 	ext4_filesystem_t *fs = enode->instance->filesystem;
-	
+
 	uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
-	
+
 	/* Prevent writing to more than one block */
 	uint32_t bytes = min(len, block_size - (pos % block_size));
-	
+
 	int flags = BLOCK_FLAGS_NONE;
 	if (bytes == block_size)
 		flags = BLOCK_FLAGS_NOREAD;
-	
+
 	uint32_t iblock =  pos / block_size;
 	uint32_t fblock;
-	
+
 	/* Load inode */
 	ext4_inode_ref_t *inode_ref = enode->inode_ref;
@@ -1314,5 +1314,5 @@
 		goto exit;
 	}
-	
+
 	/* Check for sparse file */
 	if (fblock == 0) {
@@ -1323,5 +1323,5 @@
 			    ext4_inode_get_size(fs->superblock, inode_ref->inode) /
 			    block_size;
-			
+
 			while (last_iblock < iblock) {
 				rc = ext4_extent_append_block(inode_ref, &last_iblock,
@@ -1332,5 +1332,5 @@
 				}
 			}
-			
+
 			rc = ext4_extent_append_block(inode_ref, &last_iblock,
 			    &fblock, false);
@@ -1345,5 +1345,5 @@
 				goto exit;
 			}
-			
+
 			rc = ext4_filesystem_set_inode_data_block_index(inode_ref,
 			    iblock, fblock);
@@ -1354,9 +1354,9 @@
 			}
 		}
-		
+
 		flags = BLOCK_FLAGS_NOREAD;
 		inode_ref->dirty = true;
 	}
-	
+
 	/* Load target block */
 	block_t *write_block;
@@ -1366,5 +1366,5 @@
 		goto exit;
 	}
-	
+
 	if (flags == BLOCK_FLAGS_NOREAD)
 		memset(write_block->data, 0, block_size);
@@ -1419,11 +1419,11 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	ext4_node_t *enode = EXT4_NODE(fn);
 	ext4_inode_ref_t *inode_ref = enode->inode_ref;
-	
+
 	rc = ext4_filesystem_truncate_inode(inode_ref, new_size);
 	errno_t const rc2 = ext4_node_put(fn);
-	
+
 	return rc == EOK ? rc2 : rc;
 }
@@ -1456,5 +1456,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Destroy the inode */
 	return ext4_destroy_node(fn);
@@ -1473,8 +1473,8 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	ext4_node_t *enode = EXT4_NODE(fn);
 	enode->inode_ref->dirty = true;
-	
+
 	return ext4_node_put(fn);
 }
Index: uspace/lib/ext4/src/superblock.c
===================================================================
--- uspace/lib/ext4/src/superblock.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ext4/src/superblock.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -241,5 +241,5 @@
 	uint32_t log = 0;
 	uint32_t tmp = size / EXT4_MIN_BLOCK_SIZE;
-	
+
 	tmp >>= 1;
 	while (tmp) {
@@ -247,5 +247,5 @@
 		tmp >>= 1;
 	}
-	
+
 	ext4_superblock_set_log_block_size(sb, log);
 }
@@ -297,5 +297,5 @@
 	uint32_t log = 0;
 	uint32_t tmp = size / EXT4_MIN_BLOCK_SIZE;
-	
+
 	tmp >>= 1;
 	while (tmp) {
@@ -303,5 +303,5 @@
 		tmp >>= 1;
 	}
-	
+
 	ext4_superblock_set_log_frag_size(sb, log);
 }
@@ -736,5 +736,5 @@
 	if (ext4_superblock_get_rev_level(sb) == 0)
 		return EXT4_REV0_INODE_SIZE;
-	
+
 	return uint16_t_le2host(sb->inode_size);
 }
@@ -1001,8 +1001,8 @@
 {
 	uint16_t size = uint16_t_le2host(sb->desc_size);
-	
+
 	if (size < EXT4_MIN_BLOCK_GROUP_DESCRIPTOR_SIZE)
 		size = EXT4_MIN_BLOCK_GROUP_DESCRIPTOR_SIZE;
-	
+
 	return size;
 }
@@ -1021,5 +1021,5 @@
 		sb->desc_size =
 		    host2uint16_t_le(EXT4_MIN_BLOCK_GROUP_DESCRIPTOR_SIZE);
-	
+
 	sb->desc_size = host2uint16_t_le(size);
 }
@@ -1064,5 +1064,5 @@
 	if (ext4_superblock_get_flags(sb) & flag)
 		return true;
-	
+
 	return false;
 }
@@ -1081,5 +1081,5 @@
 	if (ext4_superblock_get_features_compatible(sb) & feature)
 		return true;
-	
+
 	return false;
 }
@@ -1098,5 +1098,5 @@
 	if (ext4_superblock_get_features_incompatible(sb) & feature)
 		return true;
-	
+
 	return false;
 }
@@ -1115,5 +1115,5 @@
 	if (ext4_superblock_get_features_read_only(sb) & feature)
 		return true;
-	
+
 	return false;
 }
@@ -1133,17 +1133,17 @@
 	if (data == NULL)
 		return ENOMEM;
-	
+
 	/* Read data from block device */
 	errno_t rc = block_read_bytes_direct(service_id, EXT4_SUPERBLOCK_OFFSET,
 	    EXT4_SUPERBLOCK_SIZE, data);
-	
+
 	if (rc != EOK) {
 		free(data);
 		return rc;
 	}
-	
+
 	/* Set output value */
 	(*sb) = data;
-	
+
 	return EOK;
 }
@@ -1164,15 +1164,15 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Compute address of the first block */
 	uint64_t first_block = EXT4_SUPERBLOCK_OFFSET / phys_block_size;
-	
+
 	/* Compute number of block to write */
 	size_t block_count = EXT4_SUPERBLOCK_SIZE / phys_block_size;
-	
+
 	/* Check alignment */
 	if (EXT4_SUPERBLOCK_SIZE % phys_block_size)
 		block_count++;
-	
+
 	/* Write data */
 	return block_write_direct(service_id, first_block, block_count, sb);
@@ -1203,31 +1203,31 @@
 	if (ext4_superblock_get_magic(sb) != EXT4_SUPERBLOCK_MAGIC)
 		return ENOTSUP;
-	
+
 	if (ext4_superblock_get_inodes_count(sb) == 0)
 		return ENOTSUP;
-	
+
 	if (ext4_superblock_get_blocks_count(sb) == 0)
 		return ENOTSUP;
-	
+
 	if (ext4_superblock_get_blocks_per_group(sb) == 0)
 		return ENOTSUP;
-	
+
 	if (ext4_superblock_get_inodes_per_group(sb) == 0)
 		return ENOTSUP;
-	
+
 	if (ext4_superblock_get_inode_size(sb) < 128)
 		return ENOTSUP;
-	
+
 	if (ext4_superblock_get_first_inode(sb) < 11)
 		return ENOTSUP;
-	
+
 	if (ext4_superblock_get_desc_size(sb) <
 	    EXT4_MIN_BLOCK_GROUP_DESCRIPTOR_SIZE)
 		return ENOTSUP;
-	
+
 	if (ext4_superblock_get_desc_size(sb) >
 	    EXT4_MAX_BLOCK_GROUP_DESCRIPTOR_SIZE)
 		return ENOTSUP;
-	
+
 	return EOK;
 }
@@ -1244,10 +1244,10 @@
 	uint64_t blocks_count = ext4_superblock_get_blocks_count(sb);
 	uint32_t blocks_per_group = ext4_superblock_get_blocks_per_group(sb);
-	
+
 	uint32_t block_groups_count = blocks_count / blocks_per_group;
-	
+
 	if (blocks_count % blocks_per_group)
 		block_groups_count++;
-	
+
 	return block_groups_count;
 }
@@ -1269,5 +1269,5 @@
 	uint64_t total_blocks =
 	    ext4_superblock_get_blocks_count(sb);
-	
+
 	if (bgid < block_group_count - 1)
 		return blocks_per_group;
@@ -1292,5 +1292,5 @@
 	uint32_t total_inodes =
 	    ext4_superblock_get_inodes_count(sb);
-	
+
 	if (bgid < block_group_count - 1)
 		return inodes_per_group;
Index: uspace/lib/fmtutil/fmtutil.c
===================================================================
--- uspace/lib/fmtutil/fmtutil.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/fmtutil/fmtutil.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -167,5 +167,5 @@
 		return EINVAL;
 	}
-	
+
 	return EOK;
 }
@@ -188,5 +188,5 @@
 	size_t line_len = 0;
 	size_t pos = 0;
-	
+
 	/*
 	 * Invariants:
@@ -194,5 +194,5 @@
 	 *  * line_start <= last_word_end <= word_start <= pos
 	 */
-	
+
 	while (wstr[pos] != 0) {
 		/* Skip spaces and process newlines */
Index: uspace/lib/fs/libfs.c
===================================================================
--- uspace/lib/fs/libfs.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/fs/libfs.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -86,5 +86,5 @@
 	errno_t rc;
 	vfs_fs_probe_info_t info;
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -95,5 +95,5 @@
 		return;
 	}
-	
+
 	memset(&info, 0, sizeof(info));
 	rc = vfs_out_ops->fsprobe(service_id, &info);
@@ -103,5 +103,5 @@
 		return;
 	}
-	
+
 	async_data_read_finalize(callid, &info, sizeof(info));
 	async_answer_0(rid, EOK);
@@ -113,5 +113,5 @@
 	char *opts;
 	errno_t rc;
-	
+
 	/* Accept the mount options. */
 	rc = async_data_write_accept((void **) &opts, true, 0, 0, 0, NULL);
@@ -268,9 +268,9 @@
 	if (node == NULL)
 		async_answer_0(rid, EINVAL);
-	
+
 	bool children = false;
 	rc = libfs_ops->has_children(&children, node);
 	libfs_ops->node_put(node);
-	
+
 	if (rc != EOK)
 		async_answer_0(rid, rc);
@@ -288,12 +288,12 @@
 		async_answer_0(iid, EOK);
 	}
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			return;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case VFS_OUT_FSPROBE:
@@ -372,15 +372,15 @@
 	 * out-of-order, when it knows that the operation succeeded or failed.
 	 */
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_0(exch, VFS_IN_REGISTER, &answer);
-	
+
 	/*
 	 * Send our VFS info structure to VFS.
 	 */
 	errno_t rc = async_data_write_start(exch, info, sizeof(*info));
-	
+
 	if (rc != EOK) {
 		async_exchange_end(exch);
@@ -388,5 +388,5 @@
 		return rc;
 	}
-	
+
 	/*
 	 * Set VFS_OUT and libfs operations.
@@ -403,5 +403,5 @@
 	rc = async_create_callback_port(exch, INTERFACE_VFS_DRIVER_CB, 0, 0,
 	    vfs_connection, NULL, &port);
-	
+
 	/*
 	 * Request sharing the Path Lookup Buffer with VFS.
@@ -413,12 +413,12 @@
 		return ENOMEM;
 	}
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc) {
 		async_forget(req);
 		return rc;
 	}
-	 
+
 	/*
 	 * Pick up the answer for the request to the VFS_IN_REQUEST call.
@@ -426,5 +426,5 @@
 	async_wait_for(req, NULL);
 	reg.fs_handle = (int) IPC_GET_ARG1(answer);
-	
+
 	/*
 	 * Tell the async framework that other connections are to be handled by
@@ -432,5 +432,5 @@
 	 */
 	async_set_fallback_port_handler(vfs_connection, NULL);
-	
+
 	return IPC_GET_RETVAL(answer);
 }
@@ -451,5 +451,5 @@
 	unsigned pos = *ppos;
 	unsigned size = 0;
-	
+
 	if (pos == last) {
 		*sz = 0;
@@ -460,5 +460,5 @@
 	if (c == '/')
 		pos++;
-	
+
 	for (int i = 0; i <= NAME_MAX; i++) {
 		c = plb_get_char(pos);
@@ -480,5 +480,5 @@
 	size_t size;
 	ipc_callid_t wcall;
-	
+
 	if (!async_data_write_receive(&wcall, &size))
 		return ENOENT;
@@ -498,5 +498,5 @@
 	fs_index_t parent_index = IPC_GET_ARG2(*req);
 	fs_index_t child_index = IPC_GET_ARG3(*req);
-	
+
 	char component[NAME_MAX + 1];
 	errno_t rc = receive_fname(component);
@@ -512,5 +512,5 @@
 		return;
 	}
-	
+
 	fs_node_t *child = NULL;
 	rc = ops->node_get(&child, parent_sid, child_index);
@@ -520,5 +520,5 @@
 		return;
 	}
-	
+
 	rc = ops->link(parent, child, component);
 	ops->node_put(parent);
@@ -548,18 +548,18 @@
 	fs_index_t index = IPC_GET_ARG4(*req);
 	int lflag = IPC_GET_ARG5(*req);
-	
+
 	// TODO: Validate flags.
-	
+
 	unsigned next = first;
 	unsigned last = first + len;
-	
+
 	char component[NAME_MAX + 1];
 	errno_t rc;
-	
+
 	fs_node_t *par = NULL;
 	fs_node_t *cur = NULL;
 	fs_node_t *tmp = NULL;
 	unsigned clen = 0;
-	
+
 	rc = ops->node_get(&cur, service_id, index);
 	if (rc != EOK) {
@@ -567,11 +567,11 @@
 		goto out;
 	}
-	
+
 	assert(cur != NULL);
-	
+
 	/* Find the file and its parent. */
-	
+
 	unsigned last_next = 0;
-	
+
 	while (next != last) {
 		if (cur == NULL) {
@@ -584,5 +584,5 @@
 			goto out;
 		}
-		
+
 		last_next = next;
 		/* Collect the component */
@@ -593,12 +593,12 @@
 			goto out;
 		}
-		
+
 		if (clen == 0) {
 			/* The path is just "/". */
 			break;
 		}
-		
+
 		assert(component[clen] == 0);
-		
+
 		/* Match the component */
 		rc = ops->match(&tmp, cur, component);
@@ -607,5 +607,5 @@
 			goto out;
 		}
-		
+
 		/* Descend one level */
 		if (par) {
@@ -616,31 +616,31 @@
 			}
 		}
-		
+
 		par = cur;
 		cur = tmp;
 		tmp = NULL;
 	}
-	
+
 	/* At this point, par is either NULL or a directory.
 	 * If cur is NULL, the looked up file does not exist yet.
 	 */
-	 
+
 	assert(par == NULL || ops->is_directory(par));
 	assert(par != NULL || cur != NULL);
-	
+
 	/* Check for some error conditions. */
-	
+
 	if (cur && (lflag & L_FILE) && (ops->is_directory(cur))) {
 		async_answer_0(rid, EISDIR);
 		goto out;
 	}
-	
+
 	if (cur && (lflag & L_DIRECTORY) && (ops->is_file(cur))) {
 		async_answer_0(rid, ENOTDIR);
 		goto out;
 	}
-	
+
 	/* Unlink. */
-	
+
 	if (lflag & L_UNLINK) {
 		if (!cur) {
@@ -652,5 +652,5 @@
 			goto out;
 		}
-		
+
 		rc = ops->unlink(par, cur, component);
 		if (rc == EOK) {
@@ -665,7 +665,7 @@
 		goto out;
 	}
-	
+
 	/* Create. */
-	
+
 	if (lflag & L_CREATE) {
 		if (cur && (lflag & L_EXCLUSIVE)) {
@@ -673,5 +673,5 @@
 			goto out;
 		}
-	
+
 		if (!cur) {
 			rc = ops->create(&cur, service_id,
@@ -685,5 +685,5 @@
 				goto out;
 			}
-			
+
 			rc = ops->link(par, cur, component);
 			if (rc != EOK) {
@@ -695,5 +695,5 @@
 		}
 	}
-	
+
 	/* Return. */
 out1:
@@ -704,16 +704,16 @@
 		goto out;
 	}
-	
+
 	async_answer_5(rid, EOK, fs_handle, ops->index_get(cur),
 	    (ops->is_directory(cur) << 16) | last, LOWER32(ops->size_get(cur)),
 	    UPPER32(ops->size_get(cur)));
-	
+
 out:
 	if (par)
 		(void) ops->node_put(par);
-	
+
 	if (cur)
 		(void) ops->node_put(cur);
-	
+
 	if (tmp)
 		(void) ops->node_put(tmp);
@@ -824,14 +824,14 @@
 	service_id_t service_id = IPC_GET_ARG1(*request);
 	fs_index_t index = IPC_GET_ARG2(*request);
-	
+
 	fs_node_t *fn;
 	errno_t rc = ops->node_get(&fn, service_id, index);
 	on_error(rc, answer_and_return(rid, rc));
-	
+
 	if (fn == NULL) {
 		async_answer_0(rid, ENOENT);
 		return;
 	}
-	
+
 	rc = ops->node_open(fn);
 	aoff64_t size = ops->size_get(fn);
@@ -840,5 +840,5 @@
 	    (ops->is_file(fn) ? L_FILE : 0) |
 	    (ops->is_directory(fn) ? L_DIRECTORY : 0));
-	
+
 	(void) ops->node_put(fn);
 }
Index: uspace/lib/graph/graph.c
===================================================================
--- uspace/lib/graph/graph.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/graph/graph.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -91,14 +91,14 @@
 	snprintf(node, LOC_NAME_MAXLEN, "%s%zu/%s%zu", NAMESPACE,
 	    namespace_idx, VISUALIZER_NAME, visualizer_idx++);
-	
+
 	category_id_t cat;
 	errno_t rc = loc_category_get_id("visualizer", &cat, 0);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = loc_service_register(node, &vs->reg_svc_handle);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = loc_service_add_to_cat(vs->reg_svc_handle, cat);
 	if (rc != EOK) {
@@ -106,9 +106,9 @@
 		return rc;
 	}
-	
+
 	fibril_mutex_lock(&visualizer_list_mtx);
 	list_append(&vs->link, &visualizer_list);
 	fibril_mutex_unlock(&visualizer_list_mtx);
-	
+
 	return rc;
 }
@@ -119,14 +119,14 @@
 	snprintf(node, LOC_NAME_MAXLEN, "%s%zu/%s%zu", NAMESPACE,
 	    namespace_idx, RENDERER_NAME, renderer_idx++);
-	
+
 	category_id_t cat;
 	errno_t rc = loc_category_get_id("renderer", &cat, 0);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = loc_service_register(node, &rnd->reg_svc_handle);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = loc_service_add_to_cat(rnd->reg_svc_handle, cat);
 	if (rc != EOK) {
@@ -134,9 +134,9 @@
 		return rc;
 	}
-	
+
 	fibril_mutex_lock(&renderer_list_mtx);
 	list_append(&rnd->link, &renderer_list);
 	fibril_mutex_unlock(&renderer_list_mtx);
-	
+
 	return rc;
 }
@@ -145,7 +145,7 @@
 {
 	visualizer_t *vs = NULL;
-	
+
 	fibril_mutex_lock(&visualizer_list_mtx);
-	
+
 	list_foreach(visualizer_list, link, visualizer_t, vcur) {
 		if (vcur->reg_svc_handle == handle) {
@@ -154,7 +154,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&visualizer_list_mtx);
-	
+
 	return vs;
 }
@@ -163,7 +163,7 @@
 {
 	renderer_t *rnd = NULL;
-	
+
 	fibril_mutex_lock(&renderer_list_mtx);
-	
+
 	list_foreach(renderer_list, link, renderer_t, rcur) {
 		if (rcur->reg_svc_handle == handle) {
@@ -172,7 +172,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&renderer_list_mtx);
-	
+
 	return rnd;
 }
@@ -184,5 +184,5 @@
 	list_remove(&vs->link);
 	fibril_mutex_unlock(&visualizer_list_mtx);
-	
+
 	return rc;
 }
@@ -194,5 +194,5 @@
 	list_remove(&rnd->link);
 	fibril_mutex_unlock(&renderer_list_mtx);
-	
+
 	return rc;
 }
@@ -207,5 +207,5 @@
 	assert(vs->cells.data == NULL);
 	assert(vs->dev_ctx == NULL);
-	
+
 	free(vs);
 }
@@ -215,5 +215,5 @@
 	// TODO
 	assert(atomic_get(&rnd->ref_cnt) == 0);
-	
+
 	free(rnd);
 }
@@ -224,5 +224,5 @@
 	errno_t ret = async_req_2_0(exch, VISUALIZER_MODE_CHANGE, handle, mode_idx);
 	async_exchange_end(exch);
-	
+
 	return ret;
 }
@@ -233,7 +233,7 @@
 	errno_t ret = async_req_1_0(exch, VISUALIZER_DISCONNECT, handle);
 	async_exchange_end(exch);
-	
+
 	async_hangup(sess);
-	
+
 	return ret;
 }
@@ -255,13 +255,13 @@
 		}
 	}
-	
+
 	/* Driver might also deallocate resources for the current mode. */
 	errno_t rc = vs->ops.yield(vs);
-	
+
 	/* Now that the driver was given a chance to deallocate resources,
 	 * current mode can be unset. */
 	if (vs->mode_set)
 		vs->mode_set = false;
-	
+
 	async_answer_0(iid, rc);
 }
@@ -271,5 +271,5 @@
 	ipc_callid_t callid;
 	size_t len;
-	
+
 	if (!async_data_read_receive(&callid, &len)) {
 		async_answer_0(callid, EREFUSED);
@@ -277,12 +277,12 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&vs->mode_mtx);
 	link_t *link = list_nth(&vs->modes, IPC_GET_ARG1(*icall));
-	
+
 	if (link != NULL) {
 		vslmode_list_element_t *mode_elem =
 		    list_get_instance(link, vslmode_list_element_t, link);
-		
+
 		errno_t rc = async_data_read_finalize(callid, &mode_elem->mode, len);
 		async_answer_0(iid, rc);
@@ -291,5 +291,5 @@
 		async_answer_0(iid, ENOENT);
 	}
-	
+
 	fibril_mutex_unlock(&vs->mode_mtx);
 }
@@ -299,5 +299,5 @@
 	ipc_callid_t callid;
 	size_t len;
-	
+
 	if (!async_data_read_receive(&callid, &len)) {
 		async_answer_0(callid, EREFUSED);
@@ -305,8 +305,8 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&vs->mode_mtx);
 	vslmode_list_element_t *mode_elem = NULL;
-	
+
 	list_foreach(vs->modes, link, vslmode_list_element_t, cur) {
 		if (cur->mode.index == vs->def_mode_idx) {
@@ -315,5 +315,5 @@
 		}
 	}
-	
+
 	if (mode_elem != NULL) {
 		errno_t rc = async_data_read_finalize(callid, &mode_elem->mode, len);
@@ -324,5 +324,5 @@
 		async_answer_0(iid, ENOENT);
 	}
-	
+
 	fibril_mutex_unlock(&vs->mode_mtx);
 }
@@ -332,5 +332,5 @@
 	ipc_callid_t callid;
 	size_t len;
-	
+
 	if (!async_data_read_receive(&callid, &len)) {
 		async_answer_0(callid, EREFUSED);
@@ -338,5 +338,5 @@
 		return;
 	}
-	
+
 	if (vs->mode_set) {
 		errno_t rc = async_data_read_finalize(callid, &vs->cur_mode, len);
@@ -352,5 +352,5 @@
 	ipc_callid_t callid;
 	size_t len;
-	
+
 	if (!async_data_read_receive(&callid, &len)) {
 		async_answer_0(callid, EREFUSED);
@@ -358,10 +358,10 @@
 		return;
 	}
-	
+
 	sysarg_t mode_idx = IPC_GET_ARG1(*icall);
-	
+
 	fibril_mutex_lock(&vs->mode_mtx);
 	vslmode_list_element_t *mode_elem = NULL;
-	
+
 	list_foreach(vs->modes, link, vslmode_list_element_t, cur) {
 		if (cur->mode.index == mode_idx) {
@@ -370,5 +370,5 @@
 		}
 	}
-	
+
 	if (mode_elem != NULL) {
 		errno_t rc = async_data_read_finalize(callid, &mode_elem->mode, len);
@@ -378,5 +378,5 @@
 		async_answer_0(iid, ENOENT);
 	}
-	
+
 	fibril_mutex_unlock(&vs->mode_mtx);
 }
@@ -387,5 +387,5 @@
 	size_t size;
 	unsigned int flags;
-	
+
 	/* Retrieve the shared cell storage for the new mode. */
 	if (!async_share_out_receive(&callid, &size, &flags)) {
@@ -394,13 +394,13 @@
 		return;
 	}
-	
+
 	/* Retrieve mode index and version. */
 	sysarg_t mode_idx = IPC_GET_ARG1(*icall);
 	sysarg_t mode_version = IPC_GET_ARG2(*icall);
-	
+
 	/* Find mode in the list. */
 	fibril_mutex_lock(&vs->mode_mtx);
 	vslmode_list_element_t *mode_elem = NULL;
-	
+
 	list_foreach(vs->modes, link, vslmode_list_element_t, cur) {
 		if (cur->mode.index == mode_idx) {
@@ -409,5 +409,5 @@
 		}
 	}
-	
+
 	if (mode_elem == NULL) {
 		fibril_mutex_unlock(&vs->mode_mtx);
@@ -416,9 +416,9 @@
 		return;
 	}
-	
+
 	/* Extract mode description from the list node. */
 	vslmode_t new_mode = mode_elem->mode;
 	fibril_mutex_unlock(&vs->mode_mtx);
-	
+
 	/* Check whether the mode is still up-to-date. */
 	if (new_mode.version != mode_version) {
@@ -427,5 +427,5 @@
 		return;
 	}
-	
+
 	void *new_cell_storage;
 	errno_t rc = async_share_out_finalize(callid, &new_cell_storage);
@@ -434,8 +434,8 @@
 		return;
 	}
-	
+
 	/* Change device internal state. */
 	rc = vs->ops.change_mode(vs, new_mode);
-	
+
 	/* Device driver could not establish new mode. Rollback. */
 	if (rc != EOK) {
@@ -444,5 +444,5 @@
 		return;
 	}
-	
+
 	/*
 	 * Because resources for the new mode were successfully
@@ -456,5 +456,5 @@
 		}
 	}
-	
+
 	/* Insert new mode into the visualizer. */
 	vs->cells.width = new_mode.screen_width;
@@ -463,5 +463,5 @@
 	vs->cur_mode = new_mode;
 	vs->mode_set = true;
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -471,5 +471,5 @@
 	sysarg_t x_offset = (IPC_GET_ARG5(*icall) >> 16);
 	sysarg_t y_offset = (IPC_GET_ARG5(*icall) & 0x0000ffff);
-	
+
 	errno_t rc = vs->ops.handle_damage(vs,
 	    IPC_GET_ARG1(*icall), IPC_GET_ARG2(*icall),
@@ -496,5 +496,5 @@
 	ipc_call_t call;
 	ipc_callid_t callid;
-	
+
 	/* Claim the visualizer. */
 	if (!cas(&vs->ref_cnt, 0, 1)) {
@@ -502,8 +502,8 @@
 		return;
 	}
-	
+
 	/* Accept the connection. */
 	async_answer_0(iid, EOK);
-	
+
 	/* Establish callback session. */
 	callid = async_get_call(&call);
@@ -513,14 +513,14 @@
 	else
 		async_answer_0(callid, ELIMIT);
-	
+
 	/* Enter command loop. */
 	while (true) {
 		callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			async_answer_0(callid, EINVAL);
 			break;
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case VISUALIZER_CLAIM:
@@ -559,5 +559,5 @@
 		}
 	}
-	
+
 terminate:
 	async_hangup(vs->notif_sess);
@@ -570,21 +570,21 @@
 {
 	// TODO
-	
+
 	ipc_call_t call;
 	ipc_callid_t callid;
-	
+
 	/* Accept the connection. */
 	atomic_inc(&rnd->ref_cnt);
 	async_answer_0(iid, EOK);
-	
+
 	/* Enter command loop. */
 	while (true) {
 		callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			async_answer_0(callid, EINVAL);
 			break;
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		default:
@@ -593,5 +593,5 @@
 		}
 	}
-	
+
 terminate:
 	atomic_dec(&rnd->ref_cnt);
@@ -603,5 +603,5 @@
 	visualizer_t *vs = graph_get_visualizer(IPC_GET_ARG2(*icall));
 	renderer_t *rnd = graph_get_renderer(IPC_GET_ARG2(*icall));
-	
+
 	if (vs != NULL)
 		graph_visualizer_connection(vs, iid, icall, arg);
Index: uspace/lib/graph/graph.h
===================================================================
--- uspace/lib/graph/graph.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/graph/graph.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,5 +55,5 @@
 	 * specific for a claimed visualizer. */
 	errno_t (*claim)(struct visualizer *vs);
-	
+
 	/**
 	 * Device driver shall deallocate any necessary internal structures
@@ -62,5 +62,5 @@
 	 * accordingly (e.g. deallocate frame buffers). */
 	errno_t (*yield)(struct visualizer *vs);
-	
+
 	/**
 	 * Device driver shall first try to claim all resources required for
@@ -73,5 +73,5 @@
 	 * changed at this point. */
 	errno_t (*change_mode)(struct visualizer *vs, vslmode_t new_mode);
-	
+
 	/**
 	 * Device driver shall render the cells from damaged region into its
@@ -85,5 +85,5 @@
 	    sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height,
 	    sysarg_t x_offset, sysarg_t y_offset);
-	
+
 	/**
 	 * Upper layers of the graphic stack might report inactivity. In such
@@ -91,5 +91,5 @@
 	 * corresponding to the visualizer. */
 	errno_t (*suspend)(struct visualizer *vs);
-	
+
 	/**
 	 * When upper layers detect activity on suspended visualizer, device
@@ -107,5 +107,5 @@
 	 * Field is fully managed by libgraph. */
 	link_t link;
-	
+
 	/**
 	 * When reference count equals 1, visualizer is claimed by a client,
@@ -114,5 +114,5 @@
 	 * Field is fully managed by libgraph. */
 	atomic_t ref_cnt;
-	
+
 	/**
 	 * Visualizer ID assigned by some particular registration service
@@ -123,5 +123,5 @@
 	 * responsibility to set and update this field. */
 	sysarg_t reg_svc_handle;
-	
+
 	/**
 	 * Visualizer ID in the client context. When client gets notified by
@@ -132,5 +132,5 @@
 	 * gets claimed and is valid until it is yielded. */
 	sysarg_t client_side_handle;
-	
+
 	/**
 	 * Callback session to the client. Established by libgraph during initial
@@ -143,5 +143,5 @@
 	 * through notification functions. */
 	async_sess_t *notif_sess;
-	
+
 	/**
 	 * Mutex protecting the mode list and default mode index. This is required
@@ -152,5 +152,5 @@
 	 * modes list or default mode index. */
 	fibril_mutex_t mode_mtx;
-	
+
 	/**
 	 * List of all modes that can be set by this visualizer. List is populated
@@ -164,5 +164,5 @@
 	 * mutex. */
 	list_t modes;
-	
+
 	/**
 	 * Index of the default mode. Might come in handy to the clients that are
@@ -175,5 +175,5 @@
 	 * mutex. */
 	sysarg_t def_mode_idx;
-	
+
 	/**
 	 * Copy of the currently established mode. It is read by both libgraph and
@@ -183,5 +183,5 @@
 	 * Field is fully managed by libgraph, can be read by device driver. */
 	vslmode_t cur_mode;
-	
+
 	/**
 	 * Determines whether the visualizer is currently set to some mode or not,
@@ -189,5 +189,5 @@
 	 * Field is fully managed by libgraph, can be read by device driver. */
 	bool mode_set;
-	
+
 	/**
 	 * Device driver function pointers.
@@ -195,5 +195,5 @@
 	 * functions through it. */
 	visualizer_ops_t ops;
-	
+
 	/**
 	 * Backbuffer shared with the client. Sharing is established by libgraph.
@@ -202,5 +202,5 @@
 	 * Field is fully managed by libgraph, can be read by device driver. */
 	pixelmap_t cells;
-	
+
 	/**
 	 * Device driver context, completely opaque to the libgraph. Intended to
@@ -252,9 +252,9 @@
 	// TODO
 	link_t link;
-	
+
 	atomic_t ref_cnt;
-	
+
 	sysarg_t reg_svc_handle;
-	
+
 	renderer_ops_t ops;
 } renderer_t;
Index: uspace/lib/gui/button.c
===================================================================
--- uspace/lib/gui/button.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/button.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,19 +50,19 @@
 {
 	button_t *btn = (button_t *) widget;
-	
+
 	surface_t *surface = window_claim(btn->widget.window);
 	if (!surface)
 		window_yield(btn->widget.window);
-	
+
 	source_t source;
 	source_init(&source);
-	
+
 	drawctx_t drawctx;
 	drawctx_init(&drawctx, surface);
-	
+
 	drawctx_set_source(&drawctx, &btn->background);
 	drawctx_transfer(&drawctx, widget->hpos, widget->vpos,
 	    widget->width, widget->height);
-	
+
 	if ((widget->width >= 8) && (widget->height >= 8)) {
 		drawctx_set_source(&drawctx, &source);
@@ -70,25 +70,25 @@
 		    widget->width - 6, widget->height - 6, color_highlight,
 		    color_shadow);
-		
+
 		drawctx_set_source(&drawctx, &btn->foreground);
 		drawctx_transfer(&drawctx, widget->hpos + 4, widget->vpos + 4,
 		    widget->width - 8, widget->height - 8);
 	}
-	
+
 	sysarg_t cpt_width;
 	sysarg_t cpt_height;
 	font_get_box(btn->font, btn->caption, &cpt_width, &cpt_height);
-	
+
 	if ((widget->width >= cpt_width) && (widget->height >= cpt_height)) {
 		sysarg_t x = ((widget->width - cpt_width) / 2) + widget->hpos;
 		sysarg_t y = ((widget->height - cpt_height) / 2) + widget->vpos;
-		
+
 		drawctx_set_source(&drawctx, &btn->text);
 		drawctx_set_font(&drawctx, btn->font);
-		
+
 		if (btn->caption)
 			drawctx_print(&drawctx, btn->caption, x, y);
 	}
-	
+
 	window_yield(btn->widget.window);
 }
@@ -104,5 +104,5 @@
 {
 	button_t *btn = (button_t *) widget;
-	
+
 	deinit_button(btn);
 	free(btn);
@@ -130,5 +130,5 @@
 {
 	button_t *btn = (button_t *) widget;
-	
+
 	if (event.key == KC_ENTER && event.type == KEY_PRESS)
 		sig_send(&btn->clicked, NULL);
@@ -139,5 +139,5 @@
 	button_t *btn = (button_t *) widget;
 	widget->window->focus = widget;
-	
+
 	// TODO make the click logic more robust (mouse grabbing, mouse moves)
 	if (event.btn_num == 1) {
@@ -152,5 +152,5 @@
 {
 	widget_init(&btn->widget, parent, data);
-	
+
 	btn->widget.destroy = button_destroy;
 	btn->widget.reconfigure = button_reconfigure;
@@ -159,19 +159,19 @@
 	btn->widget.handle_keyboard_event = button_handle_keyboard_event;
 	btn->widget.handle_position_event = button_handle_position_event;
-	
+
 	source_init(&btn->background);
 	source_set_color(&btn->background, background);
-	
+
 	source_init(&btn->foreground);
 	source_set_color(&btn->foreground, foreground);
-	
+
 	source_init(&btn->text);
 	source_set_color(&btn->text, text);
-	
+
 	if (caption == NULL)
 		btn->caption = NULL;
 	else
 		btn->caption = str_dup(caption);
-	
+
 	errno_t rc = embedded_font_create(&btn->font, points);
 	if (rc != EOK) {
@@ -180,5 +180,5 @@
 		return false;
 	}
-	
+
 	sysarg_t cpt_width;
 	sysarg_t cpt_height;
@@ -188,5 +188,5 @@
 	btn->widget.width_ideal = cpt_width + 30;
 	btn->widget.height_ideal = cpt_height + 10;
-	
+
 	return true;
 }
@@ -198,9 +198,9 @@
 	if (!btn)
 		return NULL;
-	
+
 	if (init_button(btn, parent, data, caption, points, background, foreground,
 	    text))
 		return btn;
-	
+
 	free(btn);
 	return NULL;
Index: uspace/lib/gui/canvas.c
===================================================================
--- uspace/lib/gui/canvas.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/canvas.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,14 +45,14 @@
 {
 	canvas_t *canvas = (canvas_t *) widget;
-	
+
 	surface_t *surface = window_claim(canvas->widget.window);
 	if (!surface) {
 		window_yield(canvas->widget.window);
 	}
-	
+
 	transform_t transform;
 	transform_identity(&transform);
 	transform_translate(&transform, widget->hpos, widget->vpos);
-	
+
 	source_t source;
 	source_init(&source);
@@ -60,12 +60,12 @@
 	source_set_texture(&source, canvas->surface,
 	    PIXELMAP_EXTEND_TRANSPARENT_BLACK);
-	
+
 	drawctx_t drawctx;
 	drawctx_init(&drawctx, surface);
-	
+
 	drawctx_set_source(&drawctx, &source);
 	drawctx_transfer(&drawctx, widget->hpos, widget->vpos, widget->width,
 	    widget->height);
-	
+
 	window_yield(canvas->widget.window);
 }
@@ -79,5 +79,5 @@
 {
 	canvas_t *canvas = (canvas_t *) widget;
-	
+
 	deinit_canvas(canvas);
 	free(canvas);
@@ -93,5 +93,5 @@
 {
 	canvas_t *canvas = (canvas_t *) widget;
-	
+
 	widget_modify(widget, hpos, vpos, canvas->width, canvas->height);
 	paint_internal(widget);
@@ -107,5 +107,5 @@
 {
 	canvas_t *canvas = (canvas_t *) widget;
-	
+
 	sig_send(&canvas->keyboard_event, &event);
 }
@@ -115,9 +115,9 @@
 	canvas_t *canvas = (canvas_t *) widget;
 	pos_event_t tevent;
-	
+
 	tevent = event;
 	tevent.hpos -= widget->hpos;
 	tevent.vpos -= widget->vpos;
-	
+
 	sig_send(&canvas->position_event, &tevent);
 }
@@ -127,8 +127,8 @@
 {
 	widget_init(&canvas->widget, parent, data);
-	
+
 	canvas->widget.width = width;
 	canvas->widget.height = height;
-	
+
 	canvas->widget.width_min = width;
 	canvas->widget.height_min = height;
@@ -137,5 +137,5 @@
 	canvas->widget.width_max = width;
 	canvas->widget.height_max = height;
-	
+
 	canvas->widget.destroy = canvas_destroy;
 	canvas->widget.reconfigure = canvas_reconfigure;
@@ -144,9 +144,9 @@
 	canvas->widget.handle_keyboard_event = canvas_handle_keyboard_event;
 	canvas->widget.handle_position_event = canvas_handle_position_event;
-	
+
 	canvas->width = width;
 	canvas->height = height;
 	canvas->surface = surface;
-	
+
 	return true;
 }
@@ -156,5 +156,5 @@
 	if (surface != NULL)
 		canvas->surface = surface;
-	
+
 	canvas_repaint(&canvas->widget);
 	return true;
@@ -167,8 +167,8 @@
 	if (!canvas)
 		return NULL;
-	
+
 	if (init_canvas(canvas, parent, data, width, height, surface))
 		return canvas;
-	
+
 	free(canvas);
 	return NULL;
Index: uspace/lib/gui/common.c
===================================================================
--- uspace/lib/gui/common.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/common.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 			pixel_t pixel = (cross_texture[offset] & (1 << (x % 8))) ?
 			    highlight : shadow;
-			
+
 			if (visible)
 				surface_put_pixel(surface, hpos + x, vpos + y, pixel);
@@ -77,5 +77,5 @@
 	drawctx_transfer(drawctx, hpos, vpos, width - 1, 1);
 	drawctx_transfer(drawctx, hpos, vpos + 1, 1, height - 2);
-	
+
 	source_set_color(source, shadow);
 	drawctx_transfer(drawctx, hpos, vpos + height - 1, width, 1);
Index: uspace/lib/gui/connection.c
===================================================================
--- uspace/lib/gui/connection.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/connection.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -200,11 +200,11 @@
 		if (data != NULL)
 			data_copy = malloc(data_size);
-		
+
 		if (data_copy != NULL)
 			memcpy(data_copy, data, data_size);
-		
+
 		window_event_t *event =
 		    (window_event_t *) malloc(sizeof(window_event_t));
-		
+
 		if (event) {
 			link_initialize(&event->link);
Index: uspace/lib/gui/grid.c
===================================================================
--- uspace/lib/gui/grid.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/grid.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 {
 	grid_t *grid = (grid_t *) widget;
-	
+
 	surface_t *surface = window_claim(grid->widget.window);
 	if (!surface) {
@@ -57,5 +57,5 @@
 		return;
 	}
-	
+
 	// FIXME: Replace with (accelerated) rectangle fill
 	for (sysarg_t y = widget->vpos; y < widget->vpos + widget->height; y++) {
@@ -63,5 +63,5 @@
 			surface_put_pixel(surface, x, y, grid->background);
 	}
-	
+
 	window_yield(grid->widget.window);
 }
@@ -71,5 +71,5 @@
 	if ((col < grid->cols) && (row < grid->rows))
 		return grid->layout + (row * grid->cols + col);
-	
+
 	return NULL;
 }
@@ -82,5 +82,5 @@
 			if (cell) {
 				widget_t *widget = cell->widget;
-				
+
 				if ((widget) && (hpos >= widget->hpos) &&
 				    (vpos >= widget->vpos) &&
@@ -91,5 +91,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -104,5 +104,5 @@
 {
 	grid_t *grid = (grid_t *) widget;
-	
+
 	deinit_grid(grid);
 	free(grid);
@@ -118,20 +118,20 @@
 {
 	assert(run > 0);
-	
+
 	sysarg_t dim_min_part = dim_min / run;
 	sysarg_t dim_min_rem = dim_min % run;
-	
+
 	sysarg_t dim_max_part = dim_max / run;
 	sysarg_t dim_max_rem = dim_max % run;
-	
+
 	for (size_t i = 0; i < run; i++) {
 		sysarg_t dim_min_cur = dim_min_part;
 		sysarg_t dim_max_cur = dim_max_part;
-		
+
 		if (i == run - 1) {
 			dim_min_cur += dim_min_rem;
 			dim_max_cur += dim_max_rem;
 		}
-		
+
 		/*
 		 * We want the strongest constraint
@@ -140,5 +140,5 @@
 		if (cons[i].min < dim_min_cur)
 			cons[i].min = dim_min_cur;
-		
+
 		/*
 		 * The comparison is correct, we want
@@ -155,10 +155,10 @@
 	/* Initial solution */
 	sysarg_t cur_sum = 0;
-	
+
 	for (size_t i = 0; i < run; i++) {
 		cons[i].val = cons[i].min;
 		cur_sum += cons[i].val;
 	}
-	
+
 	/* Iterative improvement */
 	while (cur_sum < sum) {
@@ -166,11 +166,11 @@
 		if (delta == 0)
 			break;
-		
+
 		cur_sum = 0;
-		
+
 		for (size_t i = 0; i < run; i++) {
 			if (cons[i].val + delta < cons[i].max)
 				cons[i].val += delta;
-			
+
 			cur_sum += cons[i].val;
 		}
@@ -182,8 +182,8 @@
 {
 	grid_t *grid = (grid_t *) widget;
-	
+
 	widget_modify(widget, hpos, vpos, width, height);
 	paint_internal(widget);
-	
+
 	/* Compute column widths */
 	constraints_t *widths =
@@ -193,10 +193,10 @@
 		for (size_t c = 0; c < grid->cols; c++) {
 			widths[c].min = 0;
-			
+
 			for (size_t r = 0; r < grid->rows; r++) {
 				grid_cell_t *cell = grid_cell_at(grid, c, r);
 				if (!cell)
 					continue;
-				
+
 				widget_t *widget = cell->widget;
 				if (widget)
@@ -205,8 +205,8 @@
 			}
 		}
-		
+
 		solve_constraints(widths, grid->cols, width);
 	}
-	
+
 	/* Compute row heights */
 	constraints_t *heights =
@@ -216,10 +216,10 @@
 		for (size_t r = 0; r < grid->rows; r++) {
 			heights[r].min = 0;
-			
+
 			for (size_t c = 0; c < grid->cols; c++) {
 				grid_cell_t *cell = grid_cell_at(grid, c, r);
 				if (!cell)
 					continue;
-				
+
 				widget_t *widget = cell->widget;
 				if (widget) {
@@ -229,65 +229,65 @@
 			}
 		}
-		
+
 		solve_constraints(heights, grid->rows, height);
 	}
-	
+
 	/* Rearrange widgets */
 	if ((widths) && (heights)) {
 		sysarg_t cur_vpos = vpos;
-		
+
 		for (size_t r = 0; r < grid->rows; r++) {
 			sysarg_t cur_hpos = hpos;
-			
+
 			for (size_t c = 0; c < grid->cols; c++) {
 				grid_cell_t *cell = grid_cell_at(grid, c, r);
 				if (!cell)
 					continue;
-				
+
 				widget_t *widget = cell->widget;
 				if (widget) {
 					sysarg_t cur_width = 0;
 					sysarg_t cur_height = 0;
-					
+
 					for (size_t cd = 0; cd < cell->cols; cd++)
 						cur_width += widths[c + cd].val;
-					
+
 					for (size_t rd = 0; rd < cell->rows; rd++)
 						cur_height += heights[r + rd].val;
-					
+
 					if ((cur_width > 0) && (cur_height > 0)) {
 						sysarg_t wwidth = cur_width;
 						sysarg_t wheight = cur_height;
-						
+
 						/*
 						 * Make sure the widget is respects its
 						 * maximal constrains.
 						 */
-						
+
 						if ((widget->width_max > 0) &&
 						    (wwidth > widget->width_max))
 							wwidth = widget->width_max;
-						
+
 						if ((widget->height_max > 0) &&
 						    (wheight > widget->height_max))
 							wheight = widget->height_max;
-						
+
 						widget->rearrange(widget, cur_hpos, cur_vpos,
 						    wwidth, wheight);
 					}
-					
-					
+
+
 				}
-				
+
 				cur_hpos += widths[c].val;
 			}
-			
+
 			cur_vpos += heights[r].val;
 		}
 	}
-	
+
 	if (widths)
 		free(widths);
-	
+
 	if (heights)
 		free(heights);
@@ -297,9 +297,9 @@
 {
 	paint_internal(widget);
-	
+
 	list_foreach(widget->children, link, widget_t, child) {
 		child->repaint(child);
 	}
-	
+
 	window_damage(widget->window);
 }
@@ -313,5 +313,5 @@
 {
 	grid_t *grid = (grid_t *) widget;
-	
+
 	grid_cell_t *cell = grid_coords_at(grid, event.hpos, event.vpos);
 	if ((cell) && (cell->widget))
@@ -325,9 +325,9 @@
 	    (row + rows > grid->rows))
 		return false;
-	
+
 	grid_cell_t *cell = grid_cell_at(grid, col, row);
 	if (!cell)
 		return false;
-	
+
 	/*
 	 * Check whether the cell is not occupied by an
@@ -336,10 +336,10 @@
 	if ((!cell->widget) && (cell->cols > 0) && (cell->rows > 0))
 		return false;
-	
+
 	widget->parent = (widget_t *) grid;
-	
+
 	list_append(&widget->link, &grid->widget.children);
 	widget->window = grid->widget.window;
-	
+
 	/* Mark cells in layout */
 	for (size_t r = row; r < row + rows; r++) {
@@ -359,5 +359,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -368,14 +368,14 @@
 	if ((cols == 0) || (rows == 0))
 		return false;
-	
+
 	grid->layout =
 	    (grid_cell_t *) calloc(cols * rows, sizeof(grid_cell_t));
 	if (!grid->layout)
 		return false;
-	
+
 	memset(grid->layout, 0, cols * rows * sizeof(grid_cell_t));
-	
+
 	widget_init(&grid->widget, parent, data);
-	
+
 	grid->widget.destroy = grid_destroy;
 	grid->widget.reconfigure = grid_reconfigure;
@@ -384,10 +384,10 @@
 	grid->widget.handle_keyboard_event = grid_handle_keyboard_event;
 	grid->widget.handle_position_event = grid_handle_position_event;
-	
+
 	grid->add = grid_add;
 	grid->background = background;
 	grid->cols = cols;
 	grid->rows = rows;
-	
+
 	return true;
 }
@@ -399,8 +399,8 @@
 	if (!grid)
 		return NULL;
-	
+
 	if (init_grid(grid, parent, data, cols, rows, background))
 		return grid;
-	
+
 	free(grid);
 	return NULL;
Index: uspace/lib/gui/label.c
===================================================================
--- uspace/lib/gui/label.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/label.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,27 +50,27 @@
 	if (!surface)
 		window_yield(lbl->widget.window);
-	
+
 	drawctx_t drawctx;
 	drawctx_init(&drawctx, surface);
-	
+
 	drawctx_set_source(&drawctx, &lbl->background);
 	drawctx_transfer(&drawctx, widget->hpos, widget->vpos, widget->width,
 	    widget->height);
-	
+
 	sysarg_t cpt_width;
 	sysarg_t cpt_height;
 	font_get_box(lbl->font, lbl->caption, &cpt_width, &cpt_height);
-	
+
 	if ((widget->width >= cpt_width) && (widget->height >= cpt_height)) {
 		sysarg_t x = ((widget->width - cpt_width) / 2) + widget->hpos;
 		sysarg_t y = ((widget->height - cpt_height) / 2) + widget->vpos;
-		
+
 		drawctx_set_source(&drawctx, &lbl->text);
 		drawctx_set_font(&drawctx, lbl->font);
-		
+
 		if (lbl->caption)
 			drawctx_print(&drawctx, lbl->caption, x, y);
 	}
-	
+
 	window_yield(lbl->widget.window);
 }
@@ -80,17 +80,17 @@
 	if (data != NULL) {
 		label_t *lbl = (label_t *) widget;
-		
+
 		const char *new_caption = (const char *) data;
 		lbl->caption = str_dup(new_caption);
-		
+
 		sysarg_t cpt_width;
 		sysarg_t cpt_height;
 		font_get_box(lbl->font, lbl->caption, &cpt_width, &cpt_height);
-		
+
 		lbl->widget.width_min = cpt_width + 4;
 		lbl->widget.height_min = cpt_height + 4;
 		lbl->widget.width_ideal = lbl->widget.width_min;
 		lbl->widget.height_ideal = lbl->widget.height_min;
-		
+
 		window_refresh(lbl->widget.window);
 	}
@@ -107,5 +107,5 @@
 {
 	label_t *lbl = (label_t *) widget;
-	
+
 	deinit_label(lbl);
 	free(lbl);
@@ -144,5 +144,5 @@
 {
 	widget_init(&lbl->widget, parent, data);
-	
+
 	lbl->widget.destroy = label_destroy;
 	lbl->widget.reconfigure = label_reconfigure;
@@ -151,16 +151,16 @@
 	lbl->widget.handle_keyboard_event = label_handle_keyboard_event;
 	lbl->widget.handle_position_event = label_handle_position_event;
-	
+
 	source_init(&lbl->background);
 	source_set_color(&lbl->background, background);
-	
+
 	source_init(&lbl->text);
 	source_set_color(&lbl->text, text);
-	
+
 	if (caption == NULL)
 		lbl->caption = NULL;
 	else
 		lbl->caption = str_dup(caption);
-	
+
 	errno_t rc = embedded_font_create(&lbl->font, points);
 	if (rc != EOK) {
@@ -169,16 +169,16 @@
 		return false;
 	}
-	
+
 	sysarg_t cpt_width;
 	sysarg_t cpt_height;
 	font_get_box(lbl->font, lbl->caption, &cpt_width, &cpt_height);
-	
+
 	lbl->widget.width_min = cpt_width + 4;
 	lbl->widget.height_min = cpt_height + 4;
 	lbl->widget.width_ideal = lbl->widget.width_min;
 	lbl->widget.height_ideal = lbl->widget.height_min;
-	
+
 	lbl->rewrite = on_rewrite;
-	
+
 	return true;
 }
@@ -190,8 +190,8 @@
 	if (!lbl)
 		return NULL;
-	
+
 	if (init_label(lbl, parent, data, caption, points, background, text))
 		return lbl;
-	
+
 	free(lbl);
 	return NULL;
Index: uspace/lib/gui/minimal.c
===================================================================
--- uspace/lib/gui/minimal.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/minimal.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 		}
 	}
-	
+
 	window_yield(min->widget.window);
 }
Index: uspace/lib/gui/terminal.c
===================================================================
--- uspace/lib/gui/terminal.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/terminal.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -118,5 +118,5 @@
 	[COLOR_YELLOW]      = PIXEL(255, 240, 240, 0),
 	[COLOR_WHITE]       = PIXEL(255, 240, 240, 240),
-	
+
 	[COLOR_BLACK + 8]   = PIXEL(255, 0, 0, 0),
 	[COLOR_BLUE + 8]    = PIXEL(255, 0, 0, 255),
@@ -170,23 +170,23 @@
 	charfield_t *field =
 	    chargrid_charfield_at(term->backbuf, col, row);
-	
+
 	bool inverted = chargrid_cursor_at(term->backbuf, col, row);
-	
+
 	sysarg_t bx = sx + (col * FONT_WIDTH);
 	sysarg_t by = sy + (row * FONT_SCANLINES);
-	
+
 	pixel_t bgcolor = 0;
 	pixel_t fgcolor = 0;
-	
+
 	if (inverted)
 		attrs_rgb(field->attrs, &fgcolor, &bgcolor);
 	else
 		attrs_rgb(field->attrs, &bgcolor, &fgcolor);
-	
+
 	// FIXME: Glyph type should be actually uint32_t
 	//        for full UTF-32 coverage.
-	
+
 	uint16_t glyph = fb_font_glyph(field->ch, NULL);
-	
+
 	for (unsigned int y = 0; y < FONT_SCANLINES; y++) {
 		pixel_t *dst = pixelmap_pixel_at(
@@ -207,10 +207,10 @@
 {
 	sysarg_t top_row = chargrid_get_top_row(term->frontbuf);
-	
+
 	if (term->top_row == top_row)
 		return false;
-	
+
 	term->top_row = top_row;
-	
+
 	for (sysarg_t row = 0; row < term->rows; row++) {
 		for (sysarg_t col = 0; col < term->cols; col++) {
@@ -220,22 +220,22 @@
 			    chargrid_charfield_at(term->backbuf, col, row);
 			bool update = false;
-			
+
 			if (front_field->ch != back_field->ch) {
 				back_field->ch = front_field->ch;
 				update = true;
 			}
-			
+
 			if (!attrs_same(front_field->attrs, back_field->attrs)) {
 				back_field->attrs = front_field->attrs;
 				update = true;
 			}
-			
+
 			front_field->flags &= ~CHAR_FLAG_DIRTY;
-			
+
 			if (update)
 				term_update_char(term, surface, sx, sy, col, row);
 		}
 	}
-	
+
 	return true;
 }
@@ -245,13 +245,13 @@
 {
 	bool damage = false;
-	
+
 	sysarg_t front_col;
 	sysarg_t front_row;
 	chargrid_get_cursor(term->frontbuf, &front_col, &front_row);
-	
+
 	sysarg_t back_col;
 	sysarg_t back_row;
 	chargrid_get_cursor(term->backbuf, &back_col, &back_row);
-	
+
 	bool front_visibility =
 	    chargrid_get_cursor_visibility(term->frontbuf) &&
@@ -259,5 +259,5 @@
 	bool back_visibility =
 	    chargrid_get_cursor_visibility(term->backbuf);
-	
+
 	if (front_visibility != back_visibility) {
 		chargrid_set_cursor_visibility(term->backbuf,
@@ -266,5 +266,5 @@
 		damage = true;
 	}
-	
+
 	if ((front_col != back_col) || (front_row != back_row)) {
 		chargrid_set_cursor(term->backbuf, front_col, front_row);
@@ -273,5 +273,5 @@
 		damage = true;
 	}
-	
+
 	return damage;
 }
@@ -280,5 +280,5 @@
 {
 	fibril_mutex_lock(&term->mtx);
-	
+
 	surface_t *surface = window_claim(term->widget.window);
 	if (!surface) {
@@ -287,9 +287,9 @@
 		return;
 	}
-	
+
 	bool damage = false;
 	sysarg_t sx = term->widget.hpos;
 	sysarg_t sy = term->widget.vpos;
-	
+
 	if (term_update_scroll(term, surface, sx, sy)) {
 		damage = true;
@@ -302,5 +302,5 @@
 				    chargrid_charfield_at(term->backbuf, x, y);
 				bool update = false;
-				
+
 				if ((front_field->flags & CHAR_FLAG_DIRTY) ==
 				    CHAR_FLAG_DIRTY) {
@@ -309,5 +309,5 @@
 						update = true;
 					}
-					
+
 					if (!attrs_same(front_field->attrs,
 					    back_field->attrs)) {
@@ -315,8 +315,8 @@
 						update = true;
 					}
-					
+
 					front_field->flags &= ~CHAR_FLAG_DIRTY;
 				}
-				
+
 				if (update) {
 					term_update_char(term, surface, sx, sy, x, y);
@@ -326,13 +326,13 @@
 		}
 	}
-	
+
 	if (term_update_cursor(term, surface, sx, sy))
 		damage = true;
-	
+
 	window_yield(term->widget.window);
-	
+
 	if (damage)
 		window_damage(term->widget.window);
-	
+
 	fibril_mutex_unlock(&term->mtx);
 }
@@ -341,5 +341,5 @@
 {
 	fibril_mutex_lock(&term->mtx);
-	
+
 	surface_t *surface = window_claim(term->widget.window);
 	if (!surface) {
@@ -348,8 +348,8 @@
 		return;
 	}
-	
+
 	sysarg_t sx = term->widget.hpos;
 	sysarg_t sy = term->widget.vpos;
-	
+
 	if (!term_update_scroll(term, surface, sx, sy)) {
 		for (sysarg_t y = 0; y < term->rows; y++) {
@@ -359,19 +359,19 @@
 				charfield_t *back_field =
 				    chargrid_charfield_at(term->backbuf, x, y);
-				
+
 				back_field->ch = front_field->ch;
 				back_field->attrs = front_field->attrs;
 				front_field->flags &= ~CHAR_FLAG_DIRTY;
-				
+
 				term_update_char(term, surface, sx, sy, x, y);
 			}
 		}
 	}
-	
+
 	term_update_cursor(term, surface, sx, sy);
-	
+
 	window_yield(term->widget.window);
 	window_damage(term->widget.window);
-	
+
 	fibril_mutex_unlock(&term->mtx);
 }
@@ -392,5 +392,5 @@
 	uint8_t *bbuf = buf;
 	size_t pos = 0;
-	
+
 	/*
 	 * Read input from keyboard and copy it to the buffer.
@@ -403,17 +403,17 @@
 			bbuf[pos] = term->char_remains[0];
 			pos++;
-			
+
 			/* Unshift the array. */
 			for (size_t i = 1; i < term->char_remains_len; i++)
 				term->char_remains[i - 1] = term->char_remains[i];
-			
+
 			term->char_remains_len--;
 		}
-		
+
 		/* Still not enough? Then get another key from the queue. */
 		if (pos < size) {
 			link_t *link = prodcons_consume(&term->input_pc);
 			cons_event_t *event = list_get_instance(link, cons_event_t, link);
-			
+
 			/* Accept key presses of printable chars only. */
 			if (event->type == CEV_KEY && event->ev.key.type == KEY_PRESS &&
@@ -423,13 +423,13 @@
 					0
 				};
-				
+
 				wstr_to_str(term->char_remains, UTF8_CHAR_BUFFER_SIZE, tmp);
 				term->char_remains_len = str_size(term->char_remains);
 			}
-			
+
 			free(event);
 		}
 	}
-	
+
 	*nread = size;
 	return EOK;
@@ -439,7 +439,7 @@
 {
 	sysarg_t updated = 0;
-	
-	fibril_mutex_lock(&term->mtx);
-	
+
+	fibril_mutex_lock(&term->mtx);
+
 	switch (ch) {
 	case '\n':
@@ -457,7 +457,7 @@
 		updated = chargrid_putchar(term->frontbuf, ch, true);
 	}
-	
-	fibril_mutex_unlock(&term->mtx);
-	
+
+	fibril_mutex_unlock(&term->mtx);
+
 	if (updated > 1)
 		term_update(term);
@@ -467,9 +467,9 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	size_t off = 0;
 	while (off < size)
 		term_write_char(term, str_decode(data, &off, size));
-	
+
 	*nwritten = size;
 	return EOK;
@@ -479,5 +479,5 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	term_update(term);
 }
@@ -486,9 +486,9 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	fibril_mutex_lock(&term->mtx);
 	chargrid_clear(term->frontbuf);
 	fibril_mutex_unlock(&term->mtx);
-	
+
 	term_update(term);
 }
@@ -497,9 +497,9 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	fibril_mutex_lock(&term->mtx);
 	chargrid_set_cursor(term->frontbuf, col, row);
 	fibril_mutex_unlock(&term->mtx);
-	
+
 	term_update(term);
 }
@@ -508,9 +508,9 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	fibril_mutex_lock(&term->mtx);
 	chargrid_get_cursor(term->frontbuf, col, row);
 	fibril_mutex_unlock(&term->mtx);
-	
+
 	return EOK;
 }
@@ -519,10 +519,10 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	fibril_mutex_lock(&term->mtx);
 	*cols = term->cols;
 	*rows = term->rows;
 	fibril_mutex_unlock(&term->mtx);
-	
+
 	return EOK;
 }
@@ -532,5 +532,5 @@
 	(void) srv;
 	*caps = TERM_CAPS;
-	
+
 	return EOK;
 }
@@ -539,5 +539,5 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	fibril_mutex_lock(&term->mtx);
 	chargrid_set_style(term->frontbuf, style);
@@ -549,5 +549,5 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	fibril_mutex_lock(&term->mtx);
 	chargrid_set_color(term->frontbuf, bgcolor, fgcolor, attr);
@@ -559,5 +559,5 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	fibril_mutex_lock(&term->mtx);
 	chargrid_set_rgb_color(term->frontbuf, bgcolor, fgcolor);
@@ -568,9 +568,9 @@
 {
 	terminal_t *term = srv_to_terminal(srv);
-	
+
 	fibril_mutex_lock(&term->mtx);
 	chargrid_set_cursor_visibility(term->frontbuf, visible);
 	fibril_mutex_unlock(&term->mtx);
-	
+
 	term_update(term);
 }
@@ -581,5 +581,5 @@
 	link_t *link = prodcons_consume(&term->input_pc);
 	cons_event_t *ev = list_get_instance(link, cons_event_t, link);
-	
+
 	*event = *ev;
 	free(ev);
@@ -591,8 +591,8 @@
 	list_remove(&term->link);
 	widget_deinit(&term->widget);
-	
+
 	if (term->frontbuf)
 		chargrid_destroy(term->frontbuf);
-	
+
 	if (term->backbuf)
 		chargrid_destroy(term->backbuf);
@@ -602,5 +602,5 @@
 {
 	terminal_t *term = (terminal_t *) widget;
-	
+
 	deinit_terminal(term);
 	free(term);
@@ -616,9 +616,9 @@
 {
 	terminal_t *term = (terminal_t *) widget;
-	
+
 	widget_modify(widget, hpos, vpos, width, height);
 	widget->width_ideal = width;
 	widget->height_ideal = height;
-	
+
 	term_damage(term);
 }
@@ -627,5 +627,5 @@
 {
 	terminal_t *term = (terminal_t *) widget;
-	
+
 	term_damage(term);
 }
@@ -638,8 +638,8 @@
 	if (event == NULL)
 		return;
-	
+
 	*event = *ev;
 	link_initialize(&event->link);
-	
+
 	prodcons_produce(&term->input_pc, &event->link);
 }
@@ -651,8 +651,8 @@
 	terminal_t *term = (terminal_t *) widget;
 	cons_event_t event;
-	
+
 	event.type = CEV_KEY;
 	event.ev.key = kbd_event;
-	
+
 	terminal_queue_cons_event(term, &event);
 }
@@ -680,5 +680,5 @@
 {
 	terminal_t *term = NULL;
-	
+
 	list_foreach(terms, link, terminal_t, cur) {
 		if (cur->dsid == (service_id_t) IPC_GET_ARG2(*icall)) {
@@ -687,13 +687,13 @@
 		}
 	}
-	
+
 	if (term == NULL) {
 		async_answer_0(iid, ENOENT);
 		return;
 	}
-	
+
 	if (atomic_postinc(&term->refcnt) == 0)
 		chargrid_set_cursor_visibility(term->frontbuf, true);
-	
+
 	con_conn(iid, icall, &term->srvs);
 }
@@ -703,17 +703,17 @@
 {
 	widget_init(&term->widget, parent, data);
-	
+
 	link_initialize(&term->link);
 	fibril_mutex_initialize(&term->mtx);
 	atomic_set(&term->refcnt, 0);
-	
+
 	prodcons_initialize(&term->input_pc);
 	term->char_remains_len = 0;
-	
+
 	term->widget.width = width;
 	term->widget.height = height;
 	term->widget.width_ideal = width;
 	term->widget.height_ideal = height;
-	
+
 	term->widget.destroy = terminal_destroy;
 	term->widget.reconfigure = terminal_reconfigure;
@@ -722,11 +722,11 @@
 	term->widget.handle_keyboard_event = terminal_handle_keyboard_event;
 	term->widget.handle_position_event = terminal_handle_position_event;
-	
+
 	term->cols = width / FONT_WIDTH;
 	term->rows = height / FONT_SCANLINES;
-	
+
 	term->frontbuf = NULL;
 	term->backbuf = NULL;
-	
+
 	term->frontbuf = chargrid_create(term->cols, term->rows,
 	    CHARGRID_FLAG_NONE);
@@ -735,5 +735,5 @@
 		return false;
 	}
-	
+
 	term->backbuf = chargrid_create(term->cols, term->rows,
 	    CHARGRID_FLAG_NONE);
@@ -742,14 +742,14 @@
 		return false;
 	}
-	
+
 	chargrid_clear(term->frontbuf);
 	chargrid_clear(term->backbuf);
 	term->top_row = 0;
-	
+
 	async_set_fallback_port_handler(term_connection, NULL);
 	con_srvs_init(&term->srvs);
 	term->srvs.ops = &con_ops;
 	term->srvs.sarg = term;
-	
+
 	errno_t rc = loc_server_register(NAME);
 	if (rc != EOK) {
@@ -757,9 +757,9 @@
 		return false;
 	}
-	
+
 	char vc[LOC_NAME_MAXLEN + 1];
 	snprintf(vc, LOC_NAME_MAXLEN, "%s/%" PRIu64, NAMESPACE,
 	    task_get_id());
-	
+
 	rc = loc_service_register(vc, &term->dsid);
 	if (rc != EOK) {
@@ -767,8 +767,8 @@
 		return false;
 	}
-	
+
 	list_append(&term->link, &terms);
 	getterm(vc, "/app/bdsh");
-	
+
 	return true;
 }
@@ -780,5 +780,5 @@
 	if (!term)
 		return NULL;
-	
+
 	bool ret = init_terminal(term, parent, data, width, height);
 	if (!ret) {
@@ -786,5 +786,5 @@
 		return NULL;
 	}
-	
+
 	return term;
 }
Index: uspace/lib/gui/terminal.h
===================================================================
--- uspace/lib/gui/terminal.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/terminal.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,13 +52,13 @@
 typedef struct terminal {
 	widget_t widget;
-	
+
 	fibril_mutex_t mtx;
 	link_t link;
 	atomic_t refcnt;
-	
+
 	prodcons_t input_pc;
 	char char_remains[UTF8_CHAR_BUFFER_SIZE];
 	size_t char_remains_len;
-	
+
 	sysarg_t cols;
 	sysarg_t rows;
@@ -66,5 +66,5 @@
 	chargrid_t *backbuf;
 	sysarg_t top_row;
-	
+
 	service_id_t dsid;
 	con_srvs_t srvs;
Index: uspace/lib/gui/widget.c
===================================================================
--- uspace/lib/gui/widget.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/widget.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,5 +41,5 @@
 	link_initialize(&widget->link);
 	list_initialize(&widget->children);
-	
+
 	if (parent) {
 		widget->parent = parent;
@@ -50,12 +50,12 @@
 		widget->window = NULL;
 	}
-	
+
 	widget->data = data;
-	
+
 	widget->hpos = 0;
 	widget->vpos = 0;
 	widget->width = 0;
 	widget->height = 0;
-	
+
 	widget->width_min = 0;
 	widget->height_min = 0;
Index: uspace/lib/gui/widget.h
===================================================================
--- uspace/lib/gui/widget.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/widget.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,10 +56,10 @@
 	window_t *window;  /**< Window into which this widget belongs. */
 	const void *data;  /**< Custom client data. */
-	
+
 	sysarg_t hpos; /**< Horizontal position in window coordinates. */
 	sysarg_t vpos; /**< Vertical position in window coordinates. */
 	sysarg_t width;
 	sysarg_t height;
-	
+
 	sysarg_t width_min;
 	sysarg_t height_min;
Index: uspace/lib/gui/window.c
===================================================================
--- uspace/lib/gui/window.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/gui/window.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -89,19 +89,19 @@
 	if (!surface)
 		window_yield(widget->window);
-	
+
 	source_t source;
 	source_init(&source);
-	
+
 	drawctx_t drawctx;
 	drawctx_init(&drawctx, surface);
 	drawctx_set_source(&drawctx, &source);
-	
+
 	/* Window border outer bevel */
-	
+
 	draw_bevel(&drawctx, &source, widget->vpos, widget->hpos,
 	    widget->width, widget->height, color_highlight, color_shadow);
-	
+
 	/* Window border surface */
-	
+
 	source_set_color(&source, color_surface);
 	drawctx_transfer(&drawctx, widget->hpos + 1, widget->vpos + 1,
@@ -113,18 +113,18 @@
 	drawctx_transfer(&drawctx, widget->hpos + widget->width - 3,
 	    widget->vpos + 1, 2, widget->height - 4);
-	
+
 	/* Window border inner bevel */
-	
+
 	draw_bevel(&drawctx, &source, widget->hpos + 3, widget->vpos + 3,
 	    widget->width - 6, widget->height - 6, color_shadow,
 	    color_highlight);
-	
+
 	/* Header bevel */
-	
+
 	sysarg_t header_hpos = widget->hpos + border_thickness;
 	sysarg_t header_vpos = widget->vpos + border_thickness;
 	sysarg_t header_width = widget->width - 2 * border_thickness -
 	    close_thickness;
-	
+
 	draw_bevel(&drawctx, &source, header_hpos, header_vpos,
 	    header_width, header_height, widget->window->is_focused ?
@@ -132,34 +132,34 @@
 	    widget->window->is_focused ?
 	    color_header_focus_shadow : color_header_unfocus_shadow);
-	
+
 	/* Header surface */
-	
+
 	source_set_color(&source, widget->window->is_focused ?
 	    color_header_focus_surface : color_header_unfocus_surface);
 	drawctx_transfer(&drawctx, header_hpos + 1, header_vpos + 1,
 	    header_width - 2, header_height - 2);
-	
+
 	/* Close button bevel */
-	
+
 	sysarg_t close_hpos = widget->hpos + widget->width -
 	    border_thickness - close_thickness;
 	sysarg_t close_vpos = widget->vpos + border_thickness;
-	
+
 	draw_bevel(&drawctx, &source, close_hpos, close_vpos,
 	    close_thickness, close_thickness, color_highlight, color_shadow);
-	
+
 	/* Close button surface */
-	
+
 	source_set_color(&source, color_surface);
 	drawctx_transfer(&drawctx, close_hpos + 1, close_vpos + 1,
 	    close_thickness - 2, close_thickness - 2);
-	
+
 	/* Close button icon */
-	
+
 	draw_icon_cross(surface, close_hpos + 3, close_vpos + 3,
 	    color_highlight, color_shadow);
-	
+
 	/* Window caption */
-	
+
 	font_t *font;
 	errno_t rc = embedded_font_create(&font, 16);
@@ -168,13 +168,13 @@
 		return;
 	}
-	
+
 	drawctx_set_font(&drawctx, font);
 	source_set_color(&source, widget->window->is_focused ?
 	    color_caption_focus : color_caption_unfocus);
-	
+
 	sysarg_t cpt_width;
 	sysarg_t cpt_height;
 	font_get_box(font, widget->window->caption, &cpt_width, &cpt_height);
-	
+
 	bool draw_title =
 	    (widget->width >= 2 * border_thickness + 2 * bevel_thickness +
@@ -184,9 +184,9 @@
 		sysarg_t cpt_y = ((header_height - cpt_height) / 2) +
 		    widget->vpos + border_thickness;
-		
+
 		if (widget->window->caption)
 			drawctx_print(&drawctx, widget->window->caption, cpt_x, cpt_y);
 	}
-	
+
 	font_release(font);
 	window_yield(widget->window);
@@ -375,10 +375,10 @@
 		return;
 	}
-	
+
 	if (height < 2 * border_thickness + header_height) {
 		win_damage(win->osess, 0, 0, 0, 0);
 		return;
 	}
-	
+
 	/* Allocate resources for new surface. */
 	surface_t *new_surface = surface_create(width, height, NULL,
@@ -386,5 +386,5 @@
 	if (!new_surface)
 		return;
-	
+
 	/* Switch new and old surface. */
 	fibril_mutex_lock(&win->guard);
@@ -392,5 +392,5 @@
 	win->surface = new_surface;
 	fibril_mutex_unlock(&win->guard);
-	
+
 	/*
 	 * Let all widgets in the tree alter their position and size.
@@ -398,28 +398,28 @@
 	 */
 	win->root.rearrange(&win->root, 0, 0, width, height);
-	
+
 	fibril_mutex_lock(&win->guard);
 	surface_reset_damaged_region(win->surface);
 	fibril_mutex_unlock(&win->guard);
-	
+
 	/* Inform compositor about new surface. */
 	errno_t rc = win_resize(win->osess, offset_x, offset_y, width, height,
 	    placement_flags, surface_direct_access(new_surface));
-	
+
 	if (rc != EOK) {
 		/* Rollback to old surface. Reverse all changes. */
-		
+
 		sysarg_t old_width = 0;
 		sysarg_t old_height = 0;
 		if (old_surface)
 			surface_get_resolution(old_surface, &old_width, &old_height);
-		
+
 		fibril_mutex_lock(&win->guard);
 		new_surface = win->surface;
 		win->surface = old_surface;
 		fibril_mutex_unlock(&win->guard);
-		
+
 		win->root.rearrange(&win->root, 0, 0, old_width, old_height);
-		
+
 		if (win->surface) {
 			fibril_mutex_lock(&win->guard);
@@ -427,5 +427,5 @@
 			fibril_mutex_unlock(&win->guard);
 		}
-		
+
 		surface_destroy(new_surface);
 	} else {
@@ -569,5 +569,5 @@
 	while (true) {
 		window_event_t *event = (window_event_t *) malloc(sizeof(window_event_t));
-		
+
 		if (event) {
 			rc = win_get_event(win->isess, event);
@@ -598,5 +598,5 @@
 	if (!win)
 		return NULL;
-	
+
 	win->is_main = flags & WINDOW_MAIN;
 	win->is_decorated = flags & WINDOW_DECORATED;
@@ -604,5 +604,5 @@
 	prodcons_initialize(&win->events);
 	fibril_mutex_initialize(&win->guard);
-	
+
 	widget_init(&win->root, NULL, data);
 	win->root.window = win;
@@ -616,5 +616,5 @@
 	win->focus = NULL;
 	win->surface = NULL;
-	
+
 	service_id_t reg_dsid;
 	errno_t rc = loc_service_get_id(winreg, &reg_dsid, 0);
@@ -623,5 +623,5 @@
 		return NULL;
 	}
-	
+
 	async_sess_t *reg_sess =
 	    loc_service_connect(reg_dsid, INTERFACE_COMPOSITOR, 0);
@@ -630,5 +630,5 @@
 		return NULL;
 	}
-	
+
 	service_id_t in_dsid;
 	service_id_t out_dsid;
@@ -639,5 +639,5 @@
 		return NULL;
 	}
-	
+
 	win->osess = loc_service_connect(out_dsid, INTERFACE_COMPOSITOR, 0);
 	if (win->osess == NULL) {
@@ -645,5 +645,5 @@
 		return NULL;
 	}
-	
+
 	win->isess = loc_service_connect(in_dsid, INTERFACE_COMPOSITOR, 0);
 	if (win->isess == NULL) {
@@ -652,10 +652,10 @@
 		return NULL;
 	}
-	
+
 	if (caption == NULL)
 		win->caption = NULL;
 	else
 		win->caption = str_dup(caption);
-	
+
 	return win;
 }
@@ -680,5 +680,5 @@
 {
 	char *cap;
-	
+
 	if (caption == NULL) {
 		win->caption = NULL;
@@ -690,8 +690,8 @@
 		win->caption = cap;
 	}
-	
+
 	win->is_focused = false;
 	handle_refresh(win);
-	
+
 	return EOK;
 }
Index: uspace/lib/http/include/http/receive-buffer.h
===================================================================
--- uspace/lib/http/include/http/receive-buffer.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/http/include/http/receive-buffer.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,8 +56,8 @@
 	size_t in;
 	size_t out;
-	
+
 	void *client_data;
 	receive_func_t receive;
-	
+
 	list_t marks;
 } receive_buffer_t;
Index: uspace/lib/http/src/headers.c
===================================================================
--- uspace/lib/http/src/headers.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/http/src/headers.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,5 +64,5 @@
 		return NULL;
 	}
-	
+
 	header->value = str_dup(value);
 	if (header->value == NULL) {
@@ -101,13 +101,13 @@
 		if (name_end)
 			recv_mark_update(rb, name_end);
-		
+
 		errno_t rc = recv_char(rb, &c, true);
 		if (rc != EOK)
 			return rc;
 	} while (is_token(c));
-	
+
 	if (c != ':')
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -118,44 +118,44 @@
 	errno_t rc = EOK;
 	char c = 0;
-	
+
 	/* Ignore any inline LWS */
 	while (true) {
 		if (value_start)
 			recv_mark_update(rb, value_start);
-		
+
 		rc = recv_char(rb, &c, false);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (c != ' ' && c != '\t')
 			break;
-		
+
 		rc = recv_char(rb, &c, true);
 		if (rc != EOK)
 			return rc;
 	}
-	
+
 	while (true) {
 		recv_mark_update(rb, value_end);
-		
+
 		rc = recv_char(rb, &c, true);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (c != '\r' && c != '\n')
 			continue;
-		
+
 		size_t nrecv;
 		rc = recv_discard(rb, (c == '\r' ? '\n' : '\r'), &nrecv);
 		if (rc != EOK)
 			return rc;
-		
+
 		rc = recv_char(rb, &c, false);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (c != ' ' && c != '\t')
 			break;
-		
+
 		/* Ignore the char */
 		rc = recv_char(rb, &c, true);
@@ -163,5 +163,5 @@
 			return rc;
 	}
-	
+
 	return EOK;
 }
@@ -172,12 +172,12 @@
 	receive_buffer_mark_t mark_start;
 	receive_buffer_mark_t mark_end;
-	
+
 	recv_mark(rb, &mark_start);
 	recv_mark(rb, &mark_end);
-	
+
 	errno_t rc = http_header_receive_name(rb, &mark_end);
 	if (rc != EOK)
 		goto end;
-	
+
 	size_t name_size = mark_end.offset - mark_start.offset;
 	if (size_limit > 0 && name_size > size_limit) {
@@ -185,14 +185,14 @@
 		goto end;
 	}
-	
+
 	char *name = NULL;
 	rc = recv_cut_str(rb, &mark_start, &mark_end, &name);
 	if (rc != EOK)
 		goto end;
-	
+
 	rc = http_header_receive_value(rb, &mark_start, &mark_end);
 	if (rc != EOK)
 		goto end_with_name;
-	
+
 	size_t value_size = mark_end.offset - mark_start.offset;
 	if (size_limit > 0 && (name_size + value_size) > size_limit) {
@@ -200,13 +200,13 @@
 		goto end_with_name;
 	}
-	
+
 	char *value = NULL;
 	rc = recv_cut_str(rb, &mark_start, &mark_end, &value);
 	if (rc != EOK)
 		goto end_with_name;
-	
+
 	if (out_bytes_used)
 		*out_bytes_used = name_size + value_size;
-	
+
 	header->name = name;
 	header->value = value;
@@ -228,20 +228,20 @@
 	size_t read_index = 0;
 	size_t write_index = 0;
-	
+
 	while (is_lws(value[read_index])) read_index++;
-	
+
 	while (value[read_index] != 0) {
 		if (is_lws(value[read_index])) {
 			while (is_lws(value[read_index])) read_index++;
-			
+
 			if (value[read_index] != 0)
 				value[write_index++] = ' ';
-			
+
 			continue;
 		}
-		
+
 		value[write_index++] = value[read_index++];
 	}
-	
+
 	value[write_index] = 0;
 }
@@ -266,5 +266,5 @@
 		if (!http_header_name_match(header->name, name))
 			continue;
-		
+
 		if (found == NULL) {
 			found = header;
@@ -274,8 +274,8 @@
 		}
 	}
-	
+
 	if (found == NULL)
 		return HTTP_EMISSING_HEADER;
-	
+
 	*out_header = found;
 	return EOK;
@@ -288,5 +288,5 @@
 	if (header == NULL)
 		return ENOMEM;
-	
+
 	http_headers_append_header(headers, header);
 	return EOK;
@@ -300,12 +300,12 @@
 	if (rc != EOK && rc != HTTP_EMISSING_HEADER)
 		return rc;
-	
+
 	if (rc == HTTP_EMISSING_HEADER)
 		return http_headers_append(headers, name, value);
-	
+
 	char *new_value = str_dup(value);
 	if (new_value == NULL)
 		return ENOMEM;
-	
+
 	free(header->value);
 	header->value = new_value;
@@ -319,5 +319,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	*value = header->value;
 	return EOK;
@@ -329,5 +329,5 @@
 	errno_t rc = EOK;
 	unsigned added = 0;
-	
+
 	while (true) {
 		char c = 0;
@@ -335,13 +335,13 @@
 		if (rc != EOK)
 			goto error;
-		
+
 		if (c == '\n' || c == '\r')
 			break;
-		
+
 		if (limit_count > 0 && added >= limit_count) {
 			rc = ELIMIT;
 			goto error;
 		}
-		
+
 		http_header_t *header = malloc(sizeof(http_header_t));
 		if (header == NULL) {
@@ -350,5 +350,5 @@
 		}
 		http_header_init(header);
-		
+
 		size_t header_size;
 		rc = http_header_receive(rb, header, limit_alloc, &header_size);
@@ -358,9 +358,9 @@
 		}
 		limit_alloc -= header_size;
-		
+
 		http_headers_append_header(headers, header);
 		added++;
 	}
-	
+
 	return EOK;
 error:
Index: uspace/lib/http/src/http.c
===================================================================
--- uspace/lib/http/src/http.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/http/src/http.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,5 +60,5 @@
 	if (http == NULL)
 		return NULL;
-	
+
 	http->host = str_dup(host);
 	if (http->host == NULL) {
@@ -67,5 +67,5 @@
 	}
 	http->port = port;
-	
+
 	http->buffer_size = 4096;
 	errno_t rc = recv_buffer_init(&http->recv_buffer, http->buffer_size,
@@ -75,5 +75,5 @@
 		return NULL;
 	}
-	
+
 	return http;
 }
@@ -83,28 +83,28 @@
 	if (http->conn != NULL)
 		return EBUSY;
-	
+
 	errno_t rc = inet_host_plookup_one(http->host, ip_any, &http->addr, NULL,
 	    NULL);
 	if (rc != EOK)
 		return rc;
-	
+
 	inet_ep2_t epp;
-	
+
 	inet_ep2_init(&epp);
 	epp.remote.addr = http->addr;
 	epp.remote.port = http->port;
-	
+
 	rc = tcp_create(&http->tcp);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = tcp_conn_create(http->tcp, &epp, NULL, NULL, &http->conn);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = tcp_conn_wait_connected(http->conn);
 	if (rc != EOK)
 		return rc;
-	
+
 	return rc;
 }
@@ -114,10 +114,10 @@
 	if (http->conn == NULL)
 		return EINVAL;
-	
+
 	tcp_conn_destroy(http->conn);
 	http->conn = NULL;
 	tcp_destroy(http->tcp);
 	http->tcp = NULL;
-	
+
 	return EOK;
 }
Index: uspace/lib/http/src/receive-buffer.c
===================================================================
--- uspace/lib/http/src/receive-buffer.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/http/src/receive-buffer.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,11 +48,11 @@
 	rb->receive = receive;
 	rb->client_data = client_data;
-	
+
 	rb->in = 0;
 	rb->out = 0;
 	rb->size = buffer_size;
-	
+
 	list_initialize(&rb->marks);
-	
+
 	rb->buffer = malloc(buffer_size);
 	if (rb->buffer == NULL)
@@ -73,5 +73,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	memcpy(rb->buffer, buf, size);
 	rb->in = size;
@@ -111,10 +111,10 @@
 	if (a->offset > b->offset)
 		return EINVAL;
-	
+
 	size_t size = b->offset - a->offset;
 	void *buf = malloc(size);
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	memcpy(buf, rb->buffer + a->offset, size);
 	*out_buf = buf;
@@ -127,10 +127,10 @@
 	if (a->offset > b->offset)
 		return EINVAL;
-	
+
 	size_t size = b->offset - a->offset;
 	char *buf = malloc(size + 1);
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	memcpy(buf, rb->buffer + a->offset, size);
 	buf[size] = 0;
@@ -156,8 +156,8 @@
 				min_mark = min(min_mark, mark->offset);
 			}
-			
+
 			if (min_mark == 0)
 				return ELIMIT;
-			
+
 			size_t new_in = rb->in - min_mark;
 			memmove(rb->buffer, rb->buffer + min_mark, new_in);
@@ -168,13 +168,13 @@
 			}
 		}
-		
+
 		size_t nrecv;
 		errno_t rc = rb->receive(rb->client_data, rb->buffer + rb->in, free, &nrecv);
 		if (rc != EOK)
 			return rc;
-		
+
 		rb->in = nrecv;
 	}
-	
+
 	*c = rb->buffer[rb->out];
 	if (consume)
@@ -194,5 +194,5 @@
 		return EOK;
 	}
-	
+
 	return rb->receive(rb->client_data, buf, buf_size, nrecv);
 }
@@ -248,13 +248,13 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		if (!class(c))
 			break;
-		
+
 		rc = recv_char(rb, &c, true);
 		if (rc != EOK)
 			return rc;
 	}
-	
+
 	return EOK;
 }
@@ -272,19 +272,19 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	if (c != '\r' && c != '\n') {
 		*nrecv = 0;
 		return EOK;
 	}
-	
+
 	rc = recv_char(rb, &c, true);
 	if (rc != EOK)
 		return rc;
-	
+
 	size_t nr;
 	rc = recv_discard(rb, (c == '\r' ? '\n' : '\r'), &nr);
 	if (rc != EOK)
 		return rc;
-	
+
 	*nrecv = 1 + nr;
 	return EOK;
@@ -296,5 +296,5 @@
 	size_t written = 0;
 	size_t nr;
-	
+
 	while (written < size) {
 		char c = 0;
@@ -321,5 +321,5 @@
 		line[written++] = c;
 	}
-	
+
 	return ELIMIT;
 }
Index: uspace/lib/http/src/request.c
===================================================================
--- uspace/lib/http/src/request.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/http/src/request.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,5 +52,5 @@
 	if (req == NULL)
 		return NULL;
-	
+
 	req->method = str_dup(method);
 	if (req->method == NULL) {
@@ -58,5 +58,5 @@
 		return NULL;
 	}
-	
+
 	req->path = str_dup(path);
 	if (req->path == NULL) {
@@ -65,7 +65,7 @@
 		return NULL;
 	}
-	
+
 	http_headers_init(&req->headers);
-	
+
 	return req;
 }
@@ -98,5 +98,5 @@
 		return EINVAL;
 	size_t size = meth_size;
-	
+
 	http_headers_foreach(req->headers, header) {
 		ssize_t header_size = http_header_encode(header, NULL, 0);
@@ -106,9 +106,9 @@
 	}
 	size += str_length(HTTP_REQUEST_LINE);
-	
+
 	char *buf = malloc(size);
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	char *pos = buf;
 	size_t pos_size = size;
@@ -120,5 +120,5 @@
 	pos += written;
 	pos_size -= written;
-	
+
 	http_headers_foreach(req->headers, header) {
 		written = http_header_encode(header, pos, pos_size);
@@ -130,10 +130,10 @@
 		pos_size -= written;
 	}
-	
+
 	size_t rlsize = str_size(HTTP_REQUEST_LINE);
 	memcpy(pos, HTTP_REQUEST_LINE, rlsize);
 	pos_size -= rlsize;
 	assert(pos_size == 0);
-	
+
 	*out_buf = buf;
 	*out_buf_size = size;
@@ -145,12 +145,12 @@
 	char *buf = NULL;
 	size_t buf_size = 0;
-	
+
 	errno_t rc = http_request_format(req, &buf, &buf_size);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = tcp_conn_send(http->conn, buf, buf_size);
 	free(buf);
-	
+
 	return rc;
 }
Index: uspace/lib/http/src/response.c
===================================================================
--- uspace/lib/http/src/response.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/http/src/response.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,5 +51,5 @@
 	receive_buffer_mark_t start;
 	receive_buffer_mark_t end;
-	
+
 	recv_mark(rb, &start);
 	errno_t rc = recv_while(rb, is_digit);
@@ -59,5 +59,5 @@
 	}
 	recv_mark(rb, &end);
-	
+
 	rc = recv_cut_str(rb, &start, &end, str);
 	recv_unmark(rb, &start);
@@ -70,11 +70,11 @@
 	char *str = NULL;
 	errno_t rc = receive_number(rb, &str);
-	
-	if (rc != EOK)
-		return rc;
-	
+
+	if (rc != EOK)
+		return rc;
+
 	rc = str_uint8_t(str, NULL, 10, true, out_value);
 	free(str);
-	
+
 	return rc;
 }
@@ -84,11 +84,11 @@
 	char *str = NULL;
 	errno_t rc = receive_number(rb, &str);
-	
-	if (rc != EOK)
-		return rc;
-	
+
+	if (rc != EOK)
+		return rc;
+
 	rc = str_uint16_t(str, NULL, 10, true, out_value);
 	free(str);
-	
+
 	return rc;
 }
@@ -116,36 +116,36 @@
 	uint16_t status;
 	char *message = NULL;
-	
+
 	errno_t rc = expect(rb, "HTTP/");
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = receive_uint8_t(rb, &version.major);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = expect(rb, ".");
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = receive_uint8_t(rb, &version.minor);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = expect(rb, " ");
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = receive_uint16_t(rb, &status);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = expect(rb, " ");
 	if (rc != EOK)
 		return rc;
-	
+
 	receive_buffer_mark_t msg_start;
 	recv_mark(rb, &msg_start);
-	
+
 	rc = recv_while(rb, is_not_newline);
 	if (rc != EOK) {
@@ -153,8 +153,8 @@
 		return rc;
 	}
-	
+
 	receive_buffer_mark_t msg_end;
 	recv_mark(rb, &msg_end);
-	
+
 	if (out_message) {
 		rc = recv_cut_str(rb, &msg_start, &msg_end, &message);
@@ -165,8 +165,8 @@
 		}
 	}
-	
+
 	recv_unmark(rb, &msg_start);
 	recv_unmark(rb, &msg_end);
-	
+
 	size_t nrecv;
 	rc = recv_eol(rb, &nrecv);
@@ -177,5 +177,5 @@
 		return rc;
 	}
-	
+
 	if (out_version)
 		*out_version = version;
@@ -195,15 +195,15 @@
 	memset(resp, 0, sizeof(http_response_t));
 	http_headers_init(&resp->headers);
-	
+
 	errno_t rc = http_receive_status(rb, &resp->version, &resp->status,
 	    &resp->message);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = http_headers_receive(rb, &resp->headers, max_headers_size,
 	    max_headers_count);
 	if (rc != EOK)
 		goto error;
-	
+
 	size_t nrecv;
 	rc = recv_eol(rb, &nrecv);
@@ -212,7 +212,7 @@
 	if (rc != EOK)
 		goto error;
-	
+
 	*out_response = resp;
-	
+
 	return EOK;
 error:
Index: uspace/lib/ieee80211/include/ieee80211.h
===================================================================
--- uspace/lib/ieee80211/include/ieee80211.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ieee80211/include/ieee80211.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -107,5 +107,5 @@
 	 */
 	errno_t (*start)(struct ieee80211_dev *);
-	
+
 	/** Scan neighborhood for networks.
 	 *
@@ -119,5 +119,5 @@
 	 */
 	errno_t (*scan)(struct ieee80211_dev *);
-	
+
 	/** Handler for TX frames to be send from device.
 	 *
@@ -133,5 +133,5 @@
 	 */
 	errno_t (*tx_handler)(struct ieee80211_dev *, void *, size_t);
-	
+
 	/** Set device operating frequency to given value.
 	 *
@@ -143,5 +143,5 @@
 	 */
 	errno_t (*set_freq)(struct ieee80211_dev *, uint16_t);
-	
+
 	/** Callback to inform device about BSSID change.
 	 *
@@ -153,5 +153,5 @@
 	 */
 	errno_t (*bssid_change)(struct ieee80211_dev *, bool);
-	
+
 	/** Callback to setup encryption key in IEEE 802.11 device.
 	 *
Index: uspace/lib/ieee80211/include/ieee80211_private.h
===================================================================
--- uspace/lib/ieee80211/include/ieee80211_private.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ieee80211/include/ieee80211_private.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -231,23 +231,23 @@
 	/** Backing DDF device. */
 	ddf_dev_t *ddf_dev;
-	
+
 	/** Pointer to implemented IEEE 802.11 device operations. */
 	ieee80211_ops_t *ops;
-	
+
 	/** Pointer to implemented IEEE 802.11 interface operations. */
 	ieee80211_iface_t *iface;
-	
+
 	/** Pointer to driver specific data. */
 	void *specific;
-	
+
 	/** Current operating frequency. */
 	uint16_t current_freq;
-	
+
 	/** Current operating mode. */
 	ieee80211_operating_mode_t current_op_mode;
-	
+
 	/** Info about BSSID we are connected to. */
 	ieee80211_bssid_info_t bssid_info;
-	
+
 	/**
 	 * Flag indicating that data traffic is encrypted by HW key
@@ -255,32 +255,32 @@
 	 */
 	bool using_hw_key;
-	
+
 	/** BSSIDs we listen to. */
 	nic_address_t bssid_mask;
-	
+
 	/** List of APs in neighborhood. */
 	ieee80211_scan_result_list_t ap_list;
-	
+
 	/** Current sequence number used in data frames. */
 	uint16_t sequence_number;
-	
+
 	/** Current authentication phase. */
 	ieee80211_auth_phase_t current_auth_phase;
-	
+
 	/** Flag indicating whether client wants connect to network. */
 	bool pending_conn_req;
-	
+
 	/** Scanning guard. */
 	fibril_mutex_t scan_mutex;
-	
+
 	/** General purpose guard. */
 	fibril_mutex_t gen_mutex;
-	
+
 	/** General purpose condition variable. */
 	fibril_condvar_t gen_cond;
-	
+
 	/** Indicates whether device is fully initialized. */
 	bool ready;
-	
+
 	/** Indicates whether driver has already started. */
 	bool started;
Index: uspace/lib/ieee80211/src/ieee80211.c
===================================================================
--- uspace/lib/ieee80211/src/ieee80211.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ieee80211/src/ieee80211.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -72,5 +72,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_FRAME_TYPE) ==
 	    IEEE80211_DATA_FRAME;
@@ -87,5 +87,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_FRAME_TYPE) ==
 	    IEEE80211_MGMT_FRAME;
@@ -102,5 +102,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_FRAME_SUBTYPE) ==
 	    IEEE80211_MGMT_BEACON_FRAME;
@@ -117,5 +117,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_FRAME_SUBTYPE) ==
 	    IEEE80211_MGMT_PROBE_RESP_FRAME;
@@ -132,5 +132,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_FRAME_SUBTYPE) ==
 	    IEEE80211_MGMT_AUTH_FRAME;
@@ -147,5 +147,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_FRAME_SUBTYPE) ==
 	    IEEE80211_MGMT_ASSOC_RESP_FRAME;
@@ -162,5 +162,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_TODS);
 }
@@ -176,5 +176,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_FROMDS);
 }
@@ -190,5 +190,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & (IEEE80211_FRAME_CTRL_FRAME_TYPE | 0x40)) ==
 	    IEEE80211_DATA_FRAME;
@@ -205,5 +205,5 @@
 {
 	frame_ctrl = uint16_t_le2host(frame_ctrl);
-	
+
 	return (frame_ctrl & IEEE80211_FRAME_CTRL_PROTECTED);
 }
@@ -233,5 +233,5 @@
 	uint16_t ret_val = ieee80211_dev->sequence_number;
 	ieee80211_dev->sequence_number += (1 << 4);
-	
+
 	return ret_val;
 }
@@ -286,5 +286,5 @@
 	ieee80211_operating_mode_t op_mode = ieee80211_dev->current_op_mode;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return op_mode;
 }
@@ -302,5 +302,5 @@
 	uint16_t current_freq = ieee80211_dev->current_freq;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return current_freq;
 }
@@ -318,9 +318,9 @@
 {
 	fibril_mutex_lock(&ieee80211_dev->gen_mutex);
-	
+
 	if (bssid) {
 		ieee80211_scan_result_link_t *res_link =
 		    ieee80211_dev->bssid_info.res_link;
-		
+
 		if (res_link) {
 			memcpy(bssid, &res_link->scan_result.bssid,
@@ -333,5 +333,5 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
 }
@@ -349,5 +349,5 @@
 	uint16_t aid = ieee80211_dev->bssid_info.aid;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return aid;
 }
@@ -367,5 +367,5 @@
 	int suite = auth_link->scan_result.security.pair_alg;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return suite;
 }
@@ -384,5 +384,5 @@
 	    ieee80211_dev->current_auth_phase == IEEE80211_AUTH_CONNECTED;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return conn_state;
 }
@@ -401,5 +401,5 @@
 	ieee80211_auth_phase_t conn_state = ieee80211_dev->current_auth_phase;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return conn_state;
 }
@@ -418,5 +418,5 @@
 	ieee80211_dev->pending_conn_req = false;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return conn_request;
 }
@@ -462,5 +462,5 @@
 	bool ready_state = ieee80211_dev->ready;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return ready_state;
 }
@@ -484,5 +484,5 @@
 	bool using_key = ieee80211_dev->using_hw_key;
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return using_key;
 }
@@ -499,12 +499,12 @@
 {
 	assert(arg);
-	
+
 	ieee80211_dev_t *ieee80211_dev = (ieee80211_dev_t *) arg;
-	
+
 	while (true) {
 		ieee80211_dev->ops->scan(ieee80211_dev);
 		async_usleep(SCAN_PERIOD_USEC);
 	}
-	
+
 	return EOK;
 }
@@ -521,21 +521,21 @@
 	nic_t *nic_data = nic_get_from_ddf_fun(fun);
 	ieee80211_dev_t *ieee80211_dev = nic_get_specific(nic_data);
-	
+
 	if (ieee80211_dev->started)
 		return EOK;
-	
+
 	ieee80211_dev->started = true;
-	
+
 	errno_t rc = ieee80211_dev->ops->start(ieee80211_dev);
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Add scanning fibril. */
 	fid_t fibril = fibril_create(ieee80211_scan, ieee80211_dev);
 	if (fibril == 0)
 		return ENOMEM;
-	
+
 	fibril_add_ready(fibril);
-	
+
 	return EOK;
 }
@@ -552,5 +552,5 @@
 	ieee80211_dev_t *ieee80211_dev = (ieee80211_dev_t *)
 	    nic_get_specific(nic);
-	
+
 	ieee80211_auth_phase_t auth_phase =
 	    ieee80211_get_auth_phase(ieee80211_dev);
@@ -558,15 +558,15 @@
 	    (auth_phase != IEEE80211_AUTH_CONNECTED))
 		return;
-	
+
 	ieee80211_scan_result_t *auth_data =
 	    &ieee80211_dev->bssid_info.res_link->scan_result;
-	
+
 	/* We drop part of IEEE 802.3 ethernet header. */
 	size_t drop_bytes = sizeof(eth_header_t) - 2;
-	
+
 	size_t complete_size = (size - drop_bytes) +
 	    sizeof(ieee80211_data_header_t) +
 	    ARRAY_SIZE(rfc1042_header);
-	
+
 	/* Init crypto data. */
 	bool add_mic = false;
@@ -575,5 +575,5 @@
 	uint8_t head_data[head_space];
 	memset(head_data, 0, head_space);
-	
+
 	// TODO: Distinguish used key (pair/group) by dest address ?
 	if (ieee80211_query_using_key(ieee80211_dev)) {
@@ -592,27 +592,27 @@
 			break;
 		}
-		
+
 		crypto = uint16_t_le2host(IEEE80211_FRAME_CTRL_PROTECTED);
 	}
-	
+
 	complete_size += head_space + mic_space;
-	
+
 	void *complete_buffer = malloc(complete_size);
 	if (!complete_buffer)
 		return;
-	
+
 	memset(complete_buffer, 0, complete_size);
-	
+
 	if (head_space)
 		memcpy(complete_buffer + sizeof(ieee80211_data_header_t),
 		    head_data, head_space);
-	
+
 	memcpy(complete_buffer + sizeof(ieee80211_data_header_t) + head_space,
 	    rfc1042_header, ARRAY_SIZE(rfc1042_header));
-	
+
 	memcpy(complete_buffer + sizeof(ieee80211_data_header_t) +
 	    ARRAY_SIZE(rfc1042_header) + head_space,
 	    data + drop_bytes, size - drop_bytes);
-	
+
 	ieee80211_data_header_t *data_header =
 	    (ieee80211_data_header_t *) complete_buffer;
@@ -623,10 +623,10 @@
 	    crypto;
 	data_header->seq_ctrl = ieee80211_get_sequence_number(ieee80211_dev);
-	
+
 	/* BSSID, SA, DA. */
 	memcpy(data_header->address1, auth_data->bssid.address, ETH_ADDR);
 	memcpy(data_header->address2, data + ETH_ADDR, ETH_ADDR);
 	memcpy(data_header->address3, data, ETH_ADDR);
-	
+
 	if (add_mic) {
 		size_t size_wo_mic = complete_size - MIC_LENGTH;
@@ -636,8 +636,8 @@
 		    complete_buffer + size_wo_mic);
 	}
-	
+
 	ieee80211_dev->ops->tx_handler(ieee80211_dev,
 	    complete_buffer, complete_size);
-	
+
 	free(complete_buffer);
 }
@@ -662,24 +662,24 @@
 		if (!ieee80211_ops->start)
 			ieee80211_ops->start = ieee80211_start_impl;
-		
+
 		if (!ieee80211_ops->tx_handler)
 			ieee80211_ops->tx_handler = ieee80211_tx_handler_impl;
-		
+
 		if (!ieee80211_ops->set_freq)
 			ieee80211_ops->set_freq = ieee80211_set_freq_impl;
-		
+
 		if (!ieee80211_ops->bssid_change)
 			ieee80211_ops->bssid_change = ieee80211_bssid_change_impl;
-		
+
 		if (!ieee80211_ops->key_config)
 			ieee80211_ops->key_config = ieee80211_key_config_impl;
-		
+
 		if (!ieee80211_ops->scan)
 			ieee80211_ops->scan = ieee80211_scan_impl;
 	} else
 		return EINVAL;
-	
+
 	ieee80211_dev->ops = ieee80211_ops;
-	
+
 	if (ieee80211_iface) {
 		if (nic_dev_ops)
@@ -687,17 +687,17 @@
 				nic_dev_ops->interfaces[IEEE80211_DEV_IFACE] =
 				    ieee80211_iface;
-		
+
 		if (!ieee80211_iface->get_scan_results)
 			ieee80211_iface->get_scan_results =
 			    ieee80211_get_scan_results_impl;
-		
+
 		if (!ieee80211_iface->connect)
 			ieee80211_iface->connect = ieee80211_connect_impl;
-		
+
 		if (!ieee80211_iface->disconnect)
 			ieee80211_iface->disconnect = ieee80211_disconnect_impl;
 	} else
 		return EINVAL;
-	
+
 	if (nic_dev_ops) {
 		if (!nic_dev_ops->open)
@@ -705,9 +705,9 @@
 	} else
 		return EINVAL;
-	
+
 	ieee80211_dev->iface = ieee80211_iface;
-	
+
 	nic_driver_implement(NULL, nic_dev_ops, nic_iface);
-	
+
 	return EOK;
 }
@@ -740,21 +740,21 @@
 	ieee80211_dev->current_op_mode = IEEE80211_OPMODE_STATION;
 	ieee80211_dev->current_auth_phase = IEEE80211_AUTH_DISCONNECTED;
-	
+
 	memcpy(ieee80211_dev->bssid_mask.address, ieee80211_broadcast_mac_addr,
 	    ETH_ADDR);
-	
+
 	ieee80211_scan_result_list_init(&ieee80211_dev->ap_list);
-	
+
 	fibril_mutex_initialize(&ieee80211_dev->scan_mutex);
 	fibril_mutex_initialize(&ieee80211_dev->gen_mutex);
 	fibril_condvar_initialize(&ieee80211_dev->gen_cond);
-	
+
 	/* Bind NIC to device */
 	nic_t *nic = nic_create_and_bind(ddf_dev);
 	if (!nic)
 		return ENOMEM;
-	
+
 	nic_set_specific(nic, ieee80211_dev);
-	
+
 	return EOK;
 }
@@ -780,18 +780,18 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev);
-	
+
 	/* TODO: Set NIC handlers here. */
 	nic_set_send_frame_handler(nic, ieee80211_send_frame);
-	
+
 	ddf_fun_t *fun = ddf_fun_create(ieee80211_dev->ddf_dev, fun_exposed,
 	    "port0");
 	if (fun == NULL)
 		return EINVAL;
-	
+
 	nic_set_ddf_fun(nic, fun);
 	ddf_fun_set_ops(fun, ieee80211_nic_dev_ops);
-	
+
 	rc = ddf_fun_bind(fun);
 	if (rc != EOK) {
@@ -799,5 +799,5 @@
 		return rc;
 	}
-	
+
 	rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
 	if (rc != EOK) {
@@ -805,5 +805,5 @@
 		return rc;
 	}
-	
+
 	rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_IEEE80211);
 	if (rc != EOK) {
@@ -811,5 +811,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -832,10 +832,10 @@
 	ieee80211_ie_header_t *header =
 	    (ieee80211_ie_header_t *) *ie_header;
-	
+
 	header->element_id = id;
 	header->length = length;
-	
+
 	memcpy(*ie_header + sizeof(ieee80211_ie_header_t), data, length);
-	
+
 	*ie_header = (void *) ((void *) header +
 	    sizeof(ieee80211_ie_header_t) + length);
@@ -855,11 +855,11 @@
 	nic_address_t nic_address;
 	nic_query_address(nic, &nic_address);
-	
+
 	size_t ssid_data_size = (ssid != NULL) ? str_size(ssid) : 0;
 	size_t channel_data_size = 1;
-	
+
 	uint8_t channel =
 	    ieee80211_freq_to_channel(ieee80211_dev->current_freq);
-	
+
 	/*
 	 * 4 headers - (ssid, rates, ext rates, current channel)
@@ -871,15 +871,15 @@
 	    IEEE80211_DATA_RATES_SIZE + IEEE80211_EXT_DATA_RATES_SIZE +
 	    channel_data_size;
-	
+
 	size_t buffer_size = sizeof(ieee80211_mgmt_header_t) + payload_size;
 	void *buffer = malloc(buffer_size);
 	if (!buffer)
 		return ENOMEM;
-	
+
 	memset(buffer, 0, buffer_size);
-	
+
 	ieee80211_mgmt_header_t *mgmt_header =
 	    (ieee80211_mgmt_header_t *) buffer;
-	
+
 	mgmt_header->frame_ctrl =
 	    host2uint16_t_le(IEEE80211_MGMT_FRAME |
@@ -890,5 +890,5 @@
 	mgmt_header->seq_ctrl =
 	    host2uint16_t_le(ieee80211_get_sequence_number(ieee80211_dev));
-	
+
 	/* Jump to payload. */
 	void *it = (void *) buffer + sizeof(ieee80211_mgmt_header_t);
@@ -902,9 +902,9 @@
 	ieee80211_prepare_ie_header(&it, IEEE80211_CHANNEL_IE,
 	    channel_data_size, (void *) &channel);
-	
+
 	ieee80211_dev->ops->tx_handler(ieee80211_dev, buffer, buffer_size);
-	
+
 	free(buffer);
-	
+
 	return EOK;
 }
@@ -922,20 +922,20 @@
 	nic_address_t nic_address;
 	nic_query_address(nic, &nic_address);
-	
+
 	ieee80211_scan_result_t *auth_data =
 	    &ieee80211_dev->bssid_info.res_link->scan_result;
-	
+
 	size_t buffer_size = sizeof(ieee80211_mgmt_header_t) +
 	    sizeof(ieee80211_auth_body_t);
-	
+
 	void *buffer = malloc(buffer_size);
 	if (!buffer)
 		return ENOMEM;
-	
+
 	memset(buffer, 0, buffer_size);
-	
+
 	ieee80211_mgmt_header_t *mgmt_header =
 	    (ieee80211_mgmt_header_t *) buffer;
-	
+
 	mgmt_header->frame_ctrl =
 	    host2uint16_t_le(IEEE80211_MGMT_FRAME |
@@ -944,5 +944,5 @@
 	memcpy(mgmt_header->src_addr, nic_address.address, ETH_ADDR);
 	memcpy(mgmt_header->bssid, auth_data->bssid.address, ETH_ADDR);
-	
+
 	ieee80211_auth_body_t *auth_body =
 	    (ieee80211_auth_body_t *)
@@ -950,9 +950,9 @@
 	auth_body->auth_alg = host2uint16_t_le(0);
 	auth_body->auth_trans_no = host2uint16_t_le(1);
-	
+
 	ieee80211_dev->ops->tx_handler(ieee80211_dev, buffer, buffer_size);
-	
+
 	free(buffer);
-	
+
 	return EOK;
 }
@@ -972,12 +972,12 @@
 	nic_address_t nic_address;
 	nic_query_address(nic, &nic_address);
-	
+
 	ieee80211_scan_result_link_t *auth_link =
 	    ieee80211_dev->bssid_info.res_link;
-	
+
 	ieee80211_scan_result_t *auth_data = &auth_link->scan_result;
-	
+
 	size_t ssid_data_size = str_size(auth_data->ssid);
-	
+
 	size_t payload_size =
 	    sizeof(ieee80211_ie_header_t) * 3 +
@@ -985,23 +985,23 @@
 	    IEEE80211_DATA_RATES_SIZE +
 	    IEEE80211_EXT_DATA_RATES_SIZE;
-	
+
 	size_t buffer_size =
 	    sizeof(ieee80211_mgmt_header_t) +
 	    sizeof(ieee80211_assoc_req_body_t) +
 	    payload_size;
-	
+
 	if ((auth_data->security.type == IEEE80211_SECURITY_WPA) ||
 	    (auth_data->security.type == IEEE80211_SECURITY_WPA2))
 		buffer_size += auth_link->auth_ie_len;
-	
+
 	void *buffer = malloc(buffer_size);
 	if (!buffer)
 		return ENOMEM;
-	
+
 	memset(buffer, 0, buffer_size);
-	
+
 	ieee80211_mgmt_header_t *mgmt_header =
 	    (ieee80211_mgmt_header_t *) buffer;
-	
+
 	mgmt_header->frame_ctrl =
 	    host2uint16_t_le(IEEE80211_MGMT_FRAME |
@@ -1010,10 +1010,10 @@
 	memcpy(mgmt_header->src_addr, nic_address.address, ETH_ADDR);
 	memcpy(mgmt_header->bssid, auth_data->bssid.address, ETH_ADDR);
-	
+
 	ieee80211_assoc_req_body_t *assoc_body =
 	    (ieee80211_assoc_req_body_t *)
 	    (buffer + sizeof(ieee80211_mgmt_header_t));
 	assoc_body->listen_interval = host2uint16_t_le(1);
-	
+
 	/* Jump to payload. */
 	void *it = buffer + sizeof(ieee80211_mgmt_header_t) +
@@ -1026,14 +1026,14 @@
 	    IEEE80211_EXT_DATA_RATES_SIZE,
 	    (void *) &ieee80211bg_data_rates[IEEE80211_DATA_RATES_SIZE]);
-	
+
 	if (auth_data->security.type != IEEE80211_SECURITY_OPEN)
 		assoc_body->capability |= host2uint16_t_le(CAP_SECURITY);
-	
+
 	if ((auth_data->security.type == IEEE80211_SECURITY_WPA) ||
 	    (auth_data->security.type == IEEE80211_SECURITY_WPA2))
 		memcpy(it, auth_link->auth_ie, auth_link->auth_ie_len);
-	
+
 	ieee80211_dev->ops->tx_handler(ieee80211_dev, buffer, buffer_size);
-	
+
 	/*
 	 * Save password to be used in eventual authentication handshake.
@@ -1042,7 +1042,7 @@
 	memcpy(ieee80211_dev->bssid_info.password, password,
 	    str_size(password));
-	
+
 	free(buffer);
-	
+
 	return EOK;
 }
@@ -1061,21 +1061,21 @@
 	ieee80211_scan_result_t *auth_data =
 	    &ieee80211_dev->bssid_info.res_link->scan_result;
-	
+
 	nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev);
 	nic_address_t nic_address;
 	nic_query_address(nic, &nic_address);
-	
+
 	size_t buffer_size = sizeof(ieee80211_mgmt_header_t) +
 	    sizeof(ieee80211_deauth_body_t);
-	
+
 	void *buffer = malloc(buffer_size);
 	if (!buffer)
 		return ENOMEM;
-	
+
 	memset(buffer, 0, buffer_size);
-	
+
 	ieee80211_mgmt_header_t *mgmt_header =
 	    (ieee80211_mgmt_header_t *) buffer;
-	
+
 	mgmt_header->frame_ctrl =
 	    host2uint16_t_le(IEEE80211_MGMT_FRAME |
@@ -1084,17 +1084,17 @@
 	memcpy(mgmt_header->src_addr, nic_address.address, ETH_ADDR);
 	memcpy(mgmt_header->bssid, auth_data->bssid.address, ETH_ADDR);
-	
+
 	ieee80211_dev->ops->tx_handler(ieee80211_dev, buffer, buffer_size);
-	
+
 	free(buffer);
-	
+
 	ieee80211_dev->bssid_info.res_link = NULL;
 	ieee80211_dev->ops->bssid_change(ieee80211_dev, false);
-	
+
 	if (ieee80211_query_using_key(ieee80211_dev))
 		ieee80211_dev->ops->key_config(ieee80211_dev, NULL, false);
-	
+
 	ieee80211_set_auth_phase(ieee80211_dev, IEEE80211_AUTH_DISCONNECTED);
-	
+
 	return EOK;
 }
@@ -1104,5 +1104,5 @@
 {
 	uint8_t *it = (uint8_t *) buffer;
-	
+
 	uint16_t *version = (uint16_t *) it;
 	if (uint16_t_le2host(*version) != 0x1) {
@@ -1110,7 +1110,7 @@
 		return;
 	}
-	
+
 	it += sizeof(uint16_t);
-	
+
 	uint32_t group_cipher = *(it + 3);
 	switch (group_cipher) {
@@ -1126,7 +1126,7 @@
 		ap_data->scan_result.security.group_alg = -1;
 	}
-	
+
 	it += 4 * sizeof(uint8_t);
-	
+
 	uint16_t *pairwise_count = (uint16_t *) it;
 	uint32_t pairwise_cipher = *(it + sizeof(uint16_t) + 3);
@@ -1143,8 +1143,8 @@
 		ap_data->scan_result.security.pair_alg = -1;
 	}
-	
+
 	it += 2 * sizeof(uint16_t) +
 	    uint16_t_le2host(*pairwise_count) * sizeof(uint32_t);
-	
+
 	uint32_t auth_suite = *(it + 3);
 	switch (auth_suite) {
@@ -1167,5 +1167,5 @@
 	ap_data->auth_ie_len = ie_header->length +
 	    sizeof(ieee80211_ie_header_t);
-	
+
 	memcpy(ap_data->auth_ie, it, ap_data->auth_ie_len);
 }
@@ -1180,10 +1180,10 @@
 		uint8_t *channel;
 		uint32_t oui;
-		
+
 		switch (ie_header->element_id) {
 		case IEEE80211_CHANNEL_IE:
 			if (!ap_data)
 				break;
-			
+
 			channel = (uint8_t *)
 			    (it + sizeof(ieee80211_ie_header_t));
@@ -1193,5 +1193,5 @@
 			if (!ap_data)
 				break;
-			
+
 			ap_data->scan_result.security.type =
 			    IEEE80211_SECURITY_WPA2;
@@ -1203,17 +1203,17 @@
 			oui = uint32be_from_seq(it +
 			    sizeof(ieee80211_ie_header_t));
-			
+
 			if (oui == WPA_OUI) {
 				if (!ap_data)
 					break;
-				
+
 				/* Prefering WPA2. */
 				if (ap_data->scan_result.security.type ==
 				    IEEE80211_SECURITY_WPA2)
 					break;
-				
+
 				ap_data->scan_result.security.type =
 				    IEEE80211_SECURITY_WPA;
-				
+
 				ieee80211_process_auth_info(ap_data,
 				    it + sizeof(ieee80211_ie_header_t) +
@@ -1226,8 +1226,8 @@
 			}
 		}
-		
+
 		it += sizeof(ieee80211_ie_header_t) + ie_header->length;
 	}
-	
+
 	return NULL;
 }
@@ -1246,20 +1246,20 @@
 	ieee80211_beacon_start_t *beacon_body = (ieee80211_beacon_start_t *)
 	    ((void *) mgmt_header + sizeof(ieee80211_mgmt_header_t));
-	
+
 	ieee80211_ie_header_t *ssid_ie_header = (ieee80211_ie_header_t *)
 	    ((void *) beacon_body + sizeof(ieee80211_beacon_start_t));
-	
+
 	/* Not empty SSID. */
 	if (ssid_ie_header->length > 0) {
 		ieee80211_scan_result_list_t *result_list =
 		    &ieee80211_dev->ap_list;
-		
+
 		uint8_t *ssid_start = (uint8_t *) ((void *) ssid_ie_header +
 		    sizeof(ieee80211_ie_header_t));
 		char ssid[IEEE80211_MAX_SSID_LENGTH];
-		
+
 		memcpy(ssid, ssid_start, ssid_ie_header->length);
 		ssid[ssid_ie_header->length] = '\0';
-		
+
 		/* Check whether SSID is already in results. */
 		ieee80211_scan_result_list_foreach(*result_list, result) {
@@ -1269,22 +1269,22 @@
 			}
 		}
-		
+
 		/* Results are full. */
 		if (result_list->size == IEEE80211_MAX_RESULTS_LENGTH - 1)
 			return EOK;
-		
+
 		ieee80211_scan_result_link_t *ap_data =
 		    malloc(sizeof(ieee80211_scan_result_link_t));
 		if (!ap_data)
 			return ENOMEM;
-		
+
 		memset(ap_data, 0, sizeof(ieee80211_scan_result_link_t));
 		link_initialize(&ap_data->link);
-		
+
 		memcpy(ap_data->scan_result.bssid.address,
 		    mgmt_header->bssid, ETH_ADDR);
 		memcpy(ap_data->scan_result.ssid, ssid,
 		    ssid_ie_header->length + 1);
-		
+
 		if (uint16_t_le2host(beacon_body->capability) & CAP_SECURITY) {
 			ap_data->scan_result.security.type =
@@ -1297,5 +1297,5 @@
 			ap_data->scan_result.security.group_alg = -1;
 		}
-		
+
 		void *rest_ies_start = ssid_start + ssid_ie_header->length;
 		size_t rest_buffer_size =
@@ -1305,15 +1305,15 @@
 		    sizeof(ieee80211_ie_header_t) -
 		    ssid_ie_header->length;
-		
+
 		ieee80211_process_ies(ieee80211_dev, ap_data, rest_ies_start,
 		    rest_buffer_size);
-		
+
 		ap_data->last_beacon = time(NULL);
-		
+
 		fibril_mutex_lock(&ieee80211_dev->ap_list.results_mutex);
 		ieee80211_scan_result_list_append(result_list, ap_data);
 		fibril_mutex_unlock(&ieee80211_dev->ap_list.results_mutex);
 	}
-	
+
 	return EOK;
 }
@@ -1333,5 +1333,5 @@
 	    (ieee80211_auth_body_t *)
 	    ((void *) mgmt_header + sizeof(ieee80211_mgmt_header_t));
-	
+
 	if (auth_body->status != 0)
 		ieee80211_set_auth_phase(ieee80211_dev,
@@ -1340,9 +1340,9 @@
 		ieee80211_set_auth_phase(ieee80211_dev,
 		    IEEE80211_AUTH_AUTHENTICATED);
-	
+
 	fibril_mutex_lock(&ieee80211_dev->gen_mutex);
 	fibril_condvar_signal(&ieee80211_dev->gen_cond);
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return EOK;
 }
@@ -1362,5 +1362,5 @@
 	    (ieee80211_assoc_resp_body_t *) ((void *) mgmt_header +
 	    sizeof(ieee80211_mgmt_header_t));
-	
+
 	if (assoc_resp->status != 0)
 		ieee80211_set_auth_phase(ieee80211_dev,
@@ -1373,9 +1373,9 @@
 		ieee80211_dev->ops->bssid_change(ieee80211_dev, true);
 	}
-	
+
 	fibril_mutex_lock(&ieee80211_dev->gen_mutex);
 	fibril_condvar_signal(&ieee80211_dev->gen_cond);
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	return EOK;
 }
@@ -1386,35 +1386,35 @@
 	ieee80211_eapol_key_frame_t *key_frame =
 	    (ieee80211_eapol_key_frame_t *) buffer;
-	
+
 	ieee80211_scan_result_link_t *auth_link =
 	    ieee80211_dev->bssid_info.res_link;
-	
+
 	ieee80211_scan_result_t *auth_data = &auth_link->scan_result;
-	
+
 	/* We don't support 802.1X authentication yet. */
 	if (auth_data->security.auth == IEEE80211_AUTH_AKM_8021X)
 		return ENOTSUP;
-	
+
 	uint8_t *ptk = ieee80211_dev->bssid_info.ptk;
 	uint8_t *gtk = ieee80211_dev->bssid_info.gtk;
 	uint8_t gtk_id = 1;
-	
+
 	bool handshake_done = false;
-	
+
 	bool old_wpa =
 	    auth_data->security.type == IEEE80211_SECURITY_WPA;
-	
+
 	bool key_phase =
 	    uint16_t_be2host(key_frame->key_info) &
 	    IEEE80211_EAPOL_KEY_KEYINFO_MIC;
-	
+
 	bool final_phase =
 	    uint16_t_be2host(key_frame->key_info) &
 	    IEEE80211_EAPOL_KEY_KEYINFO_SECURE;
-	
+
 	bool ccmp_used =
 	    (auth_data->security.pair_alg == IEEE80211_SECURITY_SUITE_CCMP) ||
 	    (auth_data->security.group_alg == IEEE80211_SECURITY_SUITE_CCMP);
-	
+
 	size_t ptk_key_length, gtk_key_length;
 	hash_func_t mic_hash;
@@ -1423,33 +1423,33 @@
 	else
 		mic_hash = HASH_MD5;
-	
+
 	if (auth_data->security.pair_alg == IEEE80211_SECURITY_SUITE_CCMP)
 		ptk_key_length = IEEE80211_PTK_CCMP_LENGTH;
 	else
 		ptk_key_length = IEEE80211_PTK_TKIP_LENGTH;
-	
+
 	if (auth_data->security.group_alg == IEEE80211_SECURITY_SUITE_CCMP)
 		gtk_key_length = IEEE80211_GTK_CCMP_LENGTH;
 	else
 		gtk_key_length = IEEE80211_GTK_TKIP_LENGTH;
-	
+
 	size_t output_size =
 	    sizeof(eth_header_t) +
 	    sizeof(ieee80211_eapol_key_frame_t);
-	
+
 	if (!(uint16_t_be2host(key_frame->key_info) &
 	    IEEE80211_EAPOL_KEY_KEYINFO_MIC))
 		output_size += auth_link->auth_ie_len;
-	
+
 	nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev);
 	nic_address_t nic_address;
 	nic_query_address(nic, &nic_address);
-	
+
 	void *output_buffer = malloc(output_size);
 	if (!output_buffer)
 		return ENOMEM;
-	
+
 	memset(output_buffer, 0, output_size);
-	
+
 	/* Setup ethernet header. */
 	eth_header_t *eth_header = (eth_header_t *) output_buffer;
@@ -1457,13 +1457,13 @@
 	memcpy(eth_header->src_addr, nic_address.address, ETH_ADDR);
 	eth_header->proto = host2uint16_t_be(ETH_TYPE_PAE);
-	
+
 	ieee80211_eapol_key_frame_t *output_key_frame =
 	    (ieee80211_eapol_key_frame_t *)
 	    (output_buffer + sizeof(eth_header_t));
-	
+
 	/* Copy content of incoming EAPOL-Key frame. */
 	memcpy((void *) output_key_frame, buffer,
 	    sizeof(ieee80211_eapol_key_frame_t));
-	
+
 	output_key_frame->proto_version = 0x1;
 	output_key_frame->body_length =
@@ -1471,5 +1471,5 @@
 	output_key_frame->key_info &=
 	    ~host2uint16_t_be(IEEE80211_EAPOL_KEY_KEYINFO_ACK);
-	
+
 	if (key_phase) {
 		output_key_frame->key_info &=
@@ -1482,5 +1482,5 @@
 		memset(output_key_frame->key_rsc, 0, 8);
 		memset(output_key_frame->eapol_key_iv, 0, 16);
-		
+
 		/* Derive GTK and save it. */
 		if (final_phase) {
@@ -1490,8 +1490,8 @@
 			uint8_t *data_ptr = (uint8_t *)
 			    (buffer + sizeof(ieee80211_eapol_key_frame_t));
-			
+
 			errno_t rc;
 			uint8_t work_key[32];
-			
+
 			if (ccmp_used) {
 				rc = ieee80211_aes_key_unwrap(ptk + KEK_OFFSET,
@@ -1503,13 +1503,13 @@
 				    data_ptr, key_data_length, key_data);
 			}
-			
+
 			if (rc == EOK) {
 				uint8_t *key_data_ptr = old_wpa ? key_data :
 				    ieee80211_process_ies(ieee80211_dev,
 				    NULL, key_data, key_data_length);
-				
+
 				if (key_data_ptr) {
 					uint8_t *key_ptr;
-					
+
 					if (old_wpa)
 						key_ptr = key_data_ptr;
@@ -1518,5 +1518,5 @@
 						key_ptr = key_data_ptr + 2;
 					}
-					
+
 					memcpy(gtk, key_ptr, gtk_key_length);
 					handshake_done = true;
@@ -1532,5 +1532,5 @@
 		    sizeof(ieee80211_eapol_key_frame_t),
 		    auth_link->auth_ie, auth_link->auth_ie_len);
-		
+
 		/* Compute PMK. */
 		uint8_t pmk[PBKDF2_KEY_LENGTH];
@@ -1539,16 +1539,16 @@
 		    (uint8_t *) auth_data->ssid,
 		    str_size(auth_data->ssid), pmk);
-		
+
 		uint8_t *anonce = key_frame->key_nonce;
-		
+
 		/* Generate SNONCE. */
 		uint8_t snonce[32];
 		rnd_sequence(snonce, 32);
-		
+
 		memcpy(output_key_frame->key_nonce, snonce, 32);
-		
+
 		uint8_t *dest_addr = eth_header->dest_addr;
 		uint8_t *src_addr = eth_header->src_addr;
-		
+
 		/* Derive PTK and save it. */
 		uint8_t crypt_data[PRF_CRYPT_DATA_LENGTH];
@@ -1563,18 +1563,18 @@
 		ieee80211_prf(pmk, crypt_data, ptk, ptk_key_length);
 	}
-	
+
 	/* Compute MIC of key frame data from KCK part of PTK. */
 	uint8_t mic[mic_hash];
 	hmac(ptk, 16, (uint8_t *) output_key_frame,
 	    output_size - sizeof(eth_header_t), mic, mic_hash);
-	
+
 	memcpy(output_key_frame->key_mic, mic, 16);
-	
+
 	ieee80211_send_frame(nic, output_buffer, output_size);
-	
+
 	free(output_buffer);
-	
+
 	ieee80211_key_config_t key_config;
-	
+
 	/* Insert Pairwise key. */
 	if ((key_phase && old_wpa) || (final_phase && !old_wpa)) {
@@ -1584,9 +1584,9 @@
 		memcpy(key_config.data,
 		    ptk + TK_OFFSET, ptk_key_length - TK_OFFSET);
-		
+
 		ieee80211_dev->ops->key_config(ieee80211_dev,
 		    &key_config, true);
 	}
-	
+
 	/* Insert Group key. */
 	if (final_phase) {
@@ -1595,9 +1595,9 @@
 		key_config.flags = IEEE80211_KEY_FLAG_TYPE_GROUP;
 		memcpy(key_config.data, gtk, gtk_key_length);
-		
+
 		ieee80211_dev->ops->key_config(ieee80211_dev,
 		    &key_config, true);
 	}
-	
+
 	/* Signal successful handshake completion. */
 	if (handshake_done) {
@@ -1606,5 +1606,5 @@
 		fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
 	}
-	
+
 	return EOK;
 }
@@ -1615,9 +1615,9 @@
 	ieee80211_eapol_key_frame_t *key_frame =
 	    (ieee80211_eapol_key_frame_t *) buffer;
-	
+
 	if (ieee80211_is_eapol_key_frame(key_frame))
 		return ieee80211_process_4way_handshake(ieee80211_dev, buffer,
 		    buffer_size);
-	
+
 	return EOK;
 }
@@ -1637,10 +1637,10 @@
 	ieee80211_data_header_t *data_header =
 	    (ieee80211_data_header_t *) buffer;
-	
+
 	if (ieee80211_has_data_frame(data_header->frame_ctrl)) {
 		nic_t *nic = nic_get_from_ddf_dev(ieee80211_dev->ddf_dev);
 		size_t strip_length = sizeof(ieee80211_data_header_t) +
 		    ARRAY_SIZE(rfc1042_header);
-		
+
 		/* TODO: Different by used security alg. */
 		/* TODO: Trim frame by used security alg. */
@@ -1648,5 +1648,5 @@
 		if (ieee80211_is_encrypted_frame(data_header->frame_ctrl))
 			strip_length += 8;
-		
+
 		/* Process 4-way authentication handshake. */
 		uint16_t *proto = (uint16_t *) (buffer + strip_length);
@@ -1655,5 +1655,5 @@
 			    buffer + strip_length + sizeof(uint16_t),
 			    buffer_size - strip_length - sizeof(uint16_t));
-		
+
 		/*
 		 * Note: ETH protocol ID is already there, so we don't create
@@ -1663,8 +1663,8 @@
 		    buffer_size - strip_length + sizeof(eth_header_t) - 2;
 		nic_frame_t *frame = nic_alloc_frame(nic, frame_size);
-		
+
 		if(frame == NULL)
 			return ENOMEM;
-		
+
 		uint8_t *src_addr =
 		    ieee80211_is_fromds_frame(data_header->frame_ctrl) ?
@@ -1673,15 +1673,15 @@
 		    ieee80211_is_tods_frame(data_header->frame_ctrl) ?
 		    data_header->address3 : data_header->address1;
-		
+
 		eth_header_t *eth_header = (eth_header_t *) frame->data;
 		memcpy(eth_header->src_addr, src_addr, ETH_ADDR);
 		memcpy(eth_header->dest_addr, dest_addr, ETH_ADDR);
-		
+
 		memcpy(frame->data + sizeof(eth_header_t) - 2,
 		    buffer + strip_length, buffer_size - strip_length);
-		
+
 		nic_received_frame(nic, frame);
 	}
-	
+
 	return EOK;
 }
@@ -1700,18 +1700,18 @@
 {
 	uint16_t frame_ctrl = *((uint16_t *) buffer);
-	
+
 	if (ieee80211_is_mgmt_frame(frame_ctrl)) {
 		ieee80211_mgmt_header_t *mgmt_header =
 		    (ieee80211_mgmt_header_t *) buffer;
-		
+
 		if ((ieee80211_is_probe_response_frame(mgmt_header->frame_ctrl)) ||
 		    (ieee80211_is_beacon_frame(mgmt_header->frame_ctrl)))
 			return ieee80211_process_probe_response(ieee80211_dev,
 			    mgmt_header, buffer_size);
-		
+
 		if (ieee80211_is_auth_frame(mgmt_header->frame_ctrl))
 			return ieee80211_process_auth_response(ieee80211_dev,
 			    mgmt_header);
-		
+
 		if (ieee80211_is_assoc_response_frame(mgmt_header->frame_ctrl))
 			return ieee80211_process_assoc_response(ieee80211_dev,
@@ -1720,5 +1720,5 @@
 		return ieee80211_process_data(ieee80211_dev, buffer,
 		    buffer_size);
-	
+
 	return EOK;
 }
Index: uspace/lib/ieee80211/src/ieee80211_iface_impl.c
===================================================================
--- uspace/lib/ieee80211/src/ieee80211_iface_impl.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ieee80211/src/ieee80211_iface_impl.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,17 +55,17 @@
 	nic_t *nic_data = nic_get_from_ddf_fun(fun);
 	ieee80211_dev_t *ieee80211_dev = nic_get_specific(nic_data);
-	
+
 	if (!ieee80211_is_ready(ieee80211_dev))
 		return EREFUSED;
-	
+
 	if (now)
 		ieee80211_dev->ops->scan(ieee80211_dev);
-	
+
 	fibril_mutex_lock(&ieee80211_dev->ap_list.results_mutex);
-	
+
 	if (results) {
 		ieee80211_scan_result_list_t *result_list =
 		    &ieee80211_dev->ap_list;
-		
+
 		unsigned int i = 0;
 		ieee80211_scan_result_list_foreach(*result_list, result) {
@@ -75,10 +75,10 @@
 			i++;
 		}
-		
+
 		results->length = i;
 	}
-	
+
 	fibril_mutex_unlock(&ieee80211_dev->ap_list.results_mutex);
-	
+
 	return EOK;
 }
@@ -102,5 +102,5 @@
 {
 	ieee80211_dev->bssid_info.res_link = auth_data;
-	
+
 	/* Set channel. */
 	errno_t rc = ieee80211_dev->ops->set_freq(ieee80211_dev,
@@ -108,16 +108,16 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Try to authenticate. */
 	ieee80211_authenticate(ieee80211_dev);
-	
+
 	fibril_mutex_lock(&ieee80211_dev->gen_mutex);
 	rc = fibril_condvar_wait_timeout(&ieee80211_dev->gen_cond,
 	    &ieee80211_dev->gen_mutex, AUTH_TIMEOUT);
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	if (ieee80211_get_auth_phase(ieee80211_dev) !=
 	    IEEE80211_AUTH_AUTHENTICATED) {
@@ -126,16 +126,16 @@
 		return EINVAL;
 	}
-	
+
 	/* Try to associate. */
 	ieee80211_associate(ieee80211_dev, password);
-	
+
 	fibril_mutex_lock(&ieee80211_dev->gen_mutex);
 	rc = fibril_condvar_wait_timeout(&ieee80211_dev->gen_cond,
 	    &ieee80211_dev->gen_mutex, AUTH_TIMEOUT);
 	fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	if (ieee80211_get_auth_phase(ieee80211_dev) !=
 	    IEEE80211_AUTH_ASSOCIATED) {
@@ -144,15 +144,15 @@
 		return EINVAL;
 	}
-	
+
 	/* On open network, we are finished. */
 	if (auth_data->scan_result.security.type !=
 	    IEEE80211_SECURITY_OPEN) {
 		/* Otherwise wait for 4-way handshake to complete. */
-		
+
 		fibril_mutex_lock(&ieee80211_dev->gen_mutex);
 		rc = fibril_condvar_wait_timeout(&ieee80211_dev->gen_cond,
 		    &ieee80211_dev->gen_mutex, HANDSHAKE_TIMEOUT);
 		fibril_mutex_unlock(&ieee80211_dev->gen_mutex);
-		
+
 		if (rc != EOK) {
 			ieee80211_deauthenticate(ieee80211_dev);
@@ -160,7 +160,7 @@
 		}
 	}
-	
+
 	ieee80211_set_auth_phase(ieee80211_dev, IEEE80211_AUTH_CONNECTED);
-	
+
 	return EOK;
 }
@@ -182,11 +182,11 @@
 	assert(ssid_start);
 	assert(password);
-	
+
 	nic_t *nic_data = nic_get_from_ddf_fun(fun);
 	ieee80211_dev_t *ieee80211_dev = nic_get_specific(nic_data);
-	
+
 	if (!ieee80211_is_ready(ieee80211_dev))
 		return EREFUSED;
-	
+
 	if (ieee80211_is_connected(ieee80211_dev)) {
 		errno_t rc = ieee80211_dev->iface->disconnect(fun);
@@ -194,12 +194,12 @@
 			return rc;
 	}
-	
+
 	ieee80211_set_connect_request(ieee80211_dev);
-	
+
 	errno_t rc = ENOENT;
 	fibril_mutex_lock(&ieee80211_dev->scan_mutex);
-	
+
 	ieee80211_dev->pending_conn_req = false;
-	
+
 	ieee80211_scan_result_list_foreach(ieee80211_dev->ap_list, result) {
 		if (!str_lcmp(ssid_start, result->scan_result.ssid,
@@ -210,7 +210,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&ieee80211_dev->scan_mutex);
-	
+
 	return rc;
 }
@@ -228,15 +228,15 @@
 	nic_t *nic_data = nic_get_from_ddf_fun(fun);
 	ieee80211_dev_t *ieee80211_dev = nic_get_specific(nic_data);
-	
+
 	if (!ieee80211_is_ready(ieee80211_dev))
 		return EREFUSED;
-	
+
 	if (!ieee80211_is_connected(ieee80211_dev))
 		return EOK;
-	
+
 	fibril_mutex_lock(&ieee80211_dev->ap_list.results_mutex);
 	errno_t rc = ieee80211_deauthenticate(ieee80211_dev);
 	fibril_mutex_unlock(&ieee80211_dev->ap_list.results_mutex);
-	
+
 	return rc;
 }
Index: uspace/lib/ieee80211/src/ieee80211_impl.c
===================================================================
--- uspace/lib/ieee80211/src/ieee80211_impl.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/ieee80211/src/ieee80211_impl.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -119,18 +119,18 @@
 {
 	fibril_mutex_lock(&ieee80211_dev->scan_mutex);
-	
+
 	if (ieee80211_get_auth_phase(ieee80211_dev) ==
 	    IEEE80211_AUTH_DISCONNECTED) {
 		fibril_mutex_lock(&ieee80211_dev->ap_list.results_mutex);
-		
+
 		/* Remove old entries we don't receive beacons from. */
 		ieee80211_scan_result_list_t *result_list =
 		    &ieee80211_dev->ap_list;
-		
+
 		list_foreach_safe(result_list->list, cur_link, next_link) {
 			ieee80211_scan_result_link_t *cur_result =
 			    list_get_instance(cur_link,
 			    ieee80211_scan_result_link_t, link);
-			
+
 			if ((time(NULL) - cur_result->last_beacon) >
 			    MAX_KEEP_SCAN_SPAN_SEC)
@@ -138,26 +138,26 @@
 				    cur_result);
 		}
-		
+
 		fibril_mutex_unlock(&ieee80211_dev->ap_list.results_mutex);
-		
+
 		uint16_t orig_freq = ieee80211_dev->current_freq;
-		
+
 		for (uint16_t freq = IEEE80211_FIRST_FREQ;
 		    freq <= IEEE80211_MAX_FREQ; freq += IEEE80211_CHANNEL_GAP) {
 			if (ieee80211_pending_connect_request(ieee80211_dev))
 				break;
-			
+
 			ieee80211_dev->ops->set_freq(ieee80211_dev, freq);
 			ieee80211_probe_request(ieee80211_dev, NULL);
-			
+
 			/* Wait for probe responses. */
 			async_usleep(SCAN_CHANNEL_WAIT_USEC);
 		}
-		
+
 		ieee80211_dev->ops->set_freq(ieee80211_dev, orig_freq);
 	}
-	
+
 	fibril_mutex_unlock(&ieee80211_dev->scan_mutex);
-	
+
 	return EOK;
 }
@@ -183,21 +183,21 @@
 	if ((!key) || (!data))
 		return EINVAL;
-	
+
 	if (!hash)
 		return ENOMEM;
-	
+
 	size_t iters = ((output_size * 8) + 159) / 160;
-	
+
 	const char *a = "Pairwise key expansion";
 	uint8_t result[HASH_SHA1 * iters];
 	uint8_t temp[HASH_SHA1];
-	
+
 	size_t data_size = PRF_CRYPT_DATA_LENGTH + str_size(a) + 2;
 	uint8_t work_arr[data_size];
 	memset(work_arr, 0, data_size);
-	
+
 	memcpy(work_arr, a, str_size(a));
 	memcpy(work_arr + str_size(a) + 1, data, PRF_CRYPT_DATA_LENGTH);
-	
+
 	for (uint8_t i = 0; i < iters; i++) {
 		memcpy(work_arr + data_size - 1, &i, 1);
@@ -206,7 +206,7 @@
 		memcpy(result + i*HASH_SHA1, temp, HASH_SHA1);
 	}
-	
+
 	memcpy(hash, result, output_size);
-	
+
 	return EOK;
 }
@@ -223,8 +223,8 @@
 	if ((!kek) || (!data))
 		return EINVAL;
-	
+
 	if (!output)
 		return ENOMEM;
-	
+
 	uint32_t n = data_size / 8 - 1;
 	uint8_t work_data[n * 8];
@@ -233,10 +233,10 @@
 	uint8_t *work_block;
 	uint8_t a[8];
-	
+
 	memcpy(a, data, 8);
-	
+
 	uint64_t mask = 0xff;
 	uint8_t shift, shb;
-	
+
 	memcpy(work_data, data + 8, n * 8);
 	for (int j = 5; j >= 0; j--) {
@@ -247,5 +247,5 @@
 				a[k] ^= shb;
 			}
-			
+
 			work_block = work_data + (i - 1) * 8;
 			memcpy(work_input, a, 8);
@@ -256,5 +256,5 @@
 		}
 	}
-	
+
 	size_t it;
 	for (it = 0; it < 8; it++) {
@@ -262,10 +262,10 @@
 			break;
 	}
-	
+
 	if (it == 8) {
 		memcpy(output, work_data, n * 8);
 		return EOK;
 	}
-	
+
 	return EINVAL;
 }
@@ -290,19 +290,19 @@
 	if ((!key) || (!buffer))
 		return EINVAL;
-	
+
 	if (!mic)
 		return ENOMEM;
-	
+
 	uint32_t l = uint32le_from_seq(key);
 	uint32_t r = uint32le_from_seq(key + 4);
-	
+
 	ieee80211_data_header_t *data_header =
 	    (ieee80211_data_header_t *) buffer;
-	
+
 	uint8_t *data = buffer + sizeof(ieee80211_data_header_t) +
 	    IEEE80211_TKIP_HEADER_LENGTH;
 	size_t data_size = size - sizeof(ieee80211_data_header_t) -
 	    IEEE80211_TKIP_HEADER_LENGTH;
-	
+
 	/* Process header. */
 	uint8_t *src_addr =
@@ -312,5 +312,5 @@
 	    ieee80211_is_tods_frame(data_header->frame_ctrl) ?
 	    data_header->address3 : data_header->address1;
-	
+
 	ieee80211_michael_mic_block(&l, &r, uint32le_from_seq(dest_addr));
 	ieee80211_michael_mic_block(&l, &r,
@@ -319,14 +319,14 @@
 	ieee80211_michael_mic_block(&l, &r, uint32le_from_seq(src_addr + 2));
 	ieee80211_michael_mic_block(&l, &r, 0);
-	
+
 	/* Process data. */
 	size_t blocks = data_size / 4;
 	size_t pad = data_size % 4;
-	
+
 	for (size_t k = 0; k < blocks; k++) {
 		ieee80211_michael_mic_block(&l, &r,
 		    uint32le_from_seq(&data[k * 4]));
 	}
-	
+
 	/* Add padding. */
 	uint32_t value = 0x5a;
@@ -335,14 +335,14 @@
 		value |= data[blocks * 4 + (i - 1)];
 	}
-	
+
 	ieee80211_michael_mic_block(&l, &r, value);
 	ieee80211_michael_mic_block(&l, &r, 0);
-	
+
 	l = host2uint32_t_le(l);
 	r = host2uint32_t_le(r);
-	
+
 	memcpy(mic, &l, 4);
 	memcpy(mic + 4, &r, 4);
-	
+
 	return EOK;
 }
@@ -376,8 +376,8 @@
 	if (!sequence)
 		return ENOMEM;
-	
+
 	for (size_t i = 0; i < length; i++)
 		sequence[i] = (uint8_t) rand();
-	
+
 	return EOK;
 }
@@ -387,5 +387,5 @@
 	if ((!seq1) || (!seq2))
 		return NULL;
-	
+
 	for (size_t i = 0; i < size; i++) {
 		if (seq1[i] < seq2[i])
@@ -394,5 +394,5 @@
 			return seq2;
 	}
-	
+
 	return seq1;
 }
@@ -403,5 +403,5 @@
 	if (min == seq1)
 		return seq2;
-	
+
 	return seq1;
 }
Index: uspace/lib/math/arch/amd64/src/cos.S
===================================================================
--- uspace/lib/math/arch/amd64/src/cos.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/arch/amd64/src/cos.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,31 +35,31 @@
 	pushq %rbp
 	movq %rsp, %rbp
-	
+
 	# compute cosine (using red zone)
-	
+
 	movsd %xmm0, -8(%rbp)
 	fldl -8(%rbp)
-	
+
 	fcos
-	
+
 	# detect if source operand is out of range
-	
+
 	fnstsw %ax
 	andw $X87_STATUS_WORD_C2_MASK, %ax
 	jnz fix_range
-	
+
 		fstpl -8(%rbp)
 		movsd -8(%rbp), %xmm0
-		
+
 		leave
 		retq
-	
+
 	# argument reduction
-	
+
 	fix_range:
 		fldpi
 		fadd %st(0)
 		fxch %st(1)
-	
+
 	reduce:
 		fprem1
@@ -67,11 +67,11 @@
 		andw $X87_STATUS_WORD_C2_MASK, %ax
 		jnz reduce
-	
+
 	fstp %st(1)
 	fcos
-	
+
 	fstpl -8(%rbp)
 	movsd -8(%rbp), %xmm0
-	
+
 	leave
 	retq
Index: uspace/lib/math/arch/amd64/src/sin.S
===================================================================
--- uspace/lib/math/arch/amd64/src/sin.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/arch/amd64/src/sin.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,31 +35,31 @@
 	pushq %rbp
 	movq %rsp, %rbp
-	
+
 	# compute sine (using red zone)
-	
+
 	movsd %xmm0, -8(%rbp)
 	fldl -8(%rbp)
-	
+
 	fsin
-	
+
 	# detect if source operand is out of range
-	
+
 	fnstsw %ax
 	andw $X87_STATUS_WORD_C2_MASK, %ax
 	jnz fix_range
-	
+
 		fstpl -8(%rbp)
 		movsd -8(%rbp), %xmm0
-		
+
 		leave
 		retq
-	
+
 	# argument reduction
-	
+
 	fix_range:
 		fldpi
 		fadd %st(0)
 		fxch %st(1)
-	
+
 	reduce:
 		fprem1
@@ -67,11 +67,11 @@
 		andw $X87_STATUS_WORD_C2_MASK, %ax
 		jnz reduce
-	
+
 	fstp %st(1)
 	fsin
-	
+
 	fstpl -8(%rbp)
 	movsd -8(%rbp), %xmm0
-	
+
 	leave
 	retq
Index: uspace/lib/math/arch/amd64/src/trunc.S
===================================================================
--- uspace/lib/math/arch/amd64/src/trunc.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/arch/amd64/src/trunc.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -35,19 +35,19 @@
 	pushq %rbp
 	movq %rsp, %rbp
-	
+
 	# store x87 control word in the red zone
-	
+
 	fnstcw -8(%rbp)
 	movw -8(%rbp), %ax
-	
+
 	# set rounding control to truncate
 	# (no masking necessary for this flag)
-	
+
 	orw $X87_CONTROL_WORD_RC_TRUNCATE, %ax
 	movw %ax, -16(%rbp)
 	fldcw -16(%rbp)
-	
+
 	# truncate
-	
+
 	movsd %xmm0, -16(%rbp)
 	fldl -16(%rbp)
@@ -55,9 +55,9 @@
 	fstpl -16(%rbp)
 	movsd -16(%rbp), %xmm0
-	
+
 	# restore original control word
-	
+
 	fldcw -8(%rbp)
-	
+
 	leave
 	retq
Index: uspace/lib/math/arch/ia32/src/cos.S
===================================================================
--- uspace/lib/math/arch/ia32/src/cos.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/arch/ia32/src/cos.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -34,23 +34,23 @@
 FUNCTION_BEGIN(cos_f64)
 	# compute cosine (no stack frame)
-	
+
 	fldl 4(%esp)
 	fcos
-	
+
 	# detect if source operand is out of range
-	
+
 	fnstsw %ax
 	andw $X87_STATUS_WORD_C2_MASK, %ax
 	jnz fix_range
-	
+
 		ret
-	
+
 	# argument reduction
-	
+
 	fix_range:
 		fldpi
 		fadd %st(0)
 		fxch %st(1)
-	
+
 	reduce:
 		fprem1
@@ -58,8 +58,8 @@
 		andw $X87_STATUS_WORD_C2_MASK, %ax
 		jnz reduce
-	
+
 	fstp %st(1)
 	fcos
-	
+
 	ret
 FUNCTION_END(cos_f64)
Index: uspace/lib/math/arch/ia32/src/sin.S
===================================================================
--- uspace/lib/math/arch/ia32/src/sin.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/arch/ia32/src/sin.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -34,23 +34,23 @@
 FUNCTION_BEGIN(sin_f64)
 	# compute sine (no stack frame)
-	
+
 	fldl 4(%esp)
 	fsin
-	
+
 	# detect if source operand is out of range
-	
+
 	fnstsw %ax
 	andw $X87_STATUS_WORD_C2_MASK, %ax
 	jnz fix_range
-	
+
 		ret
-	
+
 	# argument reduction
-	
+
 	fix_range:
 		fldpi
 		fadd %st(0)
 		fxch %st(1)
-	
+
 	reduce:
 		fprem1
@@ -58,8 +58,8 @@
 		andw $X87_STATUS_WORD_C2_MASK, %ax
 		jnz reduce
-	
+
 	fstp %st(1)
 	fsin
-	
+
 	ret
 FUNCTION_END(sin_f64)
Index: uspace/lib/math/arch/ia32/src/trunc.S
===================================================================
--- uspace/lib/math/arch/ia32/src/trunc.S	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/arch/ia32/src/trunc.S	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -36,26 +36,26 @@
 	movl %esp, %ebp
 	subl $8, %esp
-	
+
 	# store x87 control word
-	
+
 	fnstcw -4(%ebp)
 	movw -4(%ebp), %ax
-	
+
 	# set rounding control to truncate
 	# (no masking necessary for this flag)
-	
+
 	orw $X87_CONTROL_WORD_RC_TRUNCATE, %ax
 	movw %ax, -8(%ebp)
 	fldcw -8(%ebp)
-	
+
 	# truncate
-	
+
 	fldl 8(%ebp)
 	frndint
-	
+
 	# restore original control word
-	
+
 	fldcw -4(%ebp)
-	
+
 	leave
 	ret
Index: uspace/lib/math/generic/asin.c
===================================================================
--- uspace/lib/math/generic/asin.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/asin.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,10 +49,10 @@
 {
 	float32_t aval;
-	
+
 	if (arg < -1.0 || arg > 1.0) {
 		errno = EDOM;
 		return FLOAT32_NAN;
 	}
-	
+
 	aval = 2.0 * atan_f32(arg / (1.0 + sqrt_f32(1.0 - arg*arg)));
 	if (arg > 0.0)
@@ -74,10 +74,10 @@
 {
 	float64_t aval;
-	
+
 	if (arg < -1.0 || arg > 1.0) {
 		errno = EDOM;
 		return FLOAT64_NAN;
 	}
-	
+
 	aval = 2.0 * atan_f64(arg / (1.0 + sqrt_f64(1.0 - arg*arg)));
 	if (arg > 0.0)
Index: uspace/lib/math/generic/atan.c
===================================================================
--- uspace/lib/math/generic/atan.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/atan.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,10 +54,10 @@
 	float32_t sum = 0;
 	float32_t a = arg / (1.0 + arg * arg);
-	
+
 	/*
 	 * atan(z) = sum(n=0, +inf) [ (2^2n) * (n!)^2 / (2n + 1)! *
 	 *    z^(2n+1) / (1 + z^2)^(n+1) ]
 	 */
-	
+
 	for (unsigned int n = 0; n < SERIES_DEGREE_32; n++) {
 		if (n > 0) {
@@ -68,5 +68,5 @@
 		a = a * 4.0 * arg * arg / (1.0 + arg * arg);
 	}
-	
+
 	return sum;
 }
@@ -86,10 +86,10 @@
 	float64_t sum = 0;
 	float64_t a = arg / (1.0 + arg * arg);
-	
+
 	/*
 	 * atan(z) = sum(n=0, +inf) [ (2^2n) * (n!)^2 / (2n + 1)! *
 	 *    z^(2n+1) / (1 + z^2)^(n+1) ]
 	 */
-	
+
 	for (unsigned int n = 0; n < SERIES_DEGREE_64; n++) {
 		if (n > 0) {
@@ -100,5 +100,5 @@
 		a = a * 4.0 * arg * arg / (1.0 + arg * arg);
 	}
-	
+
 	return sum;
 }
Index: uspace/lib/math/generic/ceil.c
===================================================================
--- uspace/lib/math/generic/ceil.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/ceil.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,8 +48,8 @@
 	float32_u v;
 	float32_u r;
-	
+
 	v.val = val;
 	t.val = trunc_f32(val);
-	
+
 	if (v.data.parts.sign == 1 || val == t.val) {
 		r = t;
@@ -57,5 +57,5 @@
 		r.val = t.val + 1.0;
 	}
-	
+
 	return r.val;
 }
@@ -72,8 +72,8 @@
 	float64_u v;
 	float64_u r;
-	
+
 	v.val = val;
 	t.val = trunc_f64(val);
-	
+
 	if (v.data.parts.sign == 1 || val == t.val) {
 		r = t;
@@ -81,5 +81,5 @@
 		r.val = t.val + 1.0;
 	}
-	
+
 	return r.val;
 }
Index: uspace/lib/math/generic/exp.c
===================================================================
--- uspace/lib/math/generic/exp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/exp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,10 +64,10 @@
 	float32_t ret = 1;
 	float32_t nom = 1;
-	
+
 	for (unsigned int i = 0; i < TAYLOR_DEGREE_32; i++) {
 		nom *= arg;
 		ret += nom / factorials[i];
 	}
-	
+
 	return ret;
 }
@@ -89,10 +89,10 @@
 	float64_t ret = 1;
 	float64_t nom = 1;
-	
+
 	for (unsigned int i = 0; i < TAYLOR_DEGREE_64; i++) {
 		nom *= arg;
 		ret += nom / factorials[i];
 	}
-	
+
 	return ret;
 }
Index: uspace/lib/math/generic/floor.c
===================================================================
--- uspace/lib/math/generic/floor.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/floor.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,8 +48,8 @@
 	float32_t t;
 	float32_u v;
-	
+
 	v.val = val;
 	t = trunc_f32(val);
-	
+
 	if (v.data.parts.sign == 0 || val == t)
 		return t;
@@ -69,8 +69,8 @@
 	float64_t t;
 	float64_u v;
-	
+
 	v.val = val;
 	t = trunc_f64(val);
-	
+
 	if (v.data.parts.sign == 0 || val == t)
 		return t;
Index: uspace/lib/math/generic/fmod.c
===================================================================
--- uspace/lib/math/generic/fmod.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/fmod.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,7 +55,7 @@
 {
 	// FIXME: replace with exact arithmetics
-	
+
 	float32_t quotient = trunc_f32(dividend / divisor);
-	
+
 	return (dividend - quotient * divisor);
 }
@@ -80,7 +80,7 @@
 {
 	// FIXME: replace with exact arithmetics
-	
+
 	float64_t quotient = trunc_f64(dividend / divisor);
-	
+
 	return (dividend - quotient * divisor);
 }
Index: uspace/lib/math/generic/log.c
===================================================================
--- uspace/lib/math/generic/log.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/log.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,8 +55,8 @@
 	float32_t ret = 0;
 	float32_t num = 1;
-	
+
 	for (unsigned int i = 1; i <= TAYLOR_DEGREE_32; i++) {
 		num *= arg;
-		
+
 		if ((i % 2) == 0)
 			ret += num / i;
@@ -64,5 +64,5 @@
 			ret -= num / i;
 	}
-	
+
 	return ret;
 }
@@ -83,8 +83,8 @@
 	float64_t ret = 0;
 	float64_t num = 1;
-	
+
 	for (unsigned int i = 1; i <= TAYLOR_DEGREE_64; i++) {
 		num *= arg;
-		
+
 		if ((i % 2) == 0)
 			ret += num / i;
@@ -92,5 +92,5 @@
 			ret -= num / i;
 	}
-	
+
 	return ret;
 }
@@ -107,5 +107,5 @@
 	float32_u m;
 	int e;
-	
+
 	m.val = arg;
 	/*
@@ -118,5 +118,5 @@
 	e = m.data.parts.exp - (FLOAT32_BIAS - 1);
 	m.data.parts.exp = FLOAT32_BIAS - 1;
-	
+
 	/*
 	 * arg = m * 2^e ; log(arg) = log(m) + log(2^e) =
@@ -137,7 +137,7 @@
 	float64_u m;
 	int e;
-	
+
 	m.val = arg;
-	
+
 	/*
 	 * Factor arg into m * 2^e where m has exponent -1,
@@ -149,5 +149,5 @@
 	e = m.data.parts.exp - (FLOAT64_BIAS - 1);
 	m.data.parts.exp = FLOAT64_BIAS - 1;
-	
+
 	/*
 	 * arg = m * 2^e ; log(arg) = log(m) + log(2^e) =
Index: uspace/lib/math/generic/trig.c
===================================================================
--- uspace/lib/math/generic/trig.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/trig.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,8 +64,8 @@
 	float32_t ret = 0;
 	float32_t nom = 1;
-	
+
 	for (unsigned int i = 0; i < TAYLOR_DEGREE_32; i++) {
 		nom *= arg;
-		
+
 		if ((i % 4) == 0)
 			ret += nom / factorials[i];
@@ -73,5 +73,5 @@
 			ret -= nom / factorials[i];
 	}
-	
+
 	return ret;
 }
@@ -93,8 +93,8 @@
 	float64_t ret = 0;
 	float64_t nom = 1;
-	
+
 	for (unsigned int i = 0; i < TAYLOR_DEGREE_64; i++) {
 		nom *= arg;
-		
+
 		if ((i % 4) == 0)
 			ret += nom / factorials[i];
@@ -102,5 +102,5 @@
 			ret -= nom / factorials[i];
 	}
-	
+
 	return ret;
 }
@@ -122,8 +122,8 @@
 	float32_t ret = 1;
 	float32_t nom = 1;
-	
+
 	for (unsigned int i = 0; i < TAYLOR_DEGREE_32; i++) {
 		nom *= arg;
-		
+
 		if ((i % 4) == 1)
 			ret -= nom / factorials[i];
@@ -131,5 +131,5 @@
 			ret += nom / factorials[i];
 	}
-	
+
 	return ret;
 }
@@ -151,8 +151,8 @@
 	float64_t ret = 1;
 	float64_t nom = 1;
-	
+
 	for (unsigned int i = 0; i < TAYLOR_DEGREE_64; i++) {
 		nom *= arg;
-		
+
 		if ((i % 4) == 1)
 			ret -= nom / factorials[i];
@@ -160,5 +160,5 @@
 			ret += nom / factorials[i];
 	}
-	
+
 	return ret;
 }
@@ -179,5 +179,5 @@
 {
 	unsigned int period = arg / (M_PI / 4);
-	
+
 	switch (period) {
 	case 0:
@@ -212,5 +212,5 @@
 {
 	unsigned int period = arg / (M_PI / 4);
-	
+
 	switch (period) {
 	case 0:
@@ -245,5 +245,5 @@
 {
 	unsigned int period = arg / (M_PI / 4);
-	
+
 	switch (period) {
 	case 0:
@@ -278,5 +278,5 @@
 {
 	unsigned int period = arg / (M_PI / 4);
-	
+
 	switch (period) {
 	case 0:
@@ -308,8 +308,8 @@
 {
 	float32_t base_arg = fmod_f32(arg, 2 * M_PI);
-	
+
 	if (base_arg < 0)
 		return -base_sin_32(-base_arg);
-	
+
 	return base_sin_32(base_arg);
 }
@@ -327,8 +327,8 @@
 {
 	float64_t base_arg = fmod_f64(arg, 2 * M_PI);
-	
+
 	if (base_arg < 0)
 		return -base_sin_64(-base_arg);
-	
+
 	return base_sin_64(base_arg);
 }
@@ -346,8 +346,8 @@
 {
 	float32_t base_arg = fmod_f32(arg, 2 * M_PI);
-	
+
 	if (base_arg < 0)
 		return base_cos_32(-base_arg);
-	
+
 	return base_cos_32(base_arg);
 }
@@ -365,8 +365,8 @@
 {
 	float64_t base_arg = fmod_f64(arg, 2 * M_PI);
-	
+
 	if (base_arg < 0)
 		return base_cos_64(-base_arg);
-	
+
 	return base_cos_64(base_arg);
 }
Index: uspace/lib/math/generic/trunc.c
===================================================================
--- uspace/lib/math/generic/trunc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/generic/trunc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,8 +56,8 @@
 	float32_u v;
 	int32_t exp;
-	
+
 	v.val = val;
 	exp = v.data.parts.exp - FLOAT32_BIAS;
-	
+
 	if (exp < 0) {
 		/* -1 < val < 1 => result is +0 or -0 */
@@ -69,5 +69,5 @@
 			// FIXME TODO
 		}
-		
+
 		/* All bits in val are relevant for the result */
 	} else {
@@ -75,5 +75,5 @@
 		v.data.parts.fraction &= ~(UINT32_C(0x007fffff) >> exp);
 	}
-	
+
 	return v.val;
 }
@@ -98,8 +98,8 @@
 	float64_u v;
 	int32_t exp;
-	
+
 	v.val = val;
 	exp = v.data.parts.exp - FLOAT64_BIAS;
-	
+
 	if (exp < 0) {
 		/* -1 < val < 1 => result is +0 or -0 */
@@ -111,5 +111,5 @@
 			// FIXME TODO
 		}
-		
+
 		/* All bits in val are relevant for the result */
 	} else {
@@ -117,5 +117,5 @@
 		v.data.parts.fraction &= ~(UINT64_C(0x000fffffffffffff) >> exp);
 	}
-	
+
 	return v.val;
 }
Index: uspace/lib/math/include/mathtypes.h
===================================================================
--- uspace/lib/math/include/mathtypes.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/math/include/mathtypes.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -91,5 +91,5 @@
 typedef union {
 	uint32_t bin;
-	
+
 	struct {
 		uint32_t sign : 1;
@@ -101,5 +101,5 @@
 typedef union {
 	uint64_t bin;
-	
+
 	struct {
 		uint64_t sign : 1;
@@ -114,5 +114,5 @@
 		uint32_t lo;
 	} bin __attribute__((packed));
-	
+
 	struct {
 		uint64_t padding : 16;
@@ -128,5 +128,5 @@
 		uint64_t lo;
 	} bin __attribute__((packed));
-	
+
 	struct {
 		uint64_t sign : 1;
@@ -141,5 +141,5 @@
 typedef union {
 	uint32_t bin;
-	
+
 	struct {
 		uint32_t fraction : 23;
@@ -151,5 +151,5 @@
 typedef union {
 	uint64_t bin;
-	
+
 	struct {
 		uint64_t fraction : 52;
@@ -164,5 +164,5 @@
 		uint64_t hi;
 	} bin __attribute__((packed));
-	
+
 	struct {
 		uint64_t fraction : 64;
@@ -178,5 +178,5 @@
 		uint64_t hi;
 	} bin __attribute__((packed));
-	
+
 	struct {
 		uint64_t frac_lo : 64;
Index: uspace/lib/nic/src/nic_addr_db.c
===================================================================
--- uspace/lib/nic/src/nic_addr_db.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/nic/src/nic_addr_db.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,5 +68,5 @@
 	addr_key_t *key = (addr_key_t*)key_arg;
 	nic_addr_entry_t *entry = member_to_inst(item, nic_addr_entry_t, link);
-	
+
 	return memcmp(entry->addr, key->addr, entry->len) == 0;
 }
@@ -75,9 +75,9 @@
 {
 	size_t hash = 0;
-	
+
 	for (size_t i = 0; i < len; ++i) {
 		hash = (hash << 5) ^ addr[i];
 	}
-	
+
 	return hash;
 }
@@ -98,5 +98,5 @@
 {
 	nic_addr_entry_t *entry = member_to_inst(item, nic_addr_entry_t, link);
-	
+
 	free(entry);
 }
@@ -123,11 +123,11 @@
 {
 	assert(db);
-	
+
 	if (addr_len > UCHAR_MAX)
 		return EINVAL;
-	
+
 	if (!hash_table_create(&db->set, 0, 0, &set_ops))
 		return ENOMEM;
-	
+
 	db->addr_len = addr_len;
 	return EOK;
@@ -176,8 +176,8 @@
 		.addr = addr
 	};
-	
+
 	if (hash_table_find(&db->set, &key))
 		return EEXIST;
-	
+
 	nic_addr_entry_t *entry = malloc(sizeof(nic_addr_entry_t) + db->addr_len - 1);
 	if (entry == NULL)
@@ -186,5 +186,5 @@
 	entry->len = (uint8_t) db->addr_len;
 	memcpy(entry->addr, addr, db->addr_len);
-	
+
 	hash_table_insert(&db->set, &entry->link);
 	return EOK;
@@ -203,10 +203,10 @@
 {
 	assert(db && addr);
-	
+
 	addr_key_t key = {
 		.len = db->addr_len,
 		.addr = addr
 	};
-	
+
 	if (hash_table_remove(&db->set, &key))
 		return EOK;
@@ -226,10 +226,10 @@
 {
 	assert(db && addr);
-	
+
 	addr_key_t key = {
 		.len = db->addr_len,
 		.addr = addr
 	};
-	
+
 	return 0 != hash_table_find(&db->set, &key);
 }
Index: uspace/lib/nic/src/nic_driver.c
===================================================================
--- uspace/lib/nic/src/nic_driver.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/nic/src/nic_driver.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,8 +68,8 @@
 	nic_globals.frame_cache_size = 0;
 	fibril_mutex_initialize(&nic_globals.lock);
-	
+
 	char buffer[256];
 	snprintf(buffer, 256, "drv/" DEVICE_CATEGORY_NIC "/%s", name);
-	
+
 	return EOK;
 }
@@ -247,10 +247,10 @@
 	ddf_dev_t *dev = nic_data->dev;
 	async_sess_t *parent_sess;
-	
+
 	/* Connect to the parent's driver. */
 	parent_sess = ddf_dev_parent_sess_get(dev);
 	if (parent_sess == NULL)
 		return EIO;
-	
+
 	return hw_res_get_list_parsed(parent_sess, resources, 0);
 }
@@ -277,5 +277,5 @@
 		if (!frame)
 			return NULL;
-		
+
 		link_initialize(&frame->link);
 	}
@@ -327,5 +327,5 @@
 	nic_frame_list_t *frames;
 	fibril_mutex_lock(&nic_globals.lock);
-	
+
 	if (nic_globals.frame_list_cache_size > 0) {
 		frames =
@@ -338,10 +338,10 @@
 	} else {
 		fibril_mutex_unlock(&nic_globals.lock);
-		
+
 		frames = malloc(sizeof (nic_frame_list_t));
 		if (frames != NULL)
 			list_initialize(frames);
 	}
-	
+
 	return frames;
 }
@@ -426,10 +426,10 @@
 {
 	assert(nic_data);
-	
+
 	if (address->address[0] & 1)
 		return EINVAL;
-	
+
 	fibril_rwlock_write_lock(&nic_data->main_lock);
-	
+
 	/* Notify NIL layer (and uppper) if bound - not in add_device */
 	if (nic_data->client_session != NULL) {
@@ -442,7 +442,7 @@
 		}
 	}
-	
+
 	fibril_rwlock_write_lock(&nic_data->rxc_lock);
-	
+
 	/*
 	 * The initial address (all zeroes) shouldn't be
@@ -452,5 +452,5 @@
 	errno_t rc = nic_rxc_set_addr(&nic_data->rx_control,
 	    &nic_data->mac, address);
-	
+
 	/* For the first time also record the default MAC */
 	if (MAC_IS_ZERO(nic_data->default_mac.address)) {
@@ -458,16 +458,16 @@
 		memcpy(&nic_data->default_mac, address, sizeof(nic_address_t));
 	}
-	
+
 	fibril_rwlock_write_unlock(&nic_data->rxc_lock);
-	
+
 	if ((rc != EOK) && (rc != ENOENT)) {
 		fibril_rwlock_write_unlock(&nic_data->main_lock);
 		return rc;
 	}
-	
+
 	memcpy(&nic_data->mac, address, sizeof(nic_address_t));
-	
+
 	fibril_rwlock_write_unlock(&nic_data->main_lock);
-	
+
 	return EOK;
 }
@@ -593,14 +593,14 @@
 	if (nic_data == NULL)
 		return NULL;
-	
+
 	/* Force zero to all uninitialized fields (e.g. added in future) */
 	if (nic_rxc_init(&nic_data->rx_control) != EOK) {
 		return NULL;
 	}
-	
+
 	if (nic_wol_virtues_init(&nic_data->wol_virtues) != EOK) {
 		return NULL;
 	}
-	
+
 	nic_data->dev = NULL;
 	nic_data->fun = NULL;
@@ -614,14 +614,14 @@
 	nic_data->on_stopping = NULL;
 	nic_data->specific = NULL;
-	
+
 	fibril_rwlock_initialize(&nic_data->main_lock);
 	fibril_rwlock_initialize(&nic_data->stats_lock);
 	fibril_rwlock_initialize(&nic_data->rxc_lock);
 	fibril_rwlock_initialize(&nic_data->wv_lock);
-	
+
 	memset(&nic_data->mac, 0, sizeof(nic_address_t));
 	memset(&nic_data->default_mac, 0, sizeof(nic_address_t));
 	memset(&nic_data->stats, 0, sizeof(nic_device_stats_t));
-	
+
 	return nic_data;
 }
@@ -642,7 +642,7 @@
 	if (!nic_data)
 		return NULL;
-	
+
 	nic_data->dev = device;
-	
+
 	return nic_data;
 }
@@ -943,5 +943,5 @@
 	if (count == 0)
 		return;
-	
+
 	fibril_rwlock_write_lock(&nic_data->stats_lock);
 	nic_data->stats.send_errors += count;
@@ -1079,10 +1079,10 @@
 			}
 			async_usleep(wait);
-			
+
 			/* Check if the period was not reset */
 			if (info->run != run)
 				break;
 		}
-		
+
 		/* Provide polling if the period finished */
 		fibril_rwlock_read_lock(&nic->main_lock);
Index: uspace/lib/nic/src/nic_impl.c
===================================================================
--- uspace/lib/nic/src/nic_impl.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/nic/src/nic_impl.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -195,5 +195,5 @@
 	nic_t *nic = nic_get_from_ddf_fun(fun);
 	fibril_rwlock_write_lock(&nic->main_lock);
-	
+
 	nic->client_session = async_callback_receive(EXCHANGE_SERIALIZE);
 	if (nic->client_session == NULL) {
@@ -201,5 +201,5 @@
 		return ENOMEM;
 	}
-	
+
 	fibril_rwlock_write_unlock(&nic->main_lock);
 	return EOK;
Index: uspace/lib/nic/src/nic_rx_control.c
===================================================================
--- uspace/lib/nic/src/nic_rx_control.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/nic/src/nic_rx_control.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -112,5 +112,5 @@
 			return rc;
 	}
-	
+
 	return nic_addr_db_insert(&rxc->unicast_addrs,
 	    (const uint8_t *) &curr_addr->address);
@@ -244,8 +244,8 @@
 	else if (mode != NIC_MULTICAST_LIST && address_list != NULL)
 		return EINVAL;
-	
+
 	if (rxc->multicast_mode == NIC_MULTICAST_LIST)
 		nic_addr_db_clear(&rxc->multicast_addrs);
-	
+
 	rxc->multicast_mode = mode;
 	size_t i;
@@ -439,5 +439,5 @@
 		}
 	}
-	
+
 	/* Blocked source addresses */
 	if (rxc->block_sources) {
@@ -445,5 +445,5 @@
 			return false;
 	}
-	
+
 	/* VLAN filtering */
 	if (!rxc->vlan_exact && rxc->vlan_mask != NULL) {
@@ -459,5 +459,5 @@
 		}
 	}
-	
+
 	return true;
 }
@@ -519,5 +519,5 @@
         }
     }
-	
+
     uint64_t one64 = 1;
     return one64 << (crc >> 26);
Index: uspace/lib/nic/src/nic_wol_virtues.c
===================================================================
--- uspace/lib/nic/src/nic_wol_virtues.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/nic/src/nic_wol_virtues.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 	wvs->table_operations.equal = 0;
 	wvs->table_operations.remove_callback = 0;
-	
+
 	if (!hash_table_create(&wvs->table, 0, 0, &wvs->table_operations)) {
 		return ENOMEM;
Index: uspace/lib/pcut/src/os/generic.c
===================================================================
--- uspace/lib/pcut/src/os/generic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/pcut/src/os/generic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -119,5 +119,5 @@
 	FORMAT_COMMAND(command, PCUT_COMMAND_LINE_BUFFER_SIZE - 1,
 		self_path, (test)->id, tempfile_name);
-	
+
 	PCUT_DEBUG("Will execute <%s> (temp file <%s>) with system().",
 		command, tempfile_name);
Index: uspace/lib/posix/include/posix/signal.h
===================================================================
--- uspace/lib/posix/include/posix/signal.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/include/posix/signal.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -129,8 +129,8 @@
 	SIGINT,
 	SIGTERM,
-	
+
 	/* Child Signal */
 	SIGCHLD,
-	
+
 	/* User signals */
 	SIGUSR1,
@@ -177,5 +177,5 @@
 	SIGTTIN,
 	SIGTTOU,
-	
+
 	_TOP_SIGNAL = SIGTTOU
 };
Index: uspace/lib/posix/src/dlfcn.c
===================================================================
--- uspace/lib/posix/src/dlfcn.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/dlfcn.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,5 +42,5 @@
 		fprintf(stderr, "dlopen() not implemented with non-zero flags (%s:%d), something will NOT work.\n", __FILE__, __LINE__);
 	}
-	
+
 	return __helenos_libc_dlopen(filename, 0);
 }
Index: uspace/lib/posix/src/fnmatch.c
===================================================================
--- uspace/lib/posix/src/fnmatch.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/fnmatch.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -301,5 +301,5 @@
 		return COLL_ELM_INVALID;
 	}
-	
+
 	*pattern = p + 1;
 	return _coll_elm_char(*p);
@@ -359,7 +359,7 @@
 		p++;
 	}
-	
+
 	coll_elm_t current_elm = COLL_ELM_INVALID;
-	
+
 	while (*p != ']') {
 		if (*p == '-' && *(p + 1) != ']' &&
@@ -374,5 +374,5 @@
 			continue;
 		}
-	
+
 		if (*p == '[' && *(p + 1) == ':') {
 			current_elm = COLL_ELM_INVALID;
@@ -380,5 +380,5 @@
 			continue;
 		}
-		
+
 		current_elm = _next_coll_elm(&p, flags);
 		if (current_elm == COLL_ELM_INVALID) {
@@ -460,5 +460,5 @@
 				return false;
 			}
-			
+
 			/* None of the above, match anything else. */
 			p++;
@@ -496,9 +496,9 @@
 
 	/* Entire sub-pattern matched. */
-	
+
 	/* postconditions */
 	assert(*p == '\0' || *p == '*');
 	assert(*p != '\0' || *s == '\0' || (leading_dir && *s == '/'));
-	
+
 	*pattern = p;
 	*string = s;
@@ -667,8 +667,8 @@
 	match("helen??", "helenos", 0);
 	match("****booo****", "booo", 0);
-	
+
 	match("hello[[:space:]]world", "hello world", 0);
 	nomatch("hello[[:alpha:]]world", "hello world", 0);
-	
+
 	match("/hoooo*", "/hooooooo/hooo", 0);
 	nomatch("/hoooo*", "/hooooooo/hooo", FNM_PATHNAME);
@@ -680,5 +680,5 @@
 	nomatch("/hoooo", "/hooooooo/hooo", FNM_LEADING_DIR);
 	match("/hooooooo", "/hooooooo/hooo", FNM_LEADING_DIR);
-	
+
 	match("*", "hell", 0);
 	match("*?", "hell", 0);
@@ -687,5 +687,5 @@
 	match("??*??", "hell", 0);
 	nomatch("???*??", "hell", 0);
-	
+
 	nomatch("", "hell", 0);
 	nomatch("?", "hell", 0);
@@ -693,5 +693,5 @@
 	nomatch("???", "hell", 0);
 	match("????", "hell", 0);
-	
+
 	match("*", "h.ello", FNM_PERIOD);
 	match("*", "h.ello", FNM_PATHNAME | FNM_PERIOD);
Index: uspace/lib/posix/src/pwd.c
===================================================================
--- uspace/lib/posix/src/pwd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/pwd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -120,10 +120,10 @@
 	assert(buffer != NULL);
 	assert(result != NULL);
-	
+
 	if (strcmp(name, "user") != 0) {
 		*result = NULL;
 		return 0;
 	}
-	
+
 	return getpwuid_r(0, pwd, buffer, bufsize, result);
 }
@@ -161,8 +161,8 @@
 	assert(buffer != NULL);
 	assert(result != NULL);
-	
+
 	static const char bf[] = { 'u', 's', 'e', 'r', '\0',
 	    '/', '\0', 'b', 'd', 's', 'h', '\0' };
-	
+
 	if (uid != 0) {
 		*result = NULL;
Index: uspace/lib/posix/src/signal.c
===================================================================
--- uspace/lib/posix/src/signal.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/signal.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -101,5 +101,5 @@
 		/* Commit suicide. */
 		task_kill(task_get_id());
-		
+
 		/* Should not be reached. */
 		abort();
@@ -223,5 +223,5 @@
 {
 	assert(set != NULL);
-	
+
 	return (*set & (1 << signo)) != 0;
 }
@@ -323,5 +323,5 @@
 	assert(signo >= 0 && signo <= _TOP_SIGNAL);
 	assert(siginfo != NULL);
-	
+
 	signal_queue_item *item = malloc(sizeof(signal_queue_item));
 	link_initialize(&(item->link));
@@ -384,11 +384,11 @@
 	link_t *iterator = _signal_queue.head.next;
 	link_t *next;
-	
+
 	while (iterator != &(_signal_queue).head) {
 		next = iterator->next;
-		
+
 		signal_queue_item *item =
 		    list_get_instance(iterator, signal_queue_item, link);
-		
+
 		if (!sigismember(&_signal_mask, item->signo) &&
 		    _signal_actions[item->signo].sa_handler != SIG_HOLD) {
@@ -397,5 +397,5 @@
 			free(item);
 		}
-		
+
 		iterator = next;
 	}
@@ -535,5 +535,5 @@
 		}
 	}
-	
+
 	_dequeue_unblocked_signals();
 
Index: uspace/lib/posix/src/stdio.c
===================================================================
--- uspace/lib/posix/src/stdio.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/stdio.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -277,5 +277,5 @@
 	size_t sz;
 	char buf[4];
-	
+
 	while (offset < size) {
 		sz = 0;
@@ -283,14 +283,14 @@
 			break;
 		}
-		
+
 		const int fildes = *(int *) fd;
 		size_t nwr;
 		if (vfs_write(fildes, &posix_pos[fildes], buf, sz, &nwr) != EOK)
 			break;
-		
+
 		chars++;
 		offset += sizeof(wchar_t);
 	}
-	
+
 	return chars;
 }
@@ -311,5 +311,5 @@
 		.data = &fildes
 	};
-	
+
 	return printf_core(format, &spec, ap);
 }
@@ -490,18 +490,18 @@
 {
 	assert(L_tmpnam >= strlen("/tmp/tnXXXXXX"));
-	
+
 	static char buffer[L_tmpnam + 1];
 	if (s == NULL) {
 		s = buffer;
 	}
-	
+
 	strcpy(s, "/tmp/tnXXXXXX");
 	mktemp(s);
-	
+
 	if (*s == '\0') {
 		/* Errno set by mktemp(). */
 		return NULL;
 	}
-	
+
 	return s;
 }
@@ -518,23 +518,23 @@
 	/* Sequence number of the filename. */
 	static int seq = 0;
-	
+
 	size_t dir_len = strlen(dir);
 	if (dir[dir_len - 1] == '/') {
 		dir_len--;
 	}
-	
+
 	size_t pfx_len = strlen(pfx);
 	if (pfx_len > 5) {
 		pfx_len = 5;
 	}
-	
+
 	char *result = malloc(dir_len + /* slash*/ 1 +
 	    pfx_len + /* three-digit seq */ 3 + /* .tmp */ 4 + /* nul */ 1);
-	
+
 	if (result == NULL) {
 		errno = ENOMEM;
 		return NULL;
 	}
-	
+
 	char *res_ptr = result;
 	strncpy(res_ptr, dir, dir_len);
@@ -542,8 +542,8 @@
 	strncpy(res_ptr, pfx, pfx_len);
 	res_ptr += pfx_len;
-	
+
 	for (; seq < 1000; ++seq) {
 		snprintf(res_ptr, 8, "%03d.tmp", seq);
-		
+
 		int orig_errno = errno;
 		errno = EOK;
@@ -559,5 +559,5 @@
 		}
 	}
-	
+
 	if (seq == 1000) {
 		free(result);
@@ -565,5 +565,5 @@
 		return NULL;
 	}
-	
+
 	return result;
 }
@@ -585,5 +585,5 @@
 		return NULL;
 	}
-	
+
 	/* Unlink the created file, so that it's removed on close(). */
 	unlink(filename);
Index: uspace/lib/posix/src/stdio/scanf.c
===================================================================
--- uspace/lib/posix/src/stdio/scanf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/stdio/scanf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -459,5 +459,5 @@
 {
 	assert(modifier);
-	
+
 	switch (c) {
 	case 'S':
@@ -880,5 +880,5 @@
 			} else if (is_seq_conv(*fmt, &length_mod)) {
 				/* Character sequence conversion. */
-				
+
 				/* Check sanity of optional parts of conversion specifier. */
 				if (length_mod != LMOD_NONE &&
@@ -1074,5 +1074,5 @@
 					++converted_cnt;
 				}
-				
+
 				converting = false;
 				/* Format string pointer already incremented. */
@@ -1102,5 +1102,5 @@
 				break;
 			}
-			
+
 		} else {
 
@@ -1152,5 +1152,5 @@
 				}
 			}
-			
+
 		}
 
Index: uspace/lib/posix/src/stdlib.c
===================================================================
--- uspace/lib/posix/src/stdlib.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/stdlib.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -165,5 +165,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -225,12 +225,12 @@
 		assert(resolved == NULL);
 	#endif
-	
+
 	if (name == NULL) {
 		errno = EINVAL;
 		return NULL;
 	}
-	
+
 	// TODO: symlink resolution
-	
+
 	/* Function absolutize is implemented in libc and declared in vfs.h.
 	 * No more processing is required as HelenOS doesn't have symlinks
@@ -239,5 +239,5 @@
 	 */
 	char* absolute = vfs_absolutize(name, NULL);
-	
+
 	if (absolute == NULL) {
 		/* POSIX requires some specific errnos to be set
@@ -248,5 +248,5 @@
 		return NULL;
 	}
-	
+
 	if (resolved == NULL) {
 		return absolute;
@@ -309,7 +309,7 @@
 {
 	int fd = -1;
-	
+
 	char *tptr = tmpl + strlen(tmpl) - 6;
-	
+
 	while (fd < 0) {
 		if (*mktemp(tmpl) == '\0') {
@@ -317,7 +317,7 @@
 			return -1;
 		}
-		
+
 		fd = open(tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
-		
+
 		if (fd == -1) {
 			/* Restore template to it's original state. */
@@ -325,5 +325,5 @@
 		}
 	}
-	
+
 	return fd;
 }
@@ -345,5 +345,5 @@
 		return tmpl;
 	}
-	
+
 	char *tptr = tmpl + tmpl_len - 6;
 	if (strcmp(tptr, "XXXXXX") != 0) {
@@ -352,10 +352,10 @@
 		return tmpl;
 	}
-	
+
 	static int seq = 0;
-	
+
 	for (; seq < 1000000; ++seq) {
 		snprintf(tptr, 7, "%06d", seq);
-		
+
 		int orig_errno = errno;
 		errno = 0;
@@ -372,5 +372,5 @@
 		}
 	}
-	
+
 	if (seq == 10000000) {
 		errno = EEXIST;
@@ -378,5 +378,5 @@
 		return tmpl;
 	}
-	
+
 	return tmpl;
 }
@@ -392,20 +392,20 @@
 {
 	assert(nelem > 0);
-	
+
 	size_t count;
 	load_t *loads = stats_get_load(&count);
-	
+
 	if (loads == NULL) {
 		return -1;
 	}
-	
+
 	if (((size_t) nelem) < count) {
 		count = nelem;
 	}
-	
+
 	for (size_t i = 0; i < count; ++i) {
 		loadavg[i] = (double) loads[i];
 	}
-	
+
 	free(loads);
 	return count;
Index: uspace/lib/posix/src/stdlib/strtold.c
===================================================================
--- uspace/lib/posix/src/stdlib/strtold.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/stdlib/strtold.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -141,5 +141,5 @@
 		return mant;
 	}
-	
+
 	if (abs(exp) >> (MAX_POW5 + 1) != 0) {
 		/* Too large exponent. */
@@ -147,5 +147,5 @@
 		return exp < 0 ? LDBL_MIN : HUGE_VALL;
 	}
-	
+
 	if (exp < 0) {
 		exp = abs(exp);
@@ -175,5 +175,5 @@
 		}
 	}
-	
+
 	return mant;
 }
@@ -191,10 +191,10 @@
 		return mant;
 	}
-	
+
 	if (exp > LDBL_MAX_EXP || exp < LDBL_MIN_EXP) {
 		errno = ERANGE;
 		return exp < 0 ? LDBL_MIN : HUGE_VALL;
 	}
-	
+
 	if (exp < 0) {
 		exp = abs(exp);
@@ -220,5 +220,5 @@
 		}
 	}
-	
+
 	return mant;
 }
@@ -242,17 +242,17 @@
 	assert(sptr != NULL);
 	assert (*sptr != NULL);
-	
+
 	const int DEC_BASE = 10;
 	const char DECIMAL_POINT = '.';
 	const char EXPONENT_MARK = 'e';
-	
+
 	const char *str = *sptr;
 	long double significand = 0;
 	long exponent = 0;
-	
+
 	/* number of digits parsed so far */
 	int parsed_digits = 0;
 	bool after_decimal = false;
-	
+
 	while (isdigit(*str) || (!after_decimal && *str == DECIMAL_POINT)) {
 		if (*str == DECIMAL_POINT) {
@@ -261,5 +261,5 @@
 			continue;
 		}
-		
+
 		if (parsed_digits == 0 && *str == '0') {
 			/* Nothing, just skip leading zeros. */
@@ -270,20 +270,20 @@
 			exponent++;
 		}
-		
+
 		if (after_decimal) {
 			/* Decrement exponent if we are parsing the fractional part. */
 			exponent--;
 		}
-		
+
 		str++;
 	}
-	
+
 	/* exponent */
 	if (tolower(*str) == EXPONENT_MARK) {
 		str++;
-		
+
 		/* Returns MIN/MAX value on error, which is ok. */
 		long exp = strtol(str, (char **) &str, DEC_BASE);
-		
+
 		if (exponent > 0 && exp > LONG_MAX - exponent) {
 			exponent = LONG_MAX;
@@ -294,7 +294,7 @@
 		}
 	}
-	
+
 	*sptr = str;
-	
+
 	/* Return multiplied by a power of ten. */
 	return mul_pow2(mul_pow5(significand, exponent), exponent);
@@ -330,18 +330,18 @@
 {
 	assert(sptr != NULL && *sptr != NULL);
-	
+
 	const int DEC_BASE = 10;
 	const int HEX_BASE = 16;
 	const char DECIMAL_POINT = '.';
 	const char EXPONENT_MARK = 'p';
-	
+
 	const char *str = *sptr;
 	long double significand = 0;
 	long exponent = 0;
-	
+
 	/* number of bits parsed so far */
 	int parsed_bits = 0;
 	bool after_decimal = false;
-	
+
 	while (isxdigit(*str) || (!after_decimal && *str == DECIMAL_POINT)) {
 		if (*str == DECIMAL_POINT) {
@@ -350,5 +350,5 @@
 			continue;
 		}
-		
+
 		if (parsed_bits == 0 && *str == '0') {
 			/* Nothing, just skip leading zeros. */
@@ -359,19 +359,19 @@
 			exponent += 4;
 		}
-		
+
 		if (after_decimal) {
 			exponent -= 4;
 		}
-		
+
 		str++;
 	}
-	
+
 	/* exponent */
 	if (tolower(*str) == EXPONENT_MARK) {
 		str++;
-		
+
 		/* Returns MIN/MAX value on error, which is ok. */
 		long exp = strtol(str, (char **) &str, DEC_BASE);
-		
+
 		if (exponent > 0 && exp > LONG_MAX - exponent) {
 			exponent = LONG_MAX;
@@ -382,7 +382,7 @@
 		}
 	}
-	
+
 	*sptr = str;
-	
+
 	/* Return multiplied by a power of two. */
 	return mul_pow2(significand, exponent);
@@ -407,17 +407,17 @@
 {
 	assert(nptr != NULL);
-	
+
 	const int RADIX = '.';
-	
+
 	/* minus sign */
 	bool negative = false;
 	/* current position in the string */
 	int i = 0;
-	
+
 	/* skip whitespace */
 	while (isspace(nptr[i])) {
 		i++;
 	}
-	
+
 	/* parse sign */
 	switch (nptr[i]) {
@@ -428,10 +428,10 @@
 		i++;
 	}
-	
+
 	/* check for NaN */
 	if (strncasecmp(&nptr[i], "nan", 3) == 0) {
 		// FIXME: return NaN
 		// TODO: handle the parenthesised case
-		
+
 		if (endptr != NULL) {
 			*endptr = (char *) nptr;
@@ -440,5 +440,5 @@
 		return 0;
 	}
-	
+
 	/* check for Infinity */
 	if (strncasecmp(&nptr[i], "inf", 3) == 0) {
@@ -447,5 +447,5 @@
 			i += 5;
 		}
-		
+
 		if (endptr != NULL) {
 			*endptr = (char *) &nptr[i];
@@ -459,5 +459,5 @@
 	    (nptr[i + 2] == RADIX && isxdigit(nptr[i + 3])))) {
 		i += 2;
-		
+
 		const char *ptr = &nptr[i];
 		/* this call sets errno if appropriate. */
@@ -468,5 +468,5 @@
 		return negative ? -result : result;
 	}
-	
+
 	/* check for a decimal number */
 	if (isdigit(nptr[i]) || (nptr[i] == RADIX && isdigit(nptr[i + 1]))) {
@@ -479,5 +479,5 @@
 		return negative ? -result : result;
 	}
-	
+
 	/* nothing to parse */
 	if (endptr != NULL) {
Index: uspace/lib/posix/src/string.c
===================================================================
--- uspace/lib/posix/src/string.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/string.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 		++s1;
 	}
-	
+
 	return (char *) s1;
 }
@@ -107,5 +107,5 @@
 	for (size_t i = 0; ; ++i) {
 		dest[i] = src[i];
-		
+
 		if (src[i] == '\0') {
 			/* pointer to the terminating nul character */
@@ -113,5 +113,5 @@
 		}
 	}
-	
+
 	/* unreachable */
 	return NULL;
@@ -133,5 +133,5 @@
 	for (size_t i = 0; i < n; ++i) {
 		dest[i] = src[i];
-	
+
 		/* the standard requires that nul characters
 		 * are appended to the length of n, in case src is shorter
@@ -145,5 +145,5 @@
 		}
 	}
-	
+
 	return &dest[n];
 }
@@ -197,11 +197,11 @@
 	assert(dest != NULL);
 	assert(src != NULL);
-	
+
 	unsigned char* bdest = dest;
 	const unsigned char* bsrc = src;
-	
+
 	for (size_t i = 0; i < n; ++i) {
 		bdest[i] = bsrc[i];
-	
+
 		if (bsrc[i] == (unsigned char) c) {
 			/* pointer to the next byte */
@@ -209,5 +209,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -301,7 +301,7 @@
 {
 	assert(mem != NULL);
-	
+
 	const unsigned char *s = mem;
-	
+
 	for (size_t i = 0; i < n; ++i) {
 		if (s[i] == (unsigned char) c) {
@@ -323,5 +323,5 @@
 {
 	assert(s != NULL);
-	
+
 	char *res = gnu_strchrnul(s, c);
 	return (*res == c) ? res : NULL;
@@ -339,7 +339,7 @@
 {
 	assert(s != NULL);
-	
+
 	const char *ptr = strchr(s, '\0');
-	
+
 	/* the same as in strchr, except it loops in reverse direction */
 	while (*ptr != (char) c) {
@@ -365,9 +365,9 @@
 {
 	assert(s != NULL);
-	
+
 	while (*s != c && *s != '\0') {
 		s++;
 	}
-	
+
 	return (char *) s;
 }
@@ -439,20 +439,20 @@
 	assert(haystack != NULL);
 	assert(needle != NULL);
-	
+
 	/* Special case - needle is an empty string. */
 	if (needle[0] == '\0') {
 		return (char *) haystack;
 	}
-	
+
 	/* Preprocess needle. */
 	size_t nlen = strlen(needle);
 	size_t prefix_table[nlen + 1];
-	
+
 	{
 		size_t i = 0;
 		ssize_t j = -1;
-		
+
 		prefix_table[i] = j;
-		
+
 		while (i < nlen) {
 			while (j >= 0 && needle[i] != needle[j]) {
@@ -463,16 +463,16 @@
 		}
 	}
-	
+
 	/* Search needle using the precomputed table. */
 	size_t npos = 0;
-	
+
 	for (size_t hpos = 0; haystack[hpos] != '\0'; ++hpos) {
 		while (npos != 0 && haystack[hpos] != needle[npos]) {
 			npos = prefix_table[npos];
 		}
-		
+
 		if (haystack[hpos] == needle[npos]) {
 			npos++;
-			
+
 			if (npos == nlen) {
 				return (char *) (haystack + hpos - nlen + 1);
@@ -480,5 +480,5 @@
 		}
 	}
-	
+
 	return NULL;
 }
@@ -604,7 +604,7 @@
 {
 	assert(buf != NULL);
-	
+
 	char *errstr = strerror(errnum);
-	
+
 	if (strlen(errstr) + 1 > bufsz) {
 		return ERANGE;
@@ -625,5 +625,5 @@
 {
 	assert(s != NULL);
-	
+
 	return (size_t) (strchr(s, '\0') - s);
 }
@@ -639,12 +639,12 @@
 {
 	assert(s != NULL);
-	
+
 	for (size_t sz = 0; sz < n; ++sz) {
-		
+
 		if (s[sz] == '\0') {
 			return sz;
 		}
 	}
-	
+
 	return n;
 }
Index: uspace/lib/posix/src/strings.c
===================================================================
--- uspace/lib/posix/src/strings.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/strings.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -110,10 +110,10 @@
 			return cmp;
 		}
-		
+
 		if (s1[i] == 0) {
 			return 0;
 		}
 	}
-	
+
 	return 0;
 }
Index: uspace/lib/posix/src/sys/mman.c
===================================================================
--- uspace/lib/posix/src/sys/mman.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/sys/mman.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,11 +44,11 @@
 	if (!start)
 		start = AS_AREA_ANY;
-	
+
 //	if (!((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE)))
 //		return MAP_FAILED;
-	
+
 	if (!(flags & MAP_ANONYMOUS))
 		return MAP_FAILED;
-	
+
 	return as_area_create(start, length, prot, AS_AREA_UNPAGED);
 }
Index: uspace/lib/posix/src/sys/stat.c
===================================================================
--- uspace/lib/posix/src/sys/stat.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/sys/stat.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,8 +52,8 @@
 {
 	memset(dest, 0, sizeof(struct stat));
-	
+
 	dest->st_dev = src->service;
 	dest->st_ino = src->index;
-	
+
 	/* HelenOS doesn't support permissions, so we set them all */
 	dest->st_mode = S_IRWXU | S_IRWXG | S_IRWXO;
@@ -64,5 +64,5 @@
 		dest->st_mode |= S_IFDIR;
 	}
-	
+
 	dest->st_nlink = src->lnkcnt;
 	dest->st_size = src->size;
Index: uspace/lib/posix/src/sys/wait.c
===================================================================
--- uspace/lib/posix/src/sys/wait.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/posix/src/sys/wait.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -95,13 +95,13 @@
 	assert(stat_ptr != NULL);
 	assert(options == 0 /* None of the options are supported. */);
-	
+
 	task_exit_t texit;
 	int retval;
-	
+
 	if (failed(task_wait_task_id((task_id_t) pid, &texit, &retval))) {
 		/* Unable to retrieve status. */
 		return (pid_t) -1;
 	}
-	
+
 	if (texit == TASK_EXIT_NORMAL) {
 		// FIXME: relies on application not returning this value
@@ -112,5 +112,5 @@
 		*stat_ptr = INT_MIN;
 	}
-	
+
 	return pid;
 }
Index: uspace/lib/softfloat/add.c
===================================================================
--- uspace/lib/softfloat/add.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softfloat/add.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,5 +49,5 @@
 	int expdiff;
 	uint32_t exp1, exp2, frac1, frac2;
-	
+
 	expdiff = a.parts.exp - b.parts.exp;
 	if (expdiff < 0) {
@@ -59,9 +59,9 @@
 			return b;
 		}
-		
+
 		if (b.parts.exp == FLOAT32_MAX_EXPONENT) {
 			return b;
 		}
-		
+
 		frac1 = b.parts.fraction;
 		exp1 = b.parts.exp;
@@ -76,9 +76,9 @@
 			return (is_float32_nan(a) ? a : b);
 		}
-		
+
 		if (a.parts.exp == FLOAT32_MAX_EXPONENT) {
 			return a;
 		}
-		
+
 		frac1 = a.parts.fraction;
 		exp1 = a.parts.exp;
@@ -86,5 +86,5 @@
 		exp2 = b.parts.exp;
 	}
-	
+
 	if (exp1 == 0) {
 		/* both are denormalized */
@@ -97,5 +97,5 @@
 		return a;
 	}
-	
+
 	frac1 |= FLOAT32_HIDDEN_BIT_MASK; /* add hidden bit */
 
@@ -107,9 +107,9 @@
 		frac2 |= FLOAT32_HIDDEN_BIT_MASK;
 	}
-	
+
 	/* create some space for rounding */
 	frac1 <<= 6;
 	frac2 <<= 6;
-	
+
 	if (expdiff < (FLOAT32_FRACTION_SIZE + 2)) {
 		frac2 >>= expdiff;
@@ -120,13 +120,13 @@
 		return a;
 	}
-	
+
 	if (frac1 & (FLOAT32_HIDDEN_BIT_MASK << 7)) {
 		++exp1;
 		frac1 >>= 1;
 	}
-	
+
 	/* rounding - if first bit after fraction is set then round up */
 	frac1 += (0x1 << 5);
-	
+
 	if (frac1 & (FLOAT32_HIDDEN_BIT_MASK << 7)) {
 		/* rounding overflow */
@@ -134,5 +134,5 @@
 		frac1 >>= 1;
 	}
-	
+
 	if ((exp1 == FLOAT32_MAX_EXPONENT) || (exp2 > exp1)) {
 		/* overflow - set infinity as result */
@@ -141,7 +141,7 @@
 		return a;
 	}
-	
+
 	a.parts.exp = exp1;
-	
+
 	/* Clear hidden bit and shift */
 	a.parts.fraction = ((frac1 >> 6) & (~FLOAT32_HIDDEN_BIT_MASK));
@@ -160,5 +160,5 @@
 	uint32_t exp1, exp2;
 	uint64_t frac1, frac2;
-	
+
 	expdiff = ((int) a.parts.exp) - b.parts.exp;
 	if (expdiff < 0) {
@@ -170,10 +170,10 @@
 			return b;
 		}
-		
+
 		/* b is infinity and a not */
 		if (b.parts.exp == FLOAT64_MAX_EXPONENT) {
 			return b;
 		}
-		
+
 		frac1 = b.parts.fraction;
 		exp1 = b.parts.exp;
@@ -188,10 +188,10 @@
 			return a;
 		}
-		
+
 		/* a is infinity and b not */
 		if (a.parts.exp == FLOAT64_MAX_EXPONENT) {
 			return a;
 		}
-		
+
 		frac1 = a.parts.fraction;
 		exp1 = a.parts.exp;
@@ -199,5 +199,5 @@
 		exp2 = b.parts.exp;
 	}
-	
+
 	if (exp1 == 0) {
 		/* both are denormalized */
@@ -210,5 +210,5 @@
 		return a;
 	}
-	
+
 	/* add hidden bit - frac1 is sure not denormalized */
 	frac1 |= FLOAT64_HIDDEN_BIT_MASK;
@@ -222,9 +222,9 @@
 		frac2 |= FLOAT64_HIDDEN_BIT_MASK;
 	}
-	
+
 	/* create some space for rounding */
 	frac1 <<= 6;
 	frac2 <<= 6;
-	
+
 	if (expdiff < (FLOAT64_FRACTION_SIZE + 2)) {
 		frac2 >>= expdiff;
@@ -235,13 +235,13 @@
 		return a;
 	}
-	
+
 	if (frac1 & (FLOAT64_HIDDEN_BIT_MASK << 7)) {
 		++exp1;
 		frac1 >>= 1;
 	}
-	
+
 	/* rounding - if first bit after fraction is set then round up */
 	frac1 += (0x1 << 5);
-	
+
 	if (frac1 & (FLOAT64_HIDDEN_BIT_MASK << 7)) {
 		/* rounding overflow */
@@ -249,5 +249,5 @@
 		frac1 >>= 1;
 	}
-	
+
 	if ((exp1 == FLOAT64_MAX_EXPONENT) || (exp2 > exp1)) {
 		/* overflow - set infinity as result */
@@ -256,5 +256,5 @@
 		return a;
 	}
-	
+
 	a.parts.exp = exp1;
 	/* Clear hidden bit and shift */
@@ -400,5 +400,5 @@
 
 	a.parts.exp = exp1;
-	
+
 	/* Clear hidden bit and shift */
 	rshift128(frac1_hi, frac1_lo, 6, &frac1_hi, &frac1_lo);
@@ -419,10 +419,10 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	float32_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		if (ua.data.parts.sign) {
@@ -435,5 +435,5 @@
 	} else
 		res.data = add_float32(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -443,10 +443,10 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	float32_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		if (ua.data.parts.sign) {
@@ -459,5 +459,5 @@
 	} else
 		res.data = add_float32(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -471,10 +471,10 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	float64_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		if (ua.data.parts.sign) {
@@ -487,5 +487,5 @@
 	} else
 		res.data = add_float64(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -495,10 +495,10 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	float64_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		if (ua.data.parts.sign) {
@@ -511,5 +511,5 @@
 	} else
 		res.data = add_float64(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -523,10 +523,10 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	float128_u ub;
 	ub.val = b;
-	
+
 	float128_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		if (ua.data.parts.sign) {
@@ -539,5 +539,5 @@
 	} else
 		res.data = add_float128(ua.data, ub.data);
-	
+
 	return res.val;
 }
Index: uspace/lib/softfloat/common.c
===================================================================
--- uspace/lib/softfloat/common.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softfloat/common.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -78,5 +78,5 @@
 		/* TODO: fix underflow */
 	}
-	
+
 	if ((cexp < 0) || (cexp == 0 &&
 	    (!(cfrac & (FLOAT64_HIDDEN_BIT_MASK << (64 - FLOAT64_FRACTION_SIZE - 1)))))) {
@@ -87,12 +87,12 @@
 			return result;
 		}
-		
+
 		while (cexp < 0) {
 			cexp++;
 			cfrac >>= 1;
 		}
-	
+
 		cfrac += (0x1 << (64 - FLOAT64_FRACTION_SIZE - 3));
-		
+
 		if (!(cfrac & (FLOAT64_HIDDEN_BIT_MASK << (64 - FLOAT64_FRACTION_SIZE - 1)))) {
 			result.parts.fraction =
@@ -103,5 +103,5 @@
 		cfrac += (0x1 << (64 - FLOAT64_FRACTION_SIZE - 3));
 	}
-	
+
 	++cexp;
 
@@ -120,8 +120,8 @@
 
 	result.parts.exp = (uint32_t) cexp;
-	
+
 	result.parts.fraction =
 	    ((cfrac >> (64 - FLOAT64_FRACTION_SIZE - 2)) & (~FLOAT64_HIDDEN_BIT_MASK));
-	
+
 	return result;
 }
@@ -289,5 +289,5 @@
 	/* rounding - if first bit after fraction is set then round up */
 	(*fraction) += (0x1 << (32 - FLOAT32_FRACTION_SIZE - 3));
-	
+
 	if ((*fraction) &
 	    (FLOAT32_HIDDEN_BIT_MASK << (32 - FLOAT32_FRACTION_SIZE - 1))) {
@@ -296,5 +296,5 @@
 		(*fraction) >>= 1;
 	}
-	
+
 	if (((*exp) >= FLOAT32_MAX_EXPONENT) || ((*exp) < 0)) {
 		/* overflow - set infinity as result */
@@ -322,5 +322,5 @@
 	 */
 	(*fraction) += (0x1 << (64 - FLOAT64_FRACTION_SIZE - 3));
-	
+
 	/* See if there was a carry to bit 63. */
 	if ((*fraction) &
@@ -330,5 +330,5 @@
 		(*fraction) >>= 1;
 	}
-	
+
 	if (((*exp) >= FLOAT64_MAX_EXPONENT) || ((*exp) < 0)) {
 		/* overflow - set infinity as result */
@@ -677,5 +677,5 @@
 	mul64(b, result, &tmp_hi, &tmp_lo);
 	sub128(a_hi, a_lo, tmp_hi, tmp_lo, &rem_hi, &rem_lo);
-	
+
 	while ((int64_t) rem_hi < 0) {
 		result -= 0x1ll << 32;
Index: uspace/lib/softfloat/comparison.c
===================================================================
--- uspace/lib/softfloat/comparison.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softfloat/comparison.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -190,8 +190,8 @@
 	uint64_t tmp_hi;
 	uint64_t tmp_lo;
-	
+
 	and128(ld.bin.hi, ld.bin.lo,
 	    0x7FFFFFFFFFFFFFFFll, 0xFFFFFFFFFFFFFFFFll, &tmp_hi, &tmp_lo);
-	
+
 	return eq128(tmp_hi, tmp_lo, 0x0ll, 0x0ll);
 }
@@ -236,5 +236,5 @@
 	uint64_t tmp_hi;
 	uint64_t tmp_lo;
-	
+
 	/* both are zeros (with any sign) */
 	or128(a.bin.hi, a.bin.lo,
@@ -243,8 +243,8 @@
 	    0x7FFFFFFFFFFFFFFFll, 0xFFFFFFFFFFFFFFFFll, &tmp_hi, &tmp_lo);
 	int both_zero = eq128(tmp_hi, tmp_lo, 0x0ll, 0x0ll);
-	
+
 	/* a equals to b */
 	int are_equal = eq128(a.bin.hi, a.bin.lo, b.bin.hi, b.bin.lo);
-	
+
 	return are_equal || both_zero;
 }
@@ -263,10 +263,10 @@
 		return 0;
 	}
-	
+
 	if ((a.parts.sign) && (b.parts.sign)) {
 		/* if both are negative, smaller is that with greater binary value */
 		return (a.bin > b.bin);
 	}
-	
+
 	/*
 	 * lets negate signs - now will be positive numbers always
@@ -292,10 +292,10 @@
 		return 0;
 	}
-	
+
 	if ((a.parts.sign) && (b.parts.sign)) {
 		/* if both are negative, smaller is that with greater binary value */
 		return (a.bin > b.bin);
 	}
-	
+
 	/*
 	 * lets negate signs - now will be positive numbers always
@@ -319,5 +319,5 @@
 	uint64_t tmp_hi;
 	uint64_t tmp_lo;
-	
+
 	or128(a.bin.hi, a.bin.lo,
 	    b.bin.hi, b.bin.lo, &tmp_hi, &tmp_lo);
@@ -328,10 +328,10 @@
 		return 0;
 	}
-	
+
 	if ((a.parts.sign) && (b.parts.sign)) {
 		/* if both are negative, smaller is that with greater binary value */
 		return lt128(b.bin.hi, b.bin.lo, a.bin.hi, a.bin.lo);
 	}
-	
+
 	/*
 	 * lets negate signs - now will be positive numbers always
@@ -357,10 +357,10 @@
 		return 0;
 	}
-	
+
 	if ((a.parts.sign) && (b.parts.sign)) {
 		/* if both are negative, greater is that with smaller binary value */
 		return (a.bin < b.bin);
 	}
-	
+
 	/*
 	 * lets negate signs - now will be positive numbers always
@@ -386,10 +386,10 @@
 		return 0;
 	}
-	
+
 	if ((a.parts.sign) && (b.parts.sign)) {
 		/* if both are negative, greater is that with smaller binary value */
 		return (a.bin < b.bin);
 	}
-	
+
 	/*
 	 * lets negate signs - now will be positive numbers always
@@ -413,5 +413,5 @@
 	uint64_t tmp_hi;
 	uint64_t tmp_lo;
-	
+
 	or128(a.bin.hi, a.bin.lo,
 	    b.bin.hi, b.bin.lo, &tmp_hi, &tmp_lo);
@@ -422,10 +422,10 @@
 		return 0;
 	}
-	
+
 	if ((a.parts.sign) && (b.parts.sign)) {
 		/* if both are negative, greater is that with smaller binary value */
 		return lt128(a.bin.hi, a.bin.lo, b.bin.hi, b.bin.lo);
 	}
-	
+
 	/*
 	 * lets negate signs - now will be positive numbers always
@@ -444,16 +444,16 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float32_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return 0;
 }
@@ -463,19 +463,19 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float32_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float32_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return -1;
 }
@@ -485,16 +485,16 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float32_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 0;
 }
@@ -504,19 +504,19 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float32_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float32_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 1;
 }
@@ -526,13 +526,13 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	return is_float32_eq(ua.data, ub.data) - 1;
 }
@@ -548,19 +548,19 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		/* No special constant for unordered - maybe signaled? */
 		return 1;
 	}
-	
+
 	if (is_float32_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float32_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 1;
 }
@@ -570,8 +570,8 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	return ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data)));
 }
@@ -581,16 +581,16 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float32_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return 0;
 }
@@ -600,16 +600,16 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float32_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 0;
 }
@@ -619,19 +619,19 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float32_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float32_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return -1;
 }
@@ -641,13 +641,13 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	return is_float32_eq(ua.data, ub.data) - 1;
 }
@@ -661,16 +661,16 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float64_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return 0;
 }
@@ -680,19 +680,19 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float64_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float64_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return -1;
 }
@@ -702,16 +702,16 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float64_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 0;
 }
@@ -721,19 +721,19 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float64_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float64_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 1;
 }
@@ -743,13 +743,13 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	return is_float64_eq(ua.data, ub.data) - 1;
 }
@@ -765,19 +765,19 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		/* No special constant for unordered - maybe signaled? */
 		return 1;
 	}
-	
+
 	if (is_float64_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float64_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 1;
 }
@@ -787,8 +787,8 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	return ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data)));
 }
@@ -798,16 +798,16 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float64_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 0;
 }
@@ -817,13 +817,13 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	return is_float64_eq(ua.data, ub.data) - 1;
 }
@@ -833,16 +833,16 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float64_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return 0;
 }
@@ -852,19 +852,19 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float64_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float64_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return -1;
 }
@@ -874,19 +874,19 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	if ((is_float64_nan(ua.data)) || (is_float64_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float64_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float64_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 1;
 }
@@ -900,16 +900,16 @@
 	float128_u ua;
 	ua.val = a;
-	
-	float128_u ub;
-	ub.val = b;
-	
+
+	float128_u ub;
+	ub.val = b;
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float128_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return 0;
 }
@@ -919,19 +919,19 @@
 	float128_u ua;
 	ua.val = a;
-	
-	float128_u ub;
-	ub.val = b;
-	
+
+	float128_u ub;
+	ub.val = b;
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data))) {
 		// TODO: sigNaNs
 		return -1;
 	}
-	
+
 	if (is_float128_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float128_gt(ua.data, ub.data))
 		return 1;
-	
+
 	return -1;
 }
@@ -941,16 +941,16 @@
 	float128_u ua;
 	ua.val = a;
-	
-	float128_u ub;
-	ub.val = b;
-	
+
+	float128_u ub;
+	ub.val = b;
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float128_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 0;
 }
@@ -960,19 +960,19 @@
 	float128_u ua;
 	ua.val = a;
-	
-	float128_u ub;
-	ub.val = b;
-	
+
+	float128_u ub;
+	ub.val = b;
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	if (is_float128_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float128_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 1;
 }
@@ -982,13 +982,13 @@
 	float128_u ua;
 	ua.val = a;
-	
-	float128_u ub;
-	ub.val = b;
-	
+
+	float128_u ub;
+	ub.val = b;
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data))) {
 		// TODO: sigNaNs
 		return 1;
 	}
-	
+
 	return is_float128_eq(ua.data, ub.data) - 1;
 }
@@ -1004,19 +1004,19 @@
 	float128_u ua;
 	ua.val = a;
-	
-	float128_u ub;
-	ub.val = b;
-	
+
+	float128_u ub;
+	ub.val = b;
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data))) {
 		/* No special constant for unordered - maybe signaled? */
 		return 1;
 	}
-	
+
 	if (is_float128_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float128_lt(ua.data, ub.data))
 		return -1;
-	
+
 	return 1;
 }
@@ -1026,8 +1026,8 @@
 	float128_u ua;
 	ua.val = a;
-	
-	float128_u ub;
-	ub.val = b;
-	
+
+	float128_u ub;
+	ub.val = b;
+
 	return ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data)));
 }
@@ -1037,17 +1037,17 @@
 	float128_u ua;
 	ua.val = *a;
-	
+
 	float128_u ub;
 	ub.val = *b;
-	
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data)))
 		return 3;
-	
+
 	if (is_float128_eq(ua.data, ub.data))
 		return 0;
-	
+
 	if (is_float128_lt(ua.data, ub.data))
 		return 1;
-	
+
 	return 2;
 }
@@ -1063,11 +1063,11 @@
 	float128_u ua;
 	ua.val = *a;
-	
+
 	float128_u ub;
 	ub.val = *b;
-	
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data)))
 		return 0;
-	
+
 	return is_float128_gt(ua.data, ub.data);
 }
@@ -1077,11 +1077,11 @@
 	float128_u ua;
 	ua.val = *a;
-	
+
 	float128_u ub;
 	ub.val = *b;
-	
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data)))
 		return 0;
-	
+
 	return is_float128_eq(ua.data, ub.data) ||
 	    is_float128_gt(ua.data, ub.data);
@@ -1092,11 +1092,11 @@
 	float128_u ua;
 	ua.val = *a;
-	
+
 	float128_u ub;
 	ub.val = *b;
-	
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data)))
 		return 0;
-	
+
 	return is_float128_lt(ua.data, ub.data);
 }
@@ -1106,11 +1106,11 @@
 	float128_u ua;
 	ua.val = *a;
-	
+
 	float128_u ub;
 	ub.val = *b;
-	
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data)))
 		return 0;
-	
+
 	return is_float128_eq(ua.data, ub.data) ||
 	    is_float128_lt(ua.data, ub.data);
@@ -1121,11 +1121,11 @@
 	float128_u ua;
 	ua.val = *a;
-	
+
 	float128_u ub;
 	ub.val = *b;
-	
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data)))
 		return 0;
-	
+
 	return is_float128_eq(ua.data, ub.data);
 }
@@ -1135,11 +1135,11 @@
 	float128_u ua;
 	ua.val = *a;
-	
+
 	float128_u ub;
 	ub.val = *b;
-	
+
 	if ((is_float128_nan(ua.data)) || (is_float128_nan(ub.data)))
 		return 0;
-	
+
 	return !is_float128_eq(ua.data, ub.data);
 }
Index: uspace/lib/softfloat/conversion.c
===================================================================
--- uspace/lib/softfloat/conversion.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softfloat/conversion.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,9 +42,9 @@
 	float64 result;
 	uint64_t frac;
-	
+
 	result.parts.sign = a.parts.sign;
 	result.parts.fraction = a.parts.fraction;
 	result.parts.fraction <<= (FLOAT64_FRACTION_SIZE - FLOAT32_FRACTION_SIZE);
-	
+
 	if ((is_float32_infinity(a)) || (is_float32_nan(a))) {
 		result.parts.exp = FLOAT64_MAX_EXPONENT;
@@ -52,25 +52,25 @@
 		return result;
 	}
-	
+
 	result.parts.exp = a.parts.exp + ((int) FLOAT64_BIAS - FLOAT32_BIAS);
 	if (a.parts.exp == 0) {
 		/* normalize denormalized numbers */
-		
+
 		if (result.parts.fraction == 0) { /* fix zero */
 			result.parts.exp = 0;
 			return result;
 		}
-			
+
 		frac = result.parts.fraction;
-		
+
 		while (!(frac & FLOAT64_HIDDEN_BIT_MASK)) {
 			frac <<= 1;
 			--result.parts.exp;
 		}
-		
+
 		++result.parts.exp;
 		result.parts.fraction = frac;
 	}
-	
+
 	return result;
 }
@@ -81,5 +81,5 @@
 	uint64_t frac_hi, frac_lo;
 	uint64_t tmp_hi, tmp_lo;
-	
+
 	result.parts.sign = a.parts.sign;
 	result.parts.frac_hi = 0;
@@ -90,5 +90,5 @@
 	result.parts.frac_hi = frac_hi;
 	result.parts.frac_lo = frac_lo;
-	
+
 	if ((is_float32_infinity(a)) || (is_float32_nan(a))) {
 		result.parts.exp = FLOAT128_MAX_EXPONENT;
@@ -96,9 +96,9 @@
 		return result;
 	}
-	
+
 	result.parts.exp = a.parts.exp + ((int) FLOAT128_BIAS - FLOAT32_BIAS);
 	if (a.parts.exp == 0) {
 		/* normalize denormalized numbers */
-		
+
 		if (eq128(result.parts.frac_hi,
 		    result.parts.frac_lo, 0x0ll, 0x0ll)) { /* fix zero */
@@ -106,8 +106,8 @@
 			return result;
 		}
-		
+
 		frac_hi = result.parts.frac_hi;
 		frac_lo = result.parts.frac_lo;
-		
+
 		and128(frac_hi, frac_lo,
 		    FLOAT128_HIDDEN_BIT_MASK_HI, FLOAT128_HIDDEN_BIT_MASK_LO,
@@ -117,10 +117,10 @@
 			--result.parts.exp;
 		}
-		
+
 		++result.parts.exp;
 		result.parts.frac_hi = frac_hi;
 		result.parts.frac_lo = frac_lo;
 	}
-	
+
 	return result;
 }
@@ -131,5 +131,5 @@
 	uint64_t frac_hi, frac_lo;
 	uint64_t tmp_hi, tmp_lo;
-	
+
 	result.parts.sign = a.parts.sign;
 	result.parts.frac_hi = 0;
@@ -140,5 +140,5 @@
 	result.parts.frac_hi = frac_hi;
 	result.parts.frac_lo = frac_lo;
-	
+
 	if ((is_float64_infinity(a)) || (is_float64_nan(a))) {
 		result.parts.exp = FLOAT128_MAX_EXPONENT;
@@ -146,9 +146,9 @@
 		return result;
 	}
-	
+
 	result.parts.exp = a.parts.exp + ((int) FLOAT128_BIAS - FLOAT64_BIAS);
 	if (a.parts.exp == 0) {
 		/* normalize denormalized numbers */
-		
+
 		if (eq128(result.parts.frac_hi,
 		    result.parts.frac_lo, 0x0ll, 0x0ll)) { /* fix zero */
@@ -156,8 +156,8 @@
 			return result;
 		}
-		
+
 		frac_hi = result.parts.frac_hi;
 		frac_lo = result.parts.frac_lo;
-		
+
 		and128(frac_hi, frac_lo,
 		    FLOAT128_HIDDEN_BIT_MASK_HI, FLOAT128_HIDDEN_BIT_MASK_LO,
@@ -167,10 +167,10 @@
 			--result.parts.exp;
 		}
-		
+
 		++result.parts.exp;
 		result.parts.frac_hi = frac_hi;
 		result.parts.frac_lo = frac_lo;
 	}
-	
+
 	return result;
 }
@@ -181,10 +181,10 @@
 	int32_t exp;
 	uint64_t frac;
-	
+
 	result.parts.sign = a.parts.sign;
-	
+
 	if (is_float64_nan(a)) {
 		result.parts.exp = FLOAT32_MAX_EXPONENT;
-		
+
 		if (is_float64_signan(a)) {
 			/* set first bit of fraction nonzero */
@@ -192,10 +192,10 @@
 			return result;
 		}
-		
+
 		/* fraction nonzero but its first bit is zero */
 		result.parts.fraction = 0x1;
 		return result;
 	}
-	
+
 	if (is_float64_infinity(a)) {
 		result.parts.fraction = 0;
@@ -203,7 +203,7 @@
 		return result;
 	}
-	
+
 	exp = (int) a.parts.exp - FLOAT64_BIAS + FLOAT32_BIAS;
-	
+
 	if (exp >= FLOAT32_MAX_EXPONENT) {
 		/* FIXME: overflow */
@@ -213,7 +213,7 @@
 	} else if (exp <= 0) {
 		/* underflow or denormalized */
-		
+
 		result.parts.exp = 0;
-		
+
 		exp *= -1;
 		if (exp > FLOAT32_FRACTION_SIZE) {
@@ -222,12 +222,12 @@
 			return result;
 		}
-		
+
 		/* denormalized */
-		
+
 		frac = a.parts.fraction;
 		frac |= FLOAT64_HIDDEN_BIT_MASK; /* denormalize and set hidden bit */
-		
+
 		frac >>= (FLOAT64_FRACTION_SIZE - FLOAT32_FRACTION_SIZE + 1);
-		
+
 		while (exp > 0) {
 			--exp;
@@ -235,8 +235,8 @@
 		}
 		result.parts.fraction = frac;
-		
-		return result;
-	}
-	
+
+		return result;
+	}
+
 	result.parts.exp = exp;
 	result.parts.fraction =
@@ -250,10 +250,10 @@
 	int32_t exp;
 	uint64_t frac_hi, frac_lo;
-	
+
 	result.parts.sign = a.parts.sign;
-	
+
 	if (is_float128_nan(a)) {
 		result.parts.exp = FLOAT32_MAX_EXPONENT;
-		
+
 		if (is_float128_signan(a)) {
 			/* set first bit of fraction nonzero */
@@ -261,10 +261,10 @@
 			return result;
 		}
-		
+
 		/* fraction nonzero but its first bit is zero */
 		result.parts.fraction = 0x1;
 		return result;
 	}
-	
+
 	if (is_float128_infinity(a)) {
 		result.parts.fraction = 0;
@@ -272,7 +272,7 @@
 		return result;
 	}
-	
+
 	exp = (int) a.parts.exp - FLOAT128_BIAS + FLOAT32_BIAS;
-	
+
 	if (exp >= FLOAT32_MAX_EXPONENT) {
 		/* FIXME: overflow */
@@ -282,7 +282,7 @@
 	} else if (exp <= 0) {
 		/* underflow or denormalized */
-		
+
 		result.parts.exp = 0;
-		
+
 		exp *= -1;
 		if (exp > FLOAT32_FRACTION_SIZE) {
@@ -291,17 +291,17 @@
 			return result;
 		}
-		
+
 		/* denormalized */
-		
+
 		frac_hi = a.parts.frac_hi;
 		frac_lo = a.parts.frac_lo;
-		
+
 		/* denormalize and set hidden bit */
 		frac_hi |= FLOAT128_HIDDEN_BIT_MASK_HI;
-		
+
 		rshift128(frac_hi, frac_lo,
 		    (FLOAT128_FRACTION_SIZE - FLOAT32_FRACTION_SIZE + 1),
 		    &frac_hi, &frac_lo);
-		
+
 		while (exp > 0) {
 			--exp;
@@ -309,8 +309,8 @@
 		}
 		result.parts.fraction = frac_lo;
-		
-		return result;
-	}
-	
+
+		return result;
+	}
+
 	result.parts.exp = exp;
 	frac_hi = a.parts.frac_hi;
@@ -328,10 +328,10 @@
 	int32_t exp;
 	uint64_t frac_hi, frac_lo;
-	
+
 	result.parts.sign = a.parts.sign;
-	
+
 	if (is_float128_nan(a)) {
 		result.parts.exp = FLOAT64_MAX_EXPONENT;
-		
+
 		if (is_float128_signan(a)) {
 			/* set first bit of fraction nonzero */
@@ -339,10 +339,10 @@
 			return result;
 		}
-		
+
 		/* fraction nonzero but its first bit is zero */
 		result.parts.fraction = 0x1;
 		return result;
 	}
-	
+
 	if (is_float128_infinity(a)) {
 		result.parts.fraction = 0;
@@ -350,7 +350,7 @@
 		return result;
 	}
-	
+
 	exp = (int) a.parts.exp - FLOAT128_BIAS + FLOAT64_BIAS;
-	
+
 	if (exp >= FLOAT64_MAX_EXPONENT) {
 		/* FIXME: overflow */
@@ -360,7 +360,7 @@
 	} else if (exp <= 0) {
 		/* underflow or denormalized */
-		
+
 		result.parts.exp = 0;
-		
+
 		exp *= -1;
 		if (exp > FLOAT64_FRACTION_SIZE) {
@@ -369,17 +369,17 @@
 			return result;
 		}
-		
+
 		/* denormalized */
-		
+
 		frac_hi = a.parts.frac_hi;
 		frac_lo = a.parts.frac_lo;
-		
+
 		/* denormalize and set hidden bit */
 		frac_hi |= FLOAT128_HIDDEN_BIT_MASK_HI;
-		
+
 		rshift128(frac_hi, frac_lo,
 		    (FLOAT128_FRACTION_SIZE - FLOAT64_FRACTION_SIZE + 1),
 		    &frac_hi, &frac_lo);
-		
+
 		while (exp > 0) {
 			--exp;
@@ -387,8 +387,8 @@
 		}
 		result.parts.fraction = frac_lo;
-		
-		return result;
-	}
-	
+
+		return result;
+	}
+
 	result.parts.exp = exp;
 	frac_hi = a.parts.frac_hi;
@@ -410,16 +410,16 @@
 {
 	uint32_t frac;
-	
+
 	if (a.parts.exp < FLOAT32_BIAS) {
 		/* TODO: rounding */
 		return 0;
 	}
-	
+
 	frac = a.parts.fraction;
-	
+
 	frac |= FLOAT32_HIDDEN_BIT_MASK;
 	/* shift fraction to left so hidden bit will be the most significant bit */
 	frac <<= 32 - FLOAT32_FRACTION_SIZE - 1;
-	
+
 	frac >>= 32 - (a.parts.exp - FLOAT32_BIAS) - 1;
 	if ((a.parts.sign == 1) && (frac != 0)) {
@@ -427,5 +427,5 @@
 		++frac;
 	}
-	
+
 	return frac;
 }
@@ -439,12 +439,12 @@
 	if (is_float32_nan(a))
 		return UINT32_MAX;
-	
+
 	if (is_float32_infinity(a) || (a.parts.exp >= (32 + FLOAT32_BIAS))) {
 		if (a.parts.sign)
 			return UINT32_MIN;
-		
+
 		return UINT32_MAX;
 	}
-	
+
 	return _float32_to_uint32_helper(a);
 }
@@ -458,12 +458,12 @@
 	if (is_float32_nan(a))
 		return INT32_MAX;
-	
+
 	if (is_float32_infinity(a) || (a.parts.exp >= (32 + FLOAT32_BIAS))) {
 		if (a.parts.sign)
 			return INT32_MIN;
-		
+
 		return INT32_MAX;
 	}
-	
+
 	return _float32_to_uint32_helper(a);
 }
@@ -478,16 +478,16 @@
 {
 	uint64_t frac;
-	
+
 	if (a.parts.exp < FLOAT32_BIAS) {
 		// TODO: rounding
 		return 0;
 	}
-	
+
 	frac = a.parts.fraction;
-	
+
 	frac |= FLOAT32_HIDDEN_BIT_MASK;
 	/* shift fraction to left so hidden bit will be the most significant bit */
 	frac <<= 64 - FLOAT32_FRACTION_SIZE - 1;
-	
+
 	frac >>= 64 - (a.parts.exp - FLOAT32_BIAS) - 1;
 	if ((a.parts.sign == 1) && (frac != 0)) {
@@ -495,5 +495,5 @@
 		++frac;
 	}
-	
+
 	return frac;
 }
@@ -507,12 +507,12 @@
 	if (is_float32_nan(a))
 		return UINT64_MAX;
-	
+
 	if (is_float32_infinity(a) || (a.parts.exp >= (64 + FLOAT32_BIAS))) {
 		if (a.parts.sign)
 			return UINT64_MIN;
-		
+
 		return UINT64_MAX;
 	}
-	
+
 	return _float32_to_uint64_helper(a);
 }
@@ -526,12 +526,12 @@
 	if (is_float32_nan(a))
 		return INT64_MAX;
-	
+
 	if (is_float32_infinity(a) || (a.parts.exp >= (64 + FLOAT32_BIAS))) {
 		if (a.parts.sign)
 			return INT64_MIN;
-		
+
 		return INT64_MAX;
 	}
-	
+
 	return _float32_to_uint64_helper(a);
 }
@@ -546,16 +546,16 @@
 {
 	uint64_t frac;
-	
+
 	if (a.parts.exp < FLOAT64_BIAS) {
 		// TODO: rounding
 		return 0;
 	}
-	
+
 	frac = a.parts.fraction;
-	
+
 	frac |= FLOAT64_HIDDEN_BIT_MASK;
 	/* shift fraction to left so hidden bit will be the most significant bit */
 	frac <<= 64 - FLOAT64_FRACTION_SIZE - 1;
-	
+
 	frac >>= 64 - (a.parts.exp - FLOAT64_BIAS) - 1;
 	if ((a.parts.sign == 1) && (frac != 0)) {
@@ -563,5 +563,5 @@
 		++frac;
 	}
-	
+
 	return frac;
 }
@@ -575,12 +575,12 @@
 	if (is_float64_nan(a))
 		return UINT32_MAX;
-	
+
 	if (is_float64_infinity(a) || (a.parts.exp >= (32 + FLOAT64_BIAS))) {
 		if (a.parts.sign)
 			return UINT32_MIN;
-		
+
 		return UINT32_MAX;
 	}
-	
+
 	return (uint32_t) _float64_to_uint64_helper(a);
 }
@@ -594,12 +594,12 @@
 	if (is_float64_nan(a))
 		return INT32_MAX;
-	
+
 	if (is_float64_infinity(a) || (a.parts.exp >= (32 + FLOAT64_BIAS))) {
 		if (a.parts.sign)
 			return INT32_MIN;
-		
+
 		return INT32_MAX;
 	}
-	
+
 	return (int32_t) _float64_to_uint64_helper(a);
 }
@@ -613,12 +613,12 @@
 	if (is_float64_nan(a))
 		return UINT64_MAX;
-	
+
 	if (is_float64_infinity(a) || (a.parts.exp >= (64 + FLOAT64_BIAS))) {
 		if (a.parts.sign)
 			return UINT64_MIN;
-		
+
 		return UINT64_MAX;
 	}
-	
+
 	return _float64_to_uint64_helper(a);
 }
@@ -632,12 +632,12 @@
 	if (is_float64_nan(a))
 		return INT64_MAX;
-	
+
 	if (is_float64_infinity(a) || (a.parts.exp >= (64 + FLOAT64_BIAS))) {
 		if (a.parts.sign)
 			return INT64_MIN;
-		
+
 		return INT64_MAX;
 	}
-	
+
 	return _float64_to_uint64_helper(a);
 }
@@ -652,18 +652,18 @@
 {
 	uint64_t frac_hi, frac_lo;
-	
+
 	if (a.parts.exp < FLOAT128_BIAS) {
 		// TODO: rounding
 		return 0;
 	}
-	
+
 	frac_hi = a.parts.frac_hi;
 	frac_lo = a.parts.frac_lo;
-	
+
 	frac_hi |= FLOAT128_HIDDEN_BIT_MASK_HI;
 	/* shift fraction to left so hidden bit will be the most significant bit */
 	lshift128(frac_hi, frac_lo,
 	    (128 - FLOAT128_FRACTION_SIZE - 1), &frac_hi, &frac_lo);
-	
+
 	rshift128(frac_hi, frac_lo,
 	    (128 - (a.parts.exp - FLOAT128_BIAS) - 1), &frac_hi, &frac_lo);
@@ -672,5 +672,5 @@
 		add128(frac_hi, frac_lo, 0x0ll, 0x1ll, &frac_hi, &frac_lo);
 	}
-	
+
 	return frac_lo;
 }
@@ -684,12 +684,12 @@
 	if (is_float128_nan(a))
 		return UINT32_MAX;
-	
+
 	if (is_float128_infinity(a) || (a.parts.exp >= (32 + FLOAT128_BIAS))) {
 		if (a.parts.sign)
 			return UINT32_MIN;
-		
+
 		return UINT32_MAX;
 	}
-	
+
 	return (uint32_t) _float128_to_uint64_helper(a);
 }
@@ -703,12 +703,12 @@
 	if (is_float128_nan(a))
 		return INT32_MAX;
-	
+
 	if (is_float128_infinity(a) || (a.parts.exp >= (32 + FLOAT128_BIAS))) {
 		if (a.parts.sign)
 			return INT32_MIN;
-		
+
 		return INT32_MAX;
 	}
-	
+
 	return (int32_t) _float128_to_uint64_helper(a);
 }
@@ -722,12 +722,12 @@
 	if (is_float128_nan(a))
 		return UINT64_MAX;
-	
+
 	if (is_float128_infinity(a) || (a.parts.exp >= (64 + FLOAT128_BIAS))) {
 		if (a.parts.sign)
 			return UINT64_MIN;
-		
+
 		return UINT64_MAX;
 	}
-	
+
 	return _float128_to_uint64_helper(a);
 }
@@ -741,12 +741,12 @@
 	if (is_float128_nan(a))
 		return INT64_MAX;
-	
+
 	if (is_float128_infinity(a) || (a.parts.exp >= (64 + FLOAT128_BIAS))) {
 		if (a.parts.sign)
 			return INT64_MIN;
-		
+
 		return INT64_MAX;
 	}
-	
+
 	return _float128_to_uint64_helper(a);
 }
@@ -757,17 +757,17 @@
 	int32_t exp;
 	float32 result;
-	
+
 	result.parts.sign = 0;
 	result.parts.fraction = 0;
-	
+
 	counter = count_zeroes32(i);
-	
+
 	exp = FLOAT32_BIAS + 32 - counter - 1;
-	
+
 	if (counter == 32) {
 		result.bin = 0;
 		return result;
 	}
-	
+
 	if (counter > 0) {
 		i <<= counter - 1;
@@ -775,10 +775,10 @@
 		i >>= 1;
 	}
-	
+
 	round_float32(&exp, &i);
-	
+
 	result.parts.fraction = i >> (32 - FLOAT32_FRACTION_SIZE - 2);
 	result.parts.exp = exp;
-	
+
 	return result;
 }
@@ -787,12 +787,12 @@
 {
 	float32 result;
-	
+
 	if (i < 0)
 		result = uint32_to_float32((uint32_t) (-i));
 	else
 		result = uint32_to_float32((uint32_t) i);
-	
+
 	result.parts.sign = i < 0;
-	
+
 	return result;
 }
@@ -804,17 +804,17 @@
 	uint32_t j;
 	float32 result;
-	
+
 	result.parts.sign = 0;
 	result.parts.fraction = 0;
-	
+
 	counter = count_zeroes64(i);
-	
+
 	exp = FLOAT32_BIAS + 64 - counter - 1;
-	
+
 	if (counter == 64) {
 		result.bin = 0;
 		return result;
 	}
-	
+
 	/* Shift all to the first 31 bits (31st will be hidden 1) */
 	if (counter > 33) {
@@ -823,8 +823,8 @@
 		i >>= 1 + 32 - counter;
 	}
-	
+
 	j = (uint32_t) i;
 	round_float32(&exp, &j);
-	
+
 	result.parts.fraction = j >> (32 - FLOAT32_FRACTION_SIZE - 2);
 	result.parts.exp = exp;
@@ -835,12 +835,12 @@
 {
 	float32 result;
-	
+
 	if (i < 0)
 		result = uint64_to_float32((uint64_t) (-i));
 	else
 		result = uint64_to_float32((uint64_t) i);
-	
+
 	result.parts.sign = i < 0;
-	
+
 	return result;
 }
@@ -852,25 +852,25 @@
 	float64 result;
 	uint64_t frac;
-	
+
 	result.parts.sign = 0;
 	result.parts.fraction = 0;
-	
+
 	counter = count_zeroes32(i);
-	
+
 	exp = FLOAT64_BIAS + 32 - counter - 1;
-	
+
 	if (counter == 32) {
 		result.bin = 0;
 		return result;
 	}
-	
+
 	frac = i;
 	frac <<= counter + 32 - 1;
-	
+
 	round_float64(&exp, &frac);
-	
+
 	result.parts.fraction = frac >> (64 - FLOAT64_FRACTION_SIZE - 2);
 	result.parts.exp = exp;
-	
+
 	return result;
 }
@@ -879,12 +879,12 @@
 {
 	float64 result;
-	
+
 	if (i < 0)
 		result = uint32_to_float64((uint32_t) (-i));
 	else
 		result = uint32_to_float64((uint32_t) i);
-	
+
 	result.parts.sign = i < 0;
-	
+
 	return result;
 }
@@ -895,17 +895,17 @@
 	int32_t exp;
 	float64 result;
-	
+
 	result.parts.sign = 0;
 	result.parts.fraction = 0;
-	
+
 	counter = count_zeroes64(i);
-	
+
 	exp = FLOAT64_BIAS + 64 - counter - 1;
-	
+
 	if (counter == 64) {
 		result.bin = 0;
 		return result;
 	}
-	
+
 	if (counter > 0) {
 		i <<= counter - 1;
@@ -913,7 +913,7 @@
 		i >>= 1;
 	}
-	
+
 	round_float64(&exp, &i);
-	
+
 	result.parts.fraction = i >> (64 - FLOAT64_FRACTION_SIZE - 2);
 	result.parts.exp = exp;
@@ -924,12 +924,12 @@
 {
 	float64 result;
-	
+
 	if (i < 0)
 		result = uint64_to_float64((uint64_t) (-i));
 	else
 		result = uint64_to_float64((uint64_t) i);
-	
+
 	result.parts.sign = i < 0;
-	
+
 	return result;
 }
@@ -941,13 +941,13 @@
 	float128 result;
 	uint64_t frac_hi, frac_lo;
-	
+
 	result.parts.sign = 0;
 	result.parts.frac_hi = 0;
 	result.parts.frac_lo = 0;
-	
+
 	counter = count_zeroes32(i);
-	
+
 	exp = FLOAT128_BIAS + 32 - counter - 1;
-	
+
 	if (counter == 32) {
 		result.bin.hi = 0;
@@ -955,11 +955,11 @@
 		return result;
 	}
-	
+
 	frac_hi = 0;
 	frac_lo = i;
 	lshift128(frac_hi, frac_lo, (counter + 96 - 1), &frac_hi, &frac_lo);
-	
+
 	round_float128(&exp, &frac_hi, &frac_lo);
-	
+
 	rshift128(frac_hi, frac_lo,
 	    (128 - FLOAT128_FRACTION_SIZE - 2), &frac_hi, &frac_lo);
@@ -967,5 +967,5 @@
 	result.parts.frac_lo = frac_lo;
 	result.parts.exp = exp;
-	
+
 	return result;
 }
@@ -974,12 +974,12 @@
 {
 	float128 result;
-	
+
 	if (i < 0)
 		result = uint32_to_float128((uint32_t) (-i));
 	else
 		result = uint32_to_float128((uint32_t) i);
-	
+
 	result.parts.sign = i < 0;
-	
+
 	return result;
 }
@@ -992,13 +992,13 @@
 	float128 result;
 	uint64_t frac_hi, frac_lo;
-	
+
 	result.parts.sign = 0;
 	result.parts.frac_hi = 0;
 	result.parts.frac_lo = 0;
-	
+
 	counter = count_zeroes64(i);
-	
+
 	exp = FLOAT128_BIAS + 64 - counter - 1;
-	
+
 	if (counter == 64) {
 		result.bin.hi = 0;
@@ -1006,11 +1006,11 @@
 		return result;
 	}
-	
+
 	frac_hi = 0;
 	frac_lo = i;
 	lshift128(frac_hi, frac_lo, (counter + 64 - 1), &frac_hi, &frac_lo);
-	
+
 	round_float128(&exp, &frac_hi, &frac_lo);
-	
+
 	rshift128(frac_hi, frac_lo,
 	    (128 - FLOAT128_FRACTION_SIZE - 2), &frac_hi, &frac_lo);
@@ -1018,5 +1018,5 @@
 	result.parts.frac_lo = frac_lo;
 	result.parts.exp = exp;
-	
+
 	return result;
 }
@@ -1025,12 +1025,12 @@
 {
 	float128 result;
-	
+
 	if (i < 0)
 		result = uint64_to_float128((uint64_t) (-i));
 	else
 		result = uint64_to_float128((uint64_t) i);
-	
+
 	result.parts.sign = i < 0;
-	
+
 	return result;
 }
@@ -1042,5 +1042,5 @@
 	float32_u res;
 	res.data = int32_to_float32(i);
-	
+
 	return res.val;
 }
@@ -1050,5 +1050,5 @@
 	float32_u res;
 	res.data = int64_to_float32(i);
-	
+
 	return res.val;
 }
@@ -1058,5 +1058,5 @@
 	float32_u res;
 	res.data = uint32_to_float32(i);
-	
+
 	return res.val;
 }
@@ -1066,5 +1066,5 @@
 	float32_u res;
 	res.data = uint64_to_float32(i);
-	
+
 	return res.val;
 }
@@ -1074,5 +1074,5 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	return float32_to_int32(ua.data);
 }
@@ -1082,5 +1082,5 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	return float32_to_int64(ua.data);
 }
@@ -1090,5 +1090,5 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	return float32_to_uint32(ua.data);
 }
@@ -1098,5 +1098,5 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	return float32_to_uint64(ua.data);
 }
@@ -1106,5 +1106,5 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	return float32_to_int32(ua.data);
 }
@@ -1114,5 +1114,5 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	return float32_to_uint32(ua.data);
 }
@@ -1122,5 +1122,5 @@
 	float32_u res;
 	res.data = int32_to_float32(i);
-	
+
 	return res.val;
 }
@@ -1130,5 +1130,5 @@
 	float32_u res;
 	res.data = int64_to_float32(i);
-	
+
 	return res.val;
 }
@@ -1138,5 +1138,5 @@
 	float32_u res;
 	res.data = uint32_to_float32(i);
-	
+
 	return res.val;
 }
@@ -1146,5 +1146,5 @@
 	float32_u res;
 	res.data = uint64_to_float32(i);
-	
+
 	return res.val;
 }
@@ -1158,5 +1158,5 @@
 	float64_u res;
 	res.data = int32_to_float64(i);
-	
+
 	return res.val;
 }
@@ -1166,5 +1166,5 @@
 	float64_u res;
 	res.data = int64_to_float64(i);
-	
+
 	return res.val;
 }
@@ -1174,5 +1174,5 @@
 	float64_u res;
 	res.data = uint32_to_float64(i);
-	
+
 	return res.val;
 }
@@ -1182,5 +1182,5 @@
 	float64_u res;
 	res.data = uint64_to_float64(i);
-	
+
 	return res.val;
 }
@@ -1190,5 +1190,5 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	return float64_to_uint32(ua.data);
 }
@@ -1198,5 +1198,5 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	return float64_to_uint64(ua.data);
 }
@@ -1206,5 +1206,5 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	return float64_to_int32(ua.data);
 }
@@ -1214,5 +1214,5 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	return float64_to_int64(ua.data);
 }
@@ -1222,5 +1222,5 @@
 	float64_u res;
 	res.data = int32_to_float64(i);
-	
+
 	return res.val;
 }
@@ -1230,5 +1230,5 @@
 	float64_u res;
 	res.data = uint32_to_float64(i);
-	
+
 	return res.val;
 }
@@ -1238,5 +1238,5 @@
 	float64_u res;
 	res.data = int64_to_float64(i);
-	
+
 	return res.val;
 }
@@ -1246,5 +1246,5 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	return float64_to_int32(ua.data);
 }
@@ -1254,5 +1254,5 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	return float64_to_int64(ua.data);
 }
@@ -1262,5 +1262,5 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	return float64_to_uint32(ua.data);
 }
@@ -1274,5 +1274,5 @@
 	float128_u res;
 	res.data = int32_to_float128(i);
-	
+
 	return res.val;
 }
@@ -1282,5 +1282,5 @@
 	float128_u res;
 	res.data = int64_to_float128(i);
-	
+
 	return res.val;
 }
@@ -1290,5 +1290,5 @@
 	float128_u res;
 	res.data = uint32_to_float128(i);
-	
+
 	return res.val;
 }
@@ -1298,5 +1298,5 @@
 	float128_u res;
 	res.data = uint64_to_float128(i);
-	
+
 	return res.val;
 }
@@ -1306,5 +1306,5 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	return float128_to_int32(ua.data);
 }
@@ -1314,5 +1314,5 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	return float128_to_uint64(ua.data);
 }
@@ -1322,5 +1322,5 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	return float128_to_uint32(ua.data);
 }
@@ -1330,5 +1330,5 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	return float128_to_uint64(ua.data);
 }
@@ -1382,8 +1382,8 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float32_u res;
 	res.data = float64_to_float32(ua.data);
-	
+
 	return res.val;
 }
@@ -1393,8 +1393,8 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float64_u res;
 	res.data = float32_to_float64(ua.data);
-	
+
 	return res.val;
 }
@@ -1404,8 +1404,8 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float64_u res;
 	res.data = float32_to_float64(ua.data);
-	
+
 	return res.val;
 }
@@ -1415,8 +1415,8 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float32_u res;
 	res.data = float64_to_float32(ua.data);
-	
+
 	return res.val;
 }
@@ -1430,8 +1430,8 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	float32_u res;
 	res.data = float128_to_float32(ua.data);
-	
+
 	return res.val;
 }
@@ -1441,8 +1441,8 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float128_u res;
 	res.data = float32_to_float128(ua.data);
-	
+
 	return res.val;
 }
@@ -1466,8 +1466,8 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	float64_u res;
 	res.data = float128_to_float64(ua.data);
-	
+
 	return res.val;
 }
@@ -1477,8 +1477,8 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float128_u res;
 	res.data = float64_to_float128(ua.data);
-	
+
 	return res.val;
 }
Index: uspace/lib/softfloat/div.c
===================================================================
--- uspace/lib/softfloat/div.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softfloat/div.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,7 +53,7 @@
 	int32_t aexp, bexp, cexp;
 	uint64_t afrac, bfrac, cfrac;
-	
+
 	result.parts.sign = a.parts.sign ^ b.parts.sign;
-	
+
 	if (is_float32_nan(a)) {
 		if (is_float32_signan(a)) {
@@ -63,5 +63,5 @@
 		return a;
 	}
-	
+
 	if (is_float32_nan(b)) {
 		if (is_float32_signan(b)) {
@@ -71,5 +71,5 @@
 		return b;
 	}
-	
+
 	if (is_float32_infinity(a)) {
 		if (is_float32_infinity(b)) {
@@ -83,5 +83,5 @@
 		return result;
 	}
-	
+
 	if (is_float32_infinity(b)) {
 		if (is_float32_zero(a)) {
@@ -96,5 +96,5 @@
 		return result;
 	}
-	
+
 	if (is_float32_zero(b)) {
 		if (is_float32_zero(a)) {
@@ -108,10 +108,10 @@
 		return result;
 	}
-	
+
 	afrac = a.parts.fraction;
 	aexp = a.parts.exp;
 	bfrac = b.parts.fraction;
 	bexp = b.parts.exp;
-	
+
 	/* denormalized numbers */
 	if (aexp == 0) {
@@ -121,5 +121,5 @@
 			return result;
 		}
-		
+
 		/* normalize it*/
 		afrac <<= 1;
@@ -130,5 +130,5 @@
 		}
 	}
-	
+
 	if (bexp == 0) {
 		bfrac <<= 1;
@@ -139,22 +139,22 @@
 		}
 	}
-	
+
 	afrac = (afrac | FLOAT32_HIDDEN_BIT_MASK) << (32 - FLOAT32_FRACTION_SIZE - 1);
 	bfrac = (bfrac | FLOAT32_HIDDEN_BIT_MASK) << (32 - FLOAT32_FRACTION_SIZE);
-	
+
 	if (bfrac <= (afrac << 1)) {
 		afrac >>= 1;
 		aexp++;
 	}
-	
+
 	cexp = aexp - bexp + FLOAT32_BIAS - 2;
-	
+
 	cfrac = (afrac << 32) / bfrac;
 	if ((cfrac & 0x3F) == 0) {
 		cfrac |= (bfrac * cfrac != afrac << 32);
 	}
-	
+
 	/* pack and round */
-	
+
 	/* find first nonzero digit and shift result and detect possibly underflow */
 	while ((cexp > 0) && (cfrac) && (!(cfrac & (FLOAT32_HIDDEN_BIT_MASK << 7)))) {
@@ -163,12 +163,12 @@
 		/* TODO: fix underflow */
 	}
-	
+
 	cfrac += (0x1 << 6); /* FIXME: 7 is not sure*/
-	
+
 	if (cfrac & (FLOAT32_HIDDEN_BIT_MASK << 7)) {
 		++cexp;
 		cfrac >>= 1;
 	}
-	
+
 	/* check overflow */
 	if (cexp >= FLOAT32_MAX_EXPONENT) {
@@ -178,5 +178,5 @@
 		return result;
 	}
-	
+
 	if (cexp < 0) {
 		/* FIXME: underflow */
@@ -194,7 +194,7 @@
 		result.parts.exp = (uint32_t) cexp;
 	}
-	
+
 	result.parts.fraction = ((cfrac >> 6) & (~FLOAT32_HIDDEN_BIT_MASK));
-	
+
 	return result;
 }
@@ -215,7 +215,7 @@
 	uint64_t remlo, remhi;
 	uint64_t tmplo, tmphi;
-	
+
 	result.parts.sign = a.parts.sign ^ b.parts.sign;
-	
+
 	if (is_float64_nan(a)) {
 		if (is_float64_signan(b)) {
@@ -223,5 +223,5 @@
 			return b;
 		}
-		
+
 		if (is_float64_signan(a)) {
 			// FIXME: SigNaN
@@ -230,5 +230,5 @@
 		return a;
 	}
-	
+
 	if (is_float64_nan(b)) {
 		if (is_float64_signan(b)) {
@@ -238,5 +238,5 @@
 		return b;
 	}
-	
+
 	if (is_float64_infinity(a)) {
 		if (is_float64_infinity(b) || is_float64_zero(b)) {
@@ -250,5 +250,5 @@
 		return result;
 	}
-	
+
 	if (is_float64_infinity(b)) {
 		if (is_float64_zero(a)) {
@@ -263,5 +263,5 @@
 		return result;
 	}
-	
+
 	if (is_float64_zero(b)) {
 		if (is_float64_zero(a)) {
@@ -275,10 +275,10 @@
 		return result;
 	}
-	
+
 	afrac = a.parts.fraction;
 	aexp = a.parts.exp;
 	bfrac = b.parts.fraction;
 	bexp = b.parts.exp;
-	
+
 	/* denormalized numbers */
 	if (aexp == 0) {
@@ -288,5 +288,5 @@
 			return result;
 		}
-		
+
 		/* normalize it*/
 		aexp++;
@@ -297,5 +297,5 @@
 		}
 	}
-	
+
 	if (bexp == 0) {
 		bexp++;
@@ -306,21 +306,21 @@
 		}
 	}
-	
+
 	afrac = (afrac | FLOAT64_HIDDEN_BIT_MASK) << (64 - FLOAT64_FRACTION_SIZE - 2);
 	bfrac = (bfrac | FLOAT64_HIDDEN_BIT_MASK) << (64 - FLOAT64_FRACTION_SIZE - 1);
-	
+
 	if (bfrac <= (afrac << 1)) {
 		afrac >>= 1;
 		aexp++;
 	}
-	
+
 	cexp = aexp - bexp + FLOAT64_BIAS - 2;
-	
+
 	cfrac = div128est(afrac, 0x0ll, bfrac);
-	
+
 	if ((cfrac & 0x1FF) <= 2) {
 		mul64(bfrac, cfrac, &tmphi, &tmplo);
 		sub128(afrac, 0x0ll, tmphi, tmplo, &remhi, &remlo);
-		
+
 		while ((int64_t) remhi < 0) {
 			cfrac--;
@@ -329,5 +329,5 @@
 		cfrac |= (remlo != 0);
 	}
-	
+
 	/* round and shift */
 	result = finish_float64(cexp, cfrac, result.parts.sign);
@@ -351,7 +351,7 @@
 	uint64_t rem_hihi, rem_hilo, rem_lohi, rem_lolo;
 	uint64_t tmp_hihi, tmp_hilo, tmp_lohi, tmp_lolo;
-	
+
 	result.parts.sign = a.parts.sign ^ b.parts.sign;
-	
+
 	if (is_float128_nan(a)) {
 		if (is_float128_signan(b)) {
@@ -359,5 +359,5 @@
 			return b;
 		}
-		
+
 		if (is_float128_signan(a)) {
 			// FIXME: SigNaN
@@ -366,5 +366,5 @@
 		return a;
 	}
-	
+
 	if (is_float128_nan(b)) {
 		if (is_float128_signan(b)) {
@@ -374,5 +374,5 @@
 		return b;
 	}
-	
+
 	if (is_float128_infinity(a)) {
 		if (is_float128_infinity(b) || is_float128_zero(b)) {
@@ -388,5 +388,5 @@
 		return result;
 	}
-	
+
 	if (is_float128_infinity(b)) {
 		if (is_float128_zero(a)) {
@@ -403,5 +403,5 @@
 		return result;
 	}
-	
+
 	if (is_float128_zero(b)) {
 		if (is_float128_zero(a)) {
@@ -417,5 +417,5 @@
 		return result;
 	}
-	
+
 	afrac_hi = a.parts.frac_hi;
 	afrac_lo = a.parts.frac_lo;
@@ -424,5 +424,5 @@
 	bfrac_lo = b.parts.frac_lo;
 	bexp = b.parts.exp;
-	
+
 	/* denormalized numbers */
 	if (aexp == 0) {
@@ -433,5 +433,5 @@
 			return result;
 		}
-		
+
 		/* normalize it*/
 		aexp++;
@@ -445,5 +445,5 @@
 		}
 	}
-	
+
 	if (bexp == 0) {
 		bexp++;
@@ -457,5 +457,5 @@
 		}
 	}
-	
+
 	or128(afrac_hi, afrac_lo,
 	    FLOAT128_HIDDEN_BIT_MASK_HI, FLOAT128_HIDDEN_BIT_MASK_LO,
@@ -468,17 +468,17 @@
 	lshift128(bfrac_hi, bfrac_lo,
 	    (128 - FLOAT128_FRACTION_SIZE - 1), &bfrac_hi, &bfrac_lo);
-	
+
 	if (le128(bfrac_hi, bfrac_lo, afrac_hi, afrac_lo)) {
 		rshift128(afrac_hi, afrac_lo, 1, &afrac_hi, &afrac_lo);
 		aexp++;
 	}
-	
+
 	cexp = aexp - bexp + FLOAT128_BIAS - 2;
-	
+
 	cfrac_hi = div128est(afrac_hi, afrac_lo, bfrac_hi);
-	
+
 	mul128(bfrac_hi, bfrac_lo, 0x0ll, cfrac_hi,
 	    &tmp_lolo /* dummy */, &tmp_hihi, &tmp_hilo, &tmp_lohi);
-	
+
 	/* sub192(afrac_hi, afrac_lo, 0,
 	 *     tmp_hihi, tmp_hilo, tmp_lohi
@@ -489,5 +489,5 @@
 	}
 	rem_lohi = -tmp_lohi;
-	
+
 	while ((int64_t) rem_hihi < 0) {
 		--cfrac_hi;
@@ -500,11 +500,11 @@
 		}
 	}
-	
+
 	cfrac_lo = div128est(rem_hilo, rem_lohi, bfrac_lo);
-	
+
 	if ((cfrac_lo & 0x3FFF) <= 4) {
 		mul128(bfrac_hi, bfrac_lo, 0x0ll, cfrac_lo,
 		    &tmp_hihi /* dummy */, &tmp_hilo, &tmp_lohi, &tmp_lolo);
-		
+
 		/* sub192(rem_hilo, rem_lohi, 0,
 		 *     tmp_hilo, tmp_lohi, tmp_lolo,
@@ -515,5 +515,5 @@
 		}
 		rem_lolo = -tmp_lolo;
-		
+
 		while ((int64_t) rem_hilo < 0) {
 			--cfrac_lo;
@@ -526,12 +526,12 @@
 			}
 		}
-		
+
 		cfrac_lo |= ((rem_hilo | rem_lohi | rem_lolo) != 0 );
 	}
-	
+
 	shift_out = cfrac_lo << (64 - (128 - FLOAT128_FRACTION_SIZE - 1));
 	rshift128(cfrac_hi, cfrac_lo, (128 - FLOAT128_FRACTION_SIZE - 1),
 	    &cfrac_hi, &cfrac_lo);
-	
+
 	result = finish_float128(cexp, cfrac_hi, cfrac_lo, result.parts.sign, shift_out);
 	return result;
@@ -544,11 +544,11 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	float32_u res;
 	res.data = div_float32(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -558,11 +558,11 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	float32_u res;
 	res.data = div_float32(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -576,11 +576,11 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	float64_u res;
 	res.data = div_float64(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -590,11 +590,11 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	float64_u res;
 	res.data = div_float64(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -608,11 +608,11 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	float128_u ub;
 	ub.val = b;
-	
+
 	float128_u res;
 	res.data = div_float128(ua.data, ub.data);
-	
+
 	return res.val;
 }
Index: uspace/lib/softfloat/mul.c
===================================================================
--- uspace/lib/softfloat/mul.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softfloat/mul.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -51,7 +51,7 @@
 	uint64_t frac1, frac2;
 	int32_t exp;
-	
+
 	result.parts.sign = a.parts.sign ^ b.parts.sign;
-	
+
 	if (is_float32_nan(a) || is_float32_nan(b)) {
 		/* TODO: fix SigNaNs */
@@ -61,5 +61,5 @@
 			return result;
 		}
-		
+
 		if (is_float32_signan(b)) { /* TODO: fix SigNaN */
 			result.parts.fraction = b.parts.fraction;
@@ -67,10 +67,10 @@
 			return result;
 		}
-		
+
 		/* set NaN as result */
 		result.bin = FLOAT32_NAN;
 		return result;
 	}
-	
+
 	if (is_float32_infinity(a)) {
 		if (is_float32_zero(b)) {
@@ -79,10 +79,10 @@
 			return result;
 		}
-		
+
 		result.parts.fraction = a.parts.fraction;
 		result.parts.exp = a.parts.exp;
 		return result;
 	}
-	
+
 	if (is_float32_infinity(b)) {
 		if (is_float32_zero(a)) {
@@ -91,14 +91,14 @@
 			return result;
 		}
-		
+
 		result.parts.fraction = b.parts.fraction;
 		result.parts.exp = b.parts.exp;
 		return result;
 	}
-	
+
 	/* exp is signed so we can easy detect underflow */
 	exp = a.parts.exp + b.parts.exp;
 	exp -= FLOAT32_BIAS;
-	
+
 	if (exp >= FLOAT32_MAX_EXPONENT) {
 		/* FIXME: overflow */
@@ -108,5 +108,5 @@
 		return result;
 	}
-	
+
 	if (exp < 0) {
 		/* FIXME: underflow */
@@ -116,5 +116,5 @@
 		return result;
 	}
-	
+
 	frac1 = a.parts.fraction;
 	if (a.parts.exp > 0) {
@@ -123,7 +123,7 @@
 		++exp;
 	}
-	
+
 	frac2 = b.parts.fraction;
-	
+
 	if (b.parts.exp > 0) {
 		frac2 |= FLOAT32_HIDDEN_BIT_MASK;
@@ -131,9 +131,9 @@
 		++exp;
 	}
-	
+
 	frac1 <<= 1; /* one bit space for rounding */
-	
+
 	frac1 = frac1 * frac2;
-	
+
 	/* round and return */
 	while ((exp < FLOAT32_MAX_EXPONENT) &&
@@ -143,9 +143,9 @@
 		frac1 >>= 1;
 	}
-	
+
 	/* rounding */
 	/* ++frac1; FIXME: not works - without it is ok */
 	frac1 >>= 1; /* shift off rounding space */
-	
+
 	if ((exp < FLOAT32_MAX_EXPONENT) &&
 	    (frac1 >= (1 << (FLOAT32_FRACTION_SIZE + 1)))) {
@@ -153,5 +153,5 @@
 		frac1 >>= 1;
 	}
-	
+
 	if (exp >= FLOAT32_MAX_EXPONENT) {
 		/* TODO: fix overflow */
@@ -161,16 +161,16 @@
 		return result;
 	}
-	
+
 	exp -= FLOAT32_FRACTION_SIZE;
-	
+
 	if (exp <= FLOAT32_FRACTION_SIZE) {
 		/* denormalized number */
 		frac1 >>= 1; /* denormalize */
-		
+
 		while ((frac1 > 0) && (exp < 0)) {
 			frac1 >>= 1;
 			++exp;
 		}
-		
+
 		if (frac1 == 0) {
 			/* FIXME : underflow */
@@ -180,8 +180,8 @@
 		}
 	}
-	
+
 	result.parts.exp = exp;
 	result.parts.fraction = frac1 & ((1 << FLOAT32_FRACTION_SIZE) - 1);
-	
+
 	return result;
 }
@@ -200,7 +200,7 @@
 	uint64_t frac1, frac2;
 	int32_t exp;
-	
+
 	result.parts.sign = a.parts.sign ^ b.parts.sign;
-	
+
 	if (is_float64_nan(a) || is_float64_nan(b)) {
 		/* TODO: fix SigNaNs */
@@ -219,5 +219,5 @@
 		return result;
 	}
-	
+
 	if (is_float64_infinity(a)) {
 		if (is_float64_zero(b)) {
@@ -230,5 +230,5 @@
 		return result;
 	}
-	
+
 	if (is_float64_infinity(b)) {
 		if (is_float64_zero(a)) {
@@ -241,10 +241,10 @@
 		return result;
 	}
-	
+
 	/* exp is signed so we can easy detect underflow */
 	exp = a.parts.exp + b.parts.exp - FLOAT64_BIAS;
-	
+
 	frac1 = a.parts.fraction;
-	
+
 	if (a.parts.exp > 0) {
 		frac1 |= FLOAT64_HIDDEN_BIT_MASK;
@@ -252,7 +252,7 @@
 		++exp;
 	}
-	
+
 	frac2 = b.parts.fraction;
-	
+
 	if (b.parts.exp > 0) {
 		frac2 |= FLOAT64_HIDDEN_BIT_MASK;
@@ -260,10 +260,10 @@
 		++exp;
 	}
-	
+
 	frac1 <<= (64 - FLOAT64_FRACTION_SIZE - 1);
 	frac2 <<= (64 - FLOAT64_FRACTION_SIZE - 2);
-	
+
 	mul64(frac1, frac2, &frac1, &frac2);
-	
+
 	frac1 |= (frac2 != 0);
 	if (frac1 & (0x1ll << 62)) {
@@ -271,5 +271,5 @@
 		exp--;
 	}
-	
+
 	result = finish_float64(exp, frac1, result.parts.sign);
 	return result;
@@ -289,7 +289,7 @@
 	uint64_t frac1_hi, frac1_lo, frac2_hi, frac2_lo, tmp_hi, tmp_lo;
 	int32_t exp;
-	
+
 	result.parts.sign = a.parts.sign ^ b.parts.sign;
-	
+
 	if (is_float128_nan(a) || is_float128_nan(b)) {
 		/* TODO: fix SigNaNs */
@@ -311,5 +311,5 @@
 		return result;
 	}
-	
+
 	if (is_float128_infinity(a)) {
 		if (is_float128_zero(b)) {
@@ -324,5 +324,5 @@
 		return result;
 	}
-	
+
 	if (is_float128_infinity(b)) {
 		if (is_float128_zero(a)) {
@@ -337,11 +337,11 @@
 		return result;
 	}
-	
+
 	/* exp is signed so we can easy detect underflow */
 	exp = a.parts.exp + b.parts.exp - FLOAT128_BIAS - 1;
-	
+
 	frac1_hi = a.parts.frac_hi;
 	frac1_lo = a.parts.frac_lo;
-	
+
 	if (a.parts.exp > 0) {
 		or128(frac1_hi, frac1_lo,
@@ -351,8 +351,8 @@
 		++exp;
 	}
-	
+
 	frac2_hi = b.parts.frac_hi;
 	frac2_lo = b.parts.frac_lo;
-	
+
 	if (b.parts.exp > 0) {
 		or128(frac2_hi, frac2_lo,
@@ -362,8 +362,8 @@
 		++exp;
 	}
-	
+
 	lshift128(frac2_hi, frac2_lo,
 	    128 - FLOAT128_FRACTION_SIZE, &frac2_hi, &frac2_lo);
-	
+
 	tmp_hi = frac1_hi;
 	tmp_lo = frac1_lo;
@@ -372,5 +372,5 @@
 	add128(frac1_hi, frac1_lo, tmp_hi, tmp_lo, &frac1_hi, &frac1_lo);
 	frac2_hi |= (frac2_lo != 0x0ll);
-	
+
 	if ((FLOAT128_HIDDEN_BIT_MASK_HI << 1) <= frac1_hi) {
 		frac2_hi >>= 1;
@@ -381,5 +381,5 @@
 		++exp;
 	}
-	
+
 	result = finish_float128(exp, frac1_hi, frac1_lo, result.parts.sign, frac2_hi);
 	return result;
@@ -392,11 +392,11 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	float32_u res;
 	res.data = mul_float32(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -406,11 +406,11 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	float32_u res;
 	res.data = mul_float32(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -424,11 +424,11 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	float64_u res;
 	res.data = mul_float64(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -438,11 +438,11 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	float64_u res;
 	res.data = mul_float64(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -456,11 +456,11 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	float128_u ub;
 	ub.val = b;
-	
+
 	float128_u res;
 	res.data = mul_float128(ua.data, ub.data);
-	
+
 	return res.val;
 }
Index: uspace/lib/softfloat/neg.c
===================================================================
--- uspace/lib/softfloat/neg.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softfloat/neg.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,7 +43,7 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	ua.data.parts.sign = !ua.data.parts.sign;
-	
+
 	return ua.val;
 }
@@ -57,7 +57,7 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	ua.data.parts.sign = !ua.data.parts.sign;
-	
+
 	return ua.val;
 }
@@ -71,7 +71,7 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	ua.data.parts.sign = !ua.data.parts.sign;
-	
+
 	return ua.val;
 }
Index: uspace/lib/softfloat/sub.c
===================================================================
--- uspace/lib/softfloat/sub.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softfloat/sub.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,7 +52,7 @@
 	uint32_t exp1, exp2, frac1, frac2;
 	float32 result;
-	
+
 	result.bin = 0;
-	
+
 	expdiff = a.parts.exp - b.parts.exp;
 	if ((expdiff < 0 ) || ((expdiff == 0) &&
@@ -62,8 +62,8 @@
 				// TODO: fix SigNaN
 			}
-			
+
 			return b;
 		}
-		
+
 		if (b.parts.exp == FLOAT32_MAX_EXPONENT) {
 			/* num -(+-inf) = -+inf */
@@ -71,7 +71,7 @@
 			return b;
 		}
-		
+
 		result.parts.sign = !a.parts.sign;
-		
+
 		frac1 = b.parts.fraction;
 		exp1 = b.parts.exp;
@@ -84,8 +84,8 @@
 				// TODO: fix SigNaN
 			}
-			
+
 			return a;
 		}
-		
+
 		if (a.parts.exp == FLOAT32_MAX_EXPONENT) {
 			if (b.parts.exp == FLOAT32_MAX_EXPONENT) {
@@ -95,10 +95,10 @@
 				return result;
 			}
-			
+
 			return a;
 		}
-		
+
 		result.parts.sign = a.parts.sign;
-		
+
 		frac1 = a.parts.fraction;
 		exp1 = a.parts.exp;
@@ -106,5 +106,5 @@
 		exp2 = b.parts.exp;
 	}
-	
+
 	if (exp1 == 0) {
 		/* both are denormalized */
@@ -114,12 +114,12 @@
 			return result;
 		}
-		
+
 		result.parts.exp = 0;
 		return result;
 	}
-	
+
 	/* add hidden bit */
 	frac1 |= FLOAT32_HIDDEN_BIT_MASK;
-	
+
 	if (exp2 == 0) {
 		/* denormalized */
@@ -129,14 +129,14 @@
 		frac2 |= FLOAT32_HIDDEN_BIT_MASK;
 	}
-	
+
 	/* create some space for rounding */
 	frac1 <<= 6;
 	frac2 <<= 6;
-	
+
 	if (expdiff > FLOAT32_FRACTION_SIZE + 1)
 		goto done;
-	
+
 	frac1 = frac1 - (frac2 >> expdiff);
-	
+
 done:
 	/* TODO: find first nonzero digit and shift result and detect possibly underflow */
@@ -146,17 +146,17 @@
 		/* TODO: fix underflow - frac1 == 0 does not necessary means underflow... */
 	}
-	
+
 	/* rounding - if first bit after fraction is set then round up */
 	frac1 += 0x20;
-	
+
 	if (frac1 & (FLOAT32_HIDDEN_BIT_MASK << 7)) {
 		++exp1;
 		frac1 >>= 1;
 	}
-	
+
 	/* Clear hidden bit and shift */
 	result.parts.fraction = ((frac1 >> 6) & (~FLOAT32_HIDDEN_BIT_MASK));
 	result.parts.exp = exp1;
-	
+
 	return result;
 }
@@ -176,7 +176,7 @@
 	uint64_t frac1, frac2;
 	float64 result;
-	
+
 	result.bin = 0;
-	
+
 	expdiff = a.parts.exp - b.parts.exp;
 	if ((expdiff < 0 ) ||
@@ -186,8 +186,8 @@
 				// TODO: fix SigNaN
 			}
-			
+
 			return b;
 		}
-		
+
 		if (b.parts.exp == FLOAT64_MAX_EXPONENT) {
 			/* num -(+-inf) = -+inf */
@@ -195,7 +195,7 @@
 			return b;
 		}
-		
+
 		result.parts.sign = !a.parts.sign;
-		
+
 		frac1 = b.parts.fraction;
 		exp1 = b.parts.exp;
@@ -208,8 +208,8 @@
 				// TODO: fix SigNaN
 			}
-			
+
 			return a;
 		}
-		
+
 		if (a.parts.exp == FLOAT64_MAX_EXPONENT) {
 			if (b.parts.exp == FLOAT64_MAX_EXPONENT) {
@@ -219,10 +219,10 @@
 				return result;
 			}
-			
+
 			return a;
 		}
-		
+
 		result.parts.sign = a.parts.sign;
-		
+
 		frac1 = a.parts.fraction;
 		exp1 = a.parts.exp;
@@ -230,5 +230,5 @@
 		exp2 = b.parts.exp;
 	}
-	
+
 	if (exp1 == 0) {
 		/* both are denormalized */
@@ -238,12 +238,12 @@
 			return result;
 		}
-		
+
 		result.parts.exp = 0;
 		return result;
 	}
-	
+
 	/* add hidden bit */
 	frac1 |= FLOAT64_HIDDEN_BIT_MASK;
-	
+
 	if (exp2 == 0) {
 		/* denormalized */
@@ -253,14 +253,14 @@
 		frac2 |= FLOAT64_HIDDEN_BIT_MASK;
 	}
-	
+
 	/* create some space for rounding */
 	frac1 <<= 6;
 	frac2 <<= 6;
-	
+
 	if (expdiff > FLOAT64_FRACTION_SIZE + 1)
 		goto done;
-	
+
 	frac1 = frac1 - (frac2 >> expdiff);
-	
+
 done:
 	/* TODO: find first nonzero digit and shift result and detect possibly underflow */
@@ -270,17 +270,17 @@
 		/* TODO: fix underflow - frac1 == 0 does not necessary means underflow... */
 	}
-	
+
 	/* rounding - if first bit after fraction is set then round up */
 	frac1 += 0x20;
-	
+
 	if (frac1 & (FLOAT64_HIDDEN_BIT_MASK << 7)) {
 		++exp1;
 		frac1 >>= 1;
 	}
-	
+
 	/* Clear hidden bit and shift */
 	result.parts.fraction = ((frac1 >> 6) & (~FLOAT64_HIDDEN_BIT_MASK));
 	result.parts.exp = exp1;
-	
+
 	return result;
 }
@@ -300,8 +300,8 @@
 	uint64_t frac1_hi, frac1_lo, frac2_hi, frac2_lo, tmp_hi, tmp_lo;
 	float128 result;
-	
+
 	result.bin.hi = 0;
 	result.bin.lo = 0;
-	
+
 	expdiff = a.parts.exp - b.parts.exp;
 	if ((expdiff < 0 ) || ((expdiff == 0) &&
@@ -311,8 +311,8 @@
 				// TODO: fix SigNaN
 			}
-			
+
 			return b;
 		}
-		
+
 		if (b.parts.exp == FLOAT128_MAX_EXPONENT) {
 			/* num -(+-inf) = -+inf */
@@ -320,7 +320,7 @@
 			return b;
 		}
-		
+
 		result.parts.sign = !a.parts.sign;
-		
+
 		frac1_hi = b.parts.frac_hi;
 		frac1_lo = b.parts.frac_lo;
@@ -335,8 +335,8 @@
 				// TODO: fix SigNaN
 			}
-			
+
 			return a;
 		}
-		
+
 		if (a.parts.exp == FLOAT128_MAX_EXPONENT) {
 			if (b.parts.exp == FLOAT128_MAX_EXPONENT) {
@@ -349,7 +349,7 @@
 			return a;
 		}
-		
+
 		result.parts.sign = a.parts.sign;
-		
+
 		frac1_hi = a.parts.frac_hi;
 		frac1_lo = a.parts.frac_lo;
@@ -359,5 +359,5 @@
 		exp2 = b.parts.exp;
 	}
-	
+
 	if (exp1 == 0) {
 		/* both are denormalized */
@@ -369,14 +369,14 @@
 			return result;
 		}
-		
+
 		result.parts.exp = 0;
 		return result;
 	}
-	
+
 	/* add hidden bit */
 	or128(frac1_hi, frac1_lo,
 	    FLOAT128_HIDDEN_BIT_MASK_HI, FLOAT128_HIDDEN_BIT_MASK_LO,
 	    &frac1_hi, &frac1_lo);
-	
+
 	if (exp2 == 0) {
 		/* denormalized */
@@ -388,15 +388,15 @@
 		    &frac2_hi, &frac2_lo);
 	}
-	
+
 	/* create some space for rounding */
 	lshift128(frac1_hi, frac1_lo, 6, &frac1_hi, &frac1_lo);
 	lshift128(frac2_hi, frac2_lo, 6, &frac2_hi, &frac2_lo);
-	
+
 	if (expdiff > FLOAT128_FRACTION_SIZE + 1)
 		goto done;
-	
+
 	rshift128(frac2_hi, frac2_lo, expdiff, &tmp_hi, &tmp_lo);
 	sub128(frac1_hi, frac1_lo, tmp_hi, tmp_lo, &frac1_hi, &frac1_lo);
-	
+
 done:
 	/* TODO: find first nonzero digit and shift result and detect possibly underflow */
@@ -408,13 +408,13 @@
 		lshift128(frac1_hi, frac1_lo, 1, &frac1_hi, &frac1_lo);
 		/* TODO: fix underflow - frac1 == 0 does not necessary means underflow... */
-		
+
 		lshift128(FLOAT128_HIDDEN_BIT_MASK_HI, FLOAT128_HIDDEN_BIT_MASK_LO, 6,
 		    &tmp_hi, &tmp_lo);
 		and128(frac1_hi, frac1_lo, tmp_hi, tmp_lo, &tmp_hi, &tmp_lo);
 	}
-	
+
 	/* rounding - if first bit after fraction is set then round up */
 	add128(frac1_hi, frac1_lo, 0x0ll, 0x20ll, &frac1_hi, &frac1_lo);
-	
+
 	lshift128(FLOAT128_HIDDEN_BIT_MASK_HI, FLOAT128_HIDDEN_BIT_MASK_LO, 7,
 	   &tmp_hi, &tmp_lo);
@@ -424,5 +424,5 @@
 		rshift128(frac1_hi, frac1_lo, 1, &frac1_hi, &frac1_lo);
 	}
-	
+
 	/* Clear hidden bit and shift */
 	rshift128(frac1_hi, frac1_lo, 6, &frac1_hi, &frac1_lo);
@@ -432,7 +432,7 @@
 	result.parts.frac_hi = tmp_hi;
 	result.parts.frac_lo = tmp_lo;
-	
+
 	result.parts.exp = exp1;
-	
+
 	return result;
 }
@@ -444,10 +444,10 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	float32_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		ub.data.parts.sign = !ub.data.parts.sign;
@@ -455,5 +455,5 @@
 	} else
 		res.data = sub_float32(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -463,10 +463,10 @@
 	float32_u ua;
 	ua.val = a;
-	
+
 	float32_u ub;
 	ub.val = b;
-	
+
 	float32_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		ub.data.parts.sign = !ub.data.parts.sign;
@@ -474,5 +474,5 @@
 	} else
 		res.data = sub_float32(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -486,10 +486,10 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	float64_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		ub.data.parts.sign = !ub.data.parts.sign;
@@ -497,5 +497,5 @@
 	} else
 		res.data = sub_float64(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -505,10 +505,10 @@
 	float64_u ua;
 	ua.val = a;
-	
+
 	float64_u ub;
 	ub.val = b;
-	
+
 	float64_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		ub.data.parts.sign = !ub.data.parts.sign;
@@ -516,5 +516,5 @@
 	} else
 		res.data = sub_float64(ua.data, ub.data);
-	
+
 	return res.val;
 }
@@ -528,10 +528,10 @@
 	float128_u ua;
 	ua.val = a;
-	
+
 	float128_u ub;
 	ub.val = b;
-	
+
 	float128_u res;
-	
+
 	if (ua.data.parts.sign != ub.data.parts.sign) {
 		ub.data.parts.sign = !ub.data.parts.sign;
@@ -539,5 +539,5 @@
 	} else
 		res.data = sub_float128(ua.data, ub.data);
-	
+
 	return res.val;
 }
Index: uspace/lib/softint/generic/division.c
===================================================================
--- uspace/lib/softint/generic/division.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softint/generic/division.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -45,23 +45,23 @@
 	unsigned int result;
 	int steps = sizeof(unsigned int) * 8;
-	
+
 	*remainder = 0;
 	result = 0;
-	
+
 	if (b == 0) {
 		/* FIXME: division by zero */
 		return 0;
 	}
-	
+
 	if (a < b) {
 		*remainder = a;
 		return 0;
 	}
-	
+
 	for (; steps > 0; steps--) {
 		/* shift one bit to remainder */
 		*remainder = ((*remainder) << 1) | (( a >> 31) & 0x1);
 		result <<= 1;
-		
+
 		if (*remainder >= b) {
 			*remainder -= b;
@@ -70,5 +70,5 @@
 		a <<= 1;
 	}
-	
+
 	return result;
 }
@@ -79,23 +79,23 @@
 	unsigned long long result;
 	int steps = sizeof(unsigned long long) * 8;
-	
+
 	*remainder = 0;
 	result = 0;
-	
+
 	if (b == 0) {
 		/* FIXME: division by zero */
 		return 0;
 	}
-	
+
 	if (a < b) {
 		*remainder = a;
 		return 0;
 	}
-	
+
 	for (; steps > 0; steps--) {
 		/* shift one bit to remainder */
 		*remainder = ((*remainder) << 1) | ((a >> 63) & 0x1);
 		result <<= 1;
-		
+
 		if (*remainder >= b) {
 			*remainder -= b;
@@ -104,5 +104,5 @@
 		a <<= 1;
 	}
-	
+
 	return result;
 }
@@ -113,8 +113,8 @@
 	unsigned int rem;
 	int result = (int) divandmod32(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b))
 		return result;
-	
+
 	return -result;
 }
@@ -125,8 +125,8 @@
 	unsigned long long rem;
 	long long result = (long long) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b))
 		return result;
-	
+
 	return -result;
 }
@@ -151,9 +151,9 @@
 	unsigned int rem;
 	divandmod32(a, b, &rem);
-	
+
 	/* if divident is negative, remainder must be too */
 	if (!(SGN(a)))
 		return -((int) rem);
-	
+
 	return (int) rem;
 }
@@ -164,9 +164,9 @@
 	unsigned long long rem;
 	divandmod64(a, b, &rem);
-	
+
 	/* if divident is negative, remainder must be too */
 	if (!(SGN(a)))
 		return -((long long) rem);
-	
+
 	return (long long) rem;
 }
@@ -192,10 +192,10 @@
 	unsigned int rem;
 	int result = (int) divandmod32(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
@@ -212,10 +212,10 @@
 	unsigned long long rem;
 	long long result = (int) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
@@ -226,10 +226,10 @@
 	unsigned long long rem;
 	long long result = (int) divandmod64(ABSVAL(a), ABSVAL(b), &rem);
-	
+
 	if (SGN(a) == SGN(b)) {
 		*c = rem;
 		return result;
 	}
-	
+
 	*c = -rem;
 	return -result;
Index: uspace/lib/softint/generic/multiplication.c
===================================================================
--- uspace/lib/softint/generic/multiplication.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softint/generic/multiplication.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -53,12 +53,12 @@
 	unsigned int b1 = b >> 16;
 	unsigned int b2 = b & UINT16_MAX;
-	
+
 	unsigned long long t1 = a1 * b1;
 	unsigned long long t2 = a1 * b2;
 	t2 += a2 * b1;
 	unsigned long long t3 = a2 * b2;
-	
+
 	t3 = (((t1 << 16) + t2) << 16) + t3;
-	
+
 	return t3;
 }
@@ -70,40 +70,40 @@
 {
 	char neg = 0;
-	
+
 	if (a < 0) {
 		neg = !neg;
 		a = -a;
 	}
-	
+
 	if (b < 0) {
 		neg = !neg;
 		b = -b;
 	}
-	
+
 	unsigned long long a1 = a >> 32;
 	unsigned long long b1 = b >> 32;
-	
+
 	unsigned long long a2 = a & (UINT32_MAX);
 	unsigned long long b2 = b & (UINT32_MAX);
-	
+
 	if (SOFTINT_CHECK_OF && (a1 != 0) && (b1 != 0)) {
 		/* Error (overflow) */
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	/* (if OF checked) a1 or b1 is zero => result fits in 64 bits,
 	 * no need to another overflow check
 	 */
 	unsigned long long t1 = mul(a1, b2) + mul(b1, a2);
-	
+
 	if ((SOFTINT_CHECK_OF) && (t1 > UINT32_MAX)) {
 		/* Error (overflow) */
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	t1 = t1 << 32;
 	unsigned long long t2 = mul(a2, b2);
 	t2 += t1;
-	
+
 	/* t2 & (1ull << 63) - if this bit is set in unsigned long long,
 	 * result does not fit in signed one */
@@ -112,9 +112,9 @@
 		return (neg ? INT64_MIN : INT64_MAX);
 	}
-	
+
 	long long result = t2;
 	if (neg)
 		result = -result;
-	
+
 	return result;
 }
Index: uspace/lib/softint/generic/shift.c
===================================================================
--- uspace/lib/softint/generic/shift.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softint/generic/shift.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,9 +42,9 @@
 
 	ll.s_whole = val;
-	
+
 	if (shift <= 0) {
 		return ll.s_whole;
 	}
-	
+
 	if (shift >= (int) WHOLE_BIT_CNT) {
 		ll.u_half[HI] = 0;
Index: uspace/lib/softrend/filter.c
===================================================================
--- uspace/lib/softrend/filter.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softrend/filter.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,5 +71,5 @@
 		blue  += weights[index] *  BLUE(pixels[index]);
 	}
-	
+
 	return PIXEL((uint8_t) alpha, (uint8_t) red, (uint8_t) green,
 	    (uint8_t) blue);
@@ -89,13 +89,13 @@
 	long y1 = floor(y);
 	long y2 = ceil(y);
-	
+
 	if (y1 == y2 && x1 == x2) {
 		return pixelmap_get_extended_pixel(pixmap,
 		    (sysarg_t) x1, (sysarg_t) y1, extend);
 	}
-	
+
 	double x_delta = x - x1;
 	double y_delta = y - y1;
-	
+
 	pixel_t pixels[4];
 	pixels[0] = pixelmap_get_extended_pixel(pixmap, x1, y1, extend);
@@ -103,5 +103,5 @@
 	pixels[2] = pixelmap_get_extended_pixel(pixmap, x1, y2, extend);
 	pixels[3] = pixelmap_get_extended_pixel(pixmap, x2, y2, extend);
-	
+
 	float weights[4];
 	weights[0] = (1 - x_delta) * (1 - y_delta);
@@ -109,5 +109,5 @@
 	weights[2] = (1 - x_delta) * (    y_delta);
 	weights[3] = (    x_delta) * (    y_delta);
-	
+
 	return blend_pixels(4, weights, pixels);
 }
Index: uspace/lib/softrend/transform.c
===================================================================
--- uspace/lib/softrend/transform.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/softrend/transform.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,8 +43,8 @@
 		for (unsigned int j = 0; j < TRANSFORM_MATRIX_DIM; j++) {
 			double comb = 0;
-			
+
 			for (unsigned int k = 0; k < TRANSFORM_MATRIX_DIM; k++)
 				comb += a->matrix[i][k] * b->matrix[k][j];
-			
+
 			res->matrix[i][j] = comb;
 		}
@@ -72,16 +72,16 @@
 	double k = trans->matrix[0][0] * trans->matrix[1][1] -
 	    trans->matrix[0][1] * trans->matrix[1][0];
-	
+
 	double det = 1 / (a * trans->matrix[0][0] + b * trans->matrix[0][1] +
 	    c * trans->matrix[0][2]);
-	
+
 	trans->matrix[0][0] = a * det;
 	trans->matrix[1][0] = b * det;
 	trans->matrix[2][0] = c * det;
-	
+
 	trans->matrix[0][1] = d * det;
 	trans->matrix[1][1] = e * det;
 	trans->matrix[2][1] = f * det;
-	
+
 	trans->matrix[0][2] = g * det;
 	trans->matrix[1][2] = h * det;
@@ -94,9 +94,9 @@
 	trans->matrix[1][0] = 0;
 	trans->matrix[2][0] = 0;
-	
+
 	trans->matrix[0][1] = 0;
 	trans->matrix[1][1] = 1;
 	trans->matrix[2][1] = 0;
-	
+
 	trans->matrix[0][2] = 0;
 	trans->matrix[1][2] = 0;
@@ -107,19 +107,19 @@
 {
 	transform_t a;
-	
+
 	a.matrix[0][0] = 1;
 	a.matrix[1][0] = 0;
 	a.matrix[2][0] = 0;
-	
+
 	a.matrix[0][1] = 0;
 	a.matrix[1][1] = 1;
 	a.matrix[2][1] = 0;
-	
+
 	a.matrix[0][2] = dx;
 	a.matrix[1][2] = dy;
 	a.matrix[2][2] = 1;
-	
+
 	transform_t b = *trans;
-	
+
 	transform_product(trans, &a, &b);
 }
@@ -128,19 +128,19 @@
 {
 	transform_t a;
-	
+
 	a.matrix[0][0] = qx;
 	a.matrix[1][0] = 0;
 	a.matrix[2][0] = 0;
-	
+
 	a.matrix[0][1] = 0;
 	a.matrix[1][1] = qy;
 	a.matrix[2][1] = 0;
-	
+
 	a.matrix[0][2] = 0;
 	a.matrix[1][2] = 0;
 	a.matrix[2][2] = 1;
-	
+
 	transform_t b = *trans;
-	
+
 	transform_product(trans, &a, &b);
 }
@@ -149,19 +149,19 @@
 {
 	transform_t a;
-	
+
 	a.matrix[0][0] = cos(angle);
 	a.matrix[1][0] = sin(angle);
 	a.matrix[2][0] = 0;
-	
+
 	a.matrix[0][1] = -sin(angle);
 	a.matrix[1][1] = cos(angle);
 	a.matrix[2][1] = 0;
-	
+
 	a.matrix[0][2] = 0;
 	a.matrix[1][2] = 0;
 	a.matrix[2][2] = 1;
-	
+
 	transform_t b = *trans;
-	
+
 	transform_product(trans, &a, &b);
 }
@@ -179,5 +179,5 @@
 	double old_x = *x;
 	double old_y = *y;
-	
+
 	*x = old_x * trans->matrix[0][0] + old_y * trans->matrix[0][1];
 	*y = old_x * trans->matrix[1][0] + old_y * trans->matrix[1][1];
@@ -188,5 +188,5 @@
 	double old_x = *x;
 	double old_y = *y;
-	
+
 	*x = old_x * trans->matrix[0][0] + old_y * trans->matrix[0][1] +
 	    trans->matrix[0][2];
Index: uspace/lib/uri/test/parser.c
===================================================================
--- uspace/lib/uri/test/parser.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/uri/test/parser.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -96,5 +96,5 @@
 	expected_uri.scheme = "http";
 	expected_uri.host = "localhost";
-	
+
 	PARSE_AND_CHECK("http://localhost");
 }
@@ -104,5 +104,5 @@
 	expected_uri.host = "localhost";
 	expected_uri.user_info = "user";
-		
+
 	PARSE_AND_CHECK("http://user@localhost");
 }
@@ -113,5 +113,5 @@
 	expected_uri.user_info = "user";
 	expected_uri.user_credential = "password";
-		
+
 	PARSE_AND_CHECK("https://user:password@localhost");
 }
@@ -121,5 +121,5 @@
 	expected_uri.host = "localhost";
 	expected_uri.path = "/alpha";
-		
+
 	PARSE_AND_CHECK("http://localhost/alpha");
 }
@@ -130,5 +130,5 @@
 	expected_uri.path = "/alpha";
 	expected_uri.fragment = "fragment-name";
-		
+
 	PARSE_AND_CHECK("http://localhost/alpha#fragment-name");
 }
Index: uspace/lib/uri/uri.c
===================================================================
--- uspace/lib/uri/uri.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/uri/uri.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 		return NULL;
 	memset(uri, 0, sizeof(uri_t));
-	
+
 	/* scheme ":" */
 	const char *scheme = str;
@@ -65,8 +65,8 @@
 	}
 	uri->scheme = cut_str(scheme, str);
-	
+
 	/* skip the colon */
 	str++;
-	
+
 	if (*str == '/' && str[1] == '/') {
 		/* "//" [user-info [":" user-credential] "@"] host [":" port] */
@@ -74,12 +74,12 @@
 		str++;
 		const char *authority_start = str;
-	
+
 		char *host_or_user_info = NULL;
 		char *port_or_user_credential = NULL;
-	
+
 		while (*str != 0 && *str != '?' && *str != '#' && *str != '@'
 			&& *str != ':' && *str != '/')
 			str++;
-	
+
 		host_or_user_info = cut_str(authority_start, str);
 		if (*str == ':') {
@@ -90,9 +90,9 @@
 			port_or_user_credential = cut_str(second_part, str);
 		}
-	
+
 		if (*str == '@') {
 			uri->user_info = host_or_user_info;
 			uri->user_credential = port_or_user_credential;
-		
+
 			str++;
 			const char *host_start = str;
@@ -100,5 +100,5 @@
 				&& *str != ':' && *str != '/') str++;
 			uri->host = cut_str(host_start, str);
-		
+
 			if (*str == ':') {
 				str++;
@@ -114,9 +114,9 @@
 		}
 	}
-	
+
 	const char *path_start = str;
 	while (*str != 0 && *str != '?' && *str != '#') str++;
 	uri->path = cut_str(path_start, str);
-	
+
 	if (*str == '?') {
 		str++;
@@ -125,5 +125,5 @@
 		uri->query = cut_str(query_start, str);
 	}
-	
+
 	if (*str == '#') {
 		str++;
@@ -132,5 +132,5 @@
 		uri->fragment = cut_str(fragment_start, str);
 	}
-	
+
 	assert(*str == 0);
 	return uri;
@@ -149,15 +149,15 @@
 		return ELIMIT;
 	}
-	
+
 	if (!isalpha(*str)) {
 		*endptr = str;
 		return EINVAL;
 	}
-	
+
 	while (isalpha(*str) || isdigit(*str) ||
 	    *str == '+' || *str == '-' || *str == '.') {
 		str++;
 	}
-	
+
 	*endptr = str;
 	return EOK;
@@ -181,8 +181,8 @@
 	if (str[0] == 0 || str[1] == 0 || str[2] == 0)
 		return ELIMIT;
-	
+
 	if (str[0] != '%' || !is_hexdig(str[1]) || !is_hexdig(str[2]))
 		return EINVAL;
-	
+
 	if (decoded != NULL) {
 		errno_t rc = str_uint8_t(str + 1, NULL, 16, true, decoded);
@@ -190,5 +190,5 @@
 			return rc;
 	}
-	
+
 	*endptr = str + 3;
 	return EOK;
@@ -207,5 +207,5 @@
 		}
 	}
-	
+
 	*endptr = str;
 	return EOK;
@@ -243,14 +243,14 @@
 	if (uri->scheme && !uri_scheme_validate(uri->scheme))
 		return false;
-	
+
 	if (uri->user_info && !uri_user_info_validate(uri->user_info))
 		return false;
-	
+
 	if (uri->user_credential && !uri_user_info_validate(uri->user_credential))
 		return false;
-	
+
 	if (uri->port && !uri_port_validate(uri->port))
 		return false;
-	
+
 	return true;
 }
Index: uspace/lib/usb/src/dma_buffer.c
===================================================================
--- uspace/lib/usb/src/dma_buffer.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usb/src/dma_buffer.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -178,5 +178,5 @@
 		const void *addr = db->virt + (c * chunk_size);
 		const uintptr_t phys = dma_buffer_phys(db, addr);
-	
+
 		if ((phys & DMAMEM_4GiB) != 0)
 			return false;
Index: uspace/lib/usbdev/src/pipes.c
===================================================================
--- uspace/lib/usbdev/src/pipes.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbdev/src/pipes.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -160,5 +160,5 @@
 	if ((setup == NULL) || (setup_size != 8))
 		return EINVAL;
-	
+
 	memcpy(&t->req.setup, setup, 8);
 	return EOK;
Index: uspace/lib/usbdev/src/recognise.c
===================================================================
--- uspace/lib/usbdev/src/recognise.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbdev/src/recognise.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -235,5 +235,5 @@
 		    (int) device_descriptor->product_id,
 		    BCD_ARGS(device_descriptor->device_version));
-		
+
 		/* Next, without release number. */
 		ADD_MATCHID_OR_RETURN(matches, 90,
@@ -246,5 +246,5 @@
 	ADD_MATCHID_OR_RETURN(matches, 50, "usb&class=%s",
 	    usb_str_class(device_descriptor->device_class));
-	
+
 	/* As a last resort, try fallback driver. */
 	ADD_MATCHID_OR_RETURN(matches, 10, "usb&fallback");
Index: uspace/lib/usbhid/include/usb/hid/hidtypes.h
===================================================================
--- uspace/lib/usbhid/include/usb/hid/hidtypes.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbhid/include/usb/hid/hidtypes.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -109,5 +109,5 @@
 	/** Report id of last parsed report. */
 	uint8_t last_report_id;
-	
+
 } usb_hid_report_t;
 
@@ -128,5 +128,5 @@
 	/** Number of items in report */
 	size_t item_length;
-	
+
 	/** List of report items in report */
 	list_t report_items;
@@ -182,5 +182,5 @@
 	/** The greatest valid usage index */
 	int32_t usage_maximum;
-	
+
 	/** Unit of the value */
 	uint32_t unit;
@@ -210,5 +210,5 @@
 	/** report id */
 	int32_t id;
-	
+
 	/** Extended usage page */
 	uint16_t extended_usage_page;
@@ -216,5 +216,5 @@
 	/** Array of usages specified for this item */
 	uint32_t usages[USB_HID_MAX_USAGES];
-	
+
 	/** Length of usages array */
 	int usages_count;
@@ -225,11 +225,11 @@
 	/** Minimum valid usage index */
 	int32_t usage_minimum;
-	
+
 	/** Maximum valid usage index */
 	int32_t usage_maximum;
-	
+
 	/** Minimum valid logical value */
 	int32_t logical_minimum;
-	
+
 	/** Maximum valid logical value */
 	int32_t logical_maximum;
Index: uspace/lib/usbhid/include/usb/hid/usages/core.h
===================================================================
--- uspace/lib/usbhid/include/usb/hid/usages/core.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbhid/include/usb/hid/usages/core.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,5 +64,5 @@
 	USB_HIDUT_USAGE_GENERIC_DESKTOP_WHEEL = 0x38
 	/* USB_HIDUT_USAGE_GENERIC_DESKTOP_ = , */
-	
+
 } usb_hidut_usage_generic_desktop_t;
 
Index: uspace/lib/usbhid/src/hiddescriptor.c
===================================================================
--- uspace/lib/usbhid/src/hiddescriptor.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbhid/src/hiddescriptor.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 
 
-	
+
 /** The new report item flag. Used to determine when the item is completly
  * configured and should be added to the report structure
@@ -95,13 +95,13 @@
 	link_t *path_it = report->collection_paths.head.next;
 	usb_hid_report_path_t *path = NULL;
-	
+
 	if((report == NULL) || (cmp_path == NULL)) {
 		return NULL;
 	}
-	
+
 	while(path_it != &report->collection_paths.head) {
 		path = list_get_instance(path_it, usb_hid_report_path_t,
 				cpath_link);
-		
+
 		if(usb_hid_report_compare_usage_path(path, cmp_path,
 					USB_HID_PATH_COMPARE_STRICT) == 0){
@@ -184,5 +184,5 @@
 		usages = NULL;
 	}
-	
+
 	usb_hid_report_path_t *path = report_item->usage_path;
 	for(i=0; i<report_item->count; i++){
@@ -237,5 +237,5 @@
 			}
 		}
-		
+
 		usb_hid_report_set_last_item(path, USB_HID_TAG_CLASS_GLOBAL,
 				field->usage_page);
@@ -261,5 +261,5 @@
 		report_des = usb_hid_report_find_description(report,
 			report_item->id, report_item->type);
-		
+
 		if(report_des == NULL){
 			report_des = malloc(
@@ -288,5 +288,5 @@
 		/* append this field to the end of founded report list */
 		list_append(&field->ritems_link, &report_des->report_items);
-		
+
 		/* update the sizes */
 		report_des->bit_length += field->size;
@@ -358,5 +358,5 @@
 	size_t offset_output=0;
 	size_t offset_feature=0;
-	
+
 	link_t *item_link;
 
@@ -368,5 +368,5 @@
 		return EINVAL;
 	}
-	
+
 	/*report item initialization*/
 	if(!(report_item=malloc(sizeof(usb_hid_report_item_t)))){
@@ -381,5 +381,5 @@
 	}
 	usb_hid_report_path_append_item(usage_path, 0, 0);
-	
+
 	while(i<size){
 		if(!USB_HID_ITEM_IS_LONG(data[i])){
@@ -388,9 +388,9 @@
 				return EINVAL;
 			}
-			
+
 			tag = USB_HID_ITEM_TAG(data[i]);
 			item_size = USB_HID_ITEM_SIZE(data[i]);
 			class = USB_HID_ITEM_TAG_CLASS(data[i]);
-			
+
 			ret = usb_hid_report_parse_tag(tag,class,data+i+1,
 				item_size,report_item, usage_path);
@@ -402,12 +402,12 @@
 				 */
 				report_item->usage_path = usage_path;
-					
+
 				usb_hid_report_path_set_report_id(
 				     report_item->usage_path, report_item->id);
-				
+
 				if(report_item->id != 0){
 					report->use_report_ids = 1;
 				}
-					
+
 				switch(tag) {
 				case USB_HID_REPORT_TAG_INPUT:
@@ -419,14 +419,14 @@
 					    report_item->size;
 					break;
-	
+
 				case USB_HID_REPORT_TAG_OUTPUT:
 					report_item->type =
 					    USB_HID_REPORT_TYPE_OUTPUT;
-					
+
 					report_item->offset = offset_output;
 					offset_output += report_item->count *
 					    report_item->size;
 					break;
-	
+
 				case USB_HID_REPORT_TAG_FEATURE:
 					report_item->type =
@@ -437,5 +437,5 @@
 						report_item->size;
 					break;
-	
+
 				default:
 					usb_log_debug2(
@@ -443,5 +443,5 @@
 				    	break;
 				}
-					
+
 				/*
 				 * append new fields to the report structure
@@ -466,5 +466,5 @@
 				new_report_item = usb_hid_report_item_clone(
 				    report_item);
-				
+
 				usb_hid_report_path_t *tmp_path =
 				    usb_hid_report_path_clone(usage_path);
@@ -481,16 +481,16 @@
 				}
 				free(report_item);
-				
+
 				report_item = list_get_instance(item_link,
 				    usb_hid_report_item_t, link);
-				
+
 				usb_hid_report_usage_path_t *tmp_usage_path;
 				tmp_usage_path = list_get_instance(
 				    report_item->usage_path->cpath_link.prev,
 				    usb_hid_report_usage_path_t, rpath_items_link);
-				
+
 				usb_hid_report_set_last_item(usage_path,
 				    USB_HID_TAG_CLASS_GLOBAL, tmp_usage_path->usage_page);
-				
+
 				usb_hid_report_set_last_item(usage_path,
 				    USB_HID_TAG_CLASS_LOCAL, tmp_usage_path->usage);
@@ -498,7 +498,7 @@
 				usb_hid_report_path_free(report_item->usage_path);
 				list_remove (item_link);
-					
+
 				break;
-					
+
 			default:
 				// nothing special to do
@@ -513,8 +513,8 @@
 			i += 3 + USB_HID_ITEM_SIZE(data[i+1]);
 		}
-		
-
-	}
-	
+
+
+	}
+
 	return EOK;
 }
@@ -534,7 +534,7 @@
 	size_t item_size, usb_hid_report_item_t *report_item,
 	usb_hid_report_path_t *usage_path) {
-	
+
 	int ret;
-	
+
 	switch(class){
 	case USB_HID_TAG_CLASS_MAIN:
@@ -559,5 +559,5 @@
 			report_item, usage_path);
 		break;
-	
+
 	default:
 		return USB_HID_NO_ACTION;
@@ -580,5 +580,5 @@
 {
 	usb_hid_report_usage_path_t *path_item;
-	
+
 	switch(tag)
 	{
@@ -589,5 +589,5 @@
 		return 0;
 		break;
-			
+
 	case USB_HID_REPORT_TAG_COLLECTION:
 
@@ -596,5 +596,5 @@
 			usb_hid_report_usage_path_t, rpath_items_link);
 		path_item->flags = *data;
-			
+
 		/* set last item */
 		usb_hid_report_set_last_item(usage_path,
@@ -607,5 +607,5 @@
 			USB_HID_EXTENDED_USAGE(report_item->usages[
 				report_item->usages_count-1]));
-			
+
 		/* append the new one which will be set by common usage/usage
 		 * page */
@@ -617,5 +617,5 @@
 		return USB_HID_NO_ACTION;
 		break;
-			
+
 	case USB_HID_REPORT_TAG_END_COLLECTION:
 		usb_hid_report_remove_last_item(usage_path);
@@ -642,5 +642,5 @@
 	size_t item_size, usb_hid_report_item_t *report_item,
 	usb_hid_report_path_t *usage_path) {
-	
+
 	switch(tag)
 	{
@@ -699,5 +699,5 @@
 		return USB_HID_RESET_OFFSET;
 		break;
-	
+
 	case USB_HID_REPORT_TAG_PUSH:
 	case USB_HID_REPORT_TAG_POP:
@@ -708,5 +708,5 @@
 		return tag;
 		break;
-			
+
 	default:
 		return USB_HID_NO_ACTION;
@@ -730,5 +730,5 @@
 {
 	int32_t extended_usage;
-	
+
 	switch (tag) {
 	case USB_HID_REPORT_TAG_USAGE:
@@ -740,5 +740,5 @@
 			 */
 			break;
-			
+
 		case START_DELIMITER_SET:
 			report_item->in_delimiter = INSIDE_DELIMITER_SET;
@@ -748,13 +748,13 @@
 			extended_usage +=
 			    usb_hid_report_tag_data_uint32(data, item_size);
-			
+
 			report_item->usages[report_item->usages_count] =
 			    extended_usage;
-			
+
 			report_item->usages_count++;
 			break;
 		}
 		break;
-		
+
 	case USB_HID_REPORT_TAG_USAGE_MINIMUM:
 		if (item_size == 3) {
@@ -763,6 +763,6 @@
 			    USB_HID_EXTENDED_USAGE_PAGE(
 			    usb_hid_report_tag_data_uint32(data, item_size));
-			
-			
+
+
 			report_item->usage_minimum =
 			    USB_HID_EXTENDED_USAGE(
@@ -773,5 +773,5 @@
 		}
 		break;
-		
+
 	case USB_HID_REPORT_TAG_USAGE_MAXIMUM:
 		if (item_size == 3) {
@@ -781,10 +781,10 @@
 				return USB_HID_INVALID;
 			}
-			
+
 			/* Usage extended usages */
 			report_item->extended_usage_page =
 			    USB_HID_EXTENDED_USAGE_PAGE(
 			    usb_hid_report_tag_data_uint32(data,item_size));
-			
+
 			report_item->usage_maximum =
 			    USB_HID_EXTENDED_USAGE(
@@ -794,9 +794,9 @@
 			    usb_hid_report_tag_data_uint32(data,item_size);
 		}
-		
+
 		/* Put the records into the usages array */
 		for (int32_t i = report_item->usage_minimum;
 		    i <= report_item->usage_maximum; i++) {
-			
+
 			if (report_item->extended_usage_page) {
 				report_item->usages[report_item->usages_count++] =
@@ -808,46 +808,46 @@
 		}
 		report_item->extended_usage_page = 0;
-		
-		break;
-		
+
+		break;
+
 	case USB_HID_REPORT_TAG_DESIGNATOR_INDEX:
 		report_item->designator_index =
 		    usb_hid_report_tag_data_uint32(data, item_size);
 		break;
-	
+
 	case USB_HID_REPORT_TAG_DESIGNATOR_MINIMUM:
 		report_item->designator_minimum =
 		    usb_hid_report_tag_data_uint32(data, item_size);
 		break;
-	
+
 	case USB_HID_REPORT_TAG_DESIGNATOR_MAXIMUM:
 		report_item->designator_maximum =
 		    usb_hid_report_tag_data_uint32(data, item_size);
 		break;
-	
+
 	case USB_HID_REPORT_TAG_STRING_INDEX:
 		report_item->string_index =
 		    usb_hid_report_tag_data_uint32(data, item_size);
 		break;
-	
+
 	case USB_HID_REPORT_TAG_STRING_MINIMUM:
 		report_item->string_minimum =
 		    usb_hid_report_tag_data_uint32(data, item_size);
 		break;
-	
+
 	case USB_HID_REPORT_TAG_STRING_MAXIMUM:
 		report_item->string_maximum =
 		    usb_hid_report_tag_data_uint32(data, item_size);
 		break;
-	
+
 	case USB_HID_REPORT_TAG_DELIMITER:
 		report_item->in_delimiter =
 		    usb_hid_report_tag_data_uint32(data, item_size);
 		break;
-	
+
 	default:
 		return USB_HID_NO_ACTION;
 	}
-	
+
 	return 0;
 }
@@ -965,5 +965,5 @@
 		usb_hid_report_path_free(path);
 	}
-	
+
 	// free report items
 	usb_hid_report_description_t *report_des;
@@ -974,5 +974,5 @@
 
 		list_remove(&report_des->reports_link);
-		
+
 		while(!list_empty(&report_des->report_items)) {
 			field = list_get_instance(
@@ -984,8 +984,8 @@
 			free(field);
 		}
-		
+
 		free(report_des);
 	}
-	
+
 	return;
 }
Index: uspace/lib/usbhid/src/hidreport.c
===================================================================
--- uspace/lib/usbhid/src/hidreport.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbhid/src/hidreport.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,9 +55,9 @@
 	assert(report_desc != NULL);
 	assert(size != NULL);
-	
+
 	usb_dp_parser_t parser =  {
 		.nesting = usb_dp_standard_descriptor_nesting
 	};
-	
+
 	usb_dp_parser_data_t parser_data = {
 		.data = usb_device_descriptors(dev)->full_config,
@@ -65,5 +65,5 @@
 		.arg = NULL
 	};
-	
+
 	/*
 	 * First nested descriptor of the configuration descriptor.
@@ -72,5 +72,5 @@
 	    usb_dp_get_nested_descriptor(&parser, &parser_data,
 	    usb_device_descriptors(dev)->full_config);
-	
+
 	/*
 	 * Find the interface descriptor corresponding to our interface number.
@@ -82,5 +82,5 @@
 		++i;
 	}
-	
+
 	if (d == NULL) {
 		usb_log_error("The %d. interface descriptor not found!",
@@ -88,5 +88,5 @@
 		return ENOENT;
 	}
-	
+
 	/*
 	 * First nested descriptor of the interface descriptor.
@@ -94,5 +94,5 @@
 	const uint8_t *iface_desc = d;
 	d = usb_dp_get_nested_descriptor(&parser, &parser_data, iface_desc);
-	
+
 	/*
 	 * Search through siblings until the HID descriptor is found.
@@ -102,10 +102,10 @@
 		    iface_desc, d);
 	}
-	
+
 	if (d == NULL) {
 		usb_log_fatal("No HID descriptor found!");
 		return ENOENT;
 	}
-	
+
 	if (*d != sizeof(usb_standard_hid_descriptor_t)) {
 		usb_log_error("HID descriptor has wrong size (%u, expected %zu"
@@ -113,8 +113,8 @@
 		return EINVAL;
 	}
-	
+
 	usb_standard_hid_descriptor_t *hid_desc =
 	    (usb_standard_hid_descriptor_t *)d;
-	
+
 	uint16_t length = uint16_usb2host(hid_desc->report_desc_info.length);
 	size_t actual_size = 0;
@@ -129,7 +129,7 @@
 		return ENOMEM;
 	}
-	
+
 	usb_log_debug("Getting Report descriptor, expected size: %u", length);
-	
+
 	/*
 	 * Get the descriptor from the device.
@@ -153,9 +153,9 @@
 		return EINVAL;
 	}
-	
+
 	*size = length;
-	
+
 	usb_log_debug("Done.");
-	
+
 	return EOK;
 }
@@ -171,10 +171,10 @@
 		return EINVAL;
 	}
-	
+
 //	uint8_t *report_desc = NULL;
 //	size_t report_size;
-	
+
 	errno_t rc = usb_hid_get_report_descriptor(dev, report_desc, report_size);
-	
+
 	if (rc != EOK) {
 		usb_log_error("Problem with getting Report descriptor: %s.",
@@ -186,7 +186,7 @@
 		return rc;
 	}
-	
+
 	assert(*report_desc != NULL);
-	
+
 	rc = usb_hid_parse_report_descriptor(report, *report_desc, *report_size);
 	if (rc != EOK) {
@@ -197,7 +197,7 @@
 		return rc;
 	}
-	
+
 	usb_hid_descriptor_print(report);
-	
+
 	return EOK;
 }
Index: uspace/lib/usbhost/include/usb/host/utils/malloc32.h
===================================================================
--- uspace/lib/usbhost/include/usb/host/utils/malloc32.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbhost/include/usb/host/utils/malloc32.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,8 +60,8 @@
 	uintptr_t result;
 	errno_t ret = as_get_physical_mapping(addr, &result);
-	
+
 	if (ret != EOK)
 		return 0;
-	
+
 	return result;
 }
Index: uspace/lib/usbhost/src/bus.c
===================================================================
--- uspace/lib/usbhost/src/bus.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbhost/src/bus.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -329,5 +329,5 @@
 	 * make the synchronization work.
 	 */
-	
+
 	/* Tear down all drivers working with the device. */
 	if ((rc = ddf_fun_offline(dev->fun))) {
Index: uspace/lib/usbvirt/src/ctrltransfer.c
===================================================================
--- uspace/lib/usbvirt/src/ctrltransfer.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbvirt/src/ctrltransfer.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,5 +60,5 @@
 		return EFORWARD;
 	}
-	
+
 	const usbvirt_control_request_handler_t *handler = control_handlers;
 	for (;handler->callback != NULL; ++handler) {
Index: uspace/lib/usbvirt/src/device.c
===================================================================
--- uspace/lib/usbvirt/src/device.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbvirt/src/device.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -86,29 +86,29 @@
 	if (DEV != NULL)
 		return ELIMIT;
-	
+
 	devman_handle_t handle;
 	errno_t rc = devman_fun_get_handle(vhc_path, &handle, 0);
 	if (rc != EOK)
 		return rc;
-	
+
 	async_sess_t *hcd_sess =
 	    devman_device_connect(handle, 0);
 	if (!hcd_sess)
 		return ENOMEM;
-	
+
 	DEV = dev;
 	dev->vhc_sess = hcd_sess;
-	
+
 	async_exch_t *exch = async_exchange_begin(hcd_sess);
-	
+
 	port_id_t port;
 	rc = async_create_callback_port(exch, INTERFACE_USBVIRT_CB, 0, 0,
 	    callback_connection, NULL, &port);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc != EOK)
 		DEV = NULL;
-	
+
 	return rc;
 }
Index: uspace/lib/usbvirt/src/ipc_hc.c
===================================================================
--- uspace/lib/usbvirt/src/ipc_hc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/lib/usbvirt/src/ipc_hc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,13 +61,13 @@
 	if (!sess)
 		return EINVAL;
-	
+
 	if ((setup_buffer == NULL) || (setup_buffer_size == 0))
 		return EINVAL;
-	
+
 	if ((data_buffer == NULL) || (data_buffer_size == 0))
 		return EINVAL;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	aid_t opening_request = async_send_0(exch, IPC_M_USBVIRT_CONTROL_READ,
 	    NULL);
@@ -76,5 +76,5 @@
 		return ENOMEM;
 	}
-	
+
 	errno_t rc = async_data_write_start(exch, setup_buffer,
 	    setup_buffer_size);
@@ -84,21 +84,21 @@
 		return rc;
 	}
-	
+
 	ipc_call_t data_request_call;
 	aid_t data_request = async_data_read(exch, data_buffer,
 	    data_buffer_size, &data_request_call);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (data_request == 0) {
 		async_forget(opening_request);
 		return ENOMEM;
 	}
-	
+
 	errno_t data_request_rc;
 	errno_t opening_request_rc;
 	async_wait_for(data_request, &data_request_rc);
 	async_wait_for(opening_request, &opening_request_rc);
-	
+
 	if (data_request_rc != EOK) {
 		/* Prefer the return code of the opening request. */
@@ -108,11 +108,11 @@
 			return (errno_t) data_request_rc;
 	}
-	
+
 	if (opening_request_rc != EOK)
 		return (errno_t) opening_request_rc;
-	
+
 	if (data_transferred_size != NULL)
 		*data_transferred_size = IPC_GET_ARG2(data_request_call);
-	
+
 	return EOK;
 }
@@ -135,13 +135,13 @@
 	if (!sess)
 		return EINVAL;
-	
+
 	if ((setup_buffer == NULL) || (setup_buffer_size == 0))
 		return EINVAL;
-	
+
 	if ((data_buffer_size > 0) && (data_buffer == NULL))
 		return EINVAL;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	aid_t opening_request = async_send_1(exch, IPC_M_USBVIRT_CONTROL_WRITE,
 	    data_buffer_size, NULL);
@@ -150,5 +150,5 @@
 		return ENOMEM;
 	}
-	
+
 	errno_t rc = async_data_write_start(exch, setup_buffer,
 	    setup_buffer_size);
@@ -158,5 +158,5 @@
 		return rc;
 	}
-	
+
 	if (data_buffer_size > 0) {
 		rc = async_data_write_start(exch, data_buffer,
@@ -168,10 +168,10 @@
 		}
 	}
-	
+
 	async_exchange_end(exch);
-	
+
 	errno_t opening_request_rc;
 	async_wait_for(opening_request, &opening_request_rc);
-	
+
 	return (errno_t) opening_request_rc;
 }
@@ -194,7 +194,7 @@
 	if (!sess)
 		return EINVAL;
-	
+
 	usbvirt_hc_to_device_method_t method;
-	
+
 	switch (tr_type) {
 	case USB_TRANSFER_INTERRUPT:
@@ -207,13 +207,13 @@
 		return EINVAL;
 	}
-	
+
 	if ((ep <= 0) || (ep >= USBVIRT_ENDPOINT_MAX))
 		return EINVAL;
-	
+
 	if ((data == NULL) || (data_size == 0))
 		return EINVAL;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	aid_t opening_request = async_send_2(exch, method, ep, tr_type, NULL);
 	if (opening_request == 0) {
@@ -221,21 +221,21 @@
 		return ENOMEM;
 	}
-	
+
 	ipc_call_t data_request_call;
 	aid_t data_request = async_data_read(exch, data, data_size,
 	    &data_request_call);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (data_request == 0) {
 		async_forget(opening_request);
 		return ENOMEM;
 	}
-	
+
 	errno_t data_request_rc;
 	errno_t opening_request_rc;
 	async_wait_for(data_request, &data_request_rc);
 	async_wait_for(opening_request, &opening_request_rc);
-	
+
 	if (data_request_rc != EOK) {
 		/* Prefer the return code of the opening request. */
@@ -245,11 +245,11 @@
 			return (errno_t) data_request_rc;
 	}
-	
+
 	if (opening_request_rc != EOK)
 		return (errno_t) opening_request_rc;
-	
+
 	if (act_size != NULL)
 		*act_size = IPC_GET_ARG2(data_request_call);
-	
+
 	return EOK;
 }
@@ -271,7 +271,7 @@
 	if (!sess)
 		return EINVAL;
-	
+
 	usbvirt_hc_to_device_method_t method;
-	
+
 	switch (tr_type) {
 	case USB_TRANSFER_INTERRUPT:
@@ -284,13 +284,13 @@
 		return EINVAL;
 	}
-	
+
 	if ((ep <= 0) || (ep >= USBVIRT_ENDPOINT_MAX))
 		return EINVAL;
-	
+
 	if ((data == NULL) || (data_size == 0))
 		return EINVAL;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	aid_t opening_request = async_send_1(exch, method, ep, NULL);
 	if (opening_request == 0) {
@@ -298,17 +298,17 @@
 		return ENOMEM;
 	}
-	
+
 	errno_t rc = async_data_write_start(exch, data, data_size);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc != EOK) {
 		async_forget(opening_request);
 		return rc;
 	}
-	
+
 	errno_t opening_request_rc;
 	async_wait_for(opening_request, &opening_request_rc);
-	
+
 	return (errno_t) opening_request_rc;
 }
Index: uspace/srv/bd/file_bd/file_bd.c
===================================================================
--- uspace/srv/bd/file_bd/file_bd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/bd/file_bd/file_bd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -157,5 +157,5 @@
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
@@ -171,5 +171,5 @@
 	bd_srvs_init(&bd_srvs);
 	bd_srvs.ops = &file_bd_ops;
-	
+
 	async_set_fallback_port_handler(file_bd_connection, NULL);
 	errno_t rc = loc_server_register(NAME);
@@ -178,14 +178,14 @@
 		return rc;
 	}
-	
+
 	img = fopen(fname, "rb+");
 	if (img == NULL)
 		return EINVAL;
-	
+
 	if (fseek(img, 0, SEEK_END) != 0) {
 		fclose(img);
 		return EIO;
 	}
-	
+
 	off64_t img_size = ftell(img);
 	if (img_size < 0) {
@@ -193,9 +193,9 @@
 		return EIO;
 	}
-	
+
 	num_blocks = img_size / block_size;
-	
+
 	fibril_mutex_initialize(&dev_lock);
-	
+
 	return EOK;
 }
Index: uspace/srv/bd/rd/rd.c
===================================================================
--- uspace/srv/bd/rd/rd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/bd/rd/rd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -119,9 +119,9 @@
 		return ELIMIT;
 	}
-	
+
 	fibril_rwlock_read_lock(&rd_lock);
 	memcpy(buf, rd_addr + ba * block_size, min(block_size * cnt, size));
 	fibril_rwlock_read_unlock(&rd_lock);
-	
+
 	return EOK;
 }
@@ -135,9 +135,9 @@
 		return ELIMIT;
 	}
-	
+
 	fibril_rwlock_write_lock(&rd_lock);
 	memcpy(rd_addr + ba * block_size, buf, min(block_size * cnt, size));
 	fibril_rwlock_write_unlock(&rd_lock);
-	
+
 	return EOK;
 }
@@ -152,5 +152,5 @@
 		return false;
 	}
-	
+
 	sysarg_t addr_phys;
 	ret = sysinfo_get_value("rd.address.physical", &addr_phys);
@@ -159,9 +159,9 @@
 		return false;
 	}
-	
+
 	rd_size = ALIGN_UP(size, block_size);
 	unsigned int flags =
 	    AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE;
-	
+
 	ret = physmem_map(addr_phys,
 	    ALIGN_UP(rd_size, PAGE_SIZE) >> PAGE_WIDTH, flags, &rd_addr);
@@ -170,11 +170,11 @@
 		return false;
 	}
-	
+
 	printf("%s: Found RAM disk at %p, %" PRIun " bytes\n", NAME,
 	    (void *) addr_phys, size);
-	
+
 	bd_srvs_init(&bd_srvs);
 	bd_srvs.ops = &rd_bd_ops;
-	
+
 	async_set_fallback_port_handler(rd_client_conn, NULL);
 	ret = loc_server_register(NAME);
@@ -183,5 +183,5 @@
 		return false;
 	}
-	
+
 	service_id_t service_id;
 	ret = loc_service_register("bd/initrd", &service_id);
@@ -190,7 +190,7 @@
 		return false;
 	}
-	
+
 	fibril_rwlock_initialize(&rd_lock);
-	
+
 	return true;
 }
@@ -213,11 +213,11 @@
 {
 	printf("%s: HelenOS RAM disk server\n", NAME);
-	
+
 	if (!rd_init())
 		return -1;
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	async_manager();
-	
+
 	/* Never reached */
 	return 0;
Index: uspace/srv/bd/sata_bd/sata_bd.c
===================================================================
--- uspace/srv/bd/sata_bd/sata_bd.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/bd/sata_bd/sata_bd.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -94,21 +94,21 @@
 	size_t count, i;
 	errno_t rc;
-		
+
 	/* If device is SATA, add device to the disk array. */
 	disk[disk_count].sess = ahci_get_sess(funh, &disk[disk_count].dev_name);
 	if(disk[disk_count].sess != NULL) {
-		
+
 		ahci_get_sata_device_name(disk[disk_count].sess,
 		    SATA_DEV_NAME_LENGTH, disk[disk_count].sata_dev_name);
-		
+
 		ahci_get_block_size(disk[disk_count].sess,
 		    &disk[disk_count].block_size);
-		
+
 		ahci_get_num_blocks(disk[disk_count].sess, &disk[disk_count].blocks);
-		
+
 		bd_srvs_init(&disk[disk_count].bds);
 		disk[disk_count].bds.ops = &sata_bd_ops;
 		disk[disk_count].bds.sarg = &disk[disk_count];
-		
+
 		printf("Device %s - %s , blocks: %lu, block_size: %lu\n",
 		    disk[disk_count].dev_name, disk[disk_count].sata_dev_name,
@@ -118,5 +118,5 @@
 		++disk_count;
 	}
-	
+
 	/* search children */
 	rc = devman_fun_get_child(funh, &devh);
@@ -152,5 +152,5 @@
 	devman_handle_t root_fun;
 	errno_t rc;
-	
+
 	disk_count = 0;
 
@@ -160,7 +160,7 @@
 		return EIO;
 	}
-	
+
 	scan_device_tree(root_fun);
-	
+
 	return EOK;
 }
@@ -248,5 +248,5 @@
 	errno_t rc;
 	category_id_t disk_cat;
-	
+
 	async_set_fallback_port_handler(sata_bd_connection, NULL);
 	rc = loc_server_register(NAME);
@@ -255,5 +255,5 @@
 		return rc;
 	}
-	
+
 	rc = get_sata_disks();
 	if (rc != EOK) {
Index: uspace/srv/clipboard/clipboard.c
===================================================================
--- uspace/srv/clipboard/clipboard.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/clipboard/clipboard.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -52,16 +52,16 @@
 	errno_t rc;
 	size_t size;
-	
+
 	switch (IPC_GET_ARG1(*request)) {
 	case CLIPBOARD_TAG_NONE:
 		fibril_mutex_lock(&clip_mtx);
-		
+
 		if (clip_data)
 			free(clip_data);
-		
+
 		clip_data = NULL;
 		clip_size = 0;
 		clip_tag = CLIPBOARD_TAG_NONE;
-		
+
 		fibril_mutex_unlock(&clip_mtx);
 		async_answer_0(rid, EOK);
@@ -73,14 +73,14 @@
 			break;
 		}
-		
+
 		fibril_mutex_lock(&clip_mtx);
-		
+
 		if (clip_data)
 			free(clip_data);
-		
+
 		clip_data = data;
 		clip_size = size;
 		clip_tag = CLIPBOARD_TAG_DATA;
-		
+
 		fibril_mutex_unlock(&clip_mtx);
 		async_answer_0(rid, EOK);
@@ -94,8 +94,8 @@
 {
 	fibril_mutex_lock(&clip_mtx);
-	
+
 	ipc_callid_t callid;
 	size_t size;
-	
+
 	/* Check for clipboard data tag compatibility */
 	switch (IPC_GET_ARG1(*request)) {
@@ -106,5 +106,5 @@
 			break;
 		}
-		
+
 		if (clip_tag != CLIPBOARD_TAG_DATA) {
 			/* So far we only understand binary data */
@@ -113,5 +113,5 @@
 			break;
 		}
-		
+
 		if (clip_size != size) {
 			/* The client expects different size of data */
@@ -120,5 +120,5 @@
 			break;
 		}
-		
+
 		errno_t retval = async_data_read_finalize(callid, clip_data, size);
 		if (retval != EOK) {
@@ -126,5 +126,5 @@
 			break;
 		}
-		
+
 		async_answer_0(rid, EOK);
 		break;
@@ -137,5 +137,5 @@
 		break;
 	}
-	
+
 	fibril_mutex_unlock(&clip_mtx);
 }
@@ -144,8 +144,8 @@
 {
 	fibril_mutex_lock(&clip_mtx);
-	
+
 	size_t size = clip_size;
 	clipboard_tag_t tag = clip_tag;
-	
+
 	fibril_mutex_unlock(&clip_mtx);
 	async_answer_2(rid, EOK, (sysarg_t) size, (sysarg_t) tag);
@@ -156,12 +156,12 @@
 	/* Accept connection */
 	async_answer_0(iid, EOK);
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case CLIPBOARD_PUT_DATA:
@@ -183,8 +183,8 @@
 {
 	errno_t rc;
-	
+
 	printf("%s: HelenOS clipboard service\n", NAME);
 	async_set_fallback_port_handler(clip_connection, NULL);
-	
+
 	rc = loc_server_register(NAME);
 	if (rc != EOK) {
@@ -192,5 +192,5 @@
 		return rc;
 	}
-	
+
 	rc = loc_service_register(SERVICE_NAME_CLIPBOARD, &svc_id);
 	if (rc != EOK) {
@@ -198,9 +198,9 @@
 		return rc;
 	}
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Never reached */
 	return 0;
Index: uspace/srv/devman/client_conn.c
===================================================================
--- uspace/srv/devman/client_conn.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/client_conn.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,5 +65,5 @@
 	char *pathname;
 	devman_handle_t handle;
-	
+
 	errno_t rc = async_data_write_accept((void **) &pathname, true, 0, 0, 0, 0);
 	if (rc != EOK) {
@@ -71,7 +71,7 @@
 		return;
 	}
-	
+
 	fun_node_t *fun = find_fun_node_by_path(&device_tree, pathname);
-	
+
 	free(pathname);
 
@@ -306,7 +306,7 @@
 		return;
 	}
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
-	
+
 	/* Check function state */
 	if (fun->state == FUN_REMOVED) {
@@ -319,5 +319,5 @@
 		return;
 	}
-	
+
 	size_t sent_length = str_size(fun->pathname);
 	if (sent_length > data_len) {
@@ -337,7 +337,7 @@
 {
 	dev_node_t *dev;
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
-	
+
 	dev = find_dev_node_no_lock(&device_tree, IPC_GET_ARG1(*icall));
 	if (dev == NULL || dev->state == DEVICE_REMOVED) {
@@ -346,5 +346,5 @@
 		return;
 	}
-	
+
 	if (dev->pfun == NULL) {
 		fibril_rwlock_read_unlock(&device_tree.rwlock);
@@ -352,7 +352,7 @@
 		return;
 	}
-	
+
 	async_answer_1(iid, EOK, dev->pfun->handle);
-	
+
 	fibril_rwlock_read_unlock(&device_tree.rwlock);
 }
@@ -364,5 +364,5 @@
 	size_t act_size;
 	errno_t rc;
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -370,7 +370,7 @@
 		return;
 	}
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
-	
+
 	dev_node_t *dev = find_dev_node_no_lock(&device_tree,
 	    IPC_GET_ARG1(*icall));
@@ -381,5 +381,5 @@
 		return;
 	}
-	
+
 	devman_handle_t *hdl_buf = (devman_handle_t *) malloc(size);
 	if (hdl_buf == NULL) {
@@ -389,5 +389,5 @@
 		return;
 	}
-	
+
 	rc = dev_get_functions(&device_tree, dev, hdl_buf, size, &act_size);
 	if (rc != EOK) {
@@ -397,10 +397,10 @@
 		return;
 	}
-	
-	fibril_rwlock_read_unlock(&device_tree.rwlock);
-	
+
+	fibril_rwlock_read_unlock(&device_tree.rwlock);
+
 	errno_t retval = async_data_read_finalize(callid, hdl_buf, size);
 	free(hdl_buf);
-	
+
 	async_answer_1(iid, retval, act_size);
 }
@@ -410,7 +410,7 @@
 {
 	fun_node_t *fun;
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
-	
+
 	fun = find_fun_node_no_lock(&device_tree, IPC_GET_ARG1(*icall));
 	if (fun == NULL || fun->state == FUN_REMOVED) {
@@ -419,5 +419,5 @@
 		return;
 	}
-	
+
 	if (fun->child == NULL) {
 		fibril_rwlock_read_unlock(&device_tree.rwlock);
@@ -425,7 +425,7 @@
 		return;
 	}
-	
+
 	async_answer_1(iid, EOK, fun->child->handle);
-	
+
 	fibril_rwlock_read_unlock(&device_tree.rwlock);
 }
@@ -447,8 +447,8 @@
 		return;
 	}
-	
+
 	rc = driver_fun_online(&device_tree, fun);
 	fun_del_ref(fun);
-	
+
 	async_answer_0(iid, rc);
 }
@@ -472,8 +472,8 @@
 		return;
 	}
-	
+
 	rc = driver_fun_offline(&device_tree, fun);
 	fun_del_ref(fun);
-	
+
 	async_answer_0(iid, rc);
 }
@@ -485,5 +485,5 @@
 
 	fun = find_loc_tree_function(&device_tree, IPC_GET_ARG1(*icall));
-	
+
 	if (fun == NULL) {
 		async_answer_0(iid, ENOENT);
@@ -512,10 +512,10 @@
 	size_t act_size;
 	errno_t rc;
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(iid, EREFUSED);
 		return;
 	}
-	
+
 	devman_handle_t *hdl_buf = (devman_handle_t *) malloc(size);
 	if (hdl_buf == NULL) {
@@ -524,5 +524,5 @@
 		return;
 	}
-	
+
 	rc = driver_get_list(&drivers_list, hdl_buf, size, &act_size);
 	if (rc != EOK) {
@@ -531,8 +531,8 @@
 		return;
 	}
-	
+
 	errno_t retval = async_data_read_finalize(callid, hdl_buf, size);
 	free(hdl_buf);
-	
+
 	async_answer_1(iid, retval, act_size);
 }
@@ -544,10 +544,10 @@
 	size_t act_size;
 	errno_t rc;
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(iid, EREFUSED);
 		return;
 	}
-	
+
 	driver_t *drv = driver_find(&drivers_list, IPC_GET_ARG1(*icall));
 	if (drv == NULL) {
@@ -556,5 +556,5 @@
 		return;
 	}
-	
+
 	devman_handle_t *hdl_buf = (devman_handle_t *) malloc(size);
 	if (hdl_buf == NULL) {
@@ -563,5 +563,5 @@
 		return;
 	}
-	
+
 	rc = driver_get_devices(drv, hdl_buf, size, &act_size);
 	if (rc != EOK) {
@@ -571,8 +571,8 @@
 		return;
 	}
-	
+
 	errno_t retval = async_data_read_finalize(callid, hdl_buf, size);
 	free(hdl_buf);
-	
+
 	async_answer_1(iid, retval, act_size);
 }
@@ -583,5 +583,5 @@
 {
 	char *drvname;
-	
+
 	errno_t rc = async_data_write_accept((void **) &drvname, true, 0, 0, 0, 0);
 	if (rc != EOK) {
@@ -589,14 +589,14 @@
 		return;
 	}
-	
+
 	driver_t *driver = driver_find_by_name(&drivers_list, drvname);
-	
+
 	free(drvname);
-	
+
 	if (driver == NULL) {
 		async_answer_0(iid, ENOENT);
 		return;
 	}
-	
+
 	async_answer_1(iid, EOK, driver->handle);
 }
@@ -697,5 +697,5 @@
 {
 	driver_t *drv;
-	
+
 	drv = driver_find(&drivers_list, IPC_GET_ARG1(*icall));
 	if (drv == NULL) {
@@ -703,5 +703,5 @@
 		return;
 	}
-	
+
 	async_answer_1(iid, EOK, (sysarg_t) drv->state);
 }
@@ -712,5 +712,5 @@
 	driver_t *drv;
 	errno_t rc;
-	
+
 	drv = driver_find(&drivers_list, IPC_GET_ARG1(*icall));
 	if (drv == NULL) {
@@ -718,5 +718,5 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&drv->driver_mutex);
 	rc = start_driver(drv) ? EOK : EIO;
@@ -731,5 +731,5 @@
 	driver_t *drv;
 	errno_t rc;
-	
+
 	drv = driver_find(&drivers_list, IPC_GET_ARG1(*icall));
 	if (drv == NULL) {
@@ -737,5 +737,5 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&drv->driver_mutex);
 	rc = stop_driver(drv);
@@ -750,12 +750,12 @@
 	/* Accept connection. */
 	async_answer_0(iid, EOK);
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case DEVMAN_DEVICE_GET_HANDLE:
Index: uspace/srv/devman/dev.c
===================================================================
--- uspace/srv/devman/dev.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/dev.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,13 +43,13 @@
 {
 	dev_node_t *dev;
-	
+
 	dev = calloc(1, sizeof(dev_node_t));
 	if (dev == NULL)
 		return NULL;
-	
+
 	atomic_set(&dev->refcnt, 0);
 	list_initialize(&dev->functions);
 	link_initialize(&dev->driver_devices);
-	
+
 	return dev;
 }
@@ -64,5 +64,5 @@
 	assert(dev->pfun == NULL);
 	assert(dev->drv == NULL);
-	
+
 	free(dev);
 }
@@ -98,9 +98,9 @@
 {
 	assert(fibril_rwlock_is_locked(&tree->rwlock));
-	
+
 	ht_link_t *link = hash_table_find(&tree->devman_devices, &handle);
 	if (link == NULL)
 		return NULL;
-	
+
 	return hash_table_get_inst(link, dev_node_t, devman_dev);
 }
@@ -115,12 +115,12 @@
 {
 	dev_node_t *dev = NULL;
-	
+
 	fibril_rwlock_read_lock(&tree->rwlock);
 	dev = find_dev_node_no_lock(tree, handle);
 	if (dev != NULL)
 		dev_add_ref(dev);
-	
+
 	fibril_rwlock_read_unlock(&tree->rwlock);
-	
+
 	return dev;
 }
Index: uspace/srv/devman/devman.h
===================================================================
--- uspace/srv/devman/devman.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/devman.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,5 +68,5 @@
 	/** Handle */
 	devman_handle_t handle;
-	
+
 	/**
 	 * Specifies whether the driver has been started and wheter is running
@@ -74,5 +74,5 @@
 	 */
 	driver_state_t state;
-	
+
 	/** Session asociated with this driver. */
 	async_sess_t *sess;
@@ -85,5 +85,5 @@
 	/** List of devices controlled by this driver. */
 	list_t devices;
-	
+
 	/**
 	 * Fibril mutex for this driver - driver state, list of devices, session.
@@ -116,11 +116,11 @@
 	/** Reference count */
 	atomic_t refcnt;
-	
+
 	/** The global unique identifier of the device. */
 	devman_handle_t handle;
-	
+
 	/** (Parent) function the device is attached to. */
 	fun_node_t *pfun;
-	
+
 	/** List of device functions. */
 	list_t functions;
@@ -131,10 +131,10 @@
 	/** Link to list of devices owned by driver (driver_t.devices) */
 	link_t driver_devices;
-	
+
 	/**
 	 * Used by the hash table of devices indexed by devman device handles.
 	 */
 	ht_link_t devman_dev;
-	
+
 	/**
 	 * Whether this device was already passed to the driver.
@@ -160,5 +160,5 @@
 	/** Locked while performing reconfiguration operations */
 	fibril_mutex_t busy_lock;
-	
+
 	/** The global unique identifier of the function */
 	devman_handle_t handle;
@@ -167,27 +167,27 @@
 	/** Function type */
 	fun_type_t ftype;
-	
+
 	/** Full path and name of the device in device hierarchy */
 	char *pathname;
-	
+
 	/** Device which this function belongs to */
 	dev_node_t *dev;
-	
+
 	/** Link to list of functions in the device (ddf_dev_t.functions) */
 	link_t dev_functions;
-	
+
 	/** Child device node (if any attached). */
 	dev_node_t *child;
 	/** List of device ids for device-to-driver matching. */
 	match_id_list_t match_ids;
-	
+
 	/** Service ID if the device function is registered with loc. */
 	service_id_t service_id;
-	
+
 	/**
 	 * Used by the hash table of functions indexed by devman device handles.
 	 */
 	ht_link_t devman_fun;
-	
+
 	/**
 	 * Used by the hash table of functions indexed by service IDs.
@@ -200,5 +200,5 @@
 	/** Root device node. */
 	fun_node_t *root_node;
-	
+
 	/**
 	 * The next available handle - handles are assigned in a sequential
@@ -206,14 +206,14 @@
 	 */
 	devman_handle_t current_handle;
-	
+
 	/** Synchronize access to the device tree. */
 	fibril_rwlock_t rwlock;
-	
+
 	/** Hash table of all devices indexed by devman handles. */
 	hash_table_t devman_devices;
-	
+
 	/** Hash table of all devices indexed by devman handles. */
 	hash_table_t devman_functions;
-	
+
 	/**
 	 * Hash table of services registered with location service, indexed by
Index: uspace/srv/devman/devtree.c
===================================================================
--- uspace/srv/devman/devtree.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/devtree.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -127,9 +127,9 @@
 	fun_node_t *fun;
 	dev_node_t *dev;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "create_root_nodes()");
-	
+
 	fibril_rwlock_write_lock(&tree->rwlock);
-	
+
 	/*
 	 * Create root function. This is a pseudo function to which
@@ -138,5 +138,5 @@
 	 * the parent function.
 	 */
-	
+
 	fun = create_fun_node();
 	if (fun == NULL) {
@@ -144,8 +144,8 @@
 		return false;
 	}
-	
+
 	fun_add_ref(fun);
 	insert_fun_node(tree, fun, str_dup(""), NULL);
-	
+
 	match_id_t *id = create_match_id();
 	id->id = str_dup("root");
@@ -153,5 +153,5 @@
 	add_match_id(&fun->match_ids, id);
 	tree->root_node = fun;
-	
+
 	/*
 	 * Create root device node.
@@ -162,10 +162,10 @@
 		return false;
 	}
-	
+
 	dev_add_ref(dev);
 	insert_dev_node(tree, dev, fun);
-	
+
 	fibril_rwlock_write_unlock(&tree->rwlock);
-	
+
 	return dev != NULL;
 }
@@ -182,17 +182,17 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "init_device_tree()");
-	
+
 	tree->current_handle = 0;
-	
+
 	hash_table_create(&tree->devman_devices, 0, 0, &devman_devices_ops);
 	hash_table_create(&tree->devman_functions, 0, 0, &devman_functions_ops);
 	hash_table_create(&tree->loc_functions, 0, 0, &loc_devices_ops);
-	
+
 	fibril_rwlock_initialize(&tree->rwlock);
-	
+
 	/* Create root function and root device and add them to the device tree. */
 	if (!create_root_nodes(tree))
 		return false;
-    
+
 	/* Find suitable driver and start it. */
 	dev_node_t *rdev = tree->root_node->child;
@@ -200,5 +200,5 @@
 	bool rc = assign_driver(rdev, drivers_list, tree);
 	dev_del_ref(rdev);
-	
+
 	return rc;
 }
@@ -216,5 +216,5 @@
 {
 	assert(fibril_rwlock_is_write_locked(&tree->rwlock));
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "insert_dev_node(dev=%p, pfun=%p [\"%s\"])",
 	    dev, pfun, pfun->pathname);
@@ -227,5 +227,5 @@
 	dev->pfun = pfun;
 	pfun->child = dev;
-	
+
 	return true;
 }
@@ -239,14 +239,14 @@
 {
 	assert(fibril_rwlock_is_write_locked(&tree->rwlock));
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "remove_dev_node(dev=%p)", dev);
-	
+
 	/* Remove node from the handle-to-node map. */
 	hash_table_remove(&tree->devman_devices, &dev->handle);
-	
+
 	/* Unlink from parent function. */
 	dev->pfun->child = NULL;
 	dev->pfun = NULL;
-	
+
 	dev->state = DEVICE_REMOVED;
 }
@@ -267,8 +267,8 @@
 {
 	fun_node_t *pfun;
-	
+
 	assert(fun_name != NULL);
 	assert(fibril_rwlock_is_write_locked(&tree->rwlock));
-	
+
 	/*
 	 * The root function is a special case, it does not belong to any
@@ -276,10 +276,10 @@
 	 */
 	pfun = (dev != NULL) ? dev->pfun : NULL;
-	
+
 	fun->name = fun_name;
 	if (!set_fun_path(tree, fun, pfun)) {
 		return false;
 	}
-	
+
 	/* Add the node to the handle-to-node map. */
 	fun->handle = ++tree->current_handle;
@@ -290,5 +290,5 @@
 	if (dev != NULL)
 		list_append(&fun->dev_functions, &dev->functions);
-	
+
 	return true;
 }
@@ -302,12 +302,12 @@
 {
 	assert(fibril_rwlock_is_write_locked(&tree->rwlock));
-	
+
 	/* Remove the node from the handle-to-node map. */
 	hash_table_remove(&tree->devman_functions, &fun->handle);
-	
+
 	/* Remove the node from the list of its parent's children. */
 	if (fun->dev != NULL)
 		list_remove(&fun->dev_functions);
-	
+
 	fun->dev = NULL;
 	fun->state = FUN_REMOVED;
Index: uspace/srv/devman/driver.c
===================================================================
--- uspace/srv/devman/driver.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/driver.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 {
 	assert(drv_list != NULL);
-	
+
 	list_initialize(&drv_list->drivers);
 	fibril_mutex_initialize(&drv_list->drivers_mutex);
@@ -112,19 +112,19 @@
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "get_driver_info(base_path=\"%s\", name=\"%s\")",
 	    base_path, name);
-	
+
 	assert(base_path != NULL && name != NULL && drv != NULL);
-	
+
 	bool suc = false;
 	char *match_path = NULL;
 	size_t name_size = 0;
-	
+
 	/* Read the list of match ids from the driver's configuration file. */
 	match_path = get_abs_path(base_path, name, MATCH_EXT);
 	if (match_path == NULL)
 		goto cleanup;
-	
+
 	if (!read_match_ids(match_path, &drv->match_ids))
 		goto cleanup;
-	
+
 	/* Allocate and fill driver's name. */
 	name_size = str_size(name) + 1;
@@ -133,10 +133,10 @@
 		goto cleanup;
 	str_cpy(drv->name, name_size, name);
-	
+
 	/* Initialize path with driver's binary. */
 	drv->binary_path = get_abs_path(base_path, name, "");
 	if (drv->binary_path == NULL)
 		goto cleanup;
-	
+
 	/* Check whether the driver's binary exists. */
 	vfs_stat_t s;
@@ -146,7 +146,7 @@
 		goto cleanup;
 	}
-	
+
 	suc = true;
-	
+
 cleanup:
 	if (!suc) {
@@ -156,7 +156,7 @@
 		init_driver(drv);
 	}
-	
+
 	free(match_path);
-	
+
 	return suc;
 }
@@ -171,5 +171,5 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "lookup_available_drivers(dir=\"%s\")", dir_path);
-	
+
 	int drv_cnt = 0;
 	DIR *dir = NULL;
@@ -177,5 +177,5 @@
 
 	dir = opendir(dir_path);
-	
+
 	if (dir != NULL) {
 		driver_t *drv = create_driver();
@@ -190,5 +190,5 @@
 		closedir(dir);
 	}
-	
+
 	return drv_cnt;
 }
@@ -213,7 +213,7 @@
 	driver_t *best_drv = NULL;
 	int best_score = 0, score = 0;
-	
+
 	fibril_mutex_lock(&drivers_list->drivers_mutex);
-	
+
 	list_foreach(drivers_list->drivers, drivers, driver_t, drv) {
 		score = get_match_score(drv, node);
@@ -223,7 +223,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&drivers_list->drivers_mutex);
-	
+
 	return best_drv;
 }
@@ -239,11 +239,11 @@
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "attach_driver(dev=\"%s\",drv=\"%s\")",
 	    dev->pfun->pathname, drv->name);
-	
+
 	fibril_mutex_lock(&drv->driver_mutex);
 	fibril_rwlock_write_lock(&tree->rwlock);
-	
+
 	dev->drv = drv;
 	list_append(&dev->driver_devices, &drv->devices);
-	
+
 	fibril_rwlock_write_unlock(&tree->rwlock);
 	fibril_mutex_unlock(&drv->driver_mutex);
@@ -259,16 +259,16 @@
 {
 	driver_t *drv = dev->drv;
-	
+
 	assert(drv != NULL);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "detach_driver(dev=\"%s\",drv=\"%s\")",
 	    dev->pfun->pathname, drv->name);
-	
+
 	fibril_mutex_lock(&drv->driver_mutex);
 	fibril_rwlock_write_lock(&tree->rwlock);
-	
+
 	dev->drv = NULL;
 	list_remove(&dev->driver_devices);
-	
+
 	fibril_rwlock_write_unlock(&tree->rwlock);
 	fibril_mutex_unlock(&drv->driver_mutex);
@@ -286,7 +286,7 @@
 
 	assert(fibril_mutex_is_locked(&drv->driver_mutex));
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "start_driver(drv=\"%s\")", drv->name);
-	
+
 	rc = task_spawnl(NULL, NULL, drv->binary_path, drv->binary_path, NULL);
 	if (rc != EOK) {
@@ -295,5 +295,5 @@
 		return false;
 	}
-	
+
 	drv->state = DRIVER_STARTING;
 	return true;
@@ -310,5 +310,5 @@
 	async_exch_t *exch;
 	errno_t retval;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "stop_driver(drv=\"%s\")", drv->name);
 
@@ -316,8 +316,8 @@
 	retval = async_req_0_0(exch, DRIVER_STOP);
 	loc_exchange_end(exch);
-	
+
 	if (retval != EOK)
 		return retval;
-	
+
 	drv->state = DRIVER_NOT_STARTED;
 	async_hangup(drv->sess);
@@ -336,7 +336,7 @@
 {
 	driver_t *res = NULL;
-	
+
 	fibril_mutex_lock(&drv_list->drivers_mutex);
-	
+
 	list_foreach(drv_list->drivers, drivers, driver_t, drv) {
 		if (drv->handle == handle) {
@@ -345,7 +345,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&drv_list->drivers_mutex);
-	
+
 	return res;
 }
@@ -362,7 +362,7 @@
 {
 	driver_t *res = NULL;
-	
+
 	fibril_mutex_lock(&drv_list->drivers_mutex);
-	
+
 	list_foreach(drv_list->drivers, drivers, driver_t, drv) {
 		if (str_cmp(drv->name, drv_name) == 0) {
@@ -371,7 +371,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&drv_list->drivers_mutex);
-	
+
 	return res;
 }
@@ -399,5 +399,5 @@
 		dev = list_get_instance(link, dev_node_t, driver_devices);
 		fibril_rwlock_write_lock(&tree->rwlock);
-		
+
 		if (dev->passed_to_driver) {
 			fibril_rwlock_write_unlock(&tree->rwlock);
@@ -461,5 +461,5 @@
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "initialize_running_driver(driver=\"%s\")",
 	    driver->name);
-	
+
 	/*
 	 * Pass devices which have been already assigned to the driver to the
@@ -507,5 +507,5 @@
 {
 	assert(drv != NULL);
-	
+
 	clean_driver(drv);
 	free(drv);
@@ -525,5 +525,5 @@
 	assert(drivers_list != NULL);
 	assert(tree != NULL);
-	
+
 	/*
 	 * Find the driver which is the most suitable for handling this device.
@@ -535,8 +535,8 @@
 		return false;
 	}
-	
+
 	/* Attach the driver to the device. */
 	attach_driver(tree, dev, drv);
-	
+
 	fibril_mutex_lock(&drv->driver_mutex);
 	if (drv->state == DRIVER_NOT_STARTED) {
@@ -550,5 +550,5 @@
 	if (is_running)
 		add_device(drv, dev, tree);
-	
+
 	fibril_mutex_lock(&drv->driver_mutex);
 	fibril_mutex_unlock(&drv->driver_mutex);
@@ -575,5 +575,5 @@
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "add_device(drv=\"%s\", dev=\"%s\")",
 	    drv->name, dev->pfun->name);
-	
+
 	/* Send the device to the driver. */
 	devman_handle_t parent_handle;
@@ -583,17 +583,17 @@
 		parent_handle = 0;
 	}
-	
+
 	async_exch_t *exch = async_exchange_begin(drv->sess);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, DRIVER_DEV_ADD, dev->handle,
 	    parent_handle, &answer);
-	
+
 	/* Send the device name to the driver. */
 	errno_t rc = async_data_write_start(exch, dev->pfun->name,
 	    str_size(dev->pfun->name) + 1);
-	
+
 	async_exchange_end(exch);
-	
+
 	if (rc != EOK) {
 		async_forget(req);
@@ -614,5 +614,5 @@
 		break;
 	}
-	
+
 	dev->passed_to_driver = true;
 }
@@ -624,18 +624,18 @@
 	driver_t *drv;
 	devman_handle_t handle;
-	
+
 	assert(dev != NULL);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "driver_dev_remove(%p)", dev);
-	
+
 	fibril_rwlock_read_lock(&tree->rwlock);
 	drv = dev->drv;
 	handle = dev->handle;
 	fibril_rwlock_read_unlock(&tree->rwlock);
-	
+
 	exch = async_exchange_begin(drv->sess);
 	retval = async_req_1_0(exch, DRIVER_DEV_REMOVE, handle);
 	async_exchange_end(exch);
-	
+
 	return retval;
 }
@@ -647,18 +647,18 @@
 	driver_t *drv;
 	devman_handle_t handle;
-	
+
 	assert(dev != NULL);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "driver_dev_gone(%p)", dev);
-	
+
 	fibril_rwlock_read_lock(&tree->rwlock);
 	drv = dev->drv;
 	handle = dev->handle;
 	fibril_rwlock_read_unlock(&tree->rwlock);
-	
+
 	exch = async_exchange_begin(drv->sess);
 	retval = async_req_1_0(exch, DRIVER_DEV_GONE, handle);
 	async_exchange_end(exch);
-	
+
 	return retval;
 }
@@ -670,9 +670,9 @@
 	driver_t *drv;
 	devman_handle_t handle;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "driver_fun_online(%p)", fun);
 
 	fibril_rwlock_read_lock(&tree->rwlock);
-	
+
 	if (fun->dev == NULL) {
 		/* XXX root function? */
@@ -680,13 +680,13 @@
 		return EINVAL;
 	}
-	
+
 	drv = fun->dev->drv;
 	handle = fun->handle;
 	fibril_rwlock_read_unlock(&tree->rwlock);
-	
+
 	exch = async_exchange_begin(drv->sess);
 	retval = async_req_1_0(exch, DRIVER_FUN_ONLINE, handle);
 	loc_exchange_end(exch);
-	
+
 	return retval;
 }
@@ -698,5 +698,5 @@
 	driver_t *drv;
 	devman_handle_t handle;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "driver_fun_offline(%p)", fun);
 
@@ -707,13 +707,13 @@
 		return EINVAL;
 	}
-	
+
 	drv = fun->dev->drv;
 	handle = fun->handle;
 	fibril_rwlock_read_unlock(&tree->rwlock);
-	
+
 	exch = async_exchange_begin(drv->sess);
 	retval = async_req_1_0(exch, DRIVER_FUN_OFFLINE, handle);
 	loc_exchange_end(exch);
-	
+
 	return retval;
 
Index: uspace/srv/devman/drv_conn.c
===================================================================
--- uspace/srv/devman/drv_conn.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/drv_conn.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,5 +70,5 @@
 
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_driver_register");
-	
+
 	/* Get driver name. */
 	errno_t rc = async_data_write_accept((void **) &drv_name, true, 0, 0, 0, 0);
@@ -80,5 +80,5 @@
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "The `%s' driver is trying to register.",
 	    drv_name);
-	
+
 	/* Find driver structure. */
 	driver = driver_find_by_name(&drivers_list, drv_name);
@@ -90,10 +90,10 @@
 		return NULL;
 	}
-	
+
 	free(drv_name);
 	drv_name = NULL;
-	
+
 	fibril_mutex_lock(&driver->driver_mutex);
-	
+
 	if (driver->sess) {
 		/* We already have a connection to the driver. */
@@ -104,5 +104,5 @@
 		return NULL;
 	}
-	
+
 	switch (driver->state) {
 	case DRIVER_NOT_STARTED:
@@ -119,5 +119,5 @@
 		assert(false);
 	}
-	
+
 	/* Create connection to the driver. */
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "Creating connection to the `%s' driver.",
@@ -131,9 +131,9 @@
 	/* FIXME: Work around problem with callback sessions */
 	async_sess_args_set(driver->sess, INTERFACE_DDF_DEVMAN, 0, 0);
-	
+
 	log_msg(LOG_DEFAULT, LVL_NOTE,
 	    "The `%s' driver was successfully registered as running.",
 	    driver->name);
-	
+
 	/*
 	 * Initialize the driver as running (e.g. pass assigned devices to it)
@@ -149,8 +149,8 @@
 		return NULL;
 	}
-	
+
 	fibril_add_ready(fid);
 	fibril_mutex_unlock(&driver->driver_mutex);
-	
+
 	async_answer_0(callid, EOK);
 	return driver;
@@ -169,5 +169,5 @@
 	ipc_call_t call;
 	errno_t rc = 0;
-	
+
 	callid = async_get_call(&call);
 	if (DEVMAN_ADD_MATCH_ID != IPC_GET_IMETHOD(call)) {
@@ -178,5 +178,5 @@
 		return EINVAL;
 	}
-	
+
 	if (match_id == NULL) {
 		log_msg(LOG_DEFAULT, LVL_ERROR, "Failed to allocate match id.");
@@ -184,9 +184,9 @@
 		return ENOMEM;
 	}
-	
+
 	async_answer_0(callid, EOK);
-	
+
 	match_id->score = IPC_GET_ARG1(call);
-	
+
 	char *match_id_str;
 	rc = async_data_write_accept((void **) &match_id_str, true, 0, 0, 0, 0);
@@ -198,7 +198,7 @@
 		return rc;
 	}
-	
+
 	list_append(&match_id->link, &match_ids->ids);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "Received match id `%s', score %d.",
 	    match_id->id, match_id->score);
@@ -218,5 +218,5 @@
 	errno_t ret = EOK;
 	size_t i;
-	
+
 	for (i = 0; i < match_count; i++) {
 		if (EOK != (ret = devman_receive_match_id(match_ids)))
@@ -236,5 +236,5 @@
 	sysarg_t match_count = IPC_GET_ARG3(*call);
 	dev_tree_t *tree = &device_tree;
-	
+
 	dev_node_t *pdev = find_dev_node(&device_tree, dev_handle);
 	if (pdev == NULL) {
@@ -242,5 +242,5 @@
 		return;
 	}
-	
+
 	if (ftype != fun_inner && ftype != fun_exposed) {
 		/* Unknown function type */
@@ -253,5 +253,5 @@
 		return;
 	}
-	
+
 	char *fun_name = NULL;
 	errno_t rc = async_data_write_accept((void **)&fun_name, true, 0, 0, 0, 0);
@@ -261,7 +261,7 @@
 		return;
 	}
-	
+
 	fibril_rwlock_write_lock(&tree->rwlock);
-	
+
 	/* Check device state */
 	if (pdev->state == DEVICE_REMOVED) {
@@ -271,5 +271,5 @@
 		return;
 	}
-	
+
 	/* Check that function with same name is not there already. */
 	fun_node_t *tfun = find_fun_node_in_device(tree, pdev, fun_name);
@@ -284,5 +284,5 @@
 		return;
 	}
-	
+
 	fun_node_t *fun = create_fun_node();
 	/* One reference for creation, one for us */
@@ -290,5 +290,5 @@
 	fun_add_ref(fun);
 	fun->ftype = ftype;
-	
+
 	/*
 	 * We can lock the function here even when holding the tree because
@@ -296,5 +296,5 @@
 	 */
 	fun_busy_lock(fun);
-	
+
 	if (!insert_fun_node(&device_tree, fun, fun_name, pdev)) {
 		fibril_rwlock_write_unlock(&tree->rwlock);
@@ -306,10 +306,10 @@
 		return;
 	}
-	
+
 	fibril_rwlock_write_unlock(&tree->rwlock);
 	dev_del_ref(pdev);
-	
+
 	devman_receive_match_ids(match_count, &fun->match_ids);
-	
+
 	rc = fun_online(fun);
 	if (rc != EOK) {
@@ -320,8 +320,8 @@
 		return;
 	}
-	
+
 	fun_busy_unlock(fun);
 	fun_del_ref(fun);
-	
+
 	/* Return device handle to parent's driver. */
 	async_answer_1(callid, EOK, fun->handle);
@@ -333,5 +333,5 @@
 	category_id_t cat_id;
 	errno_t rc;
-	
+
 	/* Get category name. */
 	char *cat_name;
@@ -342,5 +342,5 @@
 		return;
 	}
-	
+
 	fun_node_t *fun = find_fun_node(&device_tree, handle);
 	if (fun == NULL) {
@@ -348,7 +348,7 @@
 		return;
 	}
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
-	
+
 	/* Check function state */
 	if (fun->state == FUN_REMOVED) {
@@ -357,5 +357,5 @@
 		return;
 	}
-	
+
 	rc = loc_category_get_id(cat_name, &cat_id, IPC_FLAG_BLOCKING);
 	if (rc == EOK) {
@@ -367,8 +367,8 @@
 		    "`%s'.", fun->pathname, cat_name);
 	}
-	
+
 	fibril_rwlock_read_unlock(&device_tree.rwlock);
 	fun_del_ref(fun);
-	
+
 	async_answer_0(callid, rc);
 }
@@ -382,7 +382,7 @@
 	fun_node_t *fun;
 	errno_t rc;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_drv_fun_online()");
-	
+
 	fun = find_fun_node(&device_tree, IPC_GET_ARG1(*icall));
 	if (fun == NULL) {
@@ -390,7 +390,7 @@
 		return;
 	}
-	
+
 	fun_busy_lock(fun);
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
 	if (fun->dev == NULL || fun->dev->drv != drv) {
@@ -402,5 +402,5 @@
 	}
 	fibril_rwlock_read_unlock(&device_tree.rwlock);
-	
+
 	rc = fun_online(fun);
 	if (rc != EOK) {
@@ -410,8 +410,8 @@
 		return;
 	}
-	
+
 	fun_busy_unlock(fun);
 	fun_del_ref(fun);
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -432,7 +432,7 @@
 		return;
 	}
-	
+
 	fun_busy_lock(fun);
-	
+
 	fibril_rwlock_write_lock(&device_tree.rwlock);
 	if (fun->dev == NULL || fun->dev->drv != drv) {
@@ -443,5 +443,5 @@
 	}
 	fibril_rwlock_write_unlock(&device_tree.rwlock);
-	
+
 	rc = fun_offline(fun);
 	if (rc != EOK) {
@@ -451,5 +451,5 @@
 		return;
 	}
-	
+
 	fun_busy_unlock(fun);
 	fun_del_ref(fun);
@@ -463,5 +463,5 @@
 	dev_tree_t *tree = &device_tree;
 	errno_t rc;
-	
+
 	fun_node_t *fun = find_fun_node(&device_tree, fun_handle);
 	if (fun == NULL) {
@@ -469,11 +469,11 @@
 		return;
 	}
-	
+
 	fun_busy_lock(fun);
-	
+
 	fibril_rwlock_write_lock(&tree->rwlock);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_remove_function(fun='%s')", fun->pathname);
-	
+
 	/* Check function state */
 	if (fun->state == FUN_REMOVED) {
@@ -484,5 +484,5 @@
 		return;
 	}
-	
+
 	if (fun->ftype == fun_inner) {
 		/* This is a surprise removal. Handle possible descendants */
@@ -491,10 +491,10 @@
 			device_state_t dev_state;
 			errno_t gone_rc;
-			
+
 			dev_add_ref(dev);
 			dev_state = dev->state;
-			
+
 			fibril_rwlock_write_unlock(&device_tree.rwlock);
-			
+
 			/* If device is owned by driver, inform driver it is gone. */
 			if (dev_state == DEVICE_USABLE)
@@ -502,7 +502,7 @@
 			else
 				gone_rc = EOK;
-			
+
 			fibril_rwlock_read_lock(&device_tree.rwlock);
-			
+
 			/* Verify that driver succeeded and removed all functions */
 			if (gone_rc != EOK || !list_empty(&dev->functions)) {
@@ -510,5 +510,5 @@
 				    "functions for device that is gone. "
 				    "Device node is now defunct.");
-				
+
 				/*
 				 * Not much we can do but mark the device
@@ -526,14 +526,14 @@
 				return;
 			}
-			
+
 			driver_t *driver = dev->drv;
 			fibril_rwlock_read_unlock(&device_tree.rwlock);
-			
+
 			if (driver)
 				detach_driver(&device_tree, dev);
-			
+
 			fibril_rwlock_write_lock(&device_tree.rwlock);
 			remove_dev_node(&device_tree, dev);
-			
+
 			/* Delete ref created when node was inserted */
 			dev_del_ref(dev);
@@ -556,14 +556,14 @@
 		}
 	}
-	
+
 	remove_fun_node(&device_tree, fun);
 	fibril_rwlock_write_unlock(&tree->rwlock);
 	fun_busy_unlock(fun);
-	
+
 	/* Delete ref added when inserting function into tree */
 	fun_del_ref(fun);
 	/* Delete ref added above when looking up function */
 	fun_del_ref(fun);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_remove_function() succeeded.");
 	async_answer_0(callid, EOK);
@@ -578,5 +578,5 @@
 {
 	driver_t *driver = (driver_t *) drv;
-	
+
 	initialize_running_driver(driver, &device_tree);
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "The `%s` driver was successfully initialized.",
@@ -590,8 +590,8 @@
 	client_t *client;
 	driver_t *driver = NULL;
-	
+
 	/* Accept the connection. */
 	async_answer_0(iid, EOK);
-	
+
 	client = async_get_client_data();
 	if (client == NULL) {
@@ -599,12 +599,12 @@
 		return;
 	}
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		if (IPC_GET_IMETHOD(call) != DEVMAN_DRIVER_REGISTER) {
 			fibril_mutex_lock(&client->mutex);
@@ -617,5 +617,5 @@
 			}
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case DEVMAN_DRIVER_REGISTER:
Index: uspace/srv/devman/fun.c
===================================================================
--- uspace/srv/devman/fun.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/fun.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -58,5 +58,5 @@
 	if (fun == NULL)
 		return NULL;
-	
+
 	fun->state = FUN_INIT;
 	atomic_set(&fun->refcnt, 0);
@@ -64,5 +64,5 @@
 	link_initialize(&fun->dev_functions);
 	list_initialize(&fun->match_ids.ids);
-	
+
 	return fun;
 }
@@ -76,5 +76,5 @@
 	assert(fun->dev == NULL);
 	assert(fun->child == NULL);
-	
+
 	clean_match_ids(&fun->match_ids);
 	free(fun->name);
@@ -125,13 +125,13 @@
 {
 	fun_node_t *fun;
-	
+
 	assert(fibril_rwlock_is_locked(&tree->rwlock));
-	
+
 	ht_link_t *link = hash_table_find(&tree->devman_functions, &handle);
 	if (link == NULL)
 		return NULL;
-	
+
 	fun = hash_table_get_inst(link, fun_node_t, devman_fun);
-	
+
 	return fun;
 }
@@ -146,13 +146,13 @@
 {
 	fun_node_t *fun = NULL;
-	
+
 	fibril_rwlock_read_lock(&tree->rwlock);
-	
+
 	fun = find_fun_node_no_lock(tree, handle);
 	if (fun != NULL)
 		fun_add_ref(fun);
-	
+
 	fibril_rwlock_read_unlock(&tree->rwlock);
-	
+
 	return fun;
 }
@@ -170,9 +170,9 @@
 	assert(fibril_rwlock_is_write_locked(&tree->rwlock));
 	assert(fun->name != NULL);
-	
+
 	size_t pathsize = (str_size(fun->name) + 1);
 	if (parent != NULL)
 		pathsize += str_size(parent->pathname) + 1;
-	
+
 	fun->pathname = (char *) malloc(pathsize);
 	if (fun->pathname == NULL) {
@@ -180,5 +180,5 @@
 		return false;
 	}
-	
+
 	if (parent != NULL) {
 		str_cpy(fun->pathname, pathsize, parent->pathname);
@@ -188,5 +188,5 @@
 		str_cpy(fun->pathname, pathsize, fun->name);
 	}
-	
+
 	return true;
 }
@@ -209,5 +209,5 @@
 
 	fibril_rwlock_read_lock(&tree->rwlock);
-	
+
 	fun_node_t *fun = tree->root_node;
 	fun_add_ref(fun);
@@ -219,5 +219,5 @@
 	char *next_path_elem = NULL;
 	bool cont = (rel_path[1] != '\0');
-	
+
 	while (cont && fun != NULL) {
 		next_path_elem  = get_path_elem_end(rel_path + 1);
@@ -228,9 +228,9 @@
 			cont = false;
 		}
-		
+
 		fun_node_t *cfun = find_node_child(tree, fun, rel_path + 1);
 		fun_del_ref(fun);
 		fun = cfun;
-		
+
 		if (cont) {
 			/* Restore the original path. */
@@ -239,7 +239,7 @@
 		rel_path = next_path_elem;
 	}
-	
+
 	fibril_rwlock_read_unlock(&tree->rwlock);
-	
+
 	return fun;
 }
@@ -299,7 +299,7 @@
 {
 	dev_node_t *dev;
-	
+
 	fibril_rwlock_write_lock(&device_tree.rwlock);
-	
+
 	if (fun->state == FUN_ON_LINE) {
 		fibril_rwlock_write_unlock(&device_tree.rwlock);
@@ -308,5 +308,5 @@
 		return EOK;
 	}
-	
+
 	if (fun->ftype == fun_inner) {
 		dev = create_dev_node();
@@ -315,18 +315,18 @@
 			return ENOMEM;
 		}
-		
+
 		insert_dev_node(&device_tree, dev, fun);
 		dev_add_ref(dev);
 	}
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_add_function(fun=\"%s\")", fun->pathname);
-	
+
 	if (fun->ftype == fun_inner) {
 		dev = fun->child;
 		assert(dev != NULL);
-		
+
 		/* Give one reference over to assign_driver_fibril(). */
 		dev_add_ref(dev);
-		
+
 		/*
 		 * Try to find a suitable driver and assign it to the device.  We do
@@ -347,8 +347,8 @@
 	} else
 		loc_register_tree_function(fun, &device_tree);
-	
+
 	fun->state = FUN_ON_LINE;
 	fibril_rwlock_write_unlock(&device_tree.rwlock);
-	
+
 	return EOK;
 }
@@ -357,7 +357,7 @@
 {
 	errno_t rc;
-	
+
 	fibril_rwlock_write_lock(&device_tree.rwlock);
-	
+
 	if (fun->state == FUN_OFF_LINE) {
 		fibril_rwlock_write_unlock(&device_tree.rwlock);
@@ -366,16 +366,16 @@
 		return EOK;
 	}
-	
+
 	if (fun->ftype == fun_inner) {
 		log_msg(LOG_DEFAULT, LVL_DEBUG, "Offlining inner function %s.",
 		    fun->pathname);
-		
+
 		if (fun->child != NULL) {
 			dev_node_t *dev = fun->child;
 			device_state_t dev_state;
-			
+
 			dev_add_ref(dev);
 			dev_state = dev->state;
-			
+
 			fibril_rwlock_write_unlock(&device_tree.rwlock);
 
@@ -388,5 +388,5 @@
 				}
 			}
-			
+
 			/* Verify that driver removed all functions */
 			fibril_rwlock_read_lock(&device_tree.rwlock);
@@ -396,14 +396,14 @@
 				return EIO;
 			}
-			
+
 			driver_t *driver = dev->drv;
 			fibril_rwlock_read_unlock(&device_tree.rwlock);
-			
+
 			if (driver)
 				detach_driver(&device_tree, dev);
-			
+
 			fibril_rwlock_write_lock(&device_tree.rwlock);
 			remove_dev_node(&device_tree, dev);
-			
+
 			/* Delete ref created when node was inserted */
 			dev_del_ref(dev);
@@ -419,11 +419,11 @@
 			return EIO;
 		}
-		
+
 		fun->service_id = 0;
 	}
-	
+
 	fun->state = FUN_OFF_LINE;
 	fibril_rwlock_write_unlock(&device_tree.rwlock);
-	
+
 	return EOK;
 }
Index: uspace/srv/devman/loc.c
===================================================================
--- uspace/srv/devman/loc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/loc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,13 +43,13 @@
 	char *loc_pathname = NULL;
 	char *loc_name = NULL;
-	
+
 	assert(fibril_rwlock_is_locked(&tree->rwlock));
-	
+
 	asprintf(&loc_name, "%s", fun->pathname);
 	if (loc_name == NULL)
 		return;
-	
+
 	replace_char(loc_name, '/', LOC_SEPARATOR);
-	
+
 	asprintf(&loc_pathname, "%s/%s", LOC_DEVICE_NAMESPACE,
 	    loc_name);
@@ -58,9 +58,9 @@
 		return;
 	}
-	
+
 	loc_service_register(loc_pathname, &fun->service_id);
-	
+
 	tree_add_loc_function(tree, fun);
-	
+
 	free(loc_name);
 	free(loc_pathname);
@@ -77,5 +77,5 @@
 {
 	fun_node_t *fun = NULL;
-	
+
 	fibril_rwlock_read_lock(&tree->rwlock);
 	ht_link_t *link = hash_table_find(&tree->loc_functions, &service_id);
@@ -85,5 +85,5 @@
 	}
 	fibril_rwlock_read_unlock(&tree->rwlock);
-	
+
 	return fun;
 }
@@ -92,5 +92,5 @@
 {
 	assert(fibril_rwlock_is_write_locked(&tree->rwlock));
-	
+
 	hash_table_insert(&tree->loc_functions, &fun->loc_fun);
 }
@@ -99,5 +99,5 @@
 {
 	assert(fibril_rwlock_is_write_locked(&tree->rwlock));
-	
+
 	hash_table_remove(&tree->loc_functions, &fun->service_id);
 }
Index: uspace/srv/devman/main.c
===================================================================
--- uspace/srv/devman/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,5 +71,5 @@
 	devman_handle_t handle = IPC_GET_ARG2(*icall);
 	dev_node_t *dev = NULL;
-	
+
 	fun_node_t *fun = find_fun_node(&device_tree, handle);
 	if (fun == NULL) {
@@ -77,12 +77,12 @@
 	} else {
 		fibril_rwlock_read_lock(&device_tree.rwlock);
-		
+
 		dev = fun->dev;
 		if (dev != NULL)
 			dev_add_ref(dev);
-		
+
 		fibril_rwlock_read_unlock(&device_tree.rwlock);
 	}
-	
+
 	/*
 	 * For a valid function to connect to we need a device. The root
@@ -97,5 +97,5 @@
 		goto cleanup;
 	}
-	
+
 	if (fun == NULL) {
 		log_msg(LOG_DEFAULT, LVL_ERROR, NAME ": devman_forward error - cannot "
@@ -105,12 +105,12 @@
 		goto cleanup;
 	}
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
-	
+
 	/* Connect to the specified function */
 	driver_t *driver = dev->drv;
-	
+
 	fibril_rwlock_read_unlock(&device_tree.rwlock);
-	
+
 	if (driver == NULL) {
 		log_msg(LOG_DEFAULT, LVL_ERROR, "IPC forwarding refused - " \
@@ -119,5 +119,5 @@
 		goto cleanup;
 	}
-	
+
 	if (!driver->sess) {
 		log_msg(LOG_DEFAULT, LVL_ERROR,
@@ -126,5 +126,5 @@
 		goto cleanup;
 	}
-	
+
 	if (fun != NULL) {
 		log_msg(LOG_DEFAULT, LVL_DEBUG,
@@ -136,13 +136,13 @@
 		    dev->pfun->pathname, driver->name);
 	}
-	
+
 	async_exch_t *exch = async_exchange_begin(driver->sess);
 	async_forward_fast(iid, exch, INTERFACE_DDF_CLIENT, handle, 0, IPC_FF_NONE);
 	async_exchange_end(exch);
-	
+
 cleanup:
 	if (dev != NULL)
 		dev_del_ref(dev);
-	
+
 	if (fun != NULL)
 		fun_del_ref(fun);
@@ -154,5 +154,5 @@
 	devman_handle_t handle = IPC_GET_ARG2(*icall);
 	dev_node_t *dev = NULL;
-	
+
 	fun_node_t *fun = find_fun_node(&device_tree, handle);
 	if (fun == NULL) {
@@ -160,12 +160,12 @@
 	} else {
 		fibril_rwlock_read_lock(&device_tree.rwlock);
-		
+
 		dev = fun->dev;
 		if (dev != NULL)
 			dev_add_ref(dev);
-		
+
 		fibril_rwlock_read_unlock(&device_tree.rwlock);
 	}
-	
+
 	/*
 	 * For a valid function to connect to we need a device. The root
@@ -180,17 +180,17 @@
 		goto cleanup;
 	}
-	
+
 	driver_t *driver = NULL;
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
-	
+
 	/* Connect to parent function of a device (or device function). */
 	if (dev->pfun->dev != NULL)
 		driver = dev->pfun->dev->drv;
-	
+
 	devman_handle_t fun_handle = dev->pfun->handle;
-	
+
 	fibril_rwlock_read_unlock(&device_tree.rwlock);
-	
+
 	if (driver == NULL) {
 		log_msg(LOG_DEFAULT, LVL_ERROR, "IPC forwarding refused - " \
@@ -199,5 +199,5 @@
 		goto cleanup;
 	}
-	
+
 	if (!driver->sess) {
 		log_msg(LOG_DEFAULT, LVL_ERROR,
@@ -206,5 +206,5 @@
 		goto cleanup;
 	}
-	
+
 	if (fun != NULL) {
 		log_msg(LOG_DEFAULT, LVL_DEBUG,
@@ -216,13 +216,13 @@
 		    dev->pfun->pathname, driver->name);
 	}
-	
+
 	async_exch_t *exch = async_exchange_begin(driver->sess);
 	async_forward_fast(iid, exch, INTERFACE_DDF_DRIVER, fun_handle, 0, IPC_FF_NONE);
 	async_exchange_end(exch);
-	
+
 cleanup:
 	if (dev != NULL)
 		dev_del_ref(dev);
-	
+
 	if (fun != NULL)
 		fun_del_ref(fun);
@@ -233,9 +233,9 @@
 	iface_t iface = IPC_GET_ARG1(*icall);
 	service_id_t service_id = IPC_GET_ARG2(*icall);
-	
+
 	fun_node_t *fun = find_loc_tree_function(&device_tree, service_id);
-	
+
 	fibril_rwlock_read_lock(&device_tree.rwlock);
-	
+
 	if ((fun == NULL) || (fun->dev == NULL) || (fun->dev->drv == NULL)) {
 		log_msg(LOG_DEFAULT, LVL_WARN, "devman_forward(): function "
@@ -245,19 +245,19 @@
 		return;
 	}
-	
+
 	dev_node_t *dev = fun->dev;
 	driver_t *driver = dev->drv;
 	devman_handle_t handle = fun->handle;
-	
+
 	fibril_rwlock_read_unlock(&device_tree.rwlock);
-	
+
 	async_exch_t *exch = async_exchange_begin(driver->sess);
 	async_forward_fast(iid, exch, iface, handle, 0, IPC_FF_NONE);
 	async_exchange_end(exch);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG,
 	    "Forwarding service request for `%s' function to driver `%s'.",
 	    fun->pathname, driver->name);
-	
+
 	fun_del_ref(fun);
 }
@@ -266,9 +266,9 @@
 {
 	client_t *client;
-	
+
 	client = calloc(1, sizeof(client_t));
 	if (client == NULL)
 		return NULL;
-	
+
 	fibril_mutex_initialize(&client->mutex);
 	return client;
@@ -284,5 +284,5 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_init - looking for available drivers.");
-	
+
 	/* Initialize list of available drivers. */
 	init_driver_list(&drivers_list);
@@ -292,7 +292,7 @@
 		return false;
 	}
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_init - list of drivers has been initialized.");
-	
+
 	/* Create root device node. */
 	if (!init_device_tree(&device_tree, &drivers_list)) {
@@ -300,5 +300,5 @@
 		return false;
 	}
-	
+
 	/*
 	 * Caution: As the device manager is not a real loc
@@ -309,5 +309,5 @@
 	 */
 	loc_server_register(NAME);
-	
+
 	return true;
 }
@@ -316,5 +316,5 @@
 {
 	printf("%s: HelenOS Device Manager\n", NAME);
-	
+
 	errno_t rc = log_init(NAME);
 	if (rc != EOK) {
@@ -322,9 +322,9 @@
 		return rc;
 	}
-	
+
 	/* Set handlers for incoming connections. */
 	async_set_client_data_constructor(devman_client_data_create);
 	async_set_client_data_destructor(devman_client_data_destroy);
-	
+
 	port_id_t port;
 	rc = async_create_port(INTERFACE_DDF_DRIVER,
@@ -334,5 +334,5 @@
 		return rc;
 	}
-	
+
 	rc = async_create_port(INTERFACE_DDF_CLIENT,
 	    devman_connection_client, NULL, &port);
@@ -341,5 +341,5 @@
 		return rc;
 	}
-	
+
 	rc = async_create_port(INTERFACE_DEVMAN_DEVICE,
 	    devman_connection_device, NULL, &port);
@@ -348,5 +348,5 @@
 		return rc;
 	}
-	
+
 	rc = async_create_port(INTERFACE_DEVMAN_PARENT,
 	    devman_connection_parent, NULL, &port);
@@ -355,12 +355,12 @@
 		return rc;
 	}
-	
+
 	async_set_fallback_port_handler(devman_forward, NULL);
-	
+
 	if (!devman_init()) {
 		log_msg(LOG_DEFAULT, LVL_ERROR, "Error while initializing service.");
 		return -1;
 	}
-	
+
 	/* Register device manager at naming service. */
 	rc = service_register(SERVICE_DEVMAN);
@@ -369,9 +369,9 @@
 		return rc;
 	}
-	
+
 	printf("%s: Accepting connections.\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Never reached. */
 	return 0;
Index: uspace/srv/devman/match.c
===================================================================
--- uspace/srv/devman/match.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/match.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,15 +69,15 @@
 	link_t *drv_head = &drv->match_ids.ids.head;
 	link_t *dev_head = &dev->pfun->match_ids.ids.head;
-	
+
 	if (list_empty(&drv->match_ids.ids) ||
 	    list_empty(&dev->pfun->match_ids.ids)) {
 		return 0;
 	}
-	
+
 	/*
 	 * Go through all pairs, return the highest score obtained.
 	 */
 	int highest_score = 0;
-	
+
 	link_t *drv_link = drv->match_ids.ids.head.next;
 	while (drv_link != drv_head) {
@@ -86,5 +86,5 @@
 			match_id_t *drv_id = list_get_instance(drv_link, match_id_t, link);
 			match_id_t *dev_id = list_get_instance(dev_link, match_id_t, link);
-			
+
 			int score = compute_match_score(drv_id, dev_id);
 			if (score > highest_score) {
@@ -94,8 +94,8 @@
 			dev_link = dev_link->next;
 		}
-		
+
 		drv_link = drv_link->next;
 	}
-	
+
 	return highest_score;
 }
@@ -111,5 +111,5 @@
 	char *res = NULL;
 	size_t len = get_nonspace_len(*buf);
-	
+
 	if (len > 0) {
 		res = malloc(len + 1);
@@ -119,5 +119,5 @@
 		}
 	}
-	
+
 	return res;
 }
@@ -141,5 +141,5 @@
 	char *id = NULL;
 	int ids_read = 0;
-	
+
 	while (true) {
 		/* skip spaces */
@@ -151,28 +151,28 @@
 			continue;
 		}
-		
+
 		/* read score */
 		score = strtoul(buf, &buf, 10);
-		
+
 		/* skip spaces */
 		if (!skip_spaces(&buf))
 			break;
-		
+
 		/* read id */
 		id = read_match_id(&buf);
 		if (NULL == id)
 			break;
-		
+
 		/* create new match_id structure */
 		match_id_t *mid = create_match_id();
 		mid->id = id;
 		mid->score = score;
-		
+
 		/* add it to the list */
 		add_match_id(ids, mid);
-		
+
 		ids_read++;
 	}
-	
+
 	return ids_read > 0;
 }
@@ -194,5 +194,5 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "read_match_ids(conf_path=\"%s\")", conf_path);
-	
+
 	bool suc = false;
 	char *buf = NULL;
@@ -201,5 +201,5 @@
 	size_t len = 0;
 	vfs_stat_t st;
-	
+
 	errno_t rc = vfs_lookup_open(conf_path, WALK_REGULAR, MODE_READ, &fd);
 	if (rc != EOK) {
@@ -209,5 +209,5 @@
 	}
 	opened = true;
-	
+
 	rc = vfs_stat(fd, &st);
 	if (rc != EOK) {
@@ -222,5 +222,5 @@
 		goto cleanup;
 	}
-	
+
 	buf = malloc(len + 1);
 	if (buf == NULL) {
@@ -229,5 +229,5 @@
 		goto cleanup;
 	}
-	
+
 	size_t read_bytes;
 	rc = vfs_read(fd, (aoff64_t []) {0}, buf, len, &read_bytes);
@@ -238,13 +238,13 @@
 	}
 	buf[read_bytes] = 0;
-	
+
 	suc = parse_match_ids(buf, ids);
-	
+
 cleanup:
 	free(buf);
-	
+
 	if (opened)
 		vfs_put(fd);
-	
+
 	return suc;
 }
Index: uspace/srv/devman/util.c
===================================================================
--- uspace/srv/devman/util.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/devman/util.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -41,7 +41,7 @@
 	int base_len = str_size(base_path);
 	int size = base_len + 2 * str_size(name) + str_size(ext) + 3;
-	
+
 	res = malloc(size);
-	
+
 	if (res) {
 		str_cpy(res, size, base_path);
@@ -55,5 +55,5 @@
 		str_append(res, size, ext);
 	}
-	
+
 	return res;
 }
@@ -82,5 +82,5 @@
 {
 	size_t len = 0;
-	
+
 	while(*str != '\0' && !isspace(*str)) {
 		len++;
Index: uspace/srv/fs/cdfs/cdfs.c
===================================================================
--- uspace/srv/fs/cdfs/cdfs.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/cdfs/cdfs.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,5 +60,5 @@
 {
 	printf("%s: HelenOS cdfs file system server\n", NAME);
-	
+
 	if (argc == 3) {
 		if (!str_cmp(argv[1], "--instance"))
@@ -74,5 +74,5 @@
 		return -1;
 	}
-	
+
 	async_sess_t *vfs_sess = service_connect_blocking(SERVICE_VFS,
 	    INTERFACE_VFS_DRIVER, 0);
@@ -81,5 +81,5 @@
 		return -1;
 	}
-	
+
 	errno_t rc = fs_register(vfs_sess, &cdfs_vfs_info, &cdfs_ops,
 	    &cdfs_libfs_ops);
@@ -88,9 +88,9 @@
 		return rc;
 	}
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
Index: uspace/srv/fs/cdfs/cdfs_ops.c
===================================================================
--- uspace/srv/fs/cdfs/cdfs_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/cdfs/cdfs_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -92,10 +92,10 @@
 	uint8_t mon[2];
 	uint8_t day[2];
-	
+
 	uint8_t hour[2];
 	uint8_t min[2];
 	uint8_t sec[2];
 	uint8_t msec[2];
-	
+
 	uint8_t offset;
 } __attribute__((packed)) cdfs_datetime_t;
@@ -105,9 +105,9 @@
 	uint8_t mon;
 	uint8_t day;
-	
+
 	uint8_t hour;
 	uint8_t min;
 	uint8_t sec;
-	
+
 	uint8_t offset;
 } __attribute__((packed)) cdfs_timestamp_t;
@@ -121,8 +121,8 @@
 	uint8_t length;
 	uint8_t ea_length;
-	
+
 	uint32_t_lb lba;
 	uint32_t_lb size;
-	
+
 	cdfs_timestamp_t timestamp;
 	uint8_t flags;
@@ -130,5 +130,5 @@
 	uint8_t gap_size;
 	uint16_t_lb sequence_nr;
-	
+
 	uint8_t name_length;
 	uint8_t name[];
@@ -139,8 +139,8 @@
 	uint8_t length;
 	uint8_t ea_length;
-	
+
 	uint32_t_lb lba;
 	uint32_t_lb size;
-	
+
 	cdfs_timestamp_t timestamp;
 	uint8_t flags;
@@ -148,5 +148,5 @@
 	uint8_t gap_size;
 	uint16_t_lb sequence_nr;
-	
+
 	uint8_t name_length;
 	uint8_t name[1];
@@ -155,40 +155,40 @@
 typedef struct {
 	uint8_t flags; /* reserved in primary */
-	
+
 	uint8_t system_ident[32];
 	uint8_t ident[32];
-	
+
 	uint64_t res1;
 	uint32_t_lb lba_size;
-	
+
 	uint8_t esc_seq[32]; /* reserved in primary */
 	uint16_t_lb set_size;
 	uint16_t_lb sequence_nr;
-	
+
 	uint16_t_lb block_size;
 	uint32_t_lb path_table_size;
-	
+
 	uint32_t path_table_lsb;
 	uint32_t opt_path_table_lsb;
 	uint32_t path_table_msb;
 	uint32_t opt_path_table_msb;
-	
+
 	cdfs_root_dir_t root_dir;
 	uint8_t pad0;
-	
+
 	uint8_t set_ident[128];
 	uint8_t publisher_ident[128];
 	uint8_t preparer_ident[128];
 	uint8_t app_ident[128];
-	
+
 	uint8_t copyright_file_ident[37];
 	uint8_t abstract_file_ident[37];
 	uint8_t biblio_file_ident[37];
-	
+
 	cdfs_datetime_t creation;
 	cdfs_datetime_t modification;
 	cdfs_datetime_t expiration;
 	cdfs_datetime_t effective;
-	
+
 	uint8_t fs_version;
 } __attribute__((packed)) cdfs_vol_desc_prisec_t;
@@ -236,11 +236,11 @@
 	fs_index_t index;         /**< Node index */
 	cdfs_t *fs;		  /**< File system */
-	
+
 	ht_link_t nh_link;        /**< Nodes hash table link */
 	cdfs_dentry_type_t type;  /**< Dentry type */
-	
+
 	unsigned int lnkcnt;      /**< Link count */
 	uint32_t size;            /**< File size if type is CDFS_FILE */
-	
+
 	list_t cs_list;           /**< Child's siblings list */
 	cdfs_lba_t lba;           /**< LBA of data on disk */
@@ -301,5 +301,5 @@
 	cdfs_node_t *node = hash_table_get_inst(item, cdfs_node_t, nh_link);
 	ht_key_t *key = (ht_key_t*)k;
-	
+
 	return key->service_id == node->fs->service_id && key->index == node->index;
 }
@@ -308,5 +308,5 @@
 {
 	cdfs_node_t *node = hash_table_get_inst(item, cdfs_node_t, nh_link);
-	
+
 	if (node->type == CDFS_DIRECTORY) {
 		link_t *link;
@@ -317,5 +317,5 @@
 		}
 	}
-	
+
 	free(node->fs_node);
 	free(node);
@@ -338,14 +338,14 @@
 		.service_id = service_id
 	};
-	
+
 	ht_link_t *link = hash_table_find(&nodes, &key);
 	if (link) {
 		cdfs_node_t *node =
 		    hash_table_get_inst(link, cdfs_node_t, nh_link);
-		
+
 		*rfn = FS_NODE(node);
 	} else
 		*rfn = NULL;
-	
+
 	return EOK;
 }
@@ -367,5 +367,5 @@
 	node->processed = false;
 	node->opened = 0;
-	
+
 	list_initialize(&node->cs_list);
 }
@@ -375,11 +375,11 @@
 {
 	assert((lflag & L_FILE) ^ (lflag & L_DIRECTORY));
-	
+
 	cdfs_node_t *node = malloc(sizeof(cdfs_node_t));
 	if (!node)
 		return ENOMEM;
-	
+
 	cdfs_node_initialize(node);
-	
+
 	node->fs_node = malloc(sizeof(fs_node_t));
 	if (!node->fs_node) {
@@ -387,31 +387,31 @@
 		return ENOMEM;
 	}
-	
+
 	fs_node_initialize(node->fs_node);
 	node->fs_node->data = node;
-	
+
 	fs_node_t *rootfn;
 	errno_t rc = cdfs_root_get(&rootfn, fs->service_id);
-	
+
 	assert(rc == EOK);
-	
+
 	if (!rootfn)
 		node->index = CDFS_SOME_ROOT;
 	else
 		node->index = index;
-	
+
 	node->fs = fs;
-	
+
 	if (lflag & L_DIRECTORY)
 		node->type = CDFS_DIRECTORY;
 	else
 		node->type = CDFS_FILE;
-	
+
 	/* Insert the new node into the nodes hash table. */
 	hash_table_insert(&nodes, &node->nh_link);
-	
+
 	*rfn = FS_NODE(node);
 	nodes_cached++;
-	
+
 	return EOK;
 }
@@ -421,7 +421,7 @@
 	cdfs_node_t *parent = CDFS_NODE(pfn);
 	cdfs_node_t *node = CDFS_NODE(fn);
-	
+
 	assert(parent->type == CDFS_DIRECTORY);
-	
+
 	/* Check for duplicate entries */
 	list_foreach(parent->cs_list, link, cdfs_dentry_t, dentry) {
@@ -429,10 +429,10 @@
 			return EEXIST;
 	}
-	
+
 	/* Allocate and initialize the dentry */
 	cdfs_dentry_t *dentry = malloc(sizeof(cdfs_dentry_t));
 	if (!dentry)
 		return ENOMEM;
-	
+
 	/* Populate and link the new dentry */
 	dentry->name = str_dup(name);
@@ -441,11 +441,11 @@
 		return ENOMEM;
 	}
-	
+
 	link_initialize(&dentry->link);
 	dentry->index = node->index;
-	
+
 	node->lnkcnt++;
 	list_append(&dentry->link, &parent->cs_list);
-	
+
 	return EOK;
 }
@@ -463,5 +463,5 @@
 	char *str;
 	uint16_t *buf;
-	
+
 	switch (enc) {
 	case enc_ascii:
@@ -476,5 +476,5 @@
 		if (buf == NULL)
 			return NULL;
-		
+
 		size_t i;
 		for (i = 0; i < dsize / sizeof(uint16_t); i++) {
@@ -482,13 +482,13 @@
 			    ((unaligned_uint16_t *)data)[i]);
 		}
-		
+
 		size_t dstr_size = dsize / sizeof(uint16_t) * 4 + 1;
 		str = malloc(dstr_size);
 		if (str == NULL)
 			return NULL;
-		
+
 		rc = utf16_to_str(str, dstr_size, buf);
 		free(buf);
-		
+
 		if (rc != EOK)
 			return NULL;
@@ -498,5 +498,5 @@
 		str = NULL;
 	}
-	
+
 	return str;
 }
@@ -516,14 +516,14 @@
 	char *dot;
 	char *scolon;
-	
+
 	name = cdfs_decode_str(data, dsize, enc);
 	if (name == NULL)
 		return NULL;
-	
+
 	if (dtype == CDFS_DIRECTORY)
 		return name;
-	
+
 	dot = str_chr(name, '.');
-	
+
 	if (dot != NULL) {
 		scolon = str_chr(dot, ';');
@@ -532,10 +532,10 @@
 			*scolon = '\0';
 		}
-	
+
 		/* If the extension is an empty string, trim the dot separator. */
 		if (dot[1] == '\0')
 			*dot = '\0';
 	}
-	
+
 	return name;
 }
@@ -552,9 +552,9 @@
 	char *ident;
 	size_t i;
-	
+
 	ident = cdfs_decode_str(data, dsize, enc);
 	if (ident == NULL)
 		return NULL;
-	
+
 	/* Trim trailing spaces */
 	i = str_size(ident);
@@ -562,5 +562,5 @@
 		--i;
 	ident[i] = '\0';
-	
+
 	return ident;
 }
@@ -570,12 +570,12 @@
 	cdfs_node_t *node = CDFS_NODE(fs_node);
 	assert(node);
-	
+
 	if (node->processed)
 		return EOK;
-	
+
 	uint32_t blocks = node->size / BLOCK_SIZE;
 	if ((node->size % BLOCK_SIZE) != 0)
 		blocks++;
-	
+
 	for (uint32_t i = 0; i < blocks; i++) {
 		block_t *block;
@@ -583,7 +583,7 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		cdfs_dir_t *dir;
-		
+
 		for (size_t offset = 0; offset < BLOCK_SIZE;
 		    offset += dir->length) {
@@ -595,5 +595,5 @@
 				break;
 			}
-			
+
 			cdfs_dentry_type_t dentry_type;
 			if (dir->flags & DIR_FLAG_DIRECTORY)
@@ -601,7 +601,7 @@
 			else
 				dentry_type = CDFS_FILE;
-			
+
 			/* Skip special entries */
-			
+
 			if (dir->name_length == 1 &&
 			    dir->name[0] == CDFS_NAME_CURDIR)
@@ -610,7 +610,7 @@
 			    dir->name[0] == CDFS_NAME_PARENTDIR)
 				continue;
-			
+
 			// FIXME: hack - indexing by dentry byte offset on disc
-			
+
 			fs_node_t *fn;
 			errno_t rc = create_node(&fn, fs, dentry_type,
@@ -620,26 +620,26 @@
 
 			assert(fn != NULL);
-			
+
 			cdfs_node_t *cur = CDFS_NODE(fn);
 			cur->lba = uint32_lb(dir->lba);
 			cur->size = uint32_lb(dir->size);
-			
+
 			char *name = cdfs_decode_name(dir->name,
 			    dir->name_length, node->fs->enc, dentry_type);
 			if (name == NULL)
 				return EIO;
-			
+
 			// FIXME: check return value
-			
+
 			link_node(fs_node, fn, name);
 			free(name);
-			
+
 			if (dentry_type == CDFS_FILE)
 				cur->processed = true;
 		}
-		
+
 		block_put(block);
 	}
-	
+
 	node->processed = true;
 	return EOK;
@@ -650,12 +650,12 @@
 	cdfs_lba_t lba = index / BLOCK_SIZE;
 	size_t offset = index % BLOCK_SIZE;
-	
+
 	block_t *block;
 	errno_t rc = block_get(&block, fs->service_id, lba, BLOCK_FLAGS_NONE);
 	if (rc != EOK)
 		return NULL;
-	
+
 	cdfs_dir_t *dir = (cdfs_dir_t *) (block->data + offset);
-	
+
 	cdfs_dentry_type_t dentry_type;
 	if (dir->flags & DIR_FLAG_DIRECTORY)
@@ -663,18 +663,18 @@
 	else
 		dentry_type = CDFS_FILE;
-	
+
 	fs_node_t *fn;
 	rc = create_node(&fn, fs, dentry_type, index);
 	if ((rc != EOK) || (fn == NULL))
 		return NULL;
-	
+
 	cdfs_node_t *node = CDFS_NODE(fn);
 	node->lba = uint32_lb(dir->lba);
 	node->size = uint32_lb(dir->size);
 	node->lnkcnt = 1;
-	
+
 	if (dentry_type == CDFS_FILE)
 		node->processed = true;
-	
+
 	block_put(block);
 	return fn;
@@ -687,5 +687,5 @@
 		.service_id = fs->service_id
 	};
-	
+
 	ht_link_t *link = hash_table_find(&nodes, &key);
 	if (link) {
@@ -694,5 +694,5 @@
 		return FS_NODE(node);
 	}
-	
+
 	return get_uncached_node(fs, index);
 }
@@ -701,5 +701,5 @@
 {
 	cdfs_node_t *parent = CDFS_NODE(pfn);
-	
+
 	if (!parent->processed) {
 		errno_t rc = cdfs_readdir(parent->fs, pfn);
@@ -707,5 +707,5 @@
 			return rc;
 	}
-	
+
 	list_foreach(parent->cs_list, link, cdfs_dentry_t, dentry) {
 		if (str_cmp(dentry->name, component) == 0) {
@@ -714,5 +714,5 @@
 		}
 	}
-	
+
 	*fn = NULL;
 	return EOK;
@@ -722,8 +722,8 @@
 {
 	cdfs_node_t *node = CDFS_NODE(fn);
-	
+
 	if (!node->processed)
 		cdfs_readdir(node->fs, fn);
-	
+
 	node->opened++;
 	return EOK;
@@ -763,8 +763,8 @@
 {
 	cdfs_node_t *node = CDFS_NODE(fn);
-	
+
 	if ((node->type == CDFS_DIRECTORY) && (!node->processed))
 		cdfs_readdir(node->fs, fn);
-	
+
 	*has_children = !list_empty(&node->cs_list);
 	return EOK;
@@ -809,5 +809,5 @@
 {
 	*size = BLOCK_SIZE;
-	
+
 	return EOK;
 }
@@ -816,5 +816,5 @@
 {
 	*count = 0;
-	
+
 	return EOK;
 }
@@ -823,5 +823,5 @@
 {
 	*count = 0;
-	
+
 	return EOK;
 }
@@ -855,10 +855,10 @@
 	size_t i, j, k;
 	bool match;
-	
+
 	i = 0;
 	while (i + ucs2_esc_seq_len <= 32) {
 		if (seq[i] == 0)
 			break;
-		
+
 		for (j = 0; j < ucs2_esc_seq_no; j++) {
 			match = true;
@@ -870,11 +870,11 @@
 			}
 		}
-		
+
 		if (!match)
 			return EINVAL;
-		
+
 		i += ucs2_esc_seq_len;
 	}
-	
+
 	while (i < 32) {
 		if (seq[i] != 0)
@@ -882,5 +882,5 @@
 		++i;
 	}
-	
+
 	return EOK;
 }
@@ -905,12 +905,12 @@
 		if (rc != EOK)
 			break;
-		
+
 		cdfs_vol_desc_t *vol_desc = (cdfs_vol_desc_t *) block->data;
-		
+
 		if (vol_desc->type == VOL_DESC_SET_TERMINATOR) {
 			block_put(block);
 			break;
 		}
-		
+
 		if ((vol_desc->type != VOL_DESC_SUPPLEMENTARY) ||
 		    (memcmp(vol_desc->standard_ident, CDFS_STANDARD_IDENT, 5) != 0) ||
@@ -919,5 +919,5 @@
 			continue;
 		}
-		
+
 		uint16_t set_size = uint16_lb(vol_desc->data.prisec.set_size);
 		if (set_size > 1) {
@@ -929,5 +929,5 @@
 			 */
 		}
-		
+
 		uint16_t sequence_nr = uint16_lb(vol_desc->data.prisec.sequence_nr);
 		if (sequence_nr != 1) {
@@ -939,5 +939,5 @@
 			continue;
 		}
-		
+
 		uint16_t block_size = uint16_lb(vol_desc->data.prisec.block_size);
 		if (block_size != BLOCK_SIZE) {
@@ -945,5 +945,5 @@
 			continue;
 		}
-		
+
 		rc = cdfs_verify_joliet_esc_seq(vol_desc->data.prisec.esc_seq);
 		if (rc != EOK)
@@ -958,5 +958,5 @@
 		return EOK;
 	}
-	
+
 	return ENOENT;
 }
@@ -971,7 +971,7 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	cdfs_vol_desc_t *vol_desc = (cdfs_vol_desc_t *) block->data;
-	
+
 	/*
 	 * Test for primary volume descriptor
@@ -984,5 +984,5 @@
 		return ENOTSUP;
 	}
-	
+
 	uint16_t set_size = uint16_lb(vol_desc->data.prisec.set_size);
 	if (set_size > 1) {
@@ -994,5 +994,5 @@
 		 */
 	}
-	
+
 	uint16_t sequence_nr = uint16_lb(vol_desc->data.prisec.sequence_nr);
 	if (sequence_nr != 1) {
@@ -1004,5 +1004,5 @@
 		return ENOTSUP;
 	}
-	
+
 	uint16_t block_size = uint16_lb(vol_desc->data.prisec.block_size);
 	if (block_size != BLOCK_SIZE) {
@@ -1010,12 +1010,12 @@
 		return ENOTSUP;
 	}
-	
+
 	// TODO: implement path table support
-	
+
 	/* Search for Joliet SVD */
-	
+
 	uint32_t jrlba;
 	uint32_t jrsize;
-	
+
 	rc = cdfs_find_joliet_svd(sid, altroot, &jrlba, &jrsize, vol_ident);
 	if (rc == EOK) {
@@ -1031,5 +1031,5 @@
 		    32, enc_ascii);
 	}
-	
+
 	block_put(block);
 	return EOK;
@@ -1040,10 +1040,10 @@
 {
 	cdfs_node_t *node = CDFS_NODE(rfn);
-	
+
 	errno_t rc = iso_read_vol_desc(fs->service_id, altroot, &node->lba,
 	    &node->size, &fs->enc, &fs->vol_ident);
 	if (rc != EOK)
 		return rc;
-	
+
 	return cdfs_readdir(fs, rfn);
 }
@@ -1060,22 +1060,22 @@
 	if (fs == NULL)
 		goto error;
-	
+
 	fs->service_id = sid;
-	
+
 	/* Create root node */
 	errno_t rc = create_node(&rfn, fs, L_DIRECTORY, cdfs_index++);
-	
+
 	if ((rc != EOK) || (!rfn))
 		goto error;
-	
+
 	/* FS root is not linked */
 	CDFS_NODE(rfn)->lnkcnt = 0;
 	CDFS_NODE(rfn)->lba = 0;
 	CDFS_NODE(rfn)->processed = false;
-	
+
 	/* Check if there is cdfs in given session */
 	if (iso_readfs(fs, rfn, altroot) != EOK)
 		goto error;
-	
+
 	list_append(&fs->link, &cdfs_instances);
 	return fs;
@@ -1094,7 +1094,7 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	cdfs_lba_t altroot = 0;
-	
+
 	/*
 	 * Read TOC multisession information and get the start address
@@ -1106,5 +1106,5 @@
 	if (rc == EOK && (uint16_t_be2host(toc.toc_len) == 10))
 		altroot = uint32_t_be2host(toc.ftrack_lsess.start_addr);
-	
+
 	/* Initialize the block cache */
 	rc = block_cache_init(service_id, BLOCK_SIZE, 0, CACHE_MODE_WT);
@@ -1113,5 +1113,5 @@
 		return rc;
 	}
-	
+
 	/* Check if this device is not already mounted */
 	fs_node_t *rootfn;
@@ -1123,5 +1123,5 @@
 		return EOK;
 	}
-	
+
 	/* Read volume descriptors */
 	uint32_t rlba;
@@ -1135,8 +1135,8 @@
 		return rc;
 	}
-	
+
 	str_cpy(info->label, FS_LABEL_MAXLEN + 1, vol_ident);
 	free(vol_ident);
-	
+
 	block_cache_fini(service_id);
 	block_fini(service_id);
@@ -1151,7 +1151,7 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	cdfs_lba_t altroot = 0;
-	
+
 	if (str_lcmp(opts, "altroot=", 8) == 0) {
 		/* User-defined alternative root on a multi-session disk */
@@ -1169,5 +1169,5 @@
 			altroot = uint32_t_be2host(toc.ftrack_lsess.start_addr);
 	}
-	
+
 	/* Initialize the block cache */
 	rc = block_cache_init(service_id, BLOCK_SIZE, 0, CACHE_MODE_WT);
@@ -1176,5 +1176,5 @@
 		return rc;
 	}
-	
+
 	/* Check if this device is not already mounted */
 	fs_node_t *rootfn;
@@ -1184,23 +1184,23 @@
 		block_cache_fini(service_id);
 		block_fini(service_id);
-		
+
 		return EEXIST;
 	}
-	
+
 	/* Create cdfs instance */
 	if (cdfs_fs_create(service_id, altroot) == NULL) {
 		block_cache_fini(service_id);
 		block_fini(service_id);
-		
+
 		return ENOMEM;
 	}
-	
+
 	rc = cdfs_root_get(&rootfn, service_id);
 	assert(rc == EOK);
-	
+
 	cdfs_node_t *root = CDFS_NODE(rootfn);
 	*index = root->index;
 	*size = root->size;
-	
+
 	return EOK;
 }
@@ -1210,9 +1210,9 @@
 	service_id_t service_id = *(service_id_t*)arg;
 	cdfs_node_t *node = hash_table_get_inst(item, cdfs_node_t, nh_link);
-	
+
 	if (node->fs->service_id == service_id) {
 		hash_table_remove_item(&nodes, &node->nh_link);
 	}
-	
+
 	return true;
 }
@@ -1234,5 +1234,5 @@
 			return fs;
 	}
-	
+
 	return NULL;
 }
@@ -1245,5 +1245,5 @@
 	if (fs == NULL)
 		return ENOENT;
-	
+
 	cdfs_fs_destroy(fs);
 	return EOK;
@@ -1257,12 +1257,12 @@
 		.service_id = service_id
 	};
-	
+
 	ht_link_t *link = hash_table_find(&nodes, &key);
 	if (link == NULL)
 		return ENOENT;
-	
+
 	cdfs_node_t *node =
 	    hash_table_get_inst(link, cdfs_node_t, nh_link);
-	
+
 	if (!node->processed) {
 		errno_t rc = cdfs_readdir(node->fs, FS_NODE(node));
@@ -1270,5 +1270,5 @@
 			return rc;
 	}
-	
+
 	ipc_callid_t callid;
 	size_t len;
@@ -1277,5 +1277,5 @@
 		return EINVAL;
 	}
-	
+
 	if (node->type == CDFS_FILE) {
 		if (pos >= node->size) {
@@ -1285,8 +1285,8 @@
 			cdfs_lba_t lba = pos / BLOCK_SIZE;
 			size_t offset = pos % BLOCK_SIZE;
-			
+
 			*rbytes = min(len, BLOCK_SIZE - offset);
 			*rbytes = min(*rbytes, node->size - pos);
-			
+
 			block_t *block;
 			errno_t rc = block_get(&block, service_id, node->lba + lba,
@@ -1296,5 +1296,5 @@
 				return rc;
 			}
-			
+
 			async_data_read_finalize(callid, block->data + offset,
 			    *rbytes);
@@ -1309,13 +1309,13 @@
 			return ENOENT;
 		}
-		
+
 		cdfs_dentry_t *dentry =
 		    list_get_instance(link, cdfs_dentry_t, link);
-		
+
 		*rbytes = 1;
 		async_data_read_finalize(callid, dentry->name,
 		    str_size(dentry->name) + 1);
 	}
-	
+
 	return EOK;
 }
@@ -1328,5 +1328,5 @@
 	 * the operation is not supported.
 	 */
-	
+
 	return ENOTSUP;
 }
@@ -1339,5 +1339,5 @@
 	 * the operation is not supported.
 	 */
-	
+
 	return ENOTSUP;
 }
@@ -1346,5 +1346,5 @@
 {
 	size_t *premove_cnt = (size_t*)arg;
-	
+
 	/* Some nodes were requested to be removed from the cache. */
 	if (0 < *premove_cnt) {
@@ -1353,10 +1353,10 @@
 		if (!node->opened) {
 			hash_table_remove_item(&nodes, item);
-			
+
 			--nodes_cached;
 			--*premove_cnt;
 		}
 	}
-	
+
 	/* Only continue if more nodes were requested to be removed. */
 	return 0 < *premove_cnt;
@@ -1367,5 +1367,5 @@
 	if (nodes_cached > NODE_CACHE_SIZE) {
 		size_t remove_cnt = nodes_cached - NODE_CACHE_SIZE;
-		
+
 		if (0 < remove_cnt)
 			hash_table_apply(&nodes, cache_remove_closed, &remove_cnt);
@@ -1378,22 +1378,22 @@
 	if (index == 0)
 		return EOK;
-	
+
 	ht_key_t key = {
 		.index = index,
 		.service_id = service_id
 	};
-	
+
 	ht_link_t *link = hash_table_find(&nodes, &key);
 	if (link == 0)
 		return ENOENT;
-	
+
 	cdfs_node_t *node =
 	    hash_table_get_inst(link, cdfs_node_t, nh_link);
-	
+
 	assert(node->opened > 0);
-	
+
 	node->opened--;
 	cleanup_cache(service_id);
-	
+
 	return EOK;
 }
@@ -1405,5 +1405,5 @@
 	 * the operation is not supported.
 	 */
-	
+
 	return ENOTSUP;
 }
@@ -1415,5 +1415,5 @@
 	 * the sync operation is a no-op.
 	 */
-	
+
 	return EOK;
 }
@@ -1438,5 +1438,5 @@
 	if (!hash_table_create(&nodes, 0, 0, &nodes_ops))
 		return false;
-	
+
 	return true;
 }
Index: uspace/srv/fs/exfat/exfat.c
===================================================================
--- uspace/srv/fs/exfat/exfat.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/exfat/exfat.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -82,5 +82,5 @@
 		return -1;
 	}
-	
+
 	rc = fs_register(vfs_sess, &exfat_vfs_info, &exfat_ops, &exfat_libfs_ops);
 	if (rc != EOK) {
@@ -88,5 +88,5 @@
 		goto err;
 	}
-	
+
 	printf(NAME ": Accepting connections\n");
 	task_retval(0);
Index: uspace/srv/fs/exfat/exfat.h
===================================================================
--- uspace/srv/fs/exfat/exfat.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/exfat/exfat.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -133,5 +133,5 @@
 	/** Back pointer to the FS node. */
 	fs_node_t		*bp;
-	
+
 	fibril_mutex_t		lock;
 	exfat_node_type_t	type;
Index: uspace/srv/fs/exfat/exfat_bitmap.c
===================================================================
--- uspace/srv/fs/exfat/exfat_bitmap.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/exfat/exfat_bitmap.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,10 +59,10 @@
 
 	clst -= EXFAT_CLST_FIRST;
-	
+
 	rc = exfat_bitmap_get(&fn, service_id);
 	if (rc != EOK)
 		return rc;
 	bitmapp = EXFAT_NODE(fn);
-	
+
 	aoff64_t offset = clst / 8;
 	rc = exfat_block_get(&b, bs, bitmapp, offset / BPS(bs), BLOCK_FLAGS_NONE);
@@ -99,10 +99,10 @@
 
 	clst -= EXFAT_CLST_FIRST;
-	
+
 	rc = exfat_bitmap_get(&fn, service_id);
 	if (rc != EOK)
 		return rc;
 	bitmapp = EXFAT_NODE(fn);
-	
+
 	aoff64_t offset = clst / 8;
 	rc = exfat_block_get(&b, bs, bitmapp, offset / BPS(bs), BLOCK_FLAGS_NONE);
@@ -120,5 +120,5 @@
 		return rc;
 	}
-	
+
 	return exfat_node_put(fn);
 }
@@ -134,10 +134,10 @@
 
 	clst -= EXFAT_CLST_FIRST;
-	
+
 	rc = exfat_bitmap_get(&fn, service_id);
 	if (rc != EOK)
 		return rc;
 	bitmapp = EXFAT_NODE(fn);
-	
+
 	aoff64_t offset = clst / 8;
 	rc = exfat_block_get(&b, bs, bitmapp, offset / BPS(bs),
@@ -156,5 +156,5 @@
 		return rc;
 	}
-	
+
 	return exfat_node_put(fn);
 }
Index: uspace/srv/fs/exfat/exfat_directory.c
===================================================================
--- uspace/srv/fs/exfat/exfat_directory.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/exfat/exfat_directory.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -91,10 +91,10 @@
 {
 	errno_t rc = EOK;
-	
+
 	if (di->b) {
 		rc = block_put(di->b);
 		di->b = NULL;
 	}
-	
+
 	return rc;
 }
@@ -141,5 +141,5 @@
 	if (rc != EOK)
 		di->pos -= 1;
-	
+
 	return rc;
 }
@@ -148,5 +148,5 @@
 {
 	errno_t rc = EOK;
-	
+
 	if (di->pos > 0) {
 		di->pos -= 1;
@@ -154,8 +154,8 @@
 	} else
 		return ENOENT;
-	
+
 	if (rc != EOK)
 		di->pos += 1;
-	
+
 	return rc;
 }
@@ -170,5 +170,5 @@
 	if (rc != EOK)
 		di->pos = _pos;
-	
+
 	return rc;
 }
@@ -177,5 +177,5 @@
 {
 	errno_t rc;
-	
+
 	rc = exfat_directory_block_load(di);
 	if (rc == EOK) {
@@ -183,5 +183,5 @@
 		*d = ((exfat_dentry_t *)di->b->data) + o;
 	}
-	
+
 	return rc;
 }
@@ -197,5 +197,5 @@
 			return ENOENT;
 	} while (exfat_directory_next(di) == EOK);
-	
+
 	return ENOENT;
 }
@@ -222,5 +222,5 @@
 	size_t offset = 0;
 	aoff64_t start_pos = 0;
-	
+
 	rc = exfat_directory_find(di, EXFAT_DENTRY_FILE, &d);
 	if (rc != EOK)
@@ -238,5 +238,5 @@
 		return ENOENT;
 	*ds  = d->stream;
-	
+
 	if (ds->name_size > size)
 		return EOVERFLOW;
@@ -470,5 +470,5 @@
 		di->b->dirty = true;
 	}
-	
+
 	return exfat_directory_seek(di, pos);
 }
@@ -486,5 +486,5 @@
 		return rc;
 	count = de->file.count + 1;
-	
+
 	while (count) {
 		rc = exfat_directory_get(di, &de);
@@ -517,5 +517,5 @@
 	di->nodep->dirty = true;		/* need to sync node */
 	di->blocks = di->nodep->size / BPS(di->bs);
-	
+
 	return EOK;
 }
Index: uspace/srv/fs/exfat/exfat_fat.c
===================================================================
--- uspace/srv/fs/exfat/exfat_fat.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/exfat/exfat_fat.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -516,5 +516,5 @@
 	blocks = ROUND_UP(nodep->size, BPS(bs))/BPS(bs);
 	count = BPS(bs);
-	
+
 	for (i = 0; i < blocks; i++) {
 		rc = exfat_block_get(&b, bs, nodep, i, BLOCK_FLAGS_NOREAD);
Index: uspace/srv/fs/exfat/exfat_idx.c
===================================================================
--- uspace/srv/fs/exfat/exfat_idx.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/exfat/exfat_idx.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -120,5 +120,5 @@
 {
 	pos_key_t *pos = (pos_key_t*)key;
-	
+
 	size_t hash = 0;
 	hash = hash_combine(pos->pfc, pos->pdi);
@@ -129,5 +129,5 @@
 {
 	exfat_idx_t *fidx = hash_table_get_inst(item, exfat_idx_t, uph_link);
-	
+
 	pos_key_t pkey = {
 		.service_id = fidx->service_id,
@@ -135,5 +135,5 @@
 		.pdi = fidx->pdi,
 	};
-	
+
 	return pos_key_hash(&pkey);
 }
@@ -143,5 +143,5 @@
 	pos_key_t *pos = (pos_key_t*)key;
 	exfat_idx_t *fidx = hash_table_get_inst(item, exfat_idx_t, uph_link);
-	
+
 	return pos->service_id == fidx->service_id
 		&& pos->pdi == fidx->pdi
@@ -184,5 +184,5 @@
 	exfat_idx_t *fidx = hash_table_get_inst(item, exfat_idx_t, uih_link);
 	idx_key_t *key = (idx_key_t*)key_arg;
-	
+
 	return key->index == fidx->index && key->service_id == fidx->service_id;
 }
@@ -207,5 +207,5 @@
 {
 	unused_t *u;
-	
+
 	assert(index);
 	u = unused_find(service_id, true);
@@ -339,5 +339,5 @@
 		return ENOSPC;
 	}
-		
+
 	fibril_mutex_initialize(&fidx->lock);
 	fidx->service_id = service_id;
@@ -361,5 +361,5 @@
 		return rc;
 	}
-		
+
 	hash_table_insert(&ui_hash, &fidx->uih_link);
 	fibril_mutex_lock(&fidx->lock);
@@ -374,5 +374,5 @@
 {
 	exfat_idx_t *fidx;
-	
+
 	pos_key_t pos_key = {
 		.service_id = service_id,
@@ -393,5 +393,5 @@
 			return NULL;
 		}
-		
+
 		fidx->pfc = pfc;
 		fidx->pdi = pdi;
@@ -515,5 +515,5 @@
 		hash_table_remove_item(&up_hash, item);
 	}
-	
+
 	return true;
 }
@@ -527,5 +527,5 @@
 		hash_table_remove_item(&ui_hash, item);
 	}
-	
+
 	return true;
 }
Index: uspace/srv/fs/exfat/exfat_ops.c
===================================================================
--- uspace/srv/fs/exfat/exfat_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/exfat/exfat_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -519,5 +519,5 @@
 	service_id = parentp->idx->service_id;
 	fibril_mutex_unlock(&parentp->idx->lock);
-	
+
 	exfat_directory_t di;
 	rc = exfat_directory_open(parentp, &di);
@@ -803,5 +803,5 @@
 	assert(childp->lnkcnt == 1);
 	fibril_mutex_lock(&childp->idx->lock);
-	
+
 	exfat_directory_t di;
 	rc = exfat_directory_open(parentp,&di);
@@ -929,5 +929,5 @@
 	bs = block_bb_get(service_id);
 	*count = DATA_CNT(bs);
-	
+
 	return EOK;
 }
Index: uspace/srv/fs/ext4fs/ext4fs.c
===================================================================
--- uspace/srv/fs/ext4fs/ext4fs.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/ext4fs/ext4fs.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -56,5 +56,5 @@
 {
 	printf("%s: HelenOS ext4 file system server\n", NAME);
-	
+
 	if (argc == 3) {
 		if (!str_cmp(argv[1], "--instance"))
@@ -65,5 +65,5 @@
 		}
 	}
-	
+
 	async_sess_t *vfs_sess = service_connect_blocking(SERVICE_VFS,
 	    INTERFACE_VFS_DRIVER, 0);
@@ -72,5 +72,5 @@
 		return 2;
 	}
-	
+
 	errno_t rc = ext4_global_init();
 	if (rc != EOK) {
@@ -78,5 +78,5 @@
 		return rc;
 	}
-	
+
 	rc = fs_register(vfs_sess, &ext4fs_vfs_info, &ext4_ops,
 	    &ext4_libfs_ops);
@@ -85,9 +85,9 @@
 		return rc;
 	}
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
Index: uspace/srv/fs/fat/fat.c
===================================================================
--- uspace/srv/fs/fat/fat.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/fat/fat.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 {
 	printf(NAME ": HelenOS FAT file system server\n");
-	
+
 	if (argc == 3) {
 		if (!str_cmp(argv[1], "--instance"))
@@ -75,5 +75,5 @@
 	if (rc != EOK)
 		goto err;
-	
+
 	async_sess_t *vfs_sess = service_connect_blocking(SERVICE_VFS,
 	    INTERFACE_VFS_DRIVER, 0);
@@ -82,5 +82,5 @@
 		return -1;
 	}
-	
+
 	rc = fs_register(vfs_sess, &fat_vfs_info, &fat_ops, &fat_libfs_ops);
 	if (rc != EOK) {
@@ -88,12 +88,12 @@
 		goto err;
 	}
-	
+
 	printf(NAME ": Accepting connections\n");
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
-	
+
 err:
 	printf(NAME ": Failed to register file system: %s\n", str_error(rc));
Index: uspace/srv/fs/fat/fat.h
===================================================================
--- uspace/srv/fs/fat/fat.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/fat/fat.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -213,5 +213,5 @@
 	/** Back pointer to the FS node. */
 	fs_node_t		*bp;
-	
+
 	fibril_mutex_t		lock;
 	fat_node_type_t		type;
Index: uspace/srv/fs/fat/fat_dentry.c
===================================================================
--- uspace/srv/fs/fat/fat_dentry.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/fat/fat_dentry.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -81,9 +81,9 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < FAT_NAME_LEN; i++) {
 		if (d->name[i] == FAT_PAD)
 			break;
-		
+
 		if (d->name[i] == FAT_DENTRY_E5_ESC)
 			*buf++ = 0xe5;
@@ -95,8 +95,8 @@
 		}
 	}
-	
+
 	if (d->ext[0] != FAT_PAD)
 		*buf++ = '.';
-	
+
 	for (i = 0; i < FAT_EXT_LEN; i++) {
 		if (d->ext[i] == FAT_PAD) {
@@ -104,5 +104,5 @@
 			return;
 		}
-		
+
 		if (d->ext[i] == FAT_DENTRY_E5_ESC)
 			*buf++ = 0xe5;
@@ -114,5 +114,5 @@
 		}
 	}
-	
+
 	*buf = '\0';
 }
@@ -124,5 +124,5 @@
 	bool lower_name = true;
 	bool lower_ext = true;
-	
+
 	for (i = 0; i < FAT_NAME_LEN; i++) {
 		switch ((uint8_t) *name) {
@@ -140,13 +140,13 @@
 					lower_name = false;
 			}
-			
+
 			d->name[i] = toupper(*name++);
 			break;
 		}
 	}
-	
+
 	if (*name++ != '.')
 		name = fake_ext;
-	
+
 	for (i = 0; i < FAT_EXT_LEN; i++) {
 		switch ((uint8_t) *name) {
@@ -163,15 +163,15 @@
 					lower_ext = false;
 			}
-			
+
 			d->ext[i] = toupper(*name++);
 			break;
 		}
 	}
-	
+
 	if (lower_name)
 		d->lcase |= FAT_LCASE_LOWER_NAME;
 	else
 		d->lcase &= ~FAT_LCASE_LOWER_NAME;
-	
+
 	if (lower_ext)
 		d->lcase |= FAT_LCASE_LOWER_EXT;
@@ -183,9 +183,9 @@
 {
 	unsigned int i;
-	
+
 	for (i = 0; i < FAT_NAME_LEN; i++) {
 		if (d->name[i] == FAT_PAD)
 			break;
-		
+
 		if (d->name[i] == FAT_DENTRY_E5_ESC)
 			*buf++ = 0xe5;
@@ -193,5 +193,5 @@
 			*buf++ = d->name[i];
 	}
-	
+
 	for (i = 0; i < FAT_EXT_LEN; i++) {
 		if (d->ext[i] == FAT_PAD) {
@@ -199,5 +199,5 @@
 			return;
 		}
-		
+
 		if (d->ext[i] == FAT_DENTRY_E5_ESC)
 			*buf++ = 0xe5;
@@ -205,5 +205,5 @@
 			*buf++ = d->ext[i];
 	}
-	
+
 	*buf = '\0';
 }
@@ -291,9 +291,9 @@
 {
 	size_t size = 0;
-	
+
 	size += fat_lfn_str_nlength(FAT_LFN_PART1(d), FAT_LFN_PART1_SIZE);
 	size += fat_lfn_str_nlength(FAT_LFN_PART2(d), FAT_LFN_PART2_SIZE);
 	size += fat_lfn_str_nlength(FAT_LFN_PART3(d), FAT_LFN_PART3_SIZE);
-	
+
 	return size;
 }
@@ -354,5 +354,5 @@
 	d->lfn.type = 0;
 	d->lfn.firstc_lo = 0;
-	
+
 	return *offset;
 }
@@ -363,5 +363,5 @@
 	size_t off = 0;
 	size_t i = 0;
-	
+
 	while (i < count) {
 		if ((ch = str_decode(src, &off, STR_NO_LIMIT)) != 0) {
@@ -384,5 +384,5 @@
 	size_t offset=0;
 	bool result = true;
-	
+
 	while ((ch = str_decode(name, &offset, STR_NO_LIMIT)) != 0) {
 		if (str_chr(FAT_STOP_CHARS, ch) != NULL) {
Index: uspace/srv/fs/fat/fat_dentry.h
===================================================================
--- uspace/srv/fs/fat/fat_dentry.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/fat/fat_dentry.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -60,5 +60,5 @@
 #define FAT_ATTR_LFN \
     (FAT_ATTR_RDONLY | FAT_ATTR_HIDDEN | FAT_ATTR_SYSTEM | FAT_ATTR_VOLLABEL)
-    
+
 #define FAT_LCASE_LOWER_NAME	0x08
 #define FAT_LCASE_LOWER_EXT	0x10
Index: uspace/srv/fs/fat/fat_directory.c
===================================================================
--- uspace/srv/fs/fat/fat_directory.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/fat/fat_directory.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,8 +65,8 @@
 {
 	errno_t rc = EOK;
-	
+
 	if (di->b)
 		rc = block_put(di->b);
-	
+
 	return rc;
 }
@@ -106,5 +106,5 @@
 	if (rc != EOK)
 		di->pos -= 1;
-	
+
 	return rc;
 }
@@ -113,5 +113,5 @@
 {
 	errno_t rc = EOK;
-	
+
 	if (di->pos > 0) {
 		di->pos -= 1;
@@ -119,8 +119,8 @@
 	} else
 		return ENOENT;
-	
+
 	if (rc != EOK)
 		di->pos += 1;
-	
+
 	return rc;
 }
@@ -135,5 +135,5 @@
 	if (rc != EOK)
 		di->pos = _pos;
-	
+
 	return rc;
 }
@@ -142,5 +142,5 @@
 {
 	errno_t rc;
-	
+
 	rc = fat_directory_block_load(di);
 	if (rc == EOK) {
@@ -148,5 +148,5 @@
 		*d = ((fat_dentry_t *)di->b->data) + o;
 	}
-	
+
 	return rc;
 }
@@ -168,5 +168,5 @@
 	assert(rc == EOK);
 	instance = (fat_instance_t *) data;
-	
+
 	do {
 		rc = fat_directory_get(di, &d);
@@ -220,5 +220,5 @@
 			} else
 				fat_dentry_name_get(d, name);
-				
+
 			*de = d;
 			return EOK;
@@ -232,5 +232,5 @@
 		}
 	} while (fat_directory_next(di) == EOK);
-	
+
 	return ENOENT;
 }
@@ -250,5 +250,5 @@
 	d->name[0] = FAT_DENTRY_ERASED;
 	di->b->dirty = true;
-	
+
 	while (!flag && fat_directory_prev(di) == EOK) {
 		if (fat_directory_get(di, &d) == EOK &&
@@ -276,5 +276,5 @@
 	assert(rc == EOK);
 	instance = (fat_instance_t *) data;
-	
+
 	if (fat_valid_short_name(name)) {
 		/*
@@ -296,9 +296,9 @@
 		uint16_t wname[FAT_LFN_NAME_LEN];
 		size_t lfn_size, lfn_offset;
-		
+
 		rc = str_to_utf16(wname, FAT_LFN_NAME_LEN, name);
 		if (rc != EOK)
 			return rc;
-		
+
 		lfn_size = utf16_wsize(wname);
 		long_entry_count = lfn_size / FAT_LFN_ENTRY_SIZE;
@@ -440,5 +440,5 @@
 	di->nodep->dirty = true;		/* need to sync node */
 	di->blocks = di->nodep->size / BPS(di->bs);
-	
+
 	return EOK;
 }
@@ -450,5 +450,5 @@
 	aoff64_t pos;
 	errno_t rc;
-	
+
 	do {
 		found = 0;
Index: uspace/srv/fs/fat/fat_fat.c
===================================================================
--- uspace/srv/fs/fat/fat_fat.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/fat/fat_fat.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -344,5 +344,5 @@
 	else
 		*value = (*value) & FAT12_MASK;
-	
+
 	rc = block_put(b);
 
@@ -463,5 +463,5 @@
 	if (offset / BPS(bs) >= SF(bs))
 		return ERANGE;
-	
+
 	rc = block_get(&b, service_id, RSCNT(bs) + SF(bs) * fatno +
 	    offset / BPS(bs), BLOCK_FLAGS_NONE);
@@ -687,5 +687,5 @@
 	if (!lifo)
 		return ENOMEM;
-	
+
 	/*
 	 * Search FAT1 for unused clusters.
Index: uspace/srv/fs/fat/fat_idx.c
===================================================================
--- uspace/srv/fs/fat/fat_idx.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/fat/fat_idx.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -120,5 +120,5 @@
 {
 	pos_key_t *pos = (pos_key_t*)key;
-	
+
 	size_t hash = 0;
 	hash = hash_combine(pos->pfc, pos->pdi);
@@ -129,5 +129,5 @@
 {
 	fat_idx_t *fidx = hash_table_get_inst(item, fat_idx_t, uph_link);
-	
+
 	pos_key_t pkey = {
 		.service_id = fidx->service_id,
@@ -135,5 +135,5 @@
 		.pdi = fidx->pdi,
 	};
-	
+
 	return pos_key_hash(&pkey);
 }
@@ -143,5 +143,5 @@
 	pos_key_t *pos = (pos_key_t*)key;
 	fat_idx_t *fidx = hash_table_get_inst(item, fat_idx_t, uph_link);
-	
+
 	return pos->service_id == fidx->service_id
 		&& pos->pdi == fidx->pdi
@@ -184,5 +184,5 @@
 	fat_idx_t *fidx = hash_table_get_inst(item, fat_idx_t, uih_link);
 	idx_key_t *key = (idx_key_t*)key_arg;
-	
+
 	return key->index == fidx->index && key->service_id == fidx->service_id;
 }
@@ -207,5 +207,5 @@
 {
 	unused_t *u;
-	
+
 	assert(index);
 	u = unused_find(service_id, true);
@@ -339,5 +339,5 @@
 		return ENOSPC;
 	}
-		
+
 	fibril_mutex_initialize(&fidx->lock);
 	fidx->service_id = service_id;
@@ -361,5 +361,5 @@
 		return rc;
 	}
-		
+
 	hash_table_insert(&ui_hash, &fidx->uih_link);
 	fibril_mutex_lock(&fidx->lock);
@@ -393,5 +393,5 @@
 			return NULL;
 		}
-		
+
 		fidx->pfc = pfc;
 		fidx->pdi = pdi;
@@ -514,5 +514,5 @@
 		hash_table_remove_item(&up_hash, item);
 	}
-	
+
 	return true;
 }
@@ -526,5 +526,5 @@
 		hash_table_remove_item(&ui_hash, item);
 	}
-	
+
 	return true;
 }
Index: uspace/srv/fs/fat/fat_ops.c
===================================================================
--- uspace/srv/fs/fat/fat_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/fat/fat_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -381,5 +381,5 @@
 	service_id = parentp->idx->service_id;
 	fibril_mutex_unlock(&parentp->idx->lock);
-	
+
 	fat_directory_t di;
 	rc = fat_directory_open(parentp, &di);
@@ -716,5 +716,5 @@
 	assert(childp->lnkcnt == 1);
 	fibril_mutex_lock(&childp->idx->lock);
-	
+
 	fat_directory_t di;
 	rc = fat_directory_open(parentp, &di);
@@ -856,5 +856,5 @@
 {
 	fat_bs_t *bs;
-	
+
 	bs = block_bb_get(service_id);
 	*count = (SPC(bs)) ? TS(bs) / SPC(bs) : 0;
@@ -883,5 +883,5 @@
 	}
 	*count = block_count;
-	
+
 	return EOK;
 }
@@ -1330,5 +1330,5 @@
 	int flags = BLOCK_FLAGS_NONE;
 	errno_t rc;
-	
+
 	rc = fat_node_get(&fn, service_id, index);
 	if (rc != EOK)
Index: uspace/srv/fs/locfs/locfs.c
===================================================================
--- uspace/srv/fs/locfs/locfs.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/locfs/locfs.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 {
 	printf("%s: HelenOS Device Filesystem\n", NAME);
-	
+
 	if (argc == 3) {
 		if (!str_cmp(argv[1], "--instance"))
@@ -78,5 +78,5 @@
 		return -1;
 	}
-	
+
 	async_sess_t *vfs_sess = service_connect_blocking(SERVICE_VFS,
 	    INTERFACE_VFS_DRIVER, 0);
@@ -85,5 +85,5 @@
 		return -1;
 	}
-	
+
 	errno_t rc = fs_register(vfs_sess, &locfs_vfs_info, &locfs_ops,
 	    &locfs_libfs_ops);
@@ -92,9 +92,9 @@
 		return rc;
 	}
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
Index: uspace/srv/fs/locfs/locfs_ops.c
===================================================================
--- uspace/srv/fs/locfs/locfs_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/locfs/locfs_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -109,5 +109,5 @@
 		return ENOMEM;
 	}
-	
+
 	*rfn = (fs_node_t *) malloc(sizeof(fs_node_t));
 	if (*rfn == NULL) {
@@ -116,9 +116,9 @@
 		return ENOMEM;
 	}
-	
+
 	fs_node_initialize(*rfn);
 	node->type = type;
 	node->service_id = service_id;
-	
+
 	(*rfn)->data = node;
 	return EOK;
@@ -134,11 +134,11 @@
 	locfs_node_t *node = (locfs_node_t *) pfn->data;
 	errno_t ret;
-	
+
 	if (node->service_id == 0) {
 		/* Root directory */
-		
+
 		loc_sdesc_t *nspaces;
 		size_t count = loc_get_namespaces(&nspaces);
-		
+
 		if (count > 0) {
 			size_t pos;
@@ -147,5 +147,5 @@
 				if (str_cmp(nspaces[pos].name, "") == 0)
 					continue;
-				
+
 				if (str_cmp(nspaces[pos].name, component) == 0) {
 					ret = locfs_node_get_internal(rfn, LOC_OBJECT_NAMESPACE, nspaces[pos].id);
@@ -154,8 +154,8 @@
 				}
 			}
-			
+
 			free(nspaces);
 		}
-		
+
 		/* Search root namespace */
 		service_id_t namespace;
@@ -163,5 +163,5 @@
 		if (loc_namespace_get_id("", &namespace, 0) == EOK) {
 			count = loc_get_services(namespace, &svcs);
-			
+
 			if (count > 0) {
 				size_t pos;
@@ -173,16 +173,16 @@
 					}
 				}
-				
+
 				free(svcs);
 			}
 		}
-		
+
 		*rfn = NULL;
 		return EOK;
 	}
-	
+
 	if (node->type == LOC_OBJECT_NAMESPACE) {
 		/* Namespace directory */
-		
+
 		loc_sdesc_t *svcs;
 		size_t count = loc_get_services(node->service_id, &svcs);
@@ -196,12 +196,12 @@
 				}
 			}
-			
+
 			free(svcs);
 		}
-		
+
 		*rfn = NULL;
 		return EOK;
 	}
-	
+
 	*rfn = NULL;
 	return EOK;
@@ -216,20 +216,20 @@
 {
 	locfs_node_t *node = (locfs_node_t *) fn->data;
-	
+
 	if (node->service_id == 0) {
 		/* Root directory */
 		return EOK;
 	}
-	
+
 	loc_object_type_t type = loc_id_probe(node->service_id);
-	
+
 	if (type == LOC_OBJECT_NAMESPACE) {
 		/* Namespace directory */
 		return EOK;
 	}
-	
+
 	if (type == LOC_OBJECT_SERVICE) {
 		/* Device node */
-		
+
 		fibril_mutex_lock(&services_mutex);
 		ht_link_t *lnk;
@@ -242,12 +242,12 @@
 				return ENOMEM;
 			}
-			
+
 			dev->service_id = node->service_id;
-			
+
 			/* Mark as incomplete */
 			dev->sess = NULL;
 			dev->refcount = 1;
 			fibril_condvar_initialize(&dev->cv);
-			
+
 			/*
 			 * Insert the incomplete device structure so that other
@@ -256,15 +256,15 @@
 			 */
 			hash_table_insert(&services, &dev->link);
-			
+
 			/*
 			 * Drop the mutex to allow recursive locfs requests.
 			 */
 			fibril_mutex_unlock(&services_mutex);
-			
+
 			async_sess_t *sess = loc_service_connect(node->service_id,
 			    INTERFACE_FS, 0);
-			
+
 			fibril_mutex_lock(&services_mutex);
-			
+
 			/*
 			 * Notify possible waiters about this device structure
@@ -272,5 +272,5 @@
 			 */
 			fibril_condvar_broadcast(&dev->cv);
-			
+
 			if (!sess) {
 				/*
@@ -280,13 +280,13 @@
 				hash_table_remove(&services, &node->service_id);
 				fibril_mutex_unlock(&services_mutex);
-				
+
 				return ENOENT;
 			}
-			
+
 			/* Set the correct session. */
 			dev->sess = sess;
 		} else {
 			service_t *dev = hash_table_get_inst(lnk, service_t, link);
-			
+
 			if (!dev->sess) {
 				/*
@@ -303,10 +303,10 @@
 			dev->refcount++;
 		}
-		
+
 		fibril_mutex_unlock(&services_mutex);
-		
-		return EOK;
-	}
-	
+
+		return EOK;
+	}
+
 	return ENOENT;
 }
@@ -322,5 +322,5 @@
 {
 	assert((lflag & L_FILE) ^ (lflag & L_DIRECTORY));
-	
+
 	*rfn = NULL;
 	return ENOTSUP;
@@ -345,5 +345,5 @@
 {
 	locfs_node_t *node = (locfs_node_t *) fn->data;
-	
+
 	if (node->service_id == 0) {
 		size_t count = loc_count_namespaces();
@@ -352,5 +352,5 @@
 			return EOK;
 		}
-		
+
 		/* Root namespace */
 		service_id_t namespace;
@@ -362,9 +362,9 @@
 			}
 		}
-		
+
 		*has_children = false;
 		return EOK;
 	}
-	
+
 	if (node->type == LOC_OBJECT_NAMESPACE) {
 		size_t count = loc_count_services(node->service_id);
@@ -373,9 +373,9 @@
 			return EOK;
 		}
-		
+
 		*has_children = false;
 		return EOK;
 	}
-	
+
 	*has_children = false;
 	return EOK;
@@ -396,8 +396,8 @@
 {
 	locfs_node_t *node = (locfs_node_t *) fn->data;
-	
+
 	if (node->service_id == 0)
 		return 0;
-	
+
 	return 1;
 }
@@ -406,5 +406,5 @@
 {
 	locfs_node_t *node = (locfs_node_t *) fn->data;
-	
+
 	return ((node->type == LOC_OBJECT_NONE) || (node->type == LOC_OBJECT_NAMESPACE));
 }
@@ -413,5 +413,5 @@
 {
 	locfs_node_t *node = (locfs_node_t *) fn->data;
-	
+
 	return (node->type == LOC_OBJECT_SERVICE);
 }
@@ -420,8 +420,8 @@
 {
 	locfs_node_t *node = (locfs_node_t *) fn->data;
-	
+
 	if (node->type == LOC_OBJECT_SERVICE)
 		return node->service_id;
-	
+
 	return 0;
 }
@@ -451,5 +451,5 @@
 	if (!hash_table_create(&services, 0,  0, &services_ops))
 		return false;
-	
+
 	return true;
 }
@@ -484,8 +484,8 @@
 			return EINVAL;
 		}
-		
+
 		loc_sdesc_t *desc;
 		size_t count = loc_get_namespaces(&desc);
-		
+
 		/* Get rid of root namespace */
 		size_t i;
@@ -494,9 +494,9 @@
 				if (pos >= i)
 					pos++;
-				
+
 				break;
 			}
 		}
-		
+
 		if (pos < count) {
 			async_data_read_finalize(callid, desc[pos].name, str_size(desc[pos].name) + 1);
@@ -505,13 +505,13 @@
 			return EOK;
 		}
-		
+
 		free(desc);
 		pos -= count;
-		
+
 		/* Search root namespace */
 		service_id_t namespace;
 		if (loc_namespace_get_id("", &namespace, 0) == EOK) {
 			count = loc_get_services(namespace, &desc);
-			
+
 			if (pos < count) {
 				async_data_read_finalize(callid, desc[pos].name, str_size(desc[pos].name) + 1);
@@ -520,14 +520,14 @@
 				return EOK;
 			}
-			
+
 			free(desc);
 		}
-		
+
 		async_answer_0(callid, ENOENT);
 		return ENOENT;
 	}
-	
+
 	loc_object_type_t type = loc_id_probe(index);
-	
+
 	if (type == LOC_OBJECT_NAMESPACE) {
 		/* Namespace directory */
@@ -538,8 +538,8 @@
 			return EINVAL;
 		}
-		
+
 		loc_sdesc_t *desc;
 		size_t count = loc_get_services(index, &desc);
-		
+
 		if (pos < count) {
 			async_data_read_finalize(callid, desc[pos].name, str_size(desc[pos].name) + 1);
@@ -548,13 +548,13 @@
 			return EOK;
 		}
-		
+
 		free(desc);
 		async_answer_0(callid, ENOENT);
 		return ENOENT;
 	}
-	
+
 	if (type == LOC_OBJECT_SERVICE) {
 		/* Device node */
-		
+
 		fibril_mutex_lock(&services_mutex);
 		service_id_t service_index = index;
@@ -564,8 +564,8 @@
 			return ENOENT;
 		}
-		
+
 		service_t *dev = hash_table_get_inst(lnk, service_t, link);
 		assert(dev->sess);
-		
+
 		ipc_callid_t callid;
 		if (!async_data_read_receive(&callid, NULL)) {
@@ -574,19 +574,19 @@
 			return EINVAL;
 		}
-		
+
 		/* Make a request at the driver */
 		async_exch_t *exch = async_exchange_begin(dev->sess);
-		
+
 		ipc_call_t answer;
 		aid_t msg = async_send_4(exch, VFS_OUT_READ, service_id,
 		    index, LOWER32(pos), UPPER32(pos), &answer);
-		
+
 		/* Forward the IPC_M_DATA_READ request to the driver */
 		async_forward_fast(callid, exch, 0, 0, 0, IPC_FF_ROUTE_FROM_ME);
-		
+
 		async_exchange_end(exch);
-		
+
 		fibril_mutex_unlock(&services_mutex);
-		
+
 		/* Wait for reply from the driver. */
 		errno_t rc;
@@ -596,9 +596,9 @@
 		if ((errno_t) rc == EHANGUP)
 			rc = ENOTSUP;
-		
+
 		*rbytes = IPC_GET_ARG1(answer);
 		return rc;
 	}
-	
+
 	return ENOENT;
 }
@@ -610,15 +610,15 @@
 	if (index == 0)
 		return ENOTSUP;
-	
+
 	loc_object_type_t type = loc_id_probe(index);
-	
+
 	if (type == LOC_OBJECT_NAMESPACE) {
 		/* Namespace directory */
 		return ENOTSUP;
 	}
-	
+
 	if (type == LOC_OBJECT_SERVICE) {
 		/* Device node */
-		
+
 		fibril_mutex_lock(&services_mutex);
 		service_id_t service_index = index;
@@ -628,8 +628,8 @@
 			return ENOENT;
 		}
-		
+
 		service_t *dev = hash_table_get_inst(lnk, service_t, link);
 		assert(dev->sess);
-		
+
 		ipc_callid_t callid;
 		if (!async_data_write_receive(&callid, NULL)) {
@@ -638,19 +638,19 @@
 			return EINVAL;
 		}
-		
+
 		/* Make a request at the driver */
 		async_exch_t *exch = async_exchange_begin(dev->sess);
-		
+
 		ipc_call_t answer;
 		aid_t msg = async_send_4(exch, VFS_OUT_WRITE, service_id,
 		    index, LOWER32(pos), UPPER32(pos), &answer);
-		
+
 		/* Forward the IPC_M_DATA_WRITE request to the driver */
 		async_forward_fast(callid, exch, 0, 0, 0, IPC_FF_ROUTE_FROM_ME);
-		
+
 		async_exchange_end(exch);
-		
+
 		fibril_mutex_unlock(&services_mutex);
-		
+
 		/* Wait for reply from the driver. */
 		errno_t rc;
@@ -660,10 +660,10 @@
 		if ((errno_t) rc == EHANGUP)
 			rc = ENOTSUP;
-		
+
 		*wbytes = IPC_GET_ARG1(answer);
 		*nsize = 0;
 		return rc;
 	}
-	
+
 	return ENOENT;
 }
@@ -679,14 +679,14 @@
 	if (index == 0)
 		return EOK;
-	
+
 	loc_object_type_t type = loc_id_probe(index);
-	
+
 	if (type == LOC_OBJECT_NAMESPACE) {
 		/* Namespace directory */
 		return EOK;
 	}
-	
+
 	if (type == LOC_OBJECT_SERVICE) {
-		
+
 		fibril_mutex_lock(&services_mutex);
 		service_id_t service_index = index;
@@ -696,9 +696,9 @@
 			return ENOENT;
 		}
-		
+
 		service_t *dev = hash_table_get_inst(lnk, service_t, link);
 		assert(dev->sess);
 		dev->refcount--;
-		
+
 		if (dev->refcount == 0) {
 			async_hangup(dev->sess);
@@ -706,10 +706,10 @@
 			hash_table_remove(&services, &service_index);
 		}
-		
+
 		fibril_mutex_unlock(&services_mutex);
-		
-		return EOK;
-	}
-	
+
+		return EOK;
+	}
+
 	return ENOENT;
 }
@@ -719,12 +719,12 @@
 	if (index == 0)
 		return EOK;
-	
+
 	loc_object_type_t type = loc_id_probe(index);
-	
+
 	if (type == LOC_OBJECT_NAMESPACE) {
 		/* Namespace directory */
 		return EOK;
 	}
-	
+
 	if (type == LOC_OBJECT_SERVICE) {
 
@@ -736,26 +736,26 @@
 			return ENOENT;
 		}
-		
+
 		service_t *dev = hash_table_get_inst(lnk, service_t, link);
 		assert(dev->sess);
-		
+
 		/* Make a request at the driver */
 		async_exch_t *exch = async_exchange_begin(dev->sess);
-		
+
 		ipc_call_t answer;
 		aid_t msg = async_send_2(exch, VFS_OUT_SYNC, service_id,
 		    index, &answer);
-		
+
 		async_exchange_end(exch);
-		
+
 		fibril_mutex_unlock(&services_mutex);
-		
+
 		/* Wait for reply from the driver */
 		errno_t rc;
 		async_wait_for(msg, &rc);
-		
+
 		return rc;
 	}
-	
+
 	return  ENOENT;
 }
Index: uspace/srv/fs/mfs/mfs_ops.c
===================================================================
--- uspace/srv/fs/mfs/mfs_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/mfs/mfs_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -617,5 +617,5 @@
 		.index = index
 	};
-	
+
 	ht_link_t *already_open = hash_table_find(&open_nodes, &key);
 
@@ -974,5 +974,5 @@
 		if (r != EOK)
 			goto out_err;
-		
+
 		r = mfs_write_map(mnode, pos, block, &dummy);
 		if (r != EOK) {
@@ -1202,5 +1202,5 @@
 	if (NULL == inst)
 		return ENOENT;
-	
+
 	*size = inst->sbi->block_size;
 
@@ -1213,5 +1213,5 @@
 	struct mfs_instance *inst;
 	errno_t rc;
-	
+
 	rc = mfs_instance_get(service_id, &inst);
 	if (rc != EOK)
@@ -1220,5 +1220,5 @@
 	if (NULL == inst)
 		return ENOENT;
-	
+
 	*count = (uint64_t) MFS_BMAP_SIZE_BITS(inst->sbi, BMAP_ZONE);
 
@@ -1230,5 +1230,5 @@
 {
 	uint32_t block_free;
-	
+
 	struct mfs_instance *inst;
 	errno_t rc = mfs_instance_get(service_id, &inst);
Index: uspace/srv/fs/mfs/mfs_rw.c
===================================================================
--- uspace/srv/fs/mfs/mfs_rw.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/mfs/mfs_rw.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -249,5 +249,5 @@
 
 	mfs_version_t fs_version = sbi->fs_version;
-	
+
 	assert(new_size <= ino_i->i_size);
 
Index: uspace/srv/fs/tmpfs/tmpfs.c
===================================================================
--- uspace/srv/fs/tmpfs/tmpfs.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/tmpfs/tmpfs.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,10 +75,10 @@
 		}
 	}
-	
+
 	if (!tmpfs_init()) {
 		printf(NAME ": failed to initialize TMPFS\n");
 		return -1;
 	}
-	
+
 	async_sess_t *vfs_sess = service_connect_blocking(SERVICE_VFS,
 	    INTERFACE_VFS_DRIVER, 0);
@@ -87,5 +87,5 @@
 		return -1;
 	}
-	
+
 	errno_t rc = fs_register(vfs_sess, &tmpfs_vfs_info, &tmpfs_ops,
 	    &tmpfs_libfs_ops);
@@ -94,9 +94,9 @@
 		return rc;
 	}
-	
+
 	printf(NAME ": Accepting connections\n");
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
Index: uspace/srv/fs/tmpfs/tmpfs_dump.c
===================================================================
--- uspace/srv/fs/tmpfs/tmpfs_dump.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/tmpfs/tmpfs_dump.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,5 +64,5 @@
 	libfs_ops_t *ops = &tmpfs_libfs_ops;
 	errno_t rc;
-	
+
 	do {
 		char *fname;
@@ -70,11 +70,11 @@
 		tmpfs_node_t *nodep;
 		uint32_t size;
-		
+
 		if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, &entry,
 		    sizeof(entry)) != EOK)
 			return false;
-		
+
 		entry.len = uint32_t_le2host(entry.len);
-		
+
 		switch (entry.type) {
 		case TMPFS_NONE:
@@ -84,5 +84,5 @@
 			if (fname == NULL)
 				return false;
-			
+
 			rc = ops->create(&fn, dsid, L_FILE);
 			if (rc != EOK || fn == NULL) {
@@ -90,5 +90,5 @@
 				return false;
 			}
-			
+
 			if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, fname,
 			    entry.len) != EOK) {
@@ -98,5 +98,5 @@
 			}
 			fname[entry.len] = 0;
-			
+
 			rc = ops->link(pfn, fn, fname);
 			if (rc != EOK) {
@@ -106,21 +106,21 @@
 			}
 			free(fname);
-			
+
 			if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, &size,
 			    sizeof(size)) != EOK)
 				return false;
-			
+
 			size = uint32_t_le2host(size);
-			
+
 			nodep = TMPFS_NODE(fn);
 			nodep->data = malloc(size);
 			if (nodep->data == NULL)
 				return false;
-			
+
 			nodep->size = size;
 			if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, nodep->data,
 			    size) != EOK)
 				return false;
-			
+
 			break;
 		case TMPFS_DIRECTORY:
@@ -128,5 +128,5 @@
 			if (fname == NULL)
 				return false;
-			
+
 			rc = ops->create(&fn, dsid, L_DIRECTORY);
 			if (rc != EOK || fn == NULL) {
@@ -134,5 +134,5 @@
 				return false;
 			}
-			
+
 			if (block_seqread(dsid, tmpfs_buf, bufpos, buflen, pos, fname,
 			    entry.len) != EOK) {
@@ -150,9 +150,9 @@
 			}
 			free(fname);
-			
+
 			if (!tmpfs_restore_recursion(dsid, bufpos, buflen, pos,
 			    fn))
 				return false;
-			
+
 			break;
 		default:
@@ -160,5 +160,5 @@
 		}
 	} while (entry.type != TMPFS_NONE);
-	
+
 	return true;
 }
@@ -173,17 +173,17 @@
 	if (rc != EOK)
 		return false;
-	
+
 	size_t bufpos = 0;
 	size_t buflen = 0;
 	aoff64_t pos = 0;
-	
+
 	char tag[6];
 	if (block_seqread(dsid, tmpfs_buf, &bufpos, &buflen, &pos, tag, 5) != EOK)
 		goto error;
-	
+
 	tag[5] = 0;
 	if (str_cmp(tag, "TMPFS") != 0)
 		goto error;
-	
+
 	rc = ops->root_get(&fn, dsid);
 	if (rc != EOK)
@@ -192,8 +192,8 @@
 	if (!tmpfs_restore_recursion(dsid, &bufpos, &buflen, &pos, fn))
 		goto error;
-		
+
 	block_fini(dsid);
 	return true;
-	
+
 error:
 	block_fini(dsid);
Index: uspace/srv/fs/tmpfs/tmpfs_ops.c
===================================================================
--- uspace/srv/fs/tmpfs/tmpfs_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/tmpfs/tmpfs_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -163,5 +163,5 @@
 	tmpfs_node_t *node = hash_table_get_inst(item, tmpfs_node_t, nh_link);
 	node_key_t *key = (node_key_t *)key_arg;
-	
+
 	return key->service_id == node->service_id && key->index == node->index;
 }
@@ -220,5 +220,5 @@
 	if (!hash_table_create(&nodes, 0, 0, &nodes_ops))
 		return false;
-	
+
 	return true;
 }
@@ -228,5 +228,5 @@
 	fs_node_t *rfn;
 	errno_t rc;
-	
+
 	rc = tmpfs_create_node(&rfn, service_id, L_DIRECTORY);
 	if (rc != EOK || !rfn)
@@ -240,5 +240,5 @@
 	service_id_t sid = *(service_id_t*)arg;
 	tmpfs_node_t *node = hash_table_get_inst(item, tmpfs_node_t, nh_link);
-	
+
 	if (node->service_id == sid) {
 		hash_table_remove_item(&nodes, &node->nh_link);
@@ -273,7 +273,7 @@
 		.index = index
 	};
-	
+
 	ht_link_t *lnk = hash_table_find(&nodes, &key);
-	
+
 	if (lnk) {
 		tmpfs_node_t *nodep;
@@ -338,8 +338,8 @@
 {
 	tmpfs_node_t *nodep = TMPFS_NODE(fn);
-	
+
 	assert(!nodep->lnkcnt);
 	assert(list_empty(&nodep->cs_list));
-	
+
 	hash_table_remove_item(&nodes, &nodep->nh_link);
 
@@ -406,5 +406,5 @@
 	if (!childp)
 		return ENOENT;
-		
+
 	if ((childp->lnkcnt == 1) && !list_empty(&childp->cs_list))
 		return ENOTEMPTY;
@@ -432,5 +432,5 @@
 	fs_node_t *rootfn;
 	errno_t rc;
-	
+
 	/* Check if this device is not already mounted. */
 	rc = tmpfs_root_get(&rootfn, service_id);
@@ -474,11 +474,11 @@
 		.index = index
 	};
-	
+
 	ht_link_t *hlp = hash_table_find(&nodes, &key);
 	if (!hlp)
 		return ENOENT;
-	
+
 	tmpfs_node_t *nodep = hash_table_get_inst(hlp, tmpfs_node_t, nh_link);
-	
+
 	/*
 	 * Receive the read request.
@@ -499,7 +499,7 @@
 		tmpfs_dentry_t *dentryp;
 		link_t *lnk;
-		
+
 		assert(nodep->type == TMPFS_DIRECTORY);
-		
+
 		/*
 		 * Yes, we really use O(n) algorithm here.
@@ -508,5 +508,5 @@
 		 */
 		lnk = list_nth(&nodep->cs_list, pos);
-		
+
 		if (lnk == NULL) {
 			async_answer_0(callid, ENOENT);
@@ -536,10 +536,10 @@
 		.index = index
 	};
-	
+
 	ht_link_t *hlp = hash_table_find(&nodes, &key);
-	
+
 	if (!hlp)
 		return ENOENT;
-	
+
 	tmpfs_node_t *nodep = hash_table_get_inst(hlp, tmpfs_node_t, nh_link);
 
@@ -599,26 +599,26 @@
 		.index = index
 	};
-	
+
 	ht_link_t *hlp = hash_table_find(&nodes, &key);
-	
+
 	if (!hlp)
 		return ENOENT;
 	tmpfs_node_t *nodep = hash_table_get_inst(hlp, tmpfs_node_t, nh_link);
-	
+
 	if (size == nodep->size)
 		return EOK;
-	
+
 	if (size > SIZE_MAX)
 		return ENOMEM;
-	
+
 	void *newdata = realloc(nodep->data, size);
 	if (!newdata)
 		return ENOMEM;
-	
+
 	if (size > nodep->size) {
 		size_t delta = size - nodep->size;
 		memset(newdata + nodep->size, 0, delta);
 	}
-	
+
 	nodep->size = size;
 	nodep->data = newdata;
@@ -637,5 +637,5 @@
 		.index = index
 	};
-	
+
 	ht_link_t *hlp = hash_table_find(&nodes, &key);
 	if (!hlp)
Index: uspace/srv/fs/udf/udf.c
===================================================================
--- uspace/srv/fs/udf/udf.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/udf/udf.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 	log_init(NAME);
 	log_msg(LOG_DEFAULT, LVL_NOTE, "HelenOS UDF 1.02 file system server");
-	
+
 	if (argc == 3) {
 		if (!str_cmp(argv[1], "--instance"))
@@ -72,5 +72,5 @@
 		}
 	}
-	
+
 	async_sess_t *vfs_sess =
 	    service_connect_blocking(SERVICE_VFS, INTERFACE_VFS_DRIVER, 0);
@@ -79,21 +79,21 @@
 		return 2;
 	}
-	
+
 	errno_t rc = fs_register(vfs_sess, &udf_vfs_info, &udf_ops,
 	    &udf_libfs_ops);
 	if (rc != EOK)
 		goto err;
-	
+
 	rc = udf_idx_init();
 	if (rc != EOK)
 		goto err;
-	
+
 	log_msg(LOG_DEFAULT, LVL_NOTE, "Accepting connections");
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
-	
+
 err:
 	log_msg(LOG_DEFAULT, LVL_FATAL, "Failed to register file system: %s", str_error(rc));
Index: uspace/srv/fs/udf/udf.h
===================================================================
--- uspace/srv/fs/udf/udf.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/udf/udf.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -85,5 +85,5 @@
 	size_t open_nodes_count;
 	udf_charspec_t charset;
-	
+
 	uint32_t sector_size;
 	udf_lvolume_t *volumes;
@@ -105,10 +105,10 @@
 	fs_node_t *fs_node;
 	fibril_mutex_t lock;
-	
+
 	fs_index_t index;  /* FID logical block */
 	ht_link_t link;
 	size_t ref_cnt;
 	size_t link_cnt;
-	
+
 	uint8_t type;  /* 1 - file, 0 - directory */
 	uint64_t data_size;
Index: uspace/srv/fs/udf/udf_cksum.c
===================================================================
--- uspace/srv/fs/udf/udf_cksum.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/udf/udf_cksum.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 {
 	uint16_t crc = 0;
-	
+
 	while (len-- > 0) {
 		/*
@@ -88,5 +88,5 @@
 		crc = crc_table[(crc >> 8 ^ (*buf++ & 0xff)) & 0xff] ^ (crc << 8);
 	}
-	
+
 	return crc;
 }
@@ -98,12 +98,12 @@
 {
 	uint8_t result = 0;
-	
+
 	for (size_t i = 0; i < UDF_TAG_SIZE; i++) {
 		if (i == 4)
 			continue;
-		
+
 		result = (result + tag[i]) % 256;
 	}
-	
+
 	return result;
 }
Index: uspace/srv/fs/udf/udf_file.c
===================================================================
--- uspace/srv/fs/udf/udf_file.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/udf/udf_file.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -65,17 +65,17 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	udf_ext_ad_t *exd = (udf_ext_ad_t *) block->data;
 	uint32_t start = node->instance->partitions[
 	    FLE16(exd->extent_location.partition_num)].start +
 	    FLE32(exd->extent_location.lblock_num);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG,
 	    "Extended allocator: start=%d, block_num=%d, len=%d", start,
 	    FLE32(exd->extent_location.lblock_num), FLE32(exd->info_length));
-	
+
 	uint32_t len = FLE32(exd->info_length);
 	block_put(block);
-	
+
 	return udf_read_allocation_sequence(node, NULL, icb_flag, start, len);
 }
@@ -97,10 +97,10 @@
 {
 	node->alloc_size = 0;
-	
+
 	switch (icb_flag) {
 	case UDF_SHORT_AD:
 		log_msg(LOG_DEFAULT, LVL_DEBUG,
 		    "ICB: sequence of allocation descriptors - icbflag = short_ad_t");
-		
+
 		/*
 		 * Identify number of current partition. Virtual partition
@@ -110,5 +110,5 @@
 		size_t pd_num = (size_t) -1;
 		size_t min_start = 0;
-		
+
 		for (size_t i = 0; i < node->instance->partition_cnt; i++) {
 			if ((node->index >= node->instance->partitions[i].start) &&
@@ -121,8 +121,8 @@
 			}
 		}
-		
+
 		if (pd_num == (size_t) -1)
 			return ENOENT;
-		
+
 		/*
 		 * According to doc, in this we should stop our loop if pass
@@ -133,13 +133,13 @@
 		 * which we check inside of loop.
 		 */
-		
+
 		while (true) {
 			udf_short_ad_t *short_d =
 			    (udf_short_ad_t *) (af + start_alloc +
 			    node->alloc_size * sizeof(udf_short_ad_t));
-			
+
 			if (FLE32(short_d->length) == 0)
 				break;
-			
+
 			/*
 			 * ECMA 167 4/12 - next sequence of allocation descriptors
@@ -152,5 +152,5 @@
 				break;
 			}
-			
+
 			node->allocators = realloc(node->allocators,
 			    (node->alloc_size + 1) * sizeof(udf_allocator_t));
@@ -161,23 +161,23 @@
 			node->alloc_size++;
 		}
-		
+
 		node->allocators = realloc(node->allocators,
 		    node->alloc_size * sizeof(udf_allocator_t));
 		break;
-		
+
 	case UDF_LONG_AD:
 		log_msg(LOG_DEFAULT, LVL_DEBUG,
 		    "ICB: sequence of allocation descriptors - icbflag = long_ad_t");
-		
+
 		while (true) {
 			udf_long_ad_t *long_d =
 			    (udf_long_ad_t *) (af + start_alloc +
 			    node->alloc_size * sizeof(udf_long_ad_t));
-			
+
 			if (FLE32(long_d->length) == 0)
 				break;
-			
+
 			uint32_t pos_long_ad = udf_long_ad_to_pos(node->instance, long_d);
-			
+
 			/*
 			 * ECMA 167 4/12 - next sequence of allocation descriptors
@@ -188,5 +188,5 @@
 				break;
 			}
-			
+
 			node->allocators = realloc(node->allocators,
 			    (node->alloc_size + 1) * sizeof(udf_allocator_t));
@@ -194,30 +194,30 @@
 			    EXT_LENGTH(FLE32(long_d->length));
 			node->allocators[node->alloc_size].position = pos_long_ad;
-			
+
 			node->alloc_size++;
 		}
-		
+
 		node->allocators = realloc(node->allocators,
 		    node->alloc_size * sizeof(udf_allocator_t));
 		break;
-		
+
 	case UDF_EXTENDED_AD:
 		log_msg(LOG_DEFAULT, LVL_DEBUG,
 		    "ICB: sequence of allocation descriptors - icbflag = extended_ad_t");
 		break;
-		
+
 	case UDF_DATA_AD:
 		log_msg(LOG_DEFAULT, LVL_DEBUG,
 		    "ICB: sequence of allocation descriptors - icbflag = 3, node contains data itself");
-		
+
 		node->data = malloc(node->data_size);
 		if (!node->data)
 			return ENOMEM;
-		
+
 		memcpy(node->data, (af + start_alloc), node->data_size);
 		node->alloc_size = 0;
 		break;
 	}
-	
+
 	return EOK;
 }
@@ -237,5 +237,5 @@
 	while (true) {
 		fs_index_t pos = node->index;
-		
+
 		block_t *block = NULL;
 		errno_t rc = block_get(&block, node->instance->service_id, pos,
@@ -243,5 +243,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		udf_descriptor_tag_t *data = (udf_descriptor_tag_t *) block->data;
 		if (data->checksum != udf_tag_checksum((uint8_t *) data)) {
@@ -249,10 +249,10 @@
 			return EINVAL;
 		}
-		
+
 		/* One sector size descriptors */
 		switch (FLE16(data->id)) {
 		case UDF_FILE_ENTRY:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: File entry descriptor found");
-			
+
 			udf_file_entry_descriptor_t *file =
 			    (udf_file_entry_descriptor_t *) block->data;
@@ -260,13 +260,13 @@
 			node->data_size = FLE64(file->info_lenght);
 			node->type = (file->icbtag.file_type == UDF_ICBTYPE_DIR) ? NODE_DIR : NODE_FILE;
-			
+
 			rc = udf_read_allocation_sequence(node, (uint8_t *) file, icb_flag,
 			    FLE32(file->ea_lenght) + UDF_FE_OFFSET, FLE32(file->ad_lenght));
 			block_put(block);
 			return rc;
-			
+
 		case UDF_EFILE_ENTRY:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: Extended file entry descriptor found");
-			
+
 			udf_extended_file_entry_descriptor_t *efile =
 			    (udf_extended_file_entry_descriptor_t *) block->data;
@@ -274,10 +274,10 @@
 			node->data_size = FLE64(efile->info_lenght);
 			node->type = (efile->icbtag.file_type == UDF_ICBTYPE_DIR) ? NODE_DIR : NODE_FILE;
-			
+
 			rc = udf_read_allocation_sequence(node, (uint8_t *) efile, icb_flag,
 			    FLE32(efile->ea_lenght) + UDF_EFE_OFFSET, FLE32(efile->ad_lenght));
 			block_put(block);
 			return rc;
-			
+
 		case UDF_ICB_TERMINAL:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: Terminal entry descriptor found");
@@ -285,12 +285,12 @@
 			return EOK;
 		}
-		
+
 		pos++;
-		
+
 		rc = block_put(block);
 		if (rc != EOK)
 			return rc;
 	}
-	
+
 	return EOK;
 }
@@ -323,5 +323,5 @@
 	size_t fid_sum = 0;
 	size_t n = 0;
-	
+
 	while (node->data_size - fid_sum >= MIN_FID_LEN) {
 		udf_descriptor_tag_t *desc =
@@ -333,8 +333,8 @@
 				return ENOENT;
 		}
-		
+
 		*fid = (udf_file_identifier_descriptor_t *)
 		    (node->data + fid_sum);
-		
+
 		/* According to ECMA 167 4/14.4.9 */
 		size_t padding = 4 * (((*fid)->lenght_file_id +
@@ -343,17 +343,17 @@
 		size_t size_fid = (*fid)->lenght_file_id +
 		    FLE16((*fid)->lenght_iu) + padding + 38;
-		
+
 		fid_sum += size_fid;
-		
+
 		/* aAcording to ECMA 167 4/8.6 */
 		if (((*fid)->lenght_file_id != 0) &&
 		    (((*fid)->file_characteristics & 4) == 0)) {
 			n++;
-			
+
 			if (n == pos + 1)
 				return EOK;
 		}
 	}
-	
+
 	return ENOENT;
 }
@@ -374,5 +374,5 @@
 	if (node->data == NULL)
 		return udf_get_fid_in_allocator(fid, block, node, pos);
-	
+
 	return udf_get_fid_in_data(fid, node, pos);
 }
@@ -392,11 +392,11 @@
 {
 	void *buf = malloc(node->instance->sector_size);
-	
+
 	// FIXME: Check for NULL return value
-	
+
 	size_t j = 0;
 	size_t n = 0;
 	size_t len = 0;
-	
+
 	while (j < node->alloc_size) {
 		size_t i = 0;
@@ -408,5 +408,5 @@
 				return rc;
 			}
-			
+
 			/*
 			 * Last item in allocator is a part of sector. We take
@@ -422,5 +422,5 @@
 				break;
 			}
-			
+
 			rc = udf_get_fid_in_sector(fid, block, node, pos, &n, &buf, &len);
 			if (rc == EOK) {
@@ -428,29 +428,29 @@
 				return EOK;
 			}
-			
+
 			if (rc == EINVAL) {
 				// FIXME: Memory leak
 				return ENOENT;
 			}
-			
+
 			if (rc == ENOENT) {
 				if (block) {
 					rc = block_put(*block);
 					*block = NULL;
-					
+
 					if (rc != EOK)
 						return rc;
 				}
 			}
-			
+
 			i++;
 		}
-		
+
 		j++;
 	}
-	
+
 	if (buf)
 		free(buf);
-	
+
 	return ENOENT;
 }
@@ -474,9 +474,9 @@
 {
 	void *fidbuf = malloc(node->instance->sector_size);
-	
+
 	// FIXME: Check for NULL return value
-	
+
 	bool buf_flag;
-	
+
 	if (*len > 0) {
 		memcpy(fidbuf, *buf, *len);
@@ -484,10 +484,10 @@
 	} else
 		buf_flag = false;
-	
+
 	size_t fid_sum = 0;
 	while (node->instance->sector_size - fid_sum > 0) {
 		if (node->instance->sector_size - fid_sum >= MIN_FID_LEN) {
 			void *fid_data;
-			
+
 			if (buf_flag) {
 				memcpy((fidbuf + *len), (*block)->data,
@@ -496,12 +496,12 @@
 			} else
 				fid_data = (*block)->data + fid_sum;
-			
+
 			udf_descriptor_tag_t *desc =
 			    (udf_descriptor_tag_t *) fid_data;
-			
+
 			if (desc->checksum != udf_tag_checksum((uint8_t *) desc)) {
 				if (fidbuf)
 					free(fidbuf);
-				
+
 				if (*buf) {
 					free(*buf);
@@ -509,10 +509,10 @@
 					*len = 0;
 				}
-				
+
 				return EINVAL;
 			}
-			
+
 			*fid = (udf_file_identifier_descriptor_t *) fid_data;
-			
+
 			/* According to ECMA 167 4/14.4.9 */
 			size_t padding = 4 * (((*fid)->lenght_file_id +
@@ -525,5 +525,5 @@
 			else
 				fid_sum += size_fid;
-			
+
 			/* According to ECMA 167 4/8.6 */
 			if (((*fid)->lenght_file_id != 0) &&
@@ -533,9 +533,9 @@
 					if (fidbuf)
 						free(fidbuf);
-					
+
 					return EOK;
 				}
 			}
-			
+
 			if (fidbuf) {
 				buf_flag = false;
@@ -543,5 +543,5 @@
 				fidbuf = NULL;
 			}
-			
+
 			if (*buf) {
 				free(*buf);
@@ -552,14 +552,14 @@
 			if (*buf)
 				free(*buf);
-			
+
 			*len = node->instance->sector_size - fid_sum;
 			*buf = malloc(*len);
 			buf_flag = false;
 			memcpy(*buf, ((*block)->data + fid_sum), *len);
-			
+
 			return ENOENT;
 		}
 	}
-	
+
 	return ENOENT;
 }
@@ -581,5 +581,5 @@
 	size_t i = 0;
 	size_t l = 0;
-	
+
 	while (i < node->alloc_size) {
 		if (pos >= l + node->allocators[i].length) {
@@ -589,8 +589,8 @@
 			break;
 	}
-	
+
 	size_t sector_cnt = ALL_UP(l, node->instance->sector_size);
 	size_t sector_num = pos / node->instance->sector_size;
-	
+
 	block_t *block = NULL;
 	errno_t rc = block_get(&block, node->instance->service_id,
@@ -601,12 +601,12 @@
 		return rc;
 	}
-	
+
 	size_t sector_pos = pos % node->instance->sector_size;
-	
+
 	if (sector_pos + len < node->instance->sector_size)
 		*read_len = len;
 	else
 		*read_len = node->instance->sector_size - sector_pos;
-	
+
 	if (ALL_UP(node->allocators[i].length, node->instance->sector_size) ==
 	    sector_num - sector_cnt + 1) {
@@ -618,5 +618,5 @@
 			*read_len = len;
 	}
-	
+
 	async_data_read_finalize(callid, block->data + sector_pos, *read_len);
 	return block_put(block);
Index: uspace/srv/fs/udf/udf_idx.c
===================================================================
--- uspace/srv/fs/udf/udf_idx.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/udf/udf_idx.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -95,5 +95,5 @@
 	if (!hash_table_create(&udf_idx, 0, 0, &udf_idx_ops))
 		return ENOMEM;
-	
+
 	return EOK;
 }
@@ -127,5 +127,5 @@
 		.index = index
 	};
-	
+
 	ht_link_t *already_open = hash_table_find(&udf_idx, &key);
 	if (already_open) {
@@ -133,11 +133,11 @@
 		    udf_node_t, link);
 		node->ref_cnt++;
-		
+
 		*udfn = node;
-		
+
 		fibril_mutex_unlock(&udf_idx_lock);
 		return EOK;
 	}
-	
+
 	fibril_mutex_unlock(&udf_idx_lock);
 	return ENOENT;
@@ -156,5 +156,5 @@
 {
 	fibril_mutex_lock(&udf_idx_lock);
-	
+
 	udf_node_t *udf_node = malloc(sizeof(udf_node_t));
 	if (udf_node == NULL) {
@@ -162,5 +162,5 @@
 		return ENOMEM;
 	}
-	
+
 	fs_node_t *fs_node = malloc(sizeof(fs_node_t));
 	if (fs_node == NULL) {
@@ -169,7 +169,7 @@
 		return ENOMEM;
 	}
-	
+
 	fs_node_initialize(fs_node);
-	
+
 	udf_node->index = index;
 	udf_node->instance = instance;
@@ -179,13 +179,13 @@
 	udf_node->data = NULL;
 	udf_node->allocators = NULL;
-	
+
 	fibril_mutex_initialize(&udf_node->lock);
 	fs_node->data = udf_node;
-	
+
 	hash_table_insert(&udf_idx, &udf_node->link);
 	instance->open_nodes_count++;
-	
+
 	*udfn = udf_node;
-	
+
 	fibril_mutex_unlock(&udf_idx_lock);
 	return EOK;
@@ -202,15 +202,15 @@
 {
 	assert(node->ref_cnt == 0);
-	
+
 	fibril_mutex_lock(&udf_idx_lock);
-	
+
 	hash_table_remove_item(&udf_idx, &node->link);
-	
+
 	assert(node->instance->open_nodes_count > 0);
 	node->instance->open_nodes_count--;
-	
+
 	free(node->fs_node);
 	free(node);
-	
+
 	fibril_mutex_unlock(&udf_idx_lock);
 	return EOK;
Index: uspace/srv/fs/udf/udf_ops.c
===================================================================
--- uspace/srv/fs/udf/udf_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/udf/udf_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	udf_node_t *node;
 	rc = udf_idx_get(&node, instance, index);
@@ -82,5 +82,5 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		rc = udf_node_get_core(node);
 		if (rc != EOK) {
@@ -89,5 +89,5 @@
 		}
 	}
-	
+
 	*rfn = FS_NODE(node);
 	return EOK;
@@ -100,5 +100,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	return udf_node_get(rfn, service_id,
 	    instance->volumes[DEFAULT_VOL].root_dir);
@@ -110,5 +110,5 @@
 	if (udfn)
 		return udfn->instance->service_id;
-	
+
 	return 0;
 }
@@ -119,27 +119,27 @@
 	if (name == NULL)
 		return ENOMEM;
-	
+
 	block_t *block = NULL;
 	udf_file_identifier_descriptor_t *fid = NULL;
 	size_t pos = 0;
-	
+
 	while (udf_get_fid(&fid, &block, UDF_NODE(pfn), pos) == EOK) {
 		udf_long_ad_t long_ad = fid->icb;
-		
+
 		udf_to_unix_name(name, MAX_FILE_NAME_LEN,
 		    (char *) fid->implementation_use + FLE16(fid->lenght_iu),
 		    fid->lenght_file_id, &UDF_NODE(pfn)->instance->charset);
-		
+
 		if (str_casecmp(name, component) == 0) {
 			errno_t rc = udf_node_get(rfn, udf_service_get(pfn),
 			    udf_long_ad_to_pos(UDF_NODE(pfn)->instance, &long_ad));
-			
+
 			if (block != NULL)
 				block_put(block);
-			
+
 			free(name);
 			return rc;
 		}
-		
+
 		if (block != NULL) {
 			errno_t rc = block_put(block);
@@ -147,8 +147,8 @@
 				return rc;
 		}
-		
+
 		pos++;
 	}
-	
+
 	free(name);
 	return ENOENT;
@@ -165,13 +165,13 @@
 	if (!node)
 		return EINVAL;
-	
+
 	fibril_mutex_lock(&node->lock);
 	node->ref_cnt--;
 	fibril_mutex_unlock(&node->lock);
-	
+
 	/* Delete node from hash table and memory */
 	if (!node->ref_cnt)
 		udf_idx_del(node);
-	
+
 	return EOK;
 }
@@ -208,5 +208,5 @@
 	if (node)
 		return node->index;
-	
+
 	return 0;
 }
@@ -217,5 +217,5 @@
 	if (node)
 		return node->data_size;
-	
+
 	return 0;
 }
@@ -226,5 +226,5 @@
 	if (node)
 		return node->link_cnt;
-	
+
 	return 0;
 }
@@ -235,5 +235,5 @@
 	if (node)
 		return node->type == NODE_DIR;
-	
+
 	return false;
 }
@@ -244,5 +244,5 @@
 	if (node)
 		return node->type == NODE_FILE;
-	
+
 	return false;
 }
@@ -257,7 +257,7 @@
 	if (NULL == instance)
 		return ENOENT;
-	
+
 	*size = instance->volumes[DEFAULT_VOL].logical_block_size;
-	
+
 	return EOK;
 }
@@ -266,5 +266,5 @@
 {
 	*count = 0;
-	
+
 	return EOK;
 }
@@ -273,5 +273,5 @@
 {
 	*count = 0;
-	
+
 	return EOK;
 }
@@ -308,5 +308,5 @@
 {
 	enum cache_mode cmode;
-	
+
 	/* Check for option enabling write through. */
 	if (str_cmp(opts, "wtcache") == 0)
@@ -314,11 +314,11 @@
 	else
 		cmode = CACHE_MODE_WB;
-	
+
 	udf_instance_t *instance = malloc(sizeof(udf_instance_t));
 	if (!instance)
 		return ENOMEM;
-	
+
 	instance->sector_size = 0;
-	
+
 	/* Check for block size. Will be enhanced later */
 	if (str_cmp(opts, "bs=512") == 0)
@@ -328,10 +328,10 @@
 	else if (str_cmp(opts, "bs=2048") == 0)
 		instance->sector_size = 2048;
-	
+
 	/* initialize block cache */
 	errno_t rc = block_init(service_id, MAX_SIZE);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = fs_instance_create(service_id, instance);
 	if (rc != EOK) {
@@ -340,8 +340,8 @@
 		return rc;
 	}
-	
+
 	instance->service_id = service_id;
 	instance->open_nodes_count = 0;
-	
+
 	/* Check Volume Recognition Sequence */
 	rc = udf_volume_recongnition(service_id);
@@ -353,5 +353,5 @@
 		return rc;
 	}
-	
+
 	/* Search for Anchor Volume Descriptor */
 	udf_anchor_volume_descriptor_t avd;
@@ -364,5 +364,5 @@
 		return rc;
 	}
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG,
 	    "Volume: Anchor volume descriptor found. Sector size=%" PRIu32,
@@ -376,5 +376,5 @@
 	    PRIu32 " (sector)]", avd.reserve_extent.length,
 	    avd.reserve_extent.location);
-	
+
 	/* Initialize the block cache */
 	rc = block_cache_init(service_id, instance->sector_size, 0, cmode);
@@ -385,5 +385,5 @@
 		return rc;
 	}
-	
+
 	/* Read Volume Descriptor Sequence */
 	rc = udf_read_volume_descriptor_sequence(service_id, avd.main_extent);
@@ -396,5 +396,5 @@
 		return rc;
 	}
-	
+
 	fs_node_t *rfn;
 	rc = udf_node_get(&rfn, service_id, instance->volumes[DEFAULT_VOL].root_dir);
@@ -407,9 +407,9 @@
 		return rc;
 	}
-	
+
 	udf_node_t *node = UDF_NODE(rfn);
 	*index = instance->volumes[DEFAULT_VOL].root_dir;
 	*size = node->data_size;
-	
+
 	return EOK;
 }
@@ -421,8 +421,8 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	udf_node_t *nodep = UDF_NODE(fn);
 	udf_instance_t *instance = nodep->instance;
-	
+
 	/*
 	 * We expect exactly two references on the root node.
@@ -434,5 +434,5 @@
 		return EBUSY;
 	}
-	
+
 	/*
 	 * Put the root node twice.
@@ -440,10 +440,10 @@
 	udf_node_put(fn);
 	udf_node_put(fn);
-	
+
 	fs_instance_destroy(service_id);
 	free(instance);
 	block_cache_fini(service_id);
 	block_fini(service_id);
-	
+
 	return EOK;
 }
@@ -456,12 +456,12 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	fs_node_t *rfn;
 	rc = udf_node_get(&rfn, service_id, index);
 	if (rc != EOK)
 		return rc;
-	
+
 	udf_node_t *node = UDF_NODE(rfn);
-	
+
 	ipc_callid_t callid;
 	size_t len = 0;
@@ -471,5 +471,5 @@
 		return EINVAL;
 	}
-	
+
 	if (node->type == NODE_FILE) {
 		if (pos >= node->data_size) {
@@ -479,5 +479,5 @@
 			return EOK;
 		}
-		
+
 		size_t read_len = 0;
 		if (node->data == NULL)
@@ -489,5 +489,5 @@
 			rc = EOK;
 		}
-		
+
 		*rbytes = read_len;
 		(void) udf_node_put(rfn);
@@ -498,19 +498,19 @@
 		if (udf_get_fid(&fid, &block, node, pos) == EOK) {
 			char *name = malloc(MAX_FILE_NAME_LEN + 1);
-			
+
 			// FIXME: Check for NULL return value
-			
+
 			udf_to_unix_name(name, MAX_FILE_NAME_LEN,
 			    (char *) fid->implementation_use + FLE16(fid->lenght_iu),
 			    fid->lenght_file_id, &node->instance->charset);
-			
+
 			async_data_read_finalize(callid, name, str_size(name) + 1);
 			*rbytes = 1;
 			free(name);
 			udf_node_put(rfn);
-			
+
 			if (block != NULL)
 				return block_put(block);
-			
+
 			return EOK;
 		} else {
Index: uspace/srv/fs/udf/udf_osta.c
===================================================================
--- uspace/srv/fs/udf/udf_osta.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/udf/udf_osta.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,5 +59,5 @@
 	if ((ch == 0x0000) || (ch == 0x002F))
 		return false;
-	
+
 	return true;
 }
@@ -85,12 +85,12 @@
 	/* Use udf_compressed to store current byte being read. */
 	uint8_t comp_id = udf_compressed[0];
-	
+
 	/* First check for valid compID. */
 	if ((comp_id != 8) && (comp_id != 16))
 		return 0;
-	
+
 	size_t unicode_idx = 0;
 	size_t byte_idx = 1;
-	
+
 	/* Loop through all the bytes. */
 	while ((byte_idx < number_of_bytes) && (unicode_idx < unicode_max_len)) {
@@ -103,13 +103,13 @@
 		} else
 			unicode[unicode_idx] = 0;
-		
+
 		if (byte_idx < number_of_bytes) {
 			/* Then the next byte to the low bits. */
 			unicode[unicode_idx] |= udf_compressed[byte_idx++];
 		}
-		
+
 		unicode_idx++;
 	}
-	
+
 	return unicode_idx;
 }
@@ -136,11 +136,11 @@
 	size_t new_idx = 0;
 	size_t new_ext_idx = 0;
-	
+
 	for (size_t idx = 0; idx < udf_len; idx++) {
 		uint16_t current = udf_name[idx];
-		
+
 		if ((!legal_check(current)) || (!ascii_check(current))) {
 			needs_crc = true;
-			
+
 			/*
 			 * Replace Illegal and non-displayable chars with
@@ -148,5 +148,5 @@
 			 */
 			current = ILLEGAL_CHAR_MARK;
-			
+
 			/*
 			 * Skip any other illegal or non-displayable
@@ -158,5 +158,5 @@
 				idx++;
 		}
-		
+
 		/* Record position of extension, if one is found. */
 		if ((current == PERIOD) && ((udf_len - idx - 1) <= EXT_SIZE)) {
@@ -170,5 +170,5 @@
 			}
 		}
-		
+
 		if (new_idx < MAXLEN)
 			new_name[new_idx++] = current;
@@ -176,20 +176,20 @@
 			needs_crc = true;
 	}
-	
+
 	if (needs_crc) {
 		uint16_t ext[EXT_SIZE];
 		size_t local_ext_idx = 0;
-		
+
 		if (has_ext) {
 			size_t max_filename_len;
-			
+
 			/* Translate extension, and store it in ext. */
 			for (size_t idx = 0; (idx < EXT_SIZE) &&
 			    (ext_idx + idx + 1 < udf_len); idx++) {
 				uint16_t current = udf_name[ext_idx + idx + 1];
-				
+
 				if ((!legal_check(current)) || (!ascii_check(current))) {
 					needs_crc = true;
-					
+
 					/*
 					 * Replace Illegal and non-displayable
@@ -197,5 +197,5 @@
 					 */
 					current = ILLEGAL_CHAR_MARK;
-					
+
 					/*
 					 * Skip any other illegal or
@@ -207,8 +207,8 @@
 						idx++;
 				}
-				
+
 				ext[local_ext_idx++] = current;
 			}
-			
+
 			/*
 			 * Truncate filename to leave room for extension and
@@ -224,28 +224,28 @@
 			new_idx = MAXLEN - 5;
 		}
-		
+
 		/* Add mark for CRC. */
 		new_name[new_idx++] = CRC_MARK;
-		
+
 		/* Calculate CRC from original filename. */
 		uint16_t value_crc = udf_unicode_cksum(udf_name, udf_len);
-		
+
 		/* Convert 16-bits of CRC to hex characters. */
 		const char hex_char[] = "0123456789ABCDEF";
-		
+
 		new_name[new_idx++] = hex_char[(value_crc & 0xf000) >> 12];
 		new_name[new_idx++] = hex_char[(value_crc & 0x0f00) >> 8];
 		new_name[new_idx++] = hex_char[(value_crc & 0x00f0) >> 4];
 		new_name[new_idx++] = hex_char[(value_crc & 0x000f)];
-		
+
 		/* Place a translated extension at end, if found. */
 		if (has_ext) {
 			new_name[new_idx++] = PERIOD;
-			
+
 			for (size_t idx = 0; idx < local_ext_idx; idx++)
 				new_name[new_idx++] = ext[idx];
 		}
 	}
-	
+
 	return new_idx;
 }
@@ -265,17 +265,17 @@
 	const char *osta_id = "OSTA Compressed Unicode";
 	size_t ucode_chars, nice_uchars;
-	
+
 	uint16_t *raw_name = malloc(MAX_BUF * sizeof(uint16_t));
 	uint16_t *unix_name = malloc(MAX_BUF * sizeof(uint16_t));
-	
+
 	// FIXME: Check for malloc returning NULL
-	
+
 	bool is_osta_typ0 = (chsp->type == 0) &&
 	    (str_cmp((char *) chsp->info, osta_id) == 0);
-	
+
 	if (is_osta_typ0) {
 		*raw_name = 0;
 		*unix_name = 0;
-		
+
 		ucode_chars =
 		    udf_uncompress_unicode(len, (uint8_t *) id, raw_name, MAX_BUF);
@@ -283,5 +283,5 @@
 		nice_uchars =
 		    udf_translate_name(unix_name, raw_name, ucode_chars);
-		
+
 		/* Output UTF-8 */
 		unix_name[nice_uchars] = 0;
@@ -292,5 +292,5 @@
 		    str_size((char *) (id + 1)));
 	}
-	
+
 	free(raw_name);
 	free(unix_name);
Index: uspace/srv/fs/udf/udf_volume.c
===================================================================
--- uspace/srv/fs/udf/udf_volume.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/fs/udf/udf_volume.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -67,5 +67,5 @@
 	    FLE16(long_ad->location.partition_num),
 	    FLE32(long_ad->location.lblock_num));
-	
+
 	return instance->partitions[
 	    FLE16(long_ad->location.partition_num)].start +
@@ -108,5 +108,5 @@
 	if (!vd)
 		return ENOMEM;
-	
+
 	errno_t rc = udf_volume_recongnition_structure_test(service_id, addr, vd);
 	if (rc != EOK) {
@@ -114,8 +114,8 @@
 		return rc;
 	}
-	
+
 	for (size_t i = 0; i < VRS_DEPTH; i++) {
 		addr += sizeof(udf_vrs_descriptor_t);
-		
+
 		rc = udf_volume_recongnition_structure_test(service_id, addr, vd);
 		if (rc != EOK) {
@@ -123,5 +123,5 @@
 			return rc;
 		}
-		
+
 		/*
 		 * UDF standard identifier. According to ECMA 167 2/9.1.2
@@ -133,5 +133,5 @@
 			continue;
 		}
-		
+
 		if (str_lcmp(VRS_END, (char *) vd->identifier, VRS_ID_LEN) == 0) {
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "VRS: end found");
@@ -139,7 +139,7 @@
 		}
 	}
-	
+
 	free(vd);
-	
+
 	if (nsr_found)
 		return EOK;
@@ -178,19 +178,19 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	if (avd->tag.checksum != udf_tag_checksum((uint8_t *) &avd->tag))
 		return EINVAL;
-	
+
 	// TODO: Should be tested in big-endian mode
 	udf_prepare_tag(&avd->tag);
-	
+
 	if (avd->tag.id != UDF_TAG_AVDP)
 		return EINVAL;
-	
+
 	GET_LE32(avd->main_extent.length);
 	GET_LE32(avd->main_extent.location);
 	GET_LE32(avd->reserve_extent.length);
 	GET_LE32(avd->reserve_extent.location);
-	
+
 	return EOK;
 }
@@ -211,10 +211,10 @@
 {
 	uint32_t default_sector_size[] = {512, 1024, 2048, 4096, 8192, 0};
-	
+
 	udf_instance_t *instance;
 	errno_t rc = fs_instance_get(service_id, (void **) &instance);
 	if (rc != EOK)
 		return rc;
-	
+
 	if (instance->sector_size) {
 		return udf_get_anchor_volume_descriptor_by_ssize(service_id, avd,
@@ -229,9 +229,9 @@
 				return EOK;
 			}
-			
+
 			i++;
 		}
 	}
-	
+
 	return EINVAL;
 }
@@ -273,5 +273,5 @@
 		}
 	}
-	
+
 	return false;
 }
@@ -310,5 +310,5 @@
 		}
 	}
-	
+
 	return false;
 }
@@ -343,5 +343,5 @@
 		}
 	}
-	
+
 	return false;
 }
@@ -368,5 +368,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	udf_descriptor_tag_t *desc = (udf_descriptor_tag_t *) (block->data);
 	if (desc->checksum != udf_tag_checksum((uint8_t *) desc)) {
@@ -374,5 +374,5 @@
 		return EINVAL;
 	}
-	
+
 	/*
 	 * We think that we have only one allocator. It is means that virtual
@@ -383,5 +383,5 @@
 	case UDF_FILE_ENTRY:
 		log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: File entry descriptor found");
-		
+
 		udf_file_entry_descriptor_t *fed =
 		    (udf_file_entry_descriptor_t *) block->data;
@@ -392,8 +392,8 @@
 		instance->partitions[id].lenght = FLE32(short_d->length);
 		break;
-		
+
 	case UDF_EFILE_ENTRY:
 		log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: Extended file entry descriptor found");
-		
+
 		udf_extended_file_entry_descriptor_t *efed =
 		    (udf_extended_file_entry_descriptor_t *) block->data;
@@ -404,5 +404,5 @@
 		break;
 	}
-	
+
 	return block_put(block);
 }
@@ -426,5 +426,5 @@
 			return i;
 	}
-	
+
 	return (size_t) -1;
 }
@@ -448,5 +448,5 @@
 	if (instance->volumes == NULL)
 		return ENOMEM;
-	
+
 	instance->partitions = calloc(pd_cnt, sizeof(udf_partition_t));
 	if (instance->partitions == NULL) {
@@ -454,12 +454,12 @@
 		return ENOMEM;
 	}
-	
+
 	instance->partition_cnt = pd_cnt;
-	
+
 	/*
 	 * Fill information about logical volumes. We will save
 	 * information about all partitions placed inside each volumes.
 	 */
-	
+
 	size_t vir_pd_cnt = 0;
 	for (size_t i = 0; i < lvd_cnt; i++) {
@@ -471,9 +471,9 @@
 			return ENOMEM;
 		}
-		
+
 		instance->volumes[i].partition_cnt = 0;
 		instance->volumes[i].logical_block_size =
 		    FLE32(lvd[i].logical_block_size);
-		
+
 		/*
 		 * In theory we could have more than 1 logical volume. But now
@@ -481,5 +481,5 @@
 		 * partitions from array pd belong to only first lvd
 		 */
-		
+
 		uint8_t *idx = lvd[i].partition_map;
 		for (size_t j = 0; j < FLE32(lvd[i].number_of_partitions_maps);
@@ -487,5 +487,5 @@
 			udf_type1_partition_map_t *pm1 =
 			    (udf_type1_partition_map_t *) idx;
-			
+
 			if (pm1->partition_map_type == 1) {
 				size_t pd_num = udf_find_partition(pd, pd_cnt,
@@ -495,5 +495,5 @@
 					return ENOENT;
 				}
-				
+
 				/*
 				 * Fill information about physical partitions. We will save all
@@ -509,29 +509,29 @@
 				instance->partitions[j].start =
 				    FLE32(pd[pd_num].starting_location);
-				
+
 				instance->volumes[i].partitions[
 				    instance->volumes[i].partition_cnt] =
 				    &instance->partitions[j];
-				
+
 				log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
 				    "found and filled", i, pm1->partition_map_type);
-				
+
 				instance->volumes[i].partition_cnt++;
 				idx += pm1->partition_map_lenght;
 				continue;
 			}
-			
+
 			udf_type2_partition_map_t *pm2 =
 			    (udf_type2_partition_map_t *) idx;
-			
+
 			if (pm2->partition_map_type == 2) {
 				// TODO: check partition_ident for metadata_partition_map
-				
+
 				udf_metadata_partition_map_t *metadata =
 				    (udf_metadata_partition_map_t *) idx;
-				
+
 				log_msg(LOG_DEFAULT, LVL_DEBUG, "Metadata file location=%u",
 				    FLE32(metadata->metadata_fileloc));
-				
+
 				vir_pd_cnt++;
 				instance->partitions = realloc(instance->partitions,
@@ -541,7 +541,7 @@
 					return ENOMEM;
 				}
-				
+
 				instance->partition_cnt++;
-				
+
 				size_t pd_num = udf_find_partition(pd, pd_cnt,
 				    FLE16(metadata->partition_number));
@@ -550,5 +550,5 @@
 					return ENOENT;
 				}
-				
+
 				instance->partitions[j].number =
 				    FLE16(metadata->partition_number);
@@ -560,13 +560,13 @@
 					return rc;
 				}
-				
+
 				/* Virtual partition placed inside physical */
 				instance->partitions[j].start +=
 				    FLE32(pd[pd_num].starting_location);
-				
+
 				instance->volumes[i].partitions[
 				    instance->volumes[i].partition_cnt] =
 				    &instance->partitions[j];
-				
+
 				log_msg(LOG_DEFAULT, LVL_DEBUG, "Virtual partition: num=%d, start=%d",
 				    instance->partitions[j].number,
@@ -574,20 +574,20 @@
 				log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
 				    "found and filled", i, pm2->partition_map_type);
-				
+
 				instance->volumes[i].partition_cnt++;
 				idx += metadata->partition_map_length;
 				continue;
 			}
-			
+
 			/* Not type 1 nor type 2 */
 			udf_general_type_t *pm = (udf_general_type_t *) idx;
-			
+
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
 			    "found and skipped", i, pm->partition_map_type);
-			
+
 			idx += pm->partition_map_lenght;
 		}
 	}
-	
+
 	return EOK;
 }
@@ -608,18 +608,18 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	aoff64_t pos = addr.location;
 	aoff64_t end = pos + (addr.length / instance->sector_size) - 1;
-	
+
 	if (pos == end)
 		return EINVAL;
-	
+
 	size_t max_descriptors = ALL_UP(addr.length, instance->sector_size);
-	
+
 	udf_primary_volume_descriptor_t *pvd = calloc(max_descriptors,
 	    sizeof(udf_primary_volume_descriptor_t));
 	if (pvd == NULL)
 		return ENOMEM;
-	
+
 	udf_logical_volume_descriptor_t *lvd = calloc(max_descriptors,
 	    instance->sector_size);
@@ -628,5 +628,5 @@
 		return ENOMEM;
 	}
-	
+
 	udf_partition_descriptor_t *pd = calloc(max_descriptors,
 	    sizeof(udf_partition_descriptor_t));
@@ -636,9 +636,9 @@
 		return ENOMEM;
 	}
-	
+
 	size_t pvd_cnt = 0;
 	size_t lvd_cnt = 0;
 	size_t pd_cnt = 0;
-	
+
 	while (pos <= end) {
 		block_t *block = NULL;
@@ -650,13 +650,13 @@
 			return rc;
 		}
-		
+
 		udf_volume_descriptor_t *vol =
 		    (udf_volume_descriptor_t *) block->data;
-		
+
 		switch (FLE16(vol->common.tag.id)) {
 		/* One sector size descriptors */
 		case UDF_TAG_PVD:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Primary volume descriptor found");
-			
+
 			if (!udf_check_prevailing_pvd(pvd, pvd_cnt, &vol->volume)) {
 				memcpy(&pvd[pvd_cnt], &vol->volume,
@@ -664,13 +664,13 @@
 				pvd_cnt++;
 			}
-			
+
 			pos++;
 			break;
-			
+
 		case UDF_TAG_VDP:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Volume descriptor pointer found");
 			pos++;
 			break;
-			
+
 		case UDF_TAG_IUVD:
 			log_msg(LOG_DEFAULT, LVL_DEBUG,
@@ -678,5 +678,5 @@
 			pos++;
 			break;
-			
+
 		case UDF_TAG_PD:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Partition descriptor found");
@@ -688,5 +688,5 @@
 			    FLE32(vol->partition.starting_location),
 			    FLE32(vol->partition.length));
-			
+
 			if (!udf_check_prevailing_pd(pd, pd_cnt, &vol->partition)) {
 				memcpy(&pd[pd_cnt], &vol->partition,
@@ -694,5 +694,5 @@
 				pd_cnt++;
 			}
-			
+
 			udf_partition_header_descriptor_t *phd =
 			    (udf_partition_header_descriptor_t *) vol->partition.contents_use;
@@ -702,5 +702,5 @@
 				    FLE32(phd->unallocated_space_table.length),
 				    FLE32(phd->unallocated_space_table.position));
-				
+
 				instance->space_type = SPACE_TABLE;
 				instance->uaspace_start =
@@ -710,5 +710,5 @@
 				    FLE32(phd->unallocated_space_table.length);
 			}
-			
+
 			if (FLE32(phd->unallocated_space_bitmap.length)) {
 				log_msg(LOG_DEFAULT, LVL_DEBUG,
@@ -716,5 +716,5 @@
 				    FLE32(phd->unallocated_space_bitmap.length),
 				    FLE32(phd->unallocated_space_bitmap.position));
-				
+
 				instance->space_type = SPACE_BITMAP;
 				instance->uaspace_start =
@@ -724,12 +724,12 @@
 				    FLE32(phd->unallocated_space_bitmap.length);
 			}
-			
+
 			pos++;
 			break;
-			
+
 		/* Relative size descriptors */
 		case UDF_TAG_LVD:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Logical volume descriptor found");
-			
+
 			aoff64_t sct =
 			    ALL_UP((sizeof(udf_logical_volume_descriptor_t) +
@@ -738,9 +738,9 @@
 			pos += sct;
 			char tmp[130];
-			
+
 			udf_to_unix_name(tmp, 129,
 			    (char *) vol->logical.logical_volume_id, 128,
 			    &vol->logical.charset);
-			
+
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "Logical Volume ID: '%s', "
 			    "logical block size: %" PRIu32 " (bytes)", tmp,
@@ -750,5 +750,5 @@
 			    FLE32(vol->logical.map_table_length),
 			    FLE32(vol->logical.number_of_partitions_maps));
-			
+
 			if (!udf_check_prevailing_lvd(lvd, lvd_cnt, &vol->logical)) {
 				memcpy(&lvd[lvd_cnt], &vol->logical,
@@ -757,10 +757,10 @@
 				lvd_cnt++;
 			}
-			
+
 			break;
-			
+
 		case UDF_TAG_USD:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Unallocated space descriptor found");
-			
+
 			sct = ALL_UP((sizeof(udf_unallocated_space_descriptor_t) +
 			    FLE32(vol->unallocated.allocation_descriptors_num)*
@@ -774,27 +774,27 @@
 				return ENOMEM;
 			}
-			
+
 			memcpy(instance->uasd, block->data, instance->sector_size);
 			pos += sct;
 			break;
-			
+
 		case UDF_TAG_LVID:
 			log_msg(LOG_DEFAULT, LVL_DEBUG,
 			    "Volume: Logical volume integrity descriptor found");
-			
+
 			pos++;
 			break;
-			
+
 		case UDF_TAG_TD:
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Terminating descriptor found");
-			
+
 			/* Found terminating descriptor. Exiting */
 			pos = end + 1;
 			break;
-			
+
 		default:
 			pos++;
 		}
-		
+
 		rc = block_put(block);
 		if (rc != EOK) {
@@ -805,12 +805,12 @@
 		}
 	}
-	
+
 	/* Fill the instance */
 	udf_fill_volume_info(lvd, lvd_cnt, pd, pd_cnt, instance);
-	
+
 	for (size_t i = 0; i < lvd_cnt; i++) {
 		pos = udf_long_ad_to_pos(instance,
 		    (udf_long_ad_t *) &lvd[i].logical_volume_conents_use);
-		
+
 		block_t *block = NULL;
 		rc = block_get(&block, instance->service_id, pos,
@@ -820,24 +820,24 @@
 			return rc;
 		}
-		
+
 		udf_descriptor_tag_t *desc = block->data;
-		
+
 		log_msg(LOG_DEFAULT, LVL_DEBUG, "First tag ID=%" PRIu16, desc->id);
-		
+
 		if (desc->checksum != udf_tag_checksum((uint8_t *) desc)) {
 			// FIXME: Memory leak, cleanup missing
 			return EINVAL;
 		}
-		
+
 		udf_prepare_tag(desc);
-		
+
 		udf_fileset_descriptor_t *fd = block->data;
 		memcpy((uint8_t *) &instance->charset,
 		    (uint8_t *) &fd->fileset_charset, sizeof(fd->fileset_charset));
-		
+
 		instance->volumes[i].root_dir = udf_long_ad_to_pos(instance,
 		    &fd->root_dir_icb);
 	}
-	
+
 	free(pvd);
 	free(lvd);
Index: uspace/srv/hid/compositor/compositor.c
===================================================================
--- uspace/srv/hid/compositor/compositor.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/compositor/compositor.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -177,5 +177,5 @@
 	if (!p)
 		return NULL;
-	
+
 	link_initialize(&p->link);
 	p->pos.x = coord_origin;
@@ -189,5 +189,5 @@
 	p->state = 0;
 	cursor_init(&p->cursor, CURSOR_DECODER_EMBEDDED, NULL);
-	
+
 	/* Ghost window for transformation animation. */
 	transform_identity(&p->ghost.transform);
@@ -202,5 +202,5 @@
 	p->accum_ghost.x = 0;
 	p->accum_ghost.y = 0;
-	
+
 	return p;
 }
@@ -219,5 +219,5 @@
 	if (!win)
 		return NULL;
-	
+
 	link_initialize(&win->link);
 	atomic_set(&win->ref_cnt, 0);
@@ -232,5 +232,5 @@
 	win->opacity = 255;
 	win->surface = NULL;
-	
+
 	return win;
 }
@@ -244,8 +244,8 @@
 			free(event);
 		}
-		
+
 		if (win->surface)
 			surface_destroy(win->surface);
-		
+
 		free(win);
 	}
@@ -259,5 +259,5 @@
 	transform_invert(&win_trans);
 	transform_apply_affine(&win_trans, &x, &y);
-	
+
 	/*
 	 * Since client coordinate origin is (0, 0), it is necessary to check
@@ -268,11 +268,11 @@
 	if ((x < 0) || (y < 0))
 		return false;
-	
+
 	(*x_out) = (sysarg_t) (x + 0.5);
 	(*y_out) = (sysarg_t) (y + 0.5);
-	
+
 	if (((*x_out) >= x_lim) || ((*y_out) >= y_lim))
 		return false;
-	
+
 	return true;
 }
@@ -284,5 +284,5 @@
 	double y = y_in;
 	transform_apply_affine(&win_trans, &x, &y);
-	
+
 	/*
 	 * It is assumed that compositor coordinate origin is chosen in such way,
@@ -300,15 +300,15 @@
 		sysarg_t x[4];
 		sysarg_t y[4];
-		
+
 		comp_coord_from_client(x_in, y_in, win_trans, &x[0], &y[0]);
 		comp_coord_from_client(x_in + w_in - 1, y_in, win_trans, &x[1], &y[1]);
 		comp_coord_from_client(x_in + w_in - 1, y_in + h_in - 1, win_trans, &x[2], &y[2]);
 		comp_coord_from_client(x_in, y_in + h_in - 1, win_trans, &x[3], &y[3]);
-		
+
 		(*x_out) = x[0];
 		(*y_out) = y[0];
 		(*w_out) = x[0];
 		(*h_out) = y[0];
-		
+
 		for (unsigned int i = 1; i < 4; ++i) {
 			(*x_out) = (x[i] < (*x_out)) ? x[i] : (*x_out);
@@ -317,5 +317,5 @@
 			(*h_out) = (y[i] > (*h_out)) ? y[i] : (*h_out);
 		}
-		
+
 		(*w_out) = (*w_out) - (*x_out) + 1;
 		(*h_out) = (*h_out) - (*y_out) + 1;
@@ -331,10 +331,10 @@
 {
 	fibril_mutex_lock(&viewport_list_mtx);
-	
+
 	sysarg_t x_res = coord_origin;
 	sysarg_t y_res = coord_origin;
 	sysarg_t w_res = 0;
 	sysarg_t h_res = 0;
-	
+
 	if (!list_empty(&viewport_list)) {
 		viewport_t *vp = (viewport_t *) list_first(&viewport_list);
@@ -343,5 +343,5 @@
 		surface_get_resolution(vp->surface, &w_res, &h_res);
 	}
-	
+
 	list_foreach(viewport_list, link, viewport_t, vp) {
 		sysarg_t w_vp, h_vp;
@@ -351,10 +351,10 @@
 		    &x_res, &y_res, &w_res, &h_res);
 	}
-	
+
 	viewport_bound_rect.x = x_res;
 	viewport_bound_rect.y = y_res;
 	viewport_bound_rect.w = w_res;
 	viewport_bound_rect.h = h_res;
-	
+
 	fibril_mutex_unlock(&viewport_list_mtx);
 }
@@ -363,7 +363,7 @@
 {
 	comp_update_viewport_bound_rect();
-	
+
 	fibril_mutex_lock(&pointer_list_mtx);
-	
+
 	list_foreach(pointer_list, link, pointer_t, ptr) {
 		ptr->pos.x = ptr->pos.x > viewport_bound_rect.x ? ptr->pos.x : viewport_bound_rect.x;
@@ -374,5 +374,5 @@
 		    ptr->pos.y : viewport_bound_rect.y + viewport_bound_rect.h;
 	}
-	
+
 	fibril_mutex_unlock(&pointer_list_mtx);
 }
@@ -585,5 +585,5 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&viewport_list_mtx);
 }
@@ -601,5 +601,5 @@
 		return;
 	}
-	
+
 	errno_t rc = async_data_read_finalize(callid, event, len);
 	if (rc != EOK) {
@@ -608,5 +608,5 @@
 		return;
 	}
-	
+
 	async_answer_0(iid, EOK);
 	free(event);
@@ -638,5 +638,5 @@
 	sysarg_t pos_id = IPC_GET_ARG1(*icall);
 	sysarg_t grab_flags = IPC_GET_ARG2(*icall);
-	
+
 	/*
 	 * Filter out resize grab flags if the window
@@ -669,15 +669,15 @@
 	transform_identity(&translate);
 	transform_translate(&translate, win->dx, win->dy);
-	
+
 	transform_t scale;
 	transform_identity(&scale);
 	if ((win->fx != 1) || (win->fy != 1))
 		transform_scale(&scale, win->fx, win->fy);
-	
+
 	transform_t rotate;
 	transform_identity(&rotate);
 	if (win->angle != 0)
 		transform_rotate(&rotate, win->angle);
-	
+
 	transform_t transform;
 	transform_t temp;
@@ -689,5 +689,5 @@
 	temp = transform;
 	transform_product(&transform, &temp, &scale);
-	
+
 	win->transform = transform;
 }
@@ -698,5 +698,5 @@
 	size_t size;
 	unsigned int flags;
-	
+
 	/* Start sharing resized window with client. */
 	if (!async_share_out_receive(&callid, &size, &flags)) {
@@ -704,5 +704,5 @@
 		return;
 	}
-	
+
 	void *new_cell_storage;
 	errno_t rc = async_share_out_finalize(callid, &new_cell_storage);
@@ -711,5 +711,5 @@
 		return;
 	}
-	
+
 	/* Create new surface for the resized window. */
 	surface_t *new_surface = surface_create(IPC_GET_ARG3(*icall),
@@ -720,57 +720,57 @@
 		return;
 	}
-	
+
 	sysarg_t offset_x = IPC_GET_ARG1(*icall);
 	sysarg_t offset_y = IPC_GET_ARG2(*icall);
 	window_placement_flags_t placement_flags =
 	    (window_placement_flags_t) IPC_GET_ARG5(*icall);
-	
+
 	comp_update_viewport_bound_rect();
-	
+
 	/* Switch new surface with old surface and calculate damage. */
 	fibril_mutex_lock(&window_list_mtx);
-	
+
 	sysarg_t old_width = 0;
 	sysarg_t old_height = 0;
-	
+
 	if (win->surface) {
 		surface_get_resolution(win->surface, &old_width, &old_height);
 		surface_destroy(win->surface);
 	}
-	
+
 	win->surface = new_surface;
-	
+
 	sysarg_t new_width = 0;
 	sysarg_t new_height = 0;
 	surface_get_resolution(win->surface, &new_width, &new_height);
-	
+
 	if (placement_flags & WINDOW_PLACEMENT_CENTER_X)
 		win->dx = viewport_bound_rect.x + viewport_bound_rect.w / 2 -
 		    new_width / 2;
-	
+
 	if (placement_flags & WINDOW_PLACEMENT_CENTER_Y)
 		win->dy = viewport_bound_rect.y + viewport_bound_rect.h / 2 -
 		    new_height / 2;
-	
+
 	if (placement_flags & WINDOW_PLACEMENT_LEFT)
 		win->dx = viewport_bound_rect.x;
-	
+
 	if (placement_flags & WINDOW_PLACEMENT_TOP)
 		win->dy = viewport_bound_rect.y;
-	
+
 	if (placement_flags & WINDOW_PLACEMENT_RIGHT)
 		win->dx = viewport_bound_rect.x + viewport_bound_rect.w -
 		    new_width;
-	
+
 	if (placement_flags & WINDOW_PLACEMENT_BOTTOM)
 		win->dy = viewport_bound_rect.y + viewport_bound_rect.h -
 		    new_height;
-	
+
 	if (placement_flags & WINDOW_PLACEMENT_ABSOLUTE_X)
 		win->dx = coord_origin + offset_x;
-	
+
 	if (placement_flags & WINDOW_PLACEMENT_ABSOLUTE_Y)
 		win->dy = coord_origin + offset_y;
-	
+
 	/* Transform the window and calculate damage. */
 	sysarg_t x1;
@@ -778,30 +778,30 @@
 	sysarg_t width1;
 	sysarg_t height1;
-	
+
 	comp_coord_bounding_rect(0, 0, old_width, old_height, win->transform,
 	    &x1, &y1, &width1, &height1);
-	
+
 	comp_recalc_transform(win);
-	
+
 	sysarg_t x2;
 	sysarg_t y2;
 	sysarg_t width2;
 	sysarg_t height2;
-	
+
 	comp_coord_bounding_rect(0, 0, new_width, new_height, win->transform,
 	    &x2, &y2, &width2, &height2);
-	
+
 	sysarg_t x;
 	sysarg_t y;
 	sysarg_t width;
 	sysarg_t height;
-	
+
 	rectangle_union(x1, y1, width1, height1, x2, y2, width2, height2,
 	    &x, &y, &width, &height);
-	
+
 	fibril_mutex_unlock(&window_list_mtx);
-	
+
 	comp_damage(x, y, width, height);
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -810,5 +810,5 @@
 {
 	fibril_mutex_lock(&window_list_mtx);
-	
+
 	list_foreach(window_list, link, window_t, window) {
 		if (window == target) {
@@ -818,5 +818,5 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&window_list_mtx);
 	free(event);
@@ -826,5 +826,5 @@
 {
 	fibril_mutex_lock(&window_list_mtx);
-	
+
 	window_t *win = (window_t *) list_first(&window_list);
 	if (win)
@@ -832,5 +832,5 @@
 	else
 		free(event);
-	
+
 	fibril_mutex_unlock(&window_list_mtx);
 }
@@ -914,5 +914,5 @@
 				return;
 			}
-			
+
 			win->flags = IPC_GET_ARG1(call);
 
@@ -950,8 +950,8 @@
 				event_unfocus->type = ET_WINDOW_UNFOCUS;
 			}
-			
+
 			async_answer_2(callid, EOK, win->in_dsid, win->out_dsid);
 			fibril_mutex_unlock(&window_list_mtx);
-			
+
 			if (event_unfocus && win_unfocus) {
 				comp_post_event_win(event_unfocus, win_unfocus);
@@ -1102,5 +1102,5 @@
 	loc_service_unregister(winreg_id);
 	input_disconnect();
-	
+
 	/* Close all clients and their windows. */
 	fibril_mutex_lock(&window_list_mtx);
@@ -1114,7 +1114,7 @@
 	}
 	fibril_mutex_unlock(&window_list_mtx);
-	
+
 	async_answer_0(iid, EOK);
-	
+
 	/* All fibrils of the compositor will terminate soon. */
 }
@@ -1125,12 +1125,12 @@
 	/* Release viewport resources. */
 	fibril_mutex_lock(&viewport_list_mtx);
-	
+
 	list_remove(&vp->link);
 	viewport_destroy(vp);
-	
+
 	fibril_mutex_unlock(&viewport_list_mtx);
-	
+
 	async_answer_0(iid, EOK);
-	
+
 	comp_restrict_pointers();
 	comp_damage(0, 0, UINT32_MAX, UINT32_MAX);
@@ -1187,9 +1187,9 @@
 
 	async_exch_t *exch = async_exchange_begin(sess);
-	
+
 	port_id_t port;
 	rc = async_create_callback_port(exch, INTERFACE_VISUALIZER_CB, 0, 0,
 	    vsl_notifications, NULL, &port);
-	
+
 	async_exchange_end(exch);
 
@@ -1265,8 +1265,8 @@
 	if (claimed)
 		visualizer_yield(vp->sess);
-	
+
 	if (vp->sess != NULL)
 		async_hangup(vp->sess);
-	
+
 	free(vp);
 	free(vsl_name);
@@ -1295,22 +1295,22 @@
 		double cx = 0;
 		double cy = 0;
-		
+
 		if (pointer->grab_flags & GF_MOVE_X)
 			cx = 1;
-		
+
 		if (pointer->grab_flags & GF_MOVE_Y)
 			cy = 1;
-		
+
 		if (((scale) || (resize)) && (win->angle != 0)) {
 			transform_t rotate;
 			transform_identity(&rotate);
-			
+
 			transform_rotate(&rotate, win->angle);
 			transform_apply_linear(&rotate, &cx, &cy);
 		}
-		
+
 		cx = (cx < 0) ? (-1 * cx) : cx;
 		cy = (cy < 0) ? (-1 * cy) : cy;
-		
+
 		win->dx += (cx * dx);
 		win->dy += (cy * dy);
@@ -1468,5 +1468,5 @@
 		rect3->w = w_u - w_i - x_i + x_u + 1;
 		rect3->h = h_u;
-		
+
 		rect4->x = x_u;
 		rect4->y = y_i + h_i - 1;
@@ -1481,9 +1481,9 @@
 {
 	/* XXX TODO Use absolute coordinates directly */
-	
+
 	pointer_t *pointer = input_pointer(input);
-	
+
 	sysarg_t width, height;
-	
+
 	fibril_mutex_lock(&viewport_list_mtx);
 	if (list_empty(&viewport_list)) {
@@ -1501,5 +1501,5 @@
 	pos_in_viewport.x = x * width / max_x;
 	pos_in_viewport.y = y * height / max_y;
-	
+
 	/* Calculate offset from pointer */
 	fibril_mutex_lock(&pointer_list_mtx);
@@ -1508,5 +1508,5 @@
 	delta.y = (vp_pos.y + pos_in_viewport.y) - pointer->pos.y;
 	fibril_mutex_unlock(&pointer_list_mtx);
-	
+
 	return comp_mouse_move(input, delta.x, delta.y);
 }
@@ -1515,29 +1515,29 @@
 {
 	pointer_t *pointer = input_pointer(input);
-	
+
 	comp_update_viewport_bound_rect();
-	
+
 	/* Update pointer position. */
 	fibril_mutex_lock(&pointer_list_mtx);
-	
+
 	desktop_point_t old_pos = pointer->pos;
-	
+
 	sysarg_t cursor_width;
 	sysarg_t cursor_height;
 	surface_get_resolution(pointer->cursor.states[pointer->state],
 	     &cursor_width, &cursor_height);
-	
+
 	if (pointer->pos.x + dx < viewport_bound_rect.x)
 		dx = -1 * (pointer->pos.x - viewport_bound_rect.x);
-	
+
 	if (pointer->pos.y + dy < viewport_bound_rect.y)
 		dy = -1 * (pointer->pos.y - viewport_bound_rect.y);
-	
+
 	if (pointer->pos.x + dx > viewport_bound_rect.x + viewport_bound_rect.w)
 		dx = (viewport_bound_rect.x + viewport_bound_rect.w - pointer->pos.x);
-	
+
 	if (pointer->pos.y + dy > viewport_bound_rect.y + viewport_bound_rect.h)
 		dy = (viewport_bound_rect.y + viewport_bound_rect.h - pointer->pos.y);
-	
+
 	pointer->pos.x += dx;
 	pointer->pos.y += dy;
@@ -1545,5 +1545,5 @@
 	comp_damage(old_pos.x, old_pos.y, cursor_width, cursor_height);
 	comp_damage(old_pos.x + dx, old_pos.y + dy, cursor_width, cursor_height);
-	
+
 	fibril_mutex_lock(&window_list_mtx);
 	fibril_mutex_lock(&pointer_list_mtx);
@@ -1663,5 +1663,5 @@
 	sysarg_t dmg_width = 0;
 	sysarg_t dmg_height = 0;
-	
+
 #if ANIMATE_WINDOW_TRANSFORMS == 0
 	desktop_rect_t dmg_rect1, dmg_rect2, dmg_rect3, dmg_rect4;
@@ -1738,11 +1738,11 @@
 				link_initialize(&event_top->link);
 				event_top->type = ET_WINDOW_RESIZE;
-				
+
 				event_top->data.resize.offset_x = 0;
 				event_top->data.resize.offset_y = 0;
-				
+
 				int dx = (int) (((double) width) * (scale_back_x - 1.0));
 				int dy = (int) (((double) height) * (scale_back_y - 1.0));
-				
+
 				if (pointer->grab_flags & GF_RESIZE_X)
 					event_top->data.resize.width =
@@ -1750,5 +1750,5 @@
 				else
 					event_top->data.resize.width = width;
-				
+
 				if (pointer->grab_flags & GF_RESIZE_Y)
 					event_top->data.resize.height =
@@ -1756,5 +1756,5 @@
 				else
 					event_top->data.resize.height = height;
-				
+
 				event_top->data.resize.placement_flags =
 				    WINDOW_PLACEMENT_ANY;
@@ -1764,5 +1764,5 @@
 
 		} else if (within_client && (pointer->grab_flags == GF_EMPTY) && (top == win)) {
-			
+
 			/* Notify top-level window about mouse release. */
 			event_top = (window_event_t *) malloc(sizeof(window_event_t));
@@ -1777,5 +1777,5 @@
 			}
 			pointer->grab_flags = GF_EMPTY;
-			
+
 		} else {
 			pointer->grab_flags = GF_EMPTY;
@@ -1813,5 +1813,5 @@
 	active = true;
 	comp_damage(0, 0, UINT32_MAX, UINT32_MAX);
-	
+
 	return EOK;
 }
@@ -1910,14 +1910,14 @@
 				return ENOMEM;
 			}
-			
+
 			sysarg_t width, height;
 			surface_get_resolution(win->surface, &width, &height);
-			
+
 			link_initialize(&event->link);
 			event->type = ET_WINDOW_RESIZE;
-			
+
 			event->data.resize.offset_x = 0;
 			event->data.resize.offset_y = 0;
-			
+
 			switch (key) {
 			case KC_T:
@@ -1942,7 +1942,7 @@
 				break;
 			}
-			
+
 			event->data.resize.placement_flags = WINDOW_PLACEMENT_ANY;
-			
+
 			fibril_mutex_unlock(&window_list_mtx);
 			comp_post_event_top(event);
@@ -2075,5 +2075,5 @@
 				break;
 			}
-			
+
 			sysarg_t x = vp->pos.x;
 			sysarg_t y = vp->pos.y;
@@ -2196,5 +2196,5 @@
 {
 	fibril_mutex_lock(&discovery_mtx);
-	
+
 	/* Create viewports and connect them to visualizers. */
 	category_id_t cat_id;
@@ -2202,5 +2202,5 @@
 	if (rc != EOK)
 		goto ret;
-	
+
 	service_id_t *svcs;
 	size_t svcs_cnt = 0;
@@ -2208,5 +2208,5 @@
 	if (rc != EOK)
 		goto ret;
-	
+
 	fibril_mutex_lock(&viewport_list_mtx);
 	for (size_t i = 0; i < svcs_cnt; ++i) {
@@ -2218,8 +2218,8 @@
 			}
 		}
-		
+
 		if (exists)
 			continue;
-		
+
 		viewport_t *vp = viewport_create(svcs[i]);
 		if (vp != NULL)
@@ -2227,8 +2227,8 @@
 	}
 	fibril_mutex_unlock(&viewport_list_mtx);
-	
+
 	if (!list_empty(&viewport_list))
 		input_activate(input);
-	
+
 ret:
 	fibril_mutex_unlock(&discovery_mtx);
@@ -2244,11 +2244,11 @@
 	/* Coordinates of the central pixel. */
 	coord_origin = UINT32_MAX / 4;
-	
+
 	/* Color of the viewport background. Must be opaque. */
 	bg_color = PIXEL(255, 69, 51, 103);
-	
+
 	/* Register compositor server. */
 	async_set_fallback_port_handler(client_connection, NULL);
-	
+
 	errno_t rc = loc_server_register(NAME);
 	if (rc != EOK) {
@@ -2256,10 +2256,10 @@
 		return -1;
 	}
-	
+
 	server_name = name;
-	
+
 	char svc[LOC_NAME_MAXLEN + 1];
 	snprintf(svc, LOC_NAME_MAXLEN, "%s/%s", NAMESPACE, server_name);
-	
+
 	service_id_t service_id;
 	rc = loc_service_register(svc, &service_id);
@@ -2268,5 +2268,5 @@
 		return rc;
 	}
-	
+
 	/* Prepare window registrator (entrypoint for clients). */
 	char winreg[LOC_NAME_MAXLEN + 1];
@@ -2276,5 +2276,5 @@
 		return -1;
 	}
-	
+
 	/* Establish input bidirectional connection. */
 	rc = input_connect(input_svc);
@@ -2283,5 +2283,5 @@
 		return rc;
 	}
-	
+
 	rc = loc_register_cat_change_cb(category_change_cb);
 	if (rc != EOK) {
@@ -2290,10 +2290,10 @@
 		return rc;
 	}
-	
+
 	discover_viewports();
-	
+
 	comp_restrict_pointers();
 	comp_damage(0, 0, UINT32_MAX, UINT32_MAX);
-	
+
 	return EOK;
 }
@@ -2310,15 +2310,15 @@
 		return 1;
 	}
-	
+
 	printf("%s: HelenOS Compositor server\n", NAME);
-	
+
 	errno_t rc = compositor_srv_init(argv[1], argv[2]);
 	if (rc != EOK)
 		return rc;
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Never reached */
 	return 0;
Index: uspace/srv/hid/console/console.c
===================================================================
--- uspace/srv/hid/console/console.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/console/console.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 	atomic_t refcnt;      /**< Connection reference count */
 	prodcons_t input_pc;  /**< Incoming keyboard events */
-	
+
 	/**
 	 * Not yet sent bytes of last char event.
@@ -68,14 +68,14 @@
 	char char_remains[UTF8_CHAR_BUFFER_SIZE];
 	size_t char_remains_len;  /**< Number of not yet sent bytes. */
-	
+
 	fibril_mutex_t mtx;  /**< Lock protecting mutable fields */
-	
+
 	size_t index;           /**< Console index */
 	service_id_t dsid;      /**< Service handle */
-	
+
 	sysarg_t cols;         /**< Number of columns */
 	sysarg_t rows;         /**< Number of rows */
 	console_caps_t ccaps;  /**< Console capabilities */
-	
+
 	chargrid_t *frontbuf;    /**< Front buffer */
 	frontbuf_handle_t fbid;  /**< Front buffer handle */
@@ -162,10 +162,10 @@
 	fibril_mutex_lock(&switch_mtx);
 	fibril_mutex_lock(&cons->mtx);
-	
+
 	if ((active) && (cons == active_console)) {
 		output_update(output_sess, cons->fbid);
 		output_cursor_update(output_sess, cons->fbid);
 	}
-	
+
 	fibril_mutex_unlock(&cons->mtx);
 	fibril_mutex_unlock(&switch_mtx);
@@ -176,8 +176,8 @@
 	fibril_mutex_lock(&switch_mtx);
 	fibril_mutex_lock(&cons->mtx);
-	
+
 	if ((active) && (cons == active_console))
 		output_cursor_update(output_sess, cons->fbid);
-	
+
 	fibril_mutex_unlock(&cons->mtx);
 	fibril_mutex_unlock(&switch_mtx);
@@ -188,5 +188,5 @@
 	fibril_mutex_lock(&switch_mtx);
 	fibril_mutex_lock(&cons->mtx);
-	
+
 	if ((active) && (cons == active_console)) {
 		output_damage(output_sess, cons->fbid, 0, 0, cons->cols,
@@ -194,5 +194,5 @@
 		output_cursor_update(output_sess, cons->fbid);
 	}
-	
+
 	fibril_mutex_unlock(&cons->mtx);
 	fibril_mutex_unlock(&switch_mtx);
@@ -208,24 +208,24 @@
 		if (console_kcon())
 			active = false;
-		
+
 		return;
 	}
-	
+
 	if (index > CONSOLE_COUNT)
 		return;
-	
+
 	console_t *cons = &consoles[index];
-	
+
 	fibril_mutex_lock(&switch_mtx);
-	
+
 	if (cons == active_console) {
 		fibril_mutex_unlock(&switch_mtx);
 		return;
 	}
-	
+
 	active_console = cons;
-	
+
 	fibril_mutex_unlock(&switch_mtx);
-	
+
 	cons_damage(cons);
 }
@@ -236,5 +236,5 @@
 	output_claim(output_sess);
 	cons_damage(active_console);
-	
+
 	return EOK;
 }
@@ -244,5 +244,5 @@
 	active = false;
 	output_yield(output_sess);
-	
+
 	return EOK;
 }
@@ -261,5 +261,5 @@
 			return ENOMEM;
 		}
-		
+
 		link_initialize(&event->link);
 		event->type = type;
@@ -267,9 +267,9 @@
 		event->mods = mods;
 		event->c = c;
-		
+
 		prodcons_produce(&active_console->input_pc,
 		    &event->link);
 	}
-	
+
 	return EOK;
 }
@@ -295,7 +295,7 @@
 {
 	sysarg_t updated = 0;
-	
-	fibril_mutex_lock(&cons->mtx);
-	
+
+	fibril_mutex_lock(&cons->mtx);
+
 	switch (ch) {
 	case '\n':
@@ -313,7 +313,7 @@
 		updated = chargrid_putchar(cons->frontbuf, ch, true);
 	}
-	
-	fibril_mutex_unlock(&cons->mtx);
-	
+
+	fibril_mutex_unlock(&cons->mtx);
+
 	if (updated > 1)
 		cons_update(cons);
@@ -325,5 +325,5 @@
 	chargrid_set_cursor_visibility(cons->frontbuf, visible);
 	fibril_mutex_unlock(&cons->mtx);
-	
+
 	cons_update_cursor(cons);
 }
@@ -344,5 +344,5 @@
 	console_t *cons = srv_to_console(srv);
 	size_t pos = 0;
-	
+
 	/*
 	 * Read input from keyboard and copy it to the buffer.
@@ -355,17 +355,17 @@
 			bbuf[pos] = cons->char_remains[0];
 			pos++;
-			
+
 			/* Unshift the array. */
 			for (size_t i = 1; i < cons->char_remains_len; i++)
 				cons->char_remains[i - 1] = cons->char_remains[i];
-			
+
 			cons->char_remains_len--;
 		}
-		
+
 		/* Still not enough? Then get another key from the queue. */
 		if (pos < size) {
 			link_t *link = prodcons_consume(&cons->input_pc);
 			kbd_event_t *event = list_get_instance(link, kbd_event_t, link);
-			
+
 			/* Accept key presses of printable chars only. */
 			if ((event->type == KEY_PRESS) && (event->c != 0)) {
@@ -374,9 +374,9 @@
 				cons->char_remains_len = str_size(cons->char_remains);
 			}
-			
+
 			free(event);
 		}
 	}
-	
+
 	*nread = size;
 	return EOK;
@@ -390,5 +390,5 @@
 	while (off < size)
 		cons_write_char(cons, str_decode(data, &off, size));
-	
+
 	*nwritten = size;
 	return EOK;
@@ -398,5 +398,5 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	cons_update(cons);
 }
@@ -405,9 +405,9 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	fibril_mutex_lock(&cons->mtx);
 	chargrid_clear(cons->frontbuf);
 	fibril_mutex_unlock(&cons->mtx);
-	
+
 	cons_update(cons);
 }
@@ -416,9 +416,9 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	fibril_mutex_lock(&cons->mtx);
 	chargrid_set_cursor(cons->frontbuf, col, row);
 	fibril_mutex_unlock(&cons->mtx);
-	
+
 	cons_update_cursor(cons);
 }
@@ -427,9 +427,9 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	fibril_mutex_lock(&cons->mtx);
 	chargrid_get_cursor(cons->frontbuf, col, row);
 	fibril_mutex_unlock(&cons->mtx);
-	
+
 	return EOK;
 }
@@ -438,10 +438,10 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	fibril_mutex_lock(&cons->mtx);
 	*cols = cons->cols;
 	*rows = cons->rows;
 	fibril_mutex_unlock(&cons->mtx);
-	
+
 	return EOK;
 }
@@ -450,9 +450,9 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	fibril_mutex_lock(&cons->mtx);
 	*ccaps = cons->ccaps;
 	fibril_mutex_unlock(&cons->mtx);
-	
+
 	return EOK;
 }
@@ -461,5 +461,5 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	fibril_mutex_lock(&cons->mtx);
 	chargrid_set_style(cons->frontbuf, style);
@@ -471,5 +471,5 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	fibril_mutex_lock(&cons->mtx);
 	chargrid_set_color(cons->frontbuf, bgcolor, fgcolor, attr);
@@ -481,5 +481,5 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	fibril_mutex_lock(&cons->mtx);
 	chargrid_set_rgb_color(cons->frontbuf, bgcolor, fgcolor);
@@ -490,5 +490,5 @@
 {
 	console_t *cons = srv_to_console(srv);
-	
+
 	cons_set_cursor_vis(cons, visible);
 }
@@ -499,8 +499,8 @@
 	link_t *link = prodcons_consume(&cons->input_pc);
 	kbd_event_t *kevent = list_get_instance(link, kbd_event_t, link);
-	
+
 	event->type = CEV_KEY;
 	event->ev.key = *kevent;
-	
+
 	free(kevent);
 	return EOK;
@@ -510,5 +510,5 @@
 {
 	console_t *cons = NULL;
-	
+
 	for (size_t i = 0; i < CONSOLE_COUNT; i++) {
 		if (consoles[i].dsid == (service_id_t) IPC_GET_ARG2(*icall)) {
@@ -517,13 +517,13 @@
 		}
 	}
-	
+
 	if (cons == NULL) {
 		async_answer_0(iid, ENOENT);
 		return;
 	}
-	
+
 	if (atomic_postinc(&cons->refcnt) == 0)
 		cons_set_cursor_vis(cons, true);
-	
+
 	con_conn(iid, icall, &cons->srvs);
 }
@@ -533,5 +533,5 @@
 	async_sess_t *sess;
 	service_id_t dsid;
-	
+
 	errno_t rc = loc_service_get_id(svc, &dsid, 0);
 	if (rc != EOK) {
@@ -546,5 +546,5 @@
 		return EIO;
 	}
-	
+
 	rc = input_open(sess, &input_ev_ops, NULL, &input);
 	if (rc != EOK) {
@@ -554,5 +554,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
@@ -562,5 +562,5 @@
 	async_sess_t *sess;
 	service_id_t dsid;
-	
+
 	errno_t rc = loc_service_get_id(svc, &dsid, 0);
 	if (rc == EOK) {
@@ -573,5 +573,5 @@
 	} else
 		return NULL;
-	
+
 	return sess;
 }
@@ -583,10 +583,10 @@
 	if (rc != EOK)
 		return false;
-	
+
 	/* Connect to output service */
 	output_sess = output_connect(output_svc);
 	if (output_sess == NULL)
 		return false;
-	
+
 	/* Register server */
 	async_set_fallback_port_handler(client_connection, NULL);
@@ -597,11 +597,11 @@
 		return false;
 	}
-	
+
 	output_get_dimensions(output_sess, &cols, &rows);
 	output_set_style(output_sess, STYLE_NORMAL);
-	
+
 	console_caps_t ccaps;
 	output_get_caps(output_sess, &ccaps);
-	
+
 	/*
 	 * Inititalize consoles only if there are
@@ -615,5 +615,5 @@
 			prodcons_initialize(&consoles[i].input_pc);
 			consoles[i].char_remains_len = 0;
-			
+
 			consoles[i].cols = cols;
 			consoles[i].rows = rows;
@@ -621,10 +621,10 @@
 			consoles[i].frontbuf =
 			    chargrid_create(cols, rows, CHARGRID_FLAG_SHARED);
-			
+
 			if (consoles[i].frontbuf == NULL) {
 				printf("%s: Unable to allocate frontbuffer %zu\n", NAME, i);
 				return false;
 			}
-			
+
 			consoles[i].fbid = output_frontbuf_create(output_sess,
 			    consoles[i].frontbuf);
@@ -633,12 +633,12 @@
 				return false;
 			}
-			
+
 			con_srvs_init(&consoles[i].srvs);
 			consoles[i].srvs.ops = &con_ops;
 			consoles[i].srvs.sarg = &consoles[i];
-			
+
 			char vc[LOC_NAME_MAXLEN + 1];
 			snprintf(vc, LOC_NAME_MAXLEN, "%s/vc%zu", NAMESPACE, i);
-			
+
 			if (loc_service_register(vc, &consoles[i].dsid) != EOK) {
 				printf("%s: Unable to register device %s\n", NAME, vc);
@@ -646,8 +646,8 @@
 			}
 		}
-		
+
 		input_activate(input);
 	}
-	
+
 	return true;
 }
@@ -664,14 +664,14 @@
 		return -1;
 	}
-	
+
 	printf("%s: HelenOS Console service\n", NAME);
-	
+
 	if (!console_srv_init(argv[1], argv[2]))
 		return -1;
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Never reached */
 	return 0;
Index: uspace/srv/hid/input/ctl/kbdev.c
===================================================================
--- uspace/srv/hid/input/ctl/kbdev.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/input/ctl/kbdev.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,5 +66,5 @@
 	/** Link to generic keyboard device */
 	kbd_dev_t *kbd_dev;
-	
+
 	/** Session with kbdev device */
 	async_sess_t *sess;
@@ -76,5 +76,5 @@
 	if (kbdev == NULL)
 		return NULL;
-	
+
 	kbdev->kbd_dev = kdev;
 
@@ -86,5 +86,5 @@
 	if (kbdev->sess != NULL)
 		async_hangup(kbdev->sess);
-	
+
 	free(kbdev);
 }
@@ -99,5 +99,5 @@
 		return ENOENT;
 	}
-	
+
 	kbdev_t *kbdev = kbdev_new(kdev);
 	if (kbdev == NULL) {
@@ -107,7 +107,7 @@
 		return ENOMEM;
 	}
-	
+
 	kbdev->sess = sess;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	if (exch == NULL) {
@@ -117,9 +117,9 @@
 		return ENOENT;
 	}
-	
+
 	port_id_t port;
 	errno_t rc = async_create_callback_port(exch, INTERFACE_KBD_CB, 0, 0,
 	    kbdev_callback_conn, kbdev, &port);
-	
+
 	if (rc != EOK) {
 		printf("%s: Failed creating callback connection from '%s'.\n",
@@ -129,7 +129,7 @@
 		return rc;
 	}
-	
+
 	async_exchange_end(exch);
-	
+
 	kdev->ctl_private = (void *) kbdev;
 	return 0;
@@ -142,5 +142,5 @@
 	if (!exch)
 		return;
-	
+
 	async_msg_1(exch, KBDEV_SET_IND, mods);
 	async_exchange_end(exch);
Index: uspace/srv/hid/input/gsp.c
===================================================================
--- uspace/srv/hid/input/gsp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/input/gsp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -79,5 +79,5 @@
 	trans_key_t *trans_key = (trans_key_t *)key;
 	gsp_trans_t *t = hash_table_get_inst(item, gsp_trans_t, link);
-	
+
 	return trans_key->input == t->input && trans_key->old_state == t->old_state;
 }
@@ -245,5 +245,5 @@
 {
 	ht_link_t *item;
-	
+
 	trans_key_t key = {
 		.input = input,
Index: uspace/srv/hid/input/input.c
===================================================================
--- uspace/srv/hid/input/input.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/input/input.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -78,8 +78,8 @@
 	/** Link into the list of clients */
 	link_t link;
-	
+
 	/** Indicate whether the client is active */
 	bool active;
-	
+
 	/** Client callback session */
 	async_sess_t *sess;
@@ -112,11 +112,11 @@
 	if (client == NULL)
 		return NULL;
-	
+
 	link_initialize(&client->link);
 	client->active = false;
 	client->sess = NULL;
-	
+
 	list_append(&client->link, &clients);
-	
+
 	return client;
 }
@@ -125,5 +125,5 @@
 {
 	client_t *client = (client_t *) data;
-	
+
 	list_remove(&client->link);
 	free(client);
@@ -144,5 +144,5 @@
 	kbd_event_t ev;
 	unsigned int mod_mask;
-	
+
 	switch (key) {
 	case KC_LCTRL:
@@ -167,5 +167,5 @@
 		mod_mask = 0;
 	}
-	
+
 	if (mod_mask != 0) {
 		if (type == KEY_PRESS)
@@ -174,5 +174,5 @@
 			kdev->mods = kdev->mods & ~mod_mask;
 	}
-	
+
 	switch (key) {
 	case KC_CAPS_LOCK:
@@ -188,5 +188,5 @@
 		mod_mask = 0;
 	}
-	
+
 	if (mod_mask != 0) {
 		if (type == KEY_PRESS) {
@@ -198,5 +198,5 @@
 			kdev->mods = kdev->mods ^ (mod_mask & ~kdev->lock_keys);
 			kdev->lock_keys = kdev->lock_keys | mod_mask;
-			
+
 			/* Update keyboard lock indicator lights. */
 			(*kdev->ctl_ops->set_ind)(kdev, kdev->mods);
@@ -205,7 +205,7 @@
 		}
 	}
-	
+
 	// TODO: More elegant layout switching
-	
+
 	if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) &&
 	    (key == KC_F1)) {
@@ -214,5 +214,5 @@
 		return;
 	}
-	
+
 	if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) &&
 	    (key == KC_F2)) {
@@ -221,5 +221,5 @@
 		return;
 	}
-	
+
 	if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) &&
 	    (key == KC_F3)) {
@@ -228,5 +228,5 @@
 		return;
 	}
-	
+
 	if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) &&
 	    (key == KC_F4)) {
@@ -235,11 +235,11 @@
 		return;
 	}
-	
+
 	ev.type = type;
 	ev.key = key;
 	ev.mods = kdev->mods;
-	
+
 	ev.c = layout_parse_ev(kdev->active_layout, &ev);
-	
+
 	list_foreach(clients, link, client_t, client) {
 		if (client->active) {
@@ -257,18 +257,18 @@
 		if (client->active) {
 			async_exch_t *exch = async_exchange_begin(client->sess);
-			
+
 			if ((dx) || (dy))
 				async_msg_2(exch, INPUT_EVENT_MOVE, dx, dy);
-			
+
 			if (dz) {
 				// TODO: Implement proper wheel support
 				keycode_t code = dz > 0 ? KC_UP : KC_DOWN;
-				
+
 				for (unsigned int i = 0; i < 3; i++)
 					async_msg_4(exch, INPUT_EVENT_KEY, KEY_PRESS, code, 0, 0);
-				
+
 				async_msg_4(exch, INPUT_EVENT_KEY, KEY_RELEASE, code, 0, 0);
 			}
-			
+
 			async_exchange_end(exch);
 		}
@@ -309,5 +309,5 @@
 	list_foreach(clients, link, client_t, client)
 		client->active = ((active) && (client == active_client));
-	
+
 	/* Notify clients about the arbitration */
 	list_foreach(clients, link, client_t, client) {
@@ -327,11 +327,11 @@
 		return;
 	}
-	
+
 	async_answer_0(iid, EOK);
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			if (client->sess != NULL) {
@@ -339,9 +339,9 @@
 				client->sess = NULL;
 			}
-			
+
 			async_answer_0(callid, EOK);
 			return;
 		}
-		
+
 		async_sess_t *sess =
 		    async_callback_receive_start(EXCHANGE_SERIALIZE, &call);
@@ -375,5 +375,5 @@
 		active = true;
 	}
-	
+
 	client_arbitration();
 }
@@ -387,11 +387,11 @@
 		return NULL;
 	}
-	
+
 	link_initialize(&kdev->link);
-	
+
 	kdev->mods = KM_NUM_LOCK;
 	kdev->lock_keys = 0;
 	kdev->active_layout = layout_create(layout[0]);
-	
+
 	return kdev;
 }
@@ -405,7 +405,7 @@
 		return NULL;
 	}
-	
+
 	link_initialize(&mdev->link);
-	
+
 	return mdev;
 }
@@ -419,5 +419,5 @@
 		return NULL;
 	}
-	
+
 	sdev->kdev = kbd_dev_new();
 	if (sdev->kdev == NULL) {
@@ -427,5 +427,5 @@
 
 	link_initialize(&sdev->link);
-	
+
 	return sdev;
 }
@@ -437,13 +437,13 @@
 	if (kdev == NULL)
 		return;
-	
+
 	kdev->port_ops = port;
 	kdev->ctl_ops = ctl;
 	kdev->svc_id = 0;
-	
+
 	/* Initialize port driver. */
 	if ((*kdev->port_ops->init)(kdev) != 0)
 		goto fail;
-	
+
 	/* Initialize controller driver. */
 	if ((*kdev->ctl_ops->init)(kdev) != 0) {
@@ -451,8 +451,8 @@
 		goto fail;
 	}
-	
+
 	list_append(&kdev->link, &kbd_devs);
 	return;
-	
+
 fail:
 	free(kdev);
@@ -469,9 +469,9 @@
 	if (kdev == NULL)
 		return -1;
-	
+
 	kdev->svc_id = service_id;
 	kdev->port_ops = NULL;
 	kdev->ctl_ops = &kbdev_ctl;
-	
+
 	errno_t rc = loc_service_get_name(service_id, &kdev->svc_name);
 	if (rc != EOK) {
@@ -479,14 +479,14 @@
 		goto fail;
 	}
-	
+
 	/* Initialize controller driver. */
 	if ((*kdev->ctl_ops->init)(kdev) != 0) {
 		goto fail;
 	}
-	
+
 	list_append(&kdev->link, &kbd_devs);
 	*kdevp = kdev;
 	return 0;
-	
+
 fail:
 	if (kdev->svc_name != NULL)
@@ -506,9 +506,9 @@
 	if (mdev == NULL)
 		return -1;
-	
+
 	mdev->svc_id = service_id;
 	mdev->port_ops = NULL;
 	mdev->proto_ops = &mousedev_proto;
-	
+
 	errno_t rc = loc_service_get_name(service_id, &mdev->svc_name);
 	if (rc != EOK) {
@@ -516,14 +516,14 @@
 		goto fail;
 	}
-	
+
 	/* Initialize controller driver. */
 	if ((*mdev->proto_ops->init)(mdev) != 0) {
 		goto fail;
 	}
-	
+
 	list_append(&mdev->link, &mouse_devs);
 	*mdevp = mdev;
 	return 0;
-	
+
 fail:
 	free(mdev);
@@ -560,7 +560,7 @@
 	if (sdev == NULL)
 		return -1;
-	
+
 	sdev->kdev->svc_id = service_id;
-	
+
 	rc = loc_service_get_name(service_id, &sdev->kdev->svc_name);
 	if (rc != EOK)
@@ -598,8 +598,8 @@
 		fibril_add_ready(fid);
 	}
-	
+
 	*sdevp = sdev;
 	return 0;
-	
+
 fail:
 	if (sdev->kdev->svc_name != NULL)
@@ -641,5 +641,5 @@
 	bool already_known;
 	errno_t rc;
-	
+
 	rc = loc_category_get_id("keyboard", &keyboard_cat, IPC_FLAG_BLOCKING);
 	if (rc != EOK) {
@@ -647,5 +647,5 @@
 		return ENOENT;
 	}
-	
+
 	/*
 	 * Check for new keyboard devices
@@ -660,5 +660,5 @@
 	for (i = 0; i < count; i++) {
 		already_known = false;
-		
+
 		/* Determine whether we already know this device. */
 		list_foreach(kbd_devs, link, kbd_dev_t, kdev) {
@@ -668,5 +668,5 @@
 			}
 		}
-		
+
 		if (!already_known) {
 			kbd_dev_t *kdev;
@@ -677,9 +677,9 @@
 		}
 	}
-	
+
 	free(svcs);
-	
+
 	/* XXX Handle device removal */
-	
+
 	return EOK;
 }
@@ -692,5 +692,5 @@
 	bool already_known;
 	errno_t rc;
-	
+
 	rc = loc_category_get_id("mouse", &mouse_cat, IPC_FLAG_BLOCKING);
 	if (rc != EOK) {
@@ -698,5 +698,5 @@
 		return ENOENT;
 	}
-	
+
 	/*
 	 * Check for new mouse devices
@@ -708,8 +708,8 @@
 		return EIO;
 	}
-	
+
 	for (i = 0; i < count; i++) {
 		already_known = false;
-		
+
 		/* Determine whether we already know this device. */
 		list_foreach(mouse_devs, link, mouse_dev_t, mdev) {
@@ -719,5 +719,5 @@
 			}
 		}
-		
+
 		if (!already_known) {
 			mouse_dev_t *mdev;
@@ -728,9 +728,9 @@
 		}
 	}
-	
+
 	free(svcs);
-	
+
 	/* XXX Handle device removal */
-	
+
 	return EOK;
 }
@@ -743,5 +743,5 @@
 	bool already_known;
 	errno_t rc;
-	
+
 	rc = loc_category_get_id("serial", &serial_cat, IPC_FLAG_BLOCKING);
 	if (rc != EOK) {
@@ -749,5 +749,5 @@
 		return ENOENT;
 	}
-	
+
 	/*
 	 * Check for new serial devices
@@ -762,5 +762,5 @@
 	for (i = 0; i < count; i++) {
 		already_known = false;
-		
+
 		/* Determine whether we already know this device. */
 		list_foreach(serial_devs, link, serial_dev_t, sdev) {
@@ -770,5 +770,5 @@
 			}
 		}
-		
+
 		if (!already_known) {
 			serial_dev_t *sdev;
@@ -779,9 +779,9 @@
 		}
 	}
-	
+
 	free(svcs);
-	
+
 	/* XXX Handle device removal */
-	
+
 	return EOK;
 }
@@ -790,7 +790,7 @@
 {
 	errno_t rc;
-	
+
 	fibril_mutex_lock(&discovery_lock);
-	
+
 	if (!serial_console) {
 		rc = dev_check_new_kbdevs();
@@ -799,5 +799,5 @@
 			return rc;
 		}
-	
+
 		rc = dev_check_new_mousedevs();
 		if (rc != EOK) {
@@ -812,7 +812,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&discovery_lock);
-	
+
 	return EOK;
 }
@@ -832,5 +832,5 @@
 		return rc;
 	}
-	
+
 	return dev_check_new();
 }
@@ -849,22 +849,22 @@
 		return 1;
 	}
-	
+
 	printf("%s: HelenOS input service\n", NAME);
-	
+
 	list_initialize(&clients);
 	list_initialize(&kbd_devs);
 	list_initialize(&mouse_devs);
 	list_initialize(&serial_devs);
-	
+
 	serial_console = config_get_value("console");
-	
+
 	/* Add legacy keyboard devices. */
 	kbd_add_legacy_devs();
-	
+
 	/* Register driver */
 	async_set_client_data_constructor(client_data_create);
 	async_set_client_data_destructor(client_data_destroy);
 	async_set_fallback_port_handler(client_connection, NULL);
-	
+
 	rc = loc_server_register(NAME);
 	if (rc != EOK) {
@@ -872,5 +872,5 @@
 		return rc;
 	}
-	
+
 	service_id_t service_id;
 	rc = loc_service_register(argv[1], &service_id);
@@ -879,5 +879,5 @@
 		return rc;
 	}
-	
+
 	/* Receive kernel notifications */
 	rc = async_event_subscribe(EVENT_KCONSOLE, kconsole_event_handler, NULL);
@@ -885,12 +885,12 @@
 		printf("%s: Failed to register kconsole notifications (%s)\n",
 		    NAME, str_error(rc));
-	
+
 	/* Start looking for new input devices */
 	input_start_dev_discovery();
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached. */
 	return 0;
Index: uspace/srv/hid/input/layout/ar.c
===================================================================
--- uspace/srv/hid/input/layout/ar.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/input/layout/ar.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -76,5 +76,5 @@
 	[KC_PERIOD] = L'ز',
 	[KC_SLASH] = L'ظ',
-	
+
 	[KC_Q] = L'ض',
 	[KC_W] = L'ص',
@@ -134,5 +134,5 @@
 	[KC_PERIOD] = '.',
 	[KC_SLASH] = L'؟',
-	
+
 	[KC_Q] = L'َ',
 	[KC_W] = L'ً',
@@ -220,5 +220,5 @@
 	if (c != 0)
 		return c;
-	
+
 	if ((ev->mods & KM_SHIFT) != 0)
 		c = translate(ev->key, map_shifted, sizeof(map_shifted) / sizeof(wchar_t));
Index: uspace/srv/hid/input/layout/cz.c
===================================================================
--- uspace/srv/hid/input/layout/cz.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/input/layout/cz.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -412,8 +412,8 @@
 	if (ev->type != KEY_PRESS)
 		return 0;
-	
+
 	if (key_is_mod(ev->key))
 		return 0;
-	
+
 	switch (cz_state->mstate) {
 	case ms_start:
@@ -424,5 +424,5 @@
 		return parse_ms_carka(cz_state, ev);
 	}
-	
+
 	return 0;
 }
Index: uspace/srv/hid/input/mouse.h
===================================================================
--- uspace/srv/hid/input/mouse.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/input/mouse.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,14 +47,14 @@
 	/** Link to mouse_devs list */
 	link_t link;
-	
+
 	/** Service ID (only for mousedev devices) */
 	service_id_t svc_id;
-	
+
 	/** Device service name (only for mousedev devices) */
 	char *svc_name;
-	
+
 	/** Port ops */
 	struct mouse_port_ops *port_ops;
-	
+
 	/** Protocol ops */
 	struct mouse_proto_ops *proto_ops;
Index: uspace/srv/hid/input/port/chardev.c
===================================================================
--- uspace/srv/hid/input/port/chardev.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/input/port/chardev.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -75,5 +75,5 @@
 	fid_t fid;
 	errno_t rc;
-	
+
 	kbd_dev = kdev;
 again:
@@ -83,5 +83,5 @@
 			break;
 	}
-	
+
 	if (i >= num_devs) {
 		/* XXX This is just a hack. */
@@ -90,5 +90,5 @@
 		goto again;
 	}
-	
+
 	dev_sess = loc_service_connect(service_id, INTERFACE_DDF,
 	    IPC_FLAG_BLOCKING);
@@ -97,5 +97,5 @@
 		return ENOENT;
 	}
-	
+
 	rc = chardev_open(dev_sess, &chardev);
 	if (rc != EOK) {
@@ -104,5 +104,5 @@
 		return ENOMEM;
 	}
-	
+
 	fid = fibril_create(kbd_port_fibril, NULL);
 	if (fid == 0) {
@@ -114,5 +114,5 @@
 
 	fibril_add_ready(fid);
-	
+
 	printf("%s: Found input device '%s'\n", NAME, in_devs[i]);
 	return 0;
Index: uspace/srv/hid/input/proto/mousedev.c
===================================================================
--- uspace/srv/hid/input/proto/mousedev.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/input/proto/mousedev.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -59,7 +59,7 @@
 	if (mousedev == NULL)
 		return NULL;
-	
+
 	mousedev->mouse_dev = mdev;
-	
+
 	return mousedev;
 }
@@ -75,16 +75,16 @@
 	/* Mousedev device structure */
 	mousedev_t *mousedev = (mousedev_t *) arg;
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			mousedev_destroy(mousedev);
 			return;
 		}
-		
+
 		errno_t retval;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case MOUSEEV_MOVE_EVENT:
@@ -109,5 +109,5 @@
 			break;
 		}
-		
+
 		async_answer_0(callid, retval);
 	}
@@ -122,5 +122,5 @@
 		return ENOENT;
 	}
-	
+
 	mousedev_t *mousedev = mousedev_new(mdev);
 	if (mousedev == NULL) {
@@ -130,5 +130,5 @@
 		return ENOMEM;
 	}
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	if (exch == NULL) {
@@ -139,12 +139,12 @@
 		return ENOENT;
 	}
-	
+
 	port_id_t port;
 	errno_t rc = async_create_callback_port(exch, INTERFACE_MOUSE_CB, 0, 0,
 	    mousedev_callback_conn, mousedev, &port);
-	
+
 	async_exchange_end(exch);
 	async_hangup(sess);
-	
+
 	if (rc != EOK) {
 		printf("%s: Failed creating callback connection from '%s'.\n",
@@ -153,5 +153,5 @@
 		return rc;
 	}
-	
+
 	return EOK;
 }
Index: uspace/srv/hid/isdv4_tablet/isdv4.c
===================================================================
--- uspace/srv/hid/isdv4_tablet/isdv4.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/isdv4_tablet/isdv4.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -282,5 +282,5 @@
 	state->touch_max_y = ((packet[2] >> 3) & 3) | ((packet[5] & 127) << 7) |
 	    (packet[6] & 124);
-	
+
 	if (touch_resolution == 0)
 		touch_resolution = 10;
Index: uspace/srv/hid/isdv4_tablet/main.c
===================================================================
--- uspace/srv/hid/isdv4_tablet/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/isdv4_tablet/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -66,13 +66,13 @@
 {
 	async_answer_0(iid, EOK);
-	
+
 	async_sess_t *sess =
 	    async_callback_receive(EXCHANGE_SERIALIZE);
-	
+
 	fibril_mutex_lock(&client_mutex);
-	
+
 	if (client_sess == NULL)
 		client_sess = sess;
-	
+
 	fibril_mutex_unlock(&client_mutex);
 
@@ -80,8 +80,8 @@
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		async_answer_0(callid, ENOTSUP);
 	}
@@ -93,7 +93,7 @@
 	async_sess_t *sess = client_sess;
 	fibril_mutex_unlock(&client_mutex);
-	
+
 	if (!sess) return;
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	if (exch) {
@@ -153,5 +153,5 @@
 	printf("%s %s %u %u %u %u\n", type, source, event->x, event->y,
 	    event->pressure, event->button);
-	
+
 	emit_event(event);
 }
@@ -307,5 +307,5 @@
 	printf(" Touch: %ux%u type: %s\n", state.touch_max_x, state.touch_max_y,
 		touch_type(state.touch_type));
-	
+
 	fid_t fibril = fibril_create(read_fibril, NULL);
 	/* From this on, state is to be used only by read_fibril */
Index: uspace/srv/hid/output/ctl/serial.c
===================================================================
--- uspace/srv/hid/output/ctl/serial.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/output/ctl/serial.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,5 +63,5 @@
 {
 	vt100_state_t *state = (vt100_state_t *) dev->data;
-	
+
 	return vt100_yield(state);
 }
@@ -70,5 +70,5 @@
 {
 	vt100_state_t *state = (vt100_state_t *) dev->data;
-	
+
 	return vt100_claim(state);
 }
@@ -78,5 +78,5 @@
 {
 	vt100_state_t *state = (vt100_state_t *) dev->data;
-	
+
 	vt100_get_dimensions(state, cols, rows);
 }
@@ -91,5 +91,5 @@
 {
 	vt100_state_t *state = (vt100_state_t *) dev->data;
-	
+
 	vt100_goto(state, col, row);
 	vt100_cursor_visibility(state, visible);
@@ -101,5 +101,5 @@
 	charfield_t *field =
 	    chargrid_charfield_at(dev->backbuf, col, row);
-	
+
 	draw_char(state, field, col, row);
 }
@@ -130,5 +130,5 @@
 	if (state == NULL)
 		return ENOMEM;
-	
+
 	outdev_t *dev = outdev_register(&serial_ops, state);
 	if (dev == NULL) {
@@ -136,5 +136,5 @@
 		return ENOMEM;
 	}
-	
+
 	return EOK;
 }
Index: uspace/srv/hid/output/gfx/font-8x16.c
===================================================================
--- uspace/srv/hid/output/gfx/font-8x16.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/output/gfx/font-8x16.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,317 +49,317 @@
 	if (ch == 0x0000)
 		return 0;
-	
+
 	if ((ch >= 0x0020) && (ch <= 0x007f))
 		return (ch - 32);
-	
+
 	if ((ch >= 0x00a0) && (ch <= 0x021f))
 		return (ch - 64);
-	
+
 	if ((ch >= 0x0222) && (ch <= 0x0233))
 		return (ch - 66);
-	
+
 	if ((ch >= 0x0250) && (ch <= 0x02ad))
 		return (ch - 94);
-	
+
 	if ((ch >= 0x02b0) && (ch <= 0x02cf))
 		return (ch - 96);
-	
+
 	if ((ch >= 0x02d8) && (ch <= 0x02dd))
 		return (ch - 104);
-	
+
 	if (ch == 0x02ee)
 		return 630;
-	
+
 	if ((ch >= 0x0300) && (ch <= 0x0301))
 		return (ch - 137);
-	
+
 	if (ch == 0x0303)
 		return 633;
-	
+
 	if (ch == 0x0309)
 		return 634;
-	
+
 	if ((ch >= 0x0312) && (ch <= 0x0314))
 		return (ch - 151);
-	
+
 	if (ch == 0x0323)
 		return 638;
-	
+
 	if ((ch >= 0x0340) && (ch <= 0x0341))
 		return (ch - 193);
-	
+
 	if ((ch >= 0x0374) && (ch <= 0x0375))
 		return (ch - 243);
-	
+
 	if (ch == 0x037a)
 		return 643;
-	
+
 	if (ch == 0x037e)
 		return 644;
-	
+
 	if ((ch >= 0x0384) && (ch <= 0x038a))
 		return (ch - 255);
-	
+
 	if (ch == 0x038c)
 		return 652;
-	
+
 	if ((ch >= 0x038e) && (ch <= 0x03a1))
 		return (ch - 257);
-	
+
 	if ((ch >= 0x03a3) && (ch <= 0x03ce))
 		return (ch - 258);
-	
+
 	if ((ch >= 0x03d0) && (ch <= 0x03d7))
 		return (ch - 259);
-	
+
 	if ((ch >= 0x03da) && (ch <= 0x03f3))
 		return (ch - 261);
-	
+
 	if ((ch >= 0x0400) && (ch <= 0x0486))
 		return (ch - 273);
-	
+
 	if ((ch >= 0x0488) && (ch <= 0x04ce))
 		return (ch - 274);
-	
+
 	if ((ch >= 0x04d0) && (ch <= 0x04f5))
 		return (ch - 275);
-	
+
 	if ((ch >= 0x04f8) && (ch <= 0x04f9))
 		return (ch - 277);
-	
+
 	if ((ch >= 0x0500) && (ch <= 0x050f))
 		return (ch - 283);
-	
+
 	if ((ch >= 0x0530) && (ch <= 0x0556))
 		return (ch - 315);
-	
+
 	if ((ch >= 0x0559) && (ch <= 0x055f))
 		return (ch - 317);
-	
+
 	if ((ch >= 0x0561) && (ch <= 0x0587))
 		return (ch - 318);
-	
+
 	if ((ch >= 0x0589) && (ch <= 0x058a))
 		return (ch - 319);
-	
+
 	if ((ch >= 0x0591) && (ch <= 0x05a1))
 		return (ch - 325);
-	
+
 	if ((ch >= 0x05a3) && (ch <= 0x05b9))
 		return (ch - 326);
-	
+
 	if ((ch >= 0x05bb) && (ch <= 0x05c4))
 		return (ch - 327);
-	
+
 	if ((ch >= 0x05d0) && (ch <= 0x05ea))
 		return (ch - 338);
-	
+
 	if ((ch >= 0x05f0) && (ch <= 0x05f4))
 		return (ch - 343);
-	
+
 	if (ch == 0x060c)
 		return 1182;
-	
+
 	if (ch == 0x061b)
 		return 1183;
-	
+
 	if (ch == 0x061f)
 		return 1184;
-	
+
 	if ((ch >= 0x0621) && (ch <= 0x063a))
 		return (ch - 384);
-	
+
 	if ((ch >= 0x0640) && (ch <= 0x0655))
 		return (ch - 389);
-	
+
 	if ((ch >= 0x0660) && (ch <= 0x066d))
 		return (ch - 399);
-	
+
 	if ((ch >= 0x0670) && (ch <= 0x06ed))
 		return (ch - 401);
-	
+
 	if ((ch >= 0x06f0) && (ch <= 0x06fe))
 		return (ch - 403);
-	
+
 	if (ch == 0x10d3)
 		return 1388;
-	
+
 	if (ch == 0x10d7)
 		return 1389;
-	
+
 	if (ch == 0x10da)
 		return 1390;
-	
+
 	if (ch == 0x10dd)
 		return 1391;
-	
+
 	if (ch == 0x10e6)
 		return 1392;
-	
+
 	if ((ch >= 0x1e00) && (ch <= 0x1e9b))
 		return (ch - 6287);
-	
+
 	if ((ch >= 0x1ea0) && (ch <= 0x1ef9))
 		return (ch - 6291);
-	
+
 	if ((ch >= 0x1f00) && (ch <= 0x1f07))
 		return (ch - 6297);
-	
+
 	if ((ch >= 0x2000) && (ch <= 0x2027))
 		return (ch - 6545);
-	
+
 	if ((ch >= 0x2030) && (ch <= 0x2046))
 		return (ch - 6553);
-	
+
 	if ((ch >= 0x2048) && (ch <= 0x204d))
 		return (ch - 6554);
-	
+
 	if (ch == 0x2070)
 		return 1716;
-	
+
 	if ((ch >= 0x2074) && (ch <= 0x208f))
 		return (ch - 6591);
-	
+
 	if ((ch >= 0x20a0) && (ch <= 0x20af))
 		return (ch - 6607);
-	
+
 	if ((ch >= 0x2100) && (ch <= 0x213a))
 		return (ch - 6687);
-	
+
 	if ((ch >= 0x2153) && (ch <= 0x2183))
 		return (ch - 6711);
-	
+
 	if ((ch >= 0x2190) && (ch <= 0x21f3))
 		return (ch - 6723);
-	
+
 	if ((ch >= 0x2200) && (ch <= 0x22f1))
 		return (ch - 6735);
-	
+
 	if (ch == 0x2300)
 		return 2211;
-	
+
 	if (ch == 0x2302)
 		return 2212;
-	
+
 	if ((ch >= 0x2308) && (ch <= 0x230b))
 		return (ch - 6755);
-	
+
 	if (ch == 0x2310)
 		return 2217;
-	
+
 	if (ch == 0x2318)
 		return 2218;
-	
+
 	if ((ch >= 0x231a) && (ch <= 0x231b))
 		return (ch - 6767);
-	
+
 	if ((ch >= 0x2320) && (ch <= 0x2321))
 		return (ch - 6771);
-	
+
 	if ((ch >= 0x2329) && (ch <= 0x232a))
 		return (ch - 6778);
-	
+
 	if ((ch >= 0x239b) && (ch <= 0x23bd))
 		return (ch - 6890);
-	
+
 	if (ch == 0x23ce)
 		return 2260;
-	
+
 	if ((ch >= 0x2409) && (ch <= 0x240d))
 		return (ch - 6964);
-	
+
 	if ((ch >= 0x2423) && (ch <= 0x2424))
 		return (ch - 6985);
-	
+
 	if (ch == 0x2426)
 		return 2268;
-	
+
 	if ((ch >= 0x2500) && (ch <= 0x2595))
 		return (ch - 7203);
-	
+
 	if ((ch >= 0x25a0) && (ch <= 0x25f7))
 		return (ch - 7213);
-	
+
 	if ((ch >= 0x2600) && (ch <= 0x2602))
 		return (ch - 7221);
-	
+
 	if ((ch >= 0x2605) && (ch <= 0x260d))
 		return (ch - 7223);
-	
+
 	if ((ch >= 0x2610) && (ch <= 0x2613))
 		return (ch - 7225);
-	
+
 	if (ch == 0x2620)
 		return 2523;
-	
+
 	if (ch == 0x2622)
 		return 2524;
-	
+
 	if (ch == 0x2626)
 		return 2525;
-	
+
 	if ((ch >= 0x2628) && (ch <= 0x262b))
 		return (ch - 7242);
-	
+
 	if ((ch >= 0x262e) && (ch <= 0x2637))
 		return (ch - 7244);
-	
+
 	if ((ch >= 0x2639) && (ch <= 0x2653))
 		return (ch - 7245);
-	
+
 	if ((ch >= 0x2660) && (ch <= 0x2667))
 		return (ch - 7257);
-	
+
 	if ((ch >= 0x2669) && (ch <= 0x266f))
 		return (ch - 7258);
-	
+
 	if ((ch >= 0xfb00) && (ch <= 0xfb05))
 		return (ch - 61674);
-	
+
 	if ((ch >= 0xfb50) && (ch <= 0xfbb1))
 		return (ch - 61748);
-	
+
 	if ((ch >= 0xfbd3) && (ch <= 0xfbe9))
 		return (ch - 61781);
-	
+
 	if ((ch >= 0xfbfc) && (ch <= 0xfbff))
 		return (ch - 61799);
-	
+
 	if ((ch >= 0xfc5b) && (ch <= 0xfc63))
 		return (ch - 61890);
-	
+
 	if (ch == 0xfc90)
 		return 2722;
-	
+
 	if ((ch >= 0xfcf2) && (ch <= 0xfcf4))
 		return (ch - 62031);
-	
+
 	if ((ch >= 0xfd3c) && (ch <= 0xfd3f))
 		return (ch - 62102);
-	
+
 	if (ch == 0xfdf2)
 		return 2730;
-	
+
 	if ((ch >= 0xfe50) && (ch <= 0xfe52))
 		return (ch - 62373);
-	
+
 	if ((ch >= 0xfe54) && (ch <= 0xfe66))
 		return (ch - 62374);
-	
+
 	if ((ch >= 0xfe68) && (ch <= 0xfe6b))
 		return (ch - 62375);
-	
+
 	if ((ch >= 0xfe70) && (ch <= 0xfe72))
 		return (ch - 62379);
-	
+
 	if (ch == 0xfe74)
 		return 2760;
-	
+
 	if ((ch >= 0xfe76) && (ch <= 0xfefc))
 		return (ch - 62381);
-	
+
 	if (ch == 0xfeff)
 		return 2896;
-	
+
 	return 2898;
 }
@@ -3264,5 +3264,5 @@
 	{0xf1, 0x35, 0x55, 0x8a, 0xe0, 0x06, 0x95, 0xd6, 0xb5, 0x97, 0x00, 0xee, 0x8a, 0xee, 0x28, 0xe8},
 	{0x00, 0x38, 0x7c, 0x7c, 0xc6, 0x92, 0xf2, 0xe6, 0xfe, 0xe6, 0x7c, 0x7c, 0x38, 0x00, 0x00, 0x00},
-	
+
 	/* Special glyph for unknown character */
 	{0x00, 0x00, 0x7c, 0xc6, 0xc6, 0x0c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00}
Index: uspace/srv/hid/output/output.c
===================================================================
--- uspace/srv/hid/output/output.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/output/output.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,5 +44,5 @@
 typedef struct {
 	link_t link;
-	
+
 	size_t size;
 	unsigned int flags;
@@ -56,14 +56,14 @@
 {
 	assert(ops->get_dimensions);
-	
+
 	outdev_t *dev = (outdev_t *) malloc(sizeof(outdev_t));
 	if (dev == NULL)
 		return NULL;
-	
+
 	link_initialize(&dev->link);
-	
+
 	dev->ops = *ops;
 	dev->data = data;
-	
+
 	ops->get_dimensions(dev, &dev->cols, &dev->rows);
 	dev->backbuf = chargrid_create(dev->cols, dev->rows,
@@ -73,5 +73,5 @@
 		return NULL;
 	}
-	
+
 	list_append(&dev->link, &outdevs);
 	return dev;
@@ -81,13 +81,13 @@
 {
 	errno_t ret = EOK;
-	
+
 	list_foreach(outdevs, link, outdev_t, dev) {
 		assert(dev->ops.yield);
-		
+
 		errno_t rc = dev->ops.yield(dev);
 		if (rc != EOK)
 			ret = rc;
 	}
-	
+
 	async_answer_0(iid, ret);
 }
@@ -96,13 +96,13 @@
 {
 	errno_t ret = EOK;
-	
+
 	list_foreach(outdevs, link, outdev_t, dev) {
 		assert(dev->ops.claim);
-		
+
 		errno_t rc = dev->ops.claim(dev);
 		if (rc != EOK)
 			ret = rc;
 	}
-	
+
 	async_answer_0(iid, ret);
 }
@@ -112,10 +112,10 @@
 	sysarg_t cols = MAX_COLS;
 	sysarg_t rows = MAX_ROWS;
-	
+
 	list_foreach(outdevs, link, outdev_t, dev) {
 		cols = min(cols, dev->cols);
 		rows = min(rows, dev->rows);
 	}
-	
+
 	async_answer_2(iid, EOK, cols, rows);
 }
@@ -124,11 +124,11 @@
 {
 	console_caps_t caps = 0;
-	
+
 	list_foreach(outdevs, link, outdev_t, dev) {
 		assert(dev->ops.get_caps);
-		
+
 		caps |= dev->ops.get_caps(dev);
 	}
-	
+
 	async_answer_1(iid, EOK, caps);
 }
@@ -143,10 +143,10 @@
 		}
 	}
-	
+
 	if (frontbuf == NULL) {
 		async_answer_0(iid, ENOENT);
 		return NULL;
 	}
-	
+
 	return frontbuf;
 }
@@ -159,7 +159,7 @@
 		return;
 	}
-	
+
 	link_initialize(&frontbuf->link);
-	
+
 	ipc_callid_t callid;
 	if (!async_share_out_receive(&callid, &frontbuf->size,
@@ -169,5 +169,5 @@
 		return;
 	}
-	
+
 	errno_t rc = async_share_out_finalize(callid, &frontbuf->data);
 	if ((rc != EOK) || (frontbuf->data == AS_MAP_FAILED)) {
@@ -176,5 +176,5 @@
 		return;
 	}
-	
+
 	list_append(&frontbuf->link, &frontbufs);
 	async_answer_1(iid, EOK, (sysarg_t) frontbuf);
@@ -186,9 +186,9 @@
 	if (frontbuf == NULL)
 		return;
-	
+
 	list_remove(&frontbuf->link);
 	as_area_destroy(frontbuf->data);
 	free(frontbuf);
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -199,22 +199,22 @@
 	if (frontbuf == NULL)
 		return;
-	
+
 	chargrid_t *buf = (chargrid_t *) frontbuf->data;
 	bool visible = chargrid_get_cursor_visibility(buf);
-	
+
 	sysarg_t col;
 	sysarg_t row;
 	chargrid_get_cursor(buf, &col, &row);
-	
+
 	list_foreach(outdevs, link, outdev_t, dev) {
 		assert(dev->ops.cursor_update);
-		
+
 		sysarg_t prev_col;
 		sysarg_t prev_row;
 		chargrid_get_cursor(dev->backbuf, &prev_col, &prev_row);
-		
+
 		chargrid_set_cursor(dev->backbuf, col, row);
 		chargrid_set_cursor_visibility(dev->backbuf, visible);
-		
+
 		dev->ops.cursor_update(dev, prev_col, prev_row, col, row,
 		    visible);
@@ -222,5 +222,5 @@
 
 	}
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -233,5 +233,5 @@
 		    (console_style_t) IPC_GET_ARG1(*icall);
 	}
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -248,5 +248,5 @@
 		    (console_color_attr_t) IPC_GET_ARG3(*icall);
 	}
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -259,5 +259,5 @@
 		dev->attrs.val.rgb.fgcolor = IPC_GET_ARG2(*icall);
 	}
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -266,12 +266,12 @@
 {
 	assert(dev->ops.char_update);
-	
+
 	sysarg_t top_row = chargrid_get_top_row(buf);
-	
+
 	if (dev->top_row == top_row)
 		return false;
-	
+
 	dev->top_row = top_row;
-	
+
 	for (sysarg_t y = 0; y < dev->rows; y++) {
 		for (sysarg_t x = 0; x < dev->cols; x++) {
@@ -281,22 +281,22 @@
 			    chargrid_charfield_at(dev->backbuf, x, y);
 			bool update = false;
-			
+
 			if (front_field->ch != back_field->ch) {
 				back_field->ch = front_field->ch;
 				update = true;
 			}
-			
+
 			if (!attrs_same(front_field->attrs, back_field->attrs)) {
 				back_field->attrs = front_field->attrs;
 				update = true;
 			}
-			
+
 			front_field->flags &= ~CHAR_FLAG_DIRTY;
-			
+
 			if (update)
 				dev->ops.char_update(dev, x, y);
 		}
 	}
-	
+
 	return true;
 }
@@ -307,13 +307,13 @@
 	if (frontbuf == NULL)
 		return;
-	
+
 	chargrid_t *buf = (chargrid_t *) frontbuf->data;
-	
+
 	list_foreach(outdevs, link, outdev_t, dev) {
 		assert(dev->ops.char_update);
-		
+
 		if (srv_update_scroll(dev, buf))
 			continue;
-		
+
 		for (sysarg_t y = 0; y < dev->rows; y++) {
 			for (sysarg_t x = 0; x < dev->cols; x++) {
@@ -323,5 +323,5 @@
 				    chargrid_charfield_at(dev->backbuf, x, y);
 				bool update = false;
-				
+
 				if ((front_field->flags & CHAR_FLAG_DIRTY) ==
 				    CHAR_FLAG_DIRTY) {
@@ -330,5 +330,5 @@
 						update = true;
 					}
-					
+
 					if (!attrs_same(front_field->attrs,
 					    back_field->attrs)) {
@@ -336,17 +336,17 @@
 						update = true;
 					}
-					
+
 					front_field->flags &= ~CHAR_FLAG_DIRTY;
 				}
-				
+
 				if (update)
 					dev->ops.char_update(dev, x, y);
 			}
 		}
-		
+
 		dev->ops.flush(dev);
 	}
-	
-	
+
+
 	async_answer_0(iid, EOK);
 }
@@ -357,19 +357,19 @@
 	if (frontbuf == NULL)
 		return;
-	
+
 	chargrid_t *buf = (chargrid_t *) frontbuf->data;
-	
+
 	list_foreach(outdevs, link, outdev_t, dev) {
 		assert(dev->ops.char_update);
-		
+
 		if (srv_update_scroll(dev, buf))
 			continue;
-		
+
 		sysarg_t col = IPC_GET_ARG2(*icall);
 		sysarg_t row = IPC_GET_ARG3(*icall);
-		
+
 		sysarg_t cols = IPC_GET_ARG4(*icall);
 		sysarg_t rows = IPC_GET_ARG5(*icall);
-		
+
 		for (sysarg_t y = 0; y < rows; y++) {
 			for (sysarg_t x = 0; x < cols; x++) {
@@ -378,5 +378,5 @@
 				charfield_t *back_field =
 				    chargrid_charfield_at(dev->backbuf, col + x, row + y);
-				
+
 				back_field->ch = front_field->ch;
 				back_field->attrs = front_field->attrs;
@@ -395,14 +395,14 @@
 	/* Accept the connection */
 	async_answer_0(iid, EOK);
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			async_answer_0(callid, EOK);
 			break;
 		}
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case OUTPUT_YIELD:
@@ -418,5 +418,5 @@
 			srv_get_caps(callid, &call);
 			break;
-		
+
 		case OUTPUT_FRONTBUF_CREATE:
 			srv_frontbuf_create(callid, &call);
@@ -425,5 +425,5 @@
 			srv_frontbuf_destroy(callid, &call);
 			break;
-			
+
 		case OUTPUT_CURSOR_UPDATE:
 			srv_cursor_update(callid, &call);
@@ -444,5 +444,5 @@
 			srv_damage(callid, &call);
 			break;
-			
+
 		default:
 			async_answer_0(callid, EINVAL);
@@ -462,7 +462,7 @@
 		return 1;
 	}
-	
+
 	printf("%s: HelenOS output service\n", NAME);
-	
+
 	/* Register server */
 	async_set_fallback_port_handler(client_connection, NULL);
@@ -472,5 +472,5 @@
 		return rc;
 	}
-	
+
 	service_id_t service_id;
 	rc = loc_service_register(argv[1], &service_id);
@@ -479,15 +479,15 @@
 		return rc;
 	}
-	
+
 	if (!config_key_exists("console")) {
 		ega_init();
 	}
-	
+
 	chardev_init();
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Never reached */
 	return 0;
Index: uspace/srv/hid/output/output.h
===================================================================
--- uspace/srv/hid/output/output.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/output/output.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -44,9 +44,9 @@
 	errno_t (*yield)(struct outdev *dev);
 	errno_t (*claim)(struct outdev *dev);
-	
+
 	void (*get_dimensions)(struct outdev *dev, sysarg_t *cols,
 	    sysarg_t *rows);
 	console_caps_t (*get_caps)(struct outdev *dev);
-	
+
 	void (*cursor_update)(struct outdev *dev, sysarg_t prev_col,
 	    sysarg_t prev_row, sysarg_t col, sysarg_t row, bool visible);
@@ -57,12 +57,12 @@
 typedef struct outdev {
 	link_t link;
-	
+
 	sysarg_t cols;
 	sysarg_t rows;
 	char_attrs_t attrs;
-	
+
 	chargrid_t *backbuf;
 	sysarg_t top_row;
-	
+
 	outdev_ops_t ops;
 	void *data;
Index: uspace/srv/hid/output/port/ega.c
===================================================================
--- uspace/srv/hid/output/port/ega.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/output/port/ega.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -47,8 +47,8 @@
 	sysarg_t cols;
 	sysarg_t rows;
-	
+
 	uint8_t style_normal;
 	uint8_t style_inverted;
-	
+
 	size_t size;
 	uint8_t *addr;
@@ -60,5 +60,5 @@
 {
 	uint8_t attr = 0;
-	
+
 	switch (attrs.type) {
 	case CHAR_ATTR_STYLE:
@@ -81,8 +81,8 @@
 		attr = ((attrs.val.index.bgcolor & 7) << 4) |
 		    (attrs.val.index.fgcolor & 7);
-		
+
 		if (attrs.val.index.attr & CATTR_BRIGHT)
 			attr |= 0x08;
-		
+
 		break;
 	case CHAR_ATTR_RGB:
@@ -91,5 +91,5 @@
 		break;
 	}
-	
+
 	return attr;
 }
@@ -105,12 +105,12 @@
 {
 	uint8_t glyph;
-	
+
 	if (ascii_check(field->ch))
 		glyph = field->ch;
 	else
 		glyph = '?';
-	
+
 	uint8_t attr = attrs_attr(field->attrs);
-	
+
 	ega.addr[FB_POS(col, row)] = glyph;
 	ega.addr[FB_POS(col, row) + 1] = attr;
@@ -143,16 +143,16 @@
 	/* Cursor position */
 	uint16_t cursor = row * ega.cols + col;
-	
+
 	pio_write_8(EGA_IO_BASE, 0x0e);
 	pio_write_8(EGA_IO_BASE + 1, (cursor >> 8) & 0xff);
 	pio_write_8(EGA_IO_BASE, 0x0f);
 	pio_write_8(EGA_IO_BASE + 1, cursor & 0xff);
-	
+
 	/* Cursor visibility */
 	pio_write_8(EGA_IO_BASE, 0x0a);
 	uint8_t stat = pio_read_8(EGA_IO_BASE + 1);
-	
+
 	pio_write_8(EGA_IO_BASE, 0x0a);
-	
+
 	if (visible)
 		pio_write_8(EGA_IO_BASE + 1, stat & (~(1 << 5)));
@@ -165,5 +165,5 @@
 	charfield_t *field =
 	    chargrid_charfield_at(dev->backbuf, col, row);
-	
+
 	draw_char(field, col, row);
 }
@@ -189,36 +189,36 @@
 	if (rc != EOK)
 		present = false;
-	
+
 	if (!present)
 		return ENOENT;
-	
+
 	sysarg_t kind;
 	rc = sysinfo_get_value("fb.kind", &kind);
 	if (rc != EOK)
 		kind = (sysarg_t) -1;
-	
+
 	if (kind != 2)
 		return EINVAL;
-	
+
 	sysarg_t paddr;
 	rc = sysinfo_get_value("fb.address.physical", &paddr);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = sysinfo_get_value("fb.width", &ega.cols);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = sysinfo_get_value("fb.height", &ega.rows);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = pio_enable((void*)EGA_IO_BASE, EGA_IO_SIZE, NULL);
 	if (rc != EOK)
 		return rc;
-	
+
 	ega.size = (ega.cols * ega.rows) << 1;
 	ega.addr = AS_AREA_ANY;
-	
+
 	rc = physmem_map(paddr,
 	    ALIGN_UP(ega.size, PAGE_SIZE) >> PAGE_WIDTH,
@@ -226,18 +226,18 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t blinking;
 	rc = sysinfo_get_value("fb.blinking", &blinking);
 	if (rc != EOK)
 		blinking = false;
-	
+
 	ega.style_normal = 0xf0;
 	ega.style_inverted = 0x0f;
-	
+
 	if (blinking) {
 		ega.style_normal &= 0x77;
 		ega.style_inverted &= 0x77;
 	}
-	
+
 	outdev_t *dev = outdev_register(&ega_ops, (void *) &ega);
 	if (dev == NULL) {
@@ -245,5 +245,5 @@
 		return EINVAL;
 	}
-	
+
 	return EOK;
 }
Index: uspace/srv/hid/output/port/kfb.c
===================================================================
--- uspace/srv/hid/output/port/kfb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/output/port/kfb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -87,18 +87,18 @@
 	size_t scanline;
 	visual_t visual;
-	
+
 	size_t size;
 	uint8_t *addr;
-	
+
 	pixel2visual_t pixel2visual;
 	visual2pixel_t visual2pixel;
 	visual_mask_t visual_mask;
 	size_t pixel_bytes;
-	
+
 	sysarg_t pointer_x;
 	sysarg_t pointer_y;
 	bool pointer_visible;
 	imgmap_t *pointer_imgmap;
-	
+
 	/*
 	 * Pre-rendered mask for rendering
@@ -106,9 +106,9 @@
 	 * visual.
 	 */
-	
+
 	size_t glyph_scanline;
 	size_t glyph_bytes;
 	uint8_t *glyphs;
-	
+
 	uint8_t *backbuf;
 } kfb_t;
@@ -135,5 +135,5 @@
 	[COLOR_YELLOW]      = 0xf0f000,
 	[COLOR_WHITE]       = 0xf0f0f0,
-	
+
 	[COLOR_BLACK + 8]   = 0x000000,
 	[COLOR_BLUE + 8]    = 0x0000ff,
@@ -150,5 +150,5 @@
 	if ((x >= kfb.width) || (y >= kfb.height))
 		return;
-	
+
 	kfb.pixel2visual(kfb.addr + FB_POS(x, y), pixel);
 }
@@ -158,5 +158,5 @@
 	if ((x >= kfb.width) || (y >= kfb.height))
 		return 0;
-	
+
 	return kfb.visual2pixel(kfb.addr + FB_POS(x, y));
 }
@@ -169,11 +169,11 @@
 				sysarg_t dx = kfb.pointer_x + x;
 				sysarg_t dy = kfb.pointer_y + y;
-				
+
 				pixel_t pixel = get_pixel(dx, dy);
 				imgmap_put_pixel(kfb.pointer_imgmap, x, y, pixel);
-				
+
 				size_t offset = y * ((POINTER_WIDTH - 1) / 8 + 1) + x / 8;
 				bool visible = pointer_mask[offset] & (1 << (x % 8));
-				
+
 				if (visible) {
 					pixel = (pointer[offset] & (1 << (x % 8))) ?
@@ -193,5 +193,5 @@
 				sysarg_t dx = kfb.pointer_x + x;
 				sysarg_t dy = kfb.pointer_y + y;
-				
+
 				pixel_t pixel =
 				    imgmap_get_pixel(kfb.pointer_imgmap, x, y);
@@ -210,11 +210,11 @@
 	if ((y1 >= y2) || (x1 >= x2))
 		return;
-	
+
 	uint8_t cbuf[4];
 	kfb.pixel2visual(cbuf, color);
-	
+
 	for (sysarg_t y = y1; y < y2; y++) {
 		uint8_t *dst = kfb.addr + FB_POS(x1, y);
-		
+
 		for (sysarg_t x = x1; x < x2; x++) {
 			memcpy(dst, cbuf, kfb.pixel_bytes);
@@ -290,5 +290,5 @@
 {
 	size_t word_size = sizeof(unsigned long);
-	
+
 	/*
 	 * Prepare a pair of words, one filled with foreground-color
@@ -297,5 +297,5 @@
 	unsigned long fg_buf;
 	unsigned long bg_buf;
-	
+
 	for (size_t i = 0; i < word_size / kfb.pixel_bytes; i++) {
 		kfb.pixel2visual(&((uint8_t *) &bg_buf)[i * kfb.pixel_bytes],
@@ -304,20 +304,20 @@
 		    fgcolor);
 	}
-	
+
 	/* Pointer to the current position in the mask. */
 	unsigned long *maskp =
 	    (unsigned long *) &kfb.glyphs[GLYPH_POS(
 	    fb_font_glyph(ch), 0, inverted)];
-	
+
 	/* Pointer to the current position on the screen. */
 	unsigned long *dst =
 	    (unsigned long *) &kfb.addr[FB_POS(x, y)];
-	
+
 	/* Width of the character cell in words. */
 	size_t ww = FONT_WIDTH * kfb.pixel_bytes / word_size;
-	
+
 	/* Offset to add when moving to another screen scanline. */
 	size_t d_add = kfb.scanline - FONT_WIDTH * kfb.pixel_bytes;
-	
+
 	for (size_t yd = 0; yd < FONT_SCANLINES; yd++) {
 		/*
@@ -329,5 +329,5 @@
 			*dst++ = (fg_buf & mask) | (bg_buf & ~mask);
 		}
-		
+
 		/* Move to the beginning of the next scanline of the cell. */
 		dst = (unsigned long *) ((uint8_t *) dst + d_add);
@@ -353,9 +353,9 @@
 	/* Character glyph */
 	uint16_t glyph = fb_font_glyph(ch);
-	
+
 	/* Pre-render the foreground and background color pixels. */
 	uint8_t fg_buf[4];
 	uint8_t bg_buf[4];
-	
+
 	if (inverted) {
 		kfb.pixel2visual(bg_buf, fgcolor);
@@ -365,27 +365,27 @@
 		kfb.pixel2visual(fg_buf, fgcolor);
 	}
-	
+
 	/* Pointer to the current position on the screen. */
 	uint8_t *dst = (uint8_t *) &kfb.addr[FB_POS(x, y)];
-	
+
 	/* Offset to add when moving to another screen scanline. */
 	size_t d_add = kfb.scanline - FONT_WIDTH * kfb.pixel_bytes;
-	
+
 	for (size_t yd = 0; yd < FONT_SCANLINES; yd++) {
 		/* Byte containing bits of the glyph scanline. */
 		uint8_t byte = fb_font[glyph][yd];
-		
+
 		for (size_t i = 0; i < FONT_WIDTH; i++) {
 			/* Choose color based on the current bit. */
 			uint8_t *src = (byte & 0x80) ? fg_buf : bg_buf;
-			
+
 			/* Copy the pixel. */
 			for (size_t j = 0; j < kfb.pixel_bytes; j++)
 				*dst++ = *src++;
-			
+
 			/* Move to the next bit. */
 			byte <<= 1;
 		}
-		
+
 		/* Move to the beginning of the next scanline of the cell. */
 		dst += d_add;
@@ -403,17 +403,17 @@
 {
 	kfb_vp_t *kfb_vp = (kfb_vp_t *) vp->data;
-	
+
 	sysarg_t x = vp->x + COL2X(col);
 	sysarg_t y = vp->y + ROW2Y(row);
-	
+
 	charfield_t *field = screenbuffer_field_at(vp->backbuf, col, row);
-	
+
 	pixel_t bgcolor = 0;
 	pixel_t fgcolor = 0;
 	attrs_rgb(field->attrs, &bgcolor, &fgcolor);
-	
+
 	bool inverted = (vp->cursor_flash) &&
 	    screenbuffer_cursor_at(vp->backbuf, col, row);
-	
+
 	(*kfb_vp->draw_char)(x, y, inverted, field->ch, bgcolor, fgcolor);
 }
@@ -427,9 +427,9 @@
 			return ENOMEM;
 	}
-	
+
 	for (sysarg_t y = 0; y < kfb.height; y++)
 		memcpy(kfb.backbuf + y * kfb.width * kfb.pixel_bytes,
 		    kfb.addr + FB_POS(0, y), kfb.width * kfb.pixel_bytes);
-	
+
 	return EOK;
 }
@@ -439,10 +439,10 @@
 	if (kfb.backbuf == NULL)
 		return ENOENT;
-	
+
 	for (sysarg_t y = 0; y < kfb.height; y++)
 		memcpy(kfb.addr + FB_POS(0, y),
 		    kfb.backbuf + y * kfb.width * kfb.pixel_bytes,
 		    kfb.width * kfb.pixel_bytes);
-	
+
 	return EOK;
 }
@@ -452,9 +452,9 @@
 {
 	pointer_hide();
-	
+
 	kfb.pointer_x = x;
 	kfb.pointer_y = y;
 	kfb.pointer_visible = visible;
-	
+
 	pointer_show();
 }
@@ -479,5 +479,5 @@
 	if (kfb_vp == NULL)
 		return ENOMEM;
-	
+
 	/*
 	 * Conditions necessary to select aligned glyph
@@ -489,5 +489,5 @@
 	 */
 	size_t word_size = sizeof(unsigned long);
-	
+
 	if (((word_size % kfb.pixel_bytes) == 0)
 	    && ((FONT_WIDTH * kfb.pixel_bytes) % word_size == 0)
@@ -497,10 +497,10 @@
 	else
 		kfb_vp->draw_char = draw_char_fallback;
-	
+
 	vp->attrs.type = CHAR_ATTR_RGB;
 	vp->attrs.val.rgb.bgcolor = DEFAULT_BGCOLOR;
 	vp->attrs.val.rgb.fgcolor = DEFAULT_FGCOLOR;
 	vp->data = (void *) kfb_vp;
-	
+
 	return EOK;
 }
@@ -514,22 +514,22 @@
 {
 	pointer_hide();
-	
+
 	for (sysarg_t row = 0; row < vp->rows; row++) {
 		for (sysarg_t col = 0; col < vp->cols; col++) {
 			charfield_t *field =
 			    screenbuffer_field_at(vp->backbuf, col, row);
-			
+
 			field->ch = 0;
 			field->attrs = vp->attrs;
 		}
 	}
-	
+
 	pixel_t bgcolor = 0;
 	pixel_t fgcolor = 0;
 	attrs_rgb(vp->attrs, &bgcolor, &fgcolor);
-	
+
 	draw_filled_rect(vp->x, vp->y, vp->x + vp->width,
 	    vp->y + vp->height, bgcolor);
-	
+
 	pointer_show();
 }
@@ -569,5 +569,5 @@
 {
 	pointer_hide();
-	
+
 	for (sysarg_t y = 0; y < height; y++) {
 		for (sysarg_t x = 0; x < width; x++) {
@@ -576,5 +576,5 @@
 		}
 	}
-	
+
 	pointer_show();
 }
@@ -605,5 +605,5 @@
 {
 	memset(kfb.glyphs, 0, sz);
-	
+
 	for (unsigned int glyph = 0; glyph < FONT_GLYPHS; glyph++) {
 		for (unsigned int y = 0; y < FONT_SCANLINES; y++) {
@@ -626,46 +626,46 @@
 	if (rc != EOK)
 		present = false;
-	
+
 	if (!present)
 		return ENOENT;
-	
+
 	sysarg_t kind;
 	rc = sysinfo_get_value("fb.kind", &kind);
 	if (rc != EOK)
 		kind = (sysarg_t) -1;
-	
+
 	if (kind != 1)
 		return EINVAL;
-	
+
 	sysarg_t paddr;
 	rc = sysinfo_get_value("fb.address.physical", &paddr);
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t offset;
 	rc = sysinfo_get_value("fb.offset", &offset);
 	if (rc != EOK)
 		offset = 0;
-	
+
 	sysarg_t width;
 	rc = sysinfo_get_value("fb.width", &width);
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t height;
 	rc = sysinfo_get_value("fb.height", &height);
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t scanline;
 	rc = sysinfo_get_value("fb.scanline", &scanline);
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t visual;
 	rc = sysinfo_get_value("fb.visual", &visual);
 	if (rc != EOK)
 		return rc;
-	
+
 	kfb.width = width;
 	kfb.height = height;
@@ -673,5 +673,5 @@
 	kfb.scanline = scanline;
 	kfb.visual = visual;
-	
+
 	switch (visual) {
 	case VISUAL_INDIRECT_8:
@@ -744,17 +744,17 @@
 		return EINVAL;
 	}
-	
+
 	kfb.glyph_scanline = FONT_WIDTH * kfb.pixel_bytes;
 	kfb.glyph_bytes = kfb.glyph_scanline * FONT_SCANLINES;
-	
+
 	size_t sz = 2 * FONT_GLYPHS * kfb.glyph_bytes;
 	kfb.glyphs = (uint8_t *) malloc(sz);
 	if (kfb.glyphs == NULL)
 		return EINVAL;
-	
+
 	render_glyphs(sz);
-	
+
 	kfb.size = scanline * height;
-	
+
 	rc = physmem_map((void *) paddr + offset,
 	    ALIGN_UP(kfb.size, PAGE_SIZE) >> PAGE_WIDTH,
@@ -764,5 +764,5 @@
 		return rc;
 	}
-	
+
 	kfb.pointer_x = 0;
 	kfb.pointer_y = 0;
@@ -770,7 +770,7 @@
 	kfb.pointer_imgmap = imgmap_create(POINTER_WIDTH, POINTER_HEIGHT,
 	    VISUAL_RGB_0_8_8_8, IMGMAP_FLAG_NONE);
-	
+
 	kfb.backbuf = NULL;
-	
+
 	fbdev_t *dev = fbdev_register(&kfb_ops, (void *) &kfb);
 	if (dev == NULL) {
@@ -779,5 +779,5 @@
 		return EINVAL;
 	}
-	
+
 	return EOK;
 }
Index: uspace/srv/hid/output/proto/vt100.c
===================================================================
--- uspace/srv/hid/output/proto/vt100.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/output/proto/vt100.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,5 +77,5 @@
 {
 	char control[MAX_CONTROL];
-	
+
 	snprintf(control, MAX_CONTROL, "\033[%um", mode);
 	state->control_puts(control);
@@ -85,5 +85,5 @@
 {
 	char control[MAX_CONTROL];
-	
+
 	snprintf(control, MAX_CONTROL, "\033[%" PRIun ";%" PRIun "f",
 	    row + 1, col + 1);
@@ -123,15 +123,15 @@
 		vt100_sgr(state, SGR_BGCOLOR + color_map[attrs.val.index.bgcolor & 7]);
 		vt100_sgr(state, SGR_FGCOLOR + color_map[attrs.val.index.fgcolor & 7]);
-		
+
 		if (attrs.val.index.attr & CATTR_BRIGHT)
 			vt100_sgr(state, SGR_BOLD);
-		
+
 		break;
 	case CHAR_ATTR_RGB:
 		vt100_sgr(state, SGR_RESET);
-		
+
 		if (attrs.val.rgb.bgcolor <= attrs.val.rgb.fgcolor)
 			vt100_sgr(state, SGR_REVERSE);
-		
+
 		break;
 	}
@@ -145,18 +145,18 @@
 	if (state == NULL)
 		return NULL;
-	
+
 	state->putchar = putchar_fn;
 	state->control_puts = control_puts_fn;
 	state->flush = flush_fn;
-	
+
 	state->cols = cols;
 	state->rows = rows;
-	
+
 	state->cur_col = (sysarg_t) -1;
 	state->cur_row = (sysarg_t) -1;
-	
+
 	state->cur_attrs.type = CHAR_ATTR_STYLE;
 	state->cur_attrs.val.style = STYLE_NORMAL;
-	
+
 	/* Initialize graphic rendition attributes */
 	vt100_sgr(state, SGR_RESET);
@@ -195,5 +195,5 @@
 	if ((col >= state->cols) || (row >= state->rows))
 		return;
-	
+
 	if ((col != state->cur_col) || (row != state->cur_row)) {
 		vt100_set_pos(state, col, row);
@@ -223,5 +223,5 @@
 	state->putchar(ch == 0 ? ' ' : ch);
 	state->cur_col++;
-	
+
 	if (state->cur_col >= state->cols) {
 		state->cur_row += state->cur_col / state->cols;
Index: uspace/srv/hid/output/proto/vt100.h
===================================================================
--- uspace/srv/hid/output/proto/vt100.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/output/proto/vt100.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -42,9 +42,9 @@
 	sysarg_t cols;
 	sysarg_t rows;
-	
+
 	sysarg_t cur_col;
 	sysarg_t cur_row;
 	char_attrs_t cur_attrs;
-	
+
 	vt100_putchar_t putchar;
 	vt100_control_puts_t control_puts;
Index: uspace/srv/hid/remcons/remcons.c
===================================================================
--- uspace/srv/hid/remcons/remcons.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/remcons/remcons.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -236,5 +236,5 @@
 {
 	telnet_user_t *user = arg;
-	
+
 	task_id_t task;
 	task_wait_t wait;
Index: uspace/srv/hid/rfb/main.c
===================================================================
--- uspace/srv/hid/rfb/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/rfb/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -78,10 +78,10 @@
 {
 	fibril_mutex_lock(&rfb.lock);
-	
+
 	if (x0 + width > rfb.width || y0 + height > rfb.height) {
 		fibril_mutex_unlock(&rfb.lock);
 		return EINVAL;
 	}
-	
+
 	/* TODO update surface_t and use it */
 	if (!rfb.damage_valid) {
@@ -112,7 +112,7 @@
 		}
 	}
-	
+
 	pixelmap_t *map = &vs->cells;
-	
+
 	for (sysarg_t y = y0; y < height + y0; ++y) {
 		for (sysarg_t x = x0; x < width + x0; ++x) {
@@ -122,5 +122,5 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&rfb.lock);
 	return EOK;
@@ -161,5 +161,5 @@
 
 	const char *rfb_name = argv[1];
-	
+
 	char *endptr;
 	unsigned long width = strtoul(argv[2], &endptr, 0);
@@ -169,5 +169,5 @@
 		return 1;
 	}
-	
+
 	unsigned long height = strtoul(argv[3], &endptr, 0);
 	if (*endptr != 0) {
@@ -176,5 +176,5 @@
 		return 1;
 	}
-	
+
 	unsigned long port = 5900;
 	if (argc > 4) {
@@ -186,7 +186,7 @@
 		}
 	}
-	
+
 	rfb_init(&rfb, width, height, rfb_name);
-	
+
 	vis = malloc(sizeof(visualizer_t));
 	if (vis == NULL) {
@@ -194,7 +194,7 @@
 		return 3;
 	}
-	
+
 	graph_init_visualizer(vis);
-	
+
 	pixel_mode.mode.index = 0;
 	pixel_mode.mode.version = 0;
@@ -207,10 +207,10 @@
 	pixel_mode.mode.cell_aspect.height = 1;
 	pixel_mode.mode.cell_visual.pixel_visual = VISUAL_RGB_8_8_8;
-	
+
 	link_initialize(&pixel_mode.link);
 	list_append(&pixel_mode.link, &vis->modes);
-	
+
 	vis->def_mode_idx = 0;
-	
+
 	vis->ops = rfb_ops;
 	vis->dev_ctx = NULL;
@@ -232,5 +232,5 @@
 
 	service_id_t service_id;
-	
+
 	rc = loc_service_register(service_name, &service_id);
 	if (rc != EOK) {
@@ -238,5 +238,5 @@
 		return rc;
 	}
-	
+
 	free(service_name);
 
@@ -247,5 +247,5 @@
 		return 1;
 	}
-	
+
 	rc = loc_service_add_to_cat(service_id, visualizer_category);
 	if (rc != EOK) {
@@ -253,5 +253,5 @@
 		return 1;
 	}
-	
+
 	rc = rfb_listen(&rfb, port);
 	if (rc != EOK) {
@@ -259,5 +259,5 @@
 		return 2;
 	}
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	task_retval(0);
Index: uspace/srv/hid/rfb/rfb.c
===================================================================
--- uspace/srv/hid/rfb/rfb.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/rfb/rfb.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -70,12 +70,12 @@
 		rbuf_out = 0;
 		rbuf_in = 0;
-		
+
 		rc = tcp_conn_recv_wait(conn, rbuf, BUFFER_SIZE, &nrecv);
 		if (rc != EOK)
 			return rc;
-		
+
 		rbuf_in = nrecv;
 	}
-	
+
 	*c = rbuf[rbuf_out++];
 	return EOK;
@@ -177,5 +177,5 @@
 	memset(rfb, 0, sizeof(rfb_t));
 	fibril_mutex_initialize(&rfb->lock);
-	
+
 	rfb_pixel_format_t *pf = &rfb->pixel_format;
 	pf->bpp = 32;
@@ -189,8 +189,8 @@
 	pf->g_shift = 8;
 	pf->b_shift = 16;
-	
+
 	rfb->name = str_dup(name);
 	rfb->supports_trle = false;
-	
+
 	return rfb_set_size(rfb, width, height);
 }
@@ -209,8 +209,8 @@
 	rfb->width = width;
 	rfb->height = height;
-	
+
 	/* Fill with white */
 	memset(rfb->framebuffer.data, 255, new_size);
-	
+
 	return EOK;
 }
@@ -242,5 +242,5 @@
 		}
 	}
-	
+
 	if (first_free_index != -1) {
 		rfb->palette[first_free_index] = PIXEL(255, RED(pixel), GREEN(pixel),
@@ -250,5 +250,5 @@
 		return;
 	}
-	
+
 	/* TODO find nearest color index. We are lazy so return index 0 for now */
 	*buf = 0;
@@ -262,5 +262,5 @@
 	pix |= rfb_scale_channel(GREEN(pixel), pf->g_max) << pf->g_shift;
 	pix |= rfb_scale_channel(BLUE(pixel), pf->b_max) << pf->b_shift;
-	
+
 	if (pf->bpp == 8) {
 		uint8_t pix8 = pix;
@@ -317,11 +317,11 @@
 	size_t size = sizeof(rfb_set_color_map_entries_t) +
 	    rfb->palette_used * sizeof(rfb_color_map_entry_t);
-	
+
 	void *buf = malloc(size);
 	if (buf == NULL)
 		return NULL;
-	
+
 	void *pos = buf;
-	
+
 	rfb_set_color_map_entries_t *scme = pos;
 	scme->message_type = RFB_SMSG_SET_COLOR_MAP_ENTRIES;
@@ -330,5 +330,5 @@
 	rfb_set_color_map_entries_to_be(scme, scme);
 	pos += sizeof(rfb_set_color_map_entries_t);
-	
+
 	rfb_color_map_entry_t *entries = pos;
 	for (unsigned i = 0; i < rfb->palette_used; i++) {
@@ -338,5 +338,5 @@
 		rfb_color_map_entry_to_be(&entries[i], &entries[i]);
 	}
-	
+
 	*psize = size;
 	return buf;
@@ -347,8 +347,8 @@
 	size_t pixel_size = rfb->pixel_format.bpp / 8;
 	size_t size = (rect->width * rect->height * pixel_size);
-	
+
 	if (buf == NULL)
 		return size;
-	
+
 	for (uint16_t y = 0; y < rect->height; y++) {
 		for (uint16_t x = 0; x < rect->width; x++) {
@@ -359,5 +359,5 @@
 		}
 	}
-	
+
 	return size;
 }
@@ -376,5 +376,5 @@
 	ctx->size = pixel_format->bpp / 8;
 	ctx->compress_type = COMP_NONE;
-	
+
 	if (pixel_format->bpp == 32 && pixel_format->depth <= 24) {
 		uint32_t mask = 0;
@@ -382,5 +382,5 @@
 		mask |= pixel_format->g_max << pixel_format->g_shift;
 		mask |= pixel_format->b_max << pixel_format->b_shift;
-		
+
 		if (pixel_format->big_endian) {
 			mask = host2uint32_t_be(mask);
@@ -389,5 +389,5 @@
 			mask = host2uint32_t_le(mask);
 		}
-		
+
 		uint8_t *mask_data = (uint8_t *) &mask;
 		if (mask_data[0] == 0) {
@@ -407,5 +407,5 @@
 	uint8_t data[4];
 	rfb_encode_pixel(rfb, data, pixel);
-	
+
 	switch (cpixel->compress_type) {
 	case COMP_NONE:
@@ -424,5 +424,5 @@
 	if (buf == NULL)
 		return size;
-	
+
 	for (uint16_t y = tile->y; y < tile->y + tile->height; y++) {
 		for (uint16_t x = tile->x; x < tile->x + tile->width; x++) {
@@ -431,5 +431,5 @@
 		}
 	}
-	
+
 	return size;
 }
@@ -446,5 +446,5 @@
 		}
 	}
-	
+
 	/* OK, encode it */
 	if (buf)
@@ -458,5 +458,5 @@
 	cpixel_ctx_t cpixel;
 	cpixel_context_init(&cpixel, &rfb->pixel_format);
-	
+
 	size_t size = 0;
 	for (uint16_t y = 0; y < rect->height; y += 16) {
@@ -468,10 +468,10 @@
 				.height = (y + 16 <= rect->height ? 16 : rect->height - y)
 			};
-			
+
 			size += 1;
 			uint8_t *tile_enctype_ptr = buf;
 			if (buf)
 				buf +=  1;
-			
+
 			uint8_t tile_enctype = RFB_TILE_ENCODING_SOLID;
 			size_t tile_size;
@@ -482,5 +482,5 @@
 				tile_enctype = RFB_TILE_ENCODING_RAW;
 			}
-			
+
 			if (buf) {
 				*tile_enctype_ptr = tile_enctype;
@@ -502,5 +502,5 @@
 		rfb->damage_rect.height = rfb->height;
 	}
-	
+
 
 	/* We send only single raw rectangle right now */
@@ -509,5 +509,5 @@
 	    rfb_rect_encode_raw(rfb, &rfb->damage_rect, NULL)
 	    ;
-	
+
 	void *buf = malloc(buf_size);
 	if (buf == NULL) {
@@ -516,5 +516,5 @@
 	}
 	memset(buf, 0, buf_size);
-	
+
 	void *pos = buf;
 	rfb_framebuffer_update_t *fbu = buf;
@@ -523,10 +523,10 @@
 	rfb_framebuffer_update_to_be(fbu, fbu);
 	pos += sizeof(rfb_framebuffer_update_t);
-	
+
 	rfb_rectangle_t *rect = pos;
 	pos += sizeof(rfb_rectangle_t);
-	
+
 	*rect = rfb->damage_rect;
-	
+
 	if (rfb->supports_trle) {
 		rect->enctype = RFB_ENCODING_TRLE;
@@ -538,10 +538,10 @@
 	}
 	rfb_rectangle_to_be(rect, rect);
-	
+
 	rfb->damage_valid = false;
-	
+
 	size_t send_palette_size = 0;
 	void *send_palette = NULL;
-	
+
 	if (!rfb->pixel_format.true_color) {
 		send_palette = rfb_send_palette_message(rfb, &send_palette_size);
@@ -552,7 +552,7 @@
 		}
 	}
-	
+
 	fibril_mutex_unlock(&rfb->lock);
-	
+
 	if (!rfb->pixel_format.true_color) {
 		errno_t rc = tcp_conn_send(conn, send_palette, send_palette_size);
@@ -562,8 +562,8 @@
 		}
 	}
-	
+
 	errno_t rc = tcp_conn_send(conn, buf, buf_size);
 	free(buf);
-	
+
 	return rc;
 }
@@ -605,5 +605,5 @@
 		return;
 	}
-	
+
 	char client_version[12];
 	rc = recv_chars(conn, client_version, 12);
@@ -613,10 +613,10 @@
 		return;
 	}
-	
+
 	if (memcmp(client_version, "RFB 003.008\n", 12) != 0) {
 		log_msg(LOG_DEFAULT, LVL_WARN, "Client version is not RFB 3.8");
 		return;
 	}
-	
+
 	/* Security handshake
 	 * 1 security type supported, which is 1 - None
@@ -631,5 +631,5 @@
 		return;
 	}
-	
+
 	char selected_sec_type = 0;
 	rc = recv_char(conn, &selected_sec_type);
@@ -651,5 +651,5 @@
 		return;
 	}
-	
+
 	/* Client init */
 	char shared_flag;
@@ -660,5 +660,5 @@
 		return;
 	}
-	
+
 	/* Server init */
 	fibril_mutex_lock(&rfb->lock);
@@ -684,5 +684,5 @@
 		return;
 	}
-	
+
 	while (true) {
 		char message_type = 0;
@@ -693,5 +693,5 @@
 			return;
 		}
-		
+
 		rfb_set_pixel_format_t spf;
 		rfb_set_encodings_t se;
@@ -765,5 +765,5 @@
 	inet_ep_t ep;
 	errno_t rc;
-	
+
 	rc = tcp_create(&tcp);
 	if (rc != EOK) {
@@ -771,8 +771,8 @@
 		goto error;
 	}
-	
+
 	inet_ep_init(&ep);
 	ep.port = port;
-	
+
 	rc = tcp_listener_create(tcp, &ep, &listen_cb, rfb, &conn_cb, rfb,
 	    &lst);
@@ -781,8 +781,8 @@
 		goto error;
 	}
-	
+
 	rfb->tcp = tcp;
 	rfb->lst = lst;
-	
+
 	return EOK;
 error:
Index: uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
===================================================================
--- uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -83,5 +83,5 @@
 {
 	printf("%s: S3C24xx touchscreen driver\n", NAME);
-	
+
 	async_set_fallback_port_handler(s3c24xx_ts_connection, NULL);
 	errno_t rc = loc_server_register(NAME);
@@ -278,5 +278,5 @@
 	button = 1;
 	press = 0;
-	
+
 	async_exch_t *exch = async_exchange_begin(ts->client_sess);
 	async_msg_2(exch, MOUSEEV_BUTTON_EVENT, button, press);
@@ -377,9 +377,9 @@
 {
 	async_answer_0(iid, EOK);
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call)) {
 			if (ts->client_sess != NULL) {
@@ -387,9 +387,9 @@
 				ts->client_sess = NULL;
 			}
-			
+
 			async_answer_0(callid, EOK);
 			return;
 		}
-		
+
 		async_sess_t *sess =
 		    async_callback_receive_start(EXCHANGE_SERIALIZE, &call);
Index: uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
===================================================================
--- uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -80,5 +80,5 @@
 {
 	printf("%s: S3C24xx on-chip UART driver\n", NAME);
-	
+
 	async_set_fallback_port_handler(s3c24xx_uart_connection, uart);
 	errno_t rc = loc_server_register(NAME);
Index: uspace/srv/klog/klog.c
===================================================================
--- uspace/srv/klog/klog.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/klog/klog.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -61,5 +61,5 @@
 	uint32_t level;
 	char message[0];
-	
+
 } __attribute__((__packed__)) log_entry_t;
 
@@ -107,16 +107,16 @@
 		return;
 	}
-	
+
 	size_t offset = 0;
 	while (offset < len) {
 		size_t entry_len = *((unaligned_size_t *) (buffer + offset));
-		
+
 		if (offset + entry_len > len || entry_len < sizeof(log_entry_t))
 			break;
-		
+
 		log_entry_t *buf = malloc(entry_len + 1);
 		if (buf == NULL)
 			break;
-		
+
 		item_t *item = malloc(sizeof(item_t));
 		if (item == NULL) {
@@ -124,5 +124,5 @@
 			break;
 		}
-		
+
 		memcpy(buf, buffer + offset, entry_len);
 		*((uint8_t *) buf + entry_len) = 0;
@@ -131,5 +131,5 @@
 		item->data = buf;
 		prodcons_produce(&pc, &item->link);
-		
+
 		offset += entry_len;
 	}
@@ -148,9 +148,9 @@
 static errno_t consumer(void *data)
 {
-	
+
 	while (true) {
 		link_t *link = prodcons_consume(&pc);
 		item_t *item = list_get_instance(link, item_t, link);
-		
+
 		if (item->size < sizeof(log_entry_t)) {
 			free(item->data);
@@ -158,5 +158,5 @@
 			continue;
 		}
-		
+
 		if (item->data->facility == LF_USPACE) {
 			/* Avoid reposting messages */
@@ -165,20 +165,20 @@
 			continue;
 		}
-		
+
 		log_t ctx = kernel_ctx;
 		if (item->data->facility < facility_len) {
 			ctx = facility_ctx[item->data->facility];
 		}
-		
+
 		log_level_t lvl = item->data->level;
 		if (lvl > LVL_LIMIT)
 			lvl = LVL_NOTE;
-		
+
 		log_msg(ctx, lvl, "%s", item->data->message);
-		
+
 		free(item->data);
 		free(item);
 	}
-	
+
 	return EOK;
 }
@@ -199,9 +199,9 @@
 	 * starving.
 	 */
-	
+
 	fibril_mutex_lock(&mtx);
-	
+
 	producer();
-	
+
 	async_event_unmask(EVENT_KLOG);
 	fibril_mutex_unlock(&mtx);
@@ -215,10 +215,10 @@
 		return rc;
 	}
-	
+
 	kernel_ctx = log_create("kernel", LOG_NO_PARENT);
 	for (unsigned int i = 0; i < facility_len; i++) {
 		facility_ctx[i] = log_create(facility_name[i], kernel_ctx);
 	}
-	
+
 	buffer = malloc(BUFFER_SIZE);
 	if (buffer == NULL) {
@@ -226,5 +226,5 @@
 		return 1;
 	}
-	
+
 	prodcons_initialize(&pc);
 	rc = async_event_subscribe(EVENT_KLOG, klog_notification_received, NULL);
@@ -234,5 +234,5 @@
 		return rc;
 	}
-	
+
 	fid_t fid = fibril_create(consumer, NULL);
 	if (!fid) {
@@ -241,15 +241,15 @@
 		return ENOMEM;
 	}
-	
+
 	fibril_add_ready(fid);
 	async_event_unmask(EVENT_KLOG);
-	
+
 	fibril_mutex_lock(&mtx);
 	producer();
 	fibril_mutex_unlock(&mtx);
-	
+
 	task_retval(0);
 	async_manager();
-	
+
 	return 0;
 }
Index: uspace/srv/loader/main.c
===================================================================
--- uspace/srv/loader/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/loader/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -95,7 +95,7 @@
 	task_id_t task_id;
 	size_t len;
-	
+
 	task_id = task_get_id();
-	
+
 	if (!async_data_read_receive(&callid, &len)) {
 		async_answer_0(callid, EINVAL);
@@ -103,8 +103,8 @@
 		return;
 	}
-	
+
 	if (len > sizeof(task_id))
 		len = sizeof(task_id);
-	
+
 	async_data_read_finalize(callid, &task_id, len);
 	async_answer_0(rid, EOK);
@@ -120,12 +120,12 @@
 	char *buf;
 	errno_t rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, NULL);
-	
+
 	if (rc == EOK) {
 		if (cwd != NULL)
 			free(cwd);
-		
+
 		cwd = buf;
 	}
-	
+
 	async_answer_0(rid, rc);
 }
@@ -158,5 +158,5 @@
 		return;
 	}
-	
+
 	progname = name;
 	program_fd = file;
@@ -174,5 +174,5 @@
 	size_t buf_size;
 	errno_t rc = async_data_write_accept((void **) &buf, true, 0, 0, 0, &buf_size);
-	
+
 	if (rc == EOK) {
 		/*
@@ -181,5 +181,5 @@
 		char *cur = buf;
 		int count = 0;
-		
+
 		while (cur < buf + buf_size) {
 			size_t arg_size = str_size(cur);
@@ -187,5 +187,5 @@
 			count++;
 		}
-		
+
 		/*
 		 * Allocate new argv
@@ -197,5 +197,5 @@
 			return;
 		}
-		
+
 		/*
 		 * Fill the new argv with argument pointers
@@ -205,5 +205,5 @@
 		while (cur < buf + buf_size) {
 			_argv[count] = cur;
-			
+
 			size_t arg_size = str_size(cur);
 			cur += arg_size + 1;
@@ -211,5 +211,5 @@
 		}
 		_argv[count] = NULL;
-		
+
 		/*
 		 * Copy temporary data to global variables
@@ -217,13 +217,13 @@
 		if (arg_buf != NULL)
 			free(arg_buf);
-		
+
 		if (argv != NULL)
 			free(argv);
-		
+
 		argc = count;
 		arg_buf = buf;
 		argv = _argv;
 	}
-	
+
 	async_answer_0(rid, rc);
 }
@@ -289,15 +289,15 @@
 		return 1;
 	}
-	
+
 	elf_set_pcb(&prog_info, &pcb);
-	
+
 	pcb.cwd = cwd;
-	
+
 	pcb.argc = argc;
 	pcb.argv = argv;
-	
+
 	pcb.inbox = inbox;
 	pcb.inbox_entries = inbox_entries;
-	
+
 	async_answer_0(rid, EOK);
 	return 0;
@@ -317,5 +317,5 @@
 	/* Set the task name. */
 	task_set_name(progname);
-	
+
 	/* Run program */
 	DPRINTF("Reply OK\n");
@@ -323,5 +323,5 @@
 	DPRINTF("Jump to entry point at %p\n", pcb.entry);
 	entry_point_jmp(prog_info.finfo.entry, &pcb);
-	
+
 	/* Not reached */
 }
@@ -339,21 +339,21 @@
 		return;
 	}
-	
+
 	connected = true;
-	
+
 	/* Accept the connection */
 	async_answer_0(iid, EOK);
-	
+
 	/* Ignore parameters, the connection is already open */
 	(void) icall;
-	
+
 	while (true) {
 		errno_t retval;
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			exit(0);
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case LOADER_GET_TASKID:
@@ -382,5 +382,5 @@
 			break;
 		}
-		
+
 		async_answer_0(callid, retval);
 	}
@@ -392,5 +392,5 @@
 {
 	async_set_fallback_port_handler(ldr_connection, NULL);
-	
+
 	/* Introduce this task to the NS (give it our task ID). */
 	task_id_t id = task_get_id();
@@ -398,5 +398,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Create port */
 	port_id_t port;
@@ -404,12 +404,12 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Register at naming service. */
 	rc = service_register(SERVICE_LOADER);
 	if (rc != EOK)
 		return rc;
-	
+
 	async_manager();
-	
+
 	/* Never reached */
 	return 0;
Index: uspace/srv/locsrv/category.h
===================================================================
--- uspace/srv/locsrv/category.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/locsrv/category.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -73,5 +73,5 @@
 	/** Link to loc_service_t.cat_memb list */
 	link_t svc_link;
-	
+
 	/** Category */
 	category_t *cat;
Index: uspace/srv/locsrv/locsrv.c
===================================================================
--- uspace/srv/locsrv/locsrv.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/locsrv/locsrv.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -100,9 +100,9 @@
 	 * and implement some version of LRU algorithm, avoid overflow
 	 */
-	
+
 	fibril_mutex_lock(&create_id_mutex);
 	last_id++;
 	fibril_mutex_unlock(&create_id_mutex);
-	
+
 	return last_id;
 }
@@ -121,9 +121,9 @@
 	size_t slash_offset = 0;
 	size_t slash_after = 0;
-	
+
 	size_t offset = 0;
 	size_t offset_prev = 0;
 	wchar_t c;
-	
+
 	while ((c = str_decode(fqsn, &offset, STR_NO_LIMIT)) != 0) {
 		if (c == '/') {
@@ -134,9 +134,9 @@
 		offset_prev = offset;
 	}
-	
+
 	/* More than one slash */
 	if (cnt > 1)
 		return false;
-	
+
 	/* No slash -> namespace is empty */
 	if (cnt == 0) {
@@ -144,5 +144,5 @@
 		if (*ns_name == NULL)
 			return false;
-		
+
 		*name = str_dup(fqsn);
 		if (*name == NULL) {
@@ -150,5 +150,5 @@
 			return false;
 		}
-		
+
 		if (str_cmp(*name, "") == 0) {
 			free(*name);
@@ -156,13 +156,13 @@
 			return false;
 		}
-		
+
 		return true;
 	}
-	
+
 	/* Exactly one slash */
 	*ns_name = str_ndup(fqsn, slash_offset);
 	if (*ns_name == NULL)
 		return false;
-	
+
 	*name = str_dup(fqsn + slash_after);
 	if (*name == NULL) {
@@ -170,5 +170,5 @@
 		return false;
 	}
-	
+
 	if (str_cmp(*name, "") == 0) {
 		free(*name);
@@ -176,5 +176,5 @@
 		return false;
 	}
-	
+
 	return true;
 }
@@ -184,10 +184,10 @@
 {
 	assert(fibril_mutex_is_locked(&services_list_mutex));
-	
+
 	list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) {
 		if (str_cmp(namespace->name, name) == 0)
 			return namespace;
 	}
-	
+
 	return NULL;
 }
@@ -201,10 +201,10 @@
 {
 	assert(fibril_mutex_is_locked(&services_list_mutex));
-	
+
 	list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) {
 		if (namespace->id == id)
 			return namespace;
 	}
-	
+
 	return NULL;
 }
@@ -215,5 +215,5 @@
 {
 	assert(fibril_mutex_is_locked(&services_list_mutex));
-	
+
 	list_foreach(services_list, services, loc_service_t, service) {
 		if ((str_cmp(service->namespace->name, ns_name) == 0)
@@ -221,5 +221,5 @@
 			return service;
 	}
-	
+
 	return NULL;
 }
@@ -233,10 +233,10 @@
 {
 	assert(fibril_mutex_is_locked(&services_list_mutex));
-	
+
 	list_foreach(services_list, services, loc_service_t, service) {
 		if (service->id == id)
 			return service;
 	}
-	
+
 	return NULL;
 }
@@ -246,15 +246,15 @@
 {
 	loc_namespace_t *namespace;
-	
+
 	assert(fibril_mutex_is_locked(&services_list_mutex));
-	
+
 	namespace = loc_namespace_find_name(ns_name);
 	if (namespace != NULL)
 		return namespace;
-	
+
 	namespace = (loc_namespace_t *) malloc(sizeof(loc_namespace_t));
 	if (namespace == NULL)
 		return NULL;
-	
+
 	namespace->name = str_dup(ns_name);
 	if (namespace->name == NULL) {
@@ -262,13 +262,13 @@
 		return NULL;
 	}
-	
+
 	namespace->id = loc_create_id();
 	namespace->refcnt = 0;
-	
+
 	/*
 	 * Insert new namespace into list of registered namespaces
 	 */
 	list_append(&(namespace->namespaces), &namespaces_list);
-	
+
 	return namespace;
 }
@@ -281,5 +281,5 @@
 	if (namespace->refcnt == 0) {
 		list_remove(&(namespace->namespaces));
-		
+
 		free(namespace->name);
 		free(namespace);
@@ -311,9 +311,9 @@
 	assert(fibril_mutex_is_locked(&services_list_mutex));
 	assert(fibril_mutex_is_locked(&cdir.mutex));
-	
+
 	loc_namespace_delref(service->namespace);
 	list_remove(&(service->services));
 	list_remove(&(service->server_services));
-	
+
 	/* Remove service from all categories. */
 	while (!list_empty(&service->cat_memb)) {
@@ -322,10 +322,10 @@
 		    svc_link);
 		category_t *cat = memb->cat;
-		
+
 		fibril_mutex_lock(&cat->mutex);
 		category_remove_service(memb);
 		fibril_mutex_unlock(&cat->mutex);
 	}
-	
+
 	free(service->name);
 	free(service);
@@ -340,10 +340,10 @@
 	ipc_call_t icall;
 	ipc_callid_t iid = async_get_call(&icall);
-	
+
 	if (IPC_GET_IMETHOD(icall) != LOC_SERVER_REGISTER) {
 		async_answer_0(iid, EREFUSED);
 		return NULL;
 	}
-	
+
 	loc_server_t *server =
 	    (loc_server_t *) malloc(sizeof(loc_server_t));
@@ -352,5 +352,5 @@
 		return NULL;
 	}
-	
+
 	/*
 	 * Get server name
@@ -363,5 +363,5 @@
 		return NULL;
 	}
-	
+
 	/*
 	 * Create connection to the server
@@ -374,5 +374,5 @@
 		return NULL;
 	}
-	
+
 	/*
 	 * Initialize mutex for list of services
@@ -380,5 +380,5 @@
 	 */
 	fibril_mutex_initialize(&server->services_mutex);
-	
+
 	/*
 	 * Initialize list of supplied services
@@ -386,12 +386,12 @@
 	list_initialize(&server->services);
 	link_initialize(&server->servers);
-	
+
 	fibril_mutex_lock(&servers_list_mutex);
-	
+
 	/* TODO:
 	 * Check that no server with name equal to
 	 * server->name is registered
 	 */
-	
+
 	/*
 	 * Insert new server into list of registered servers
@@ -399,7 +399,7 @@
 	list_append(&(server->servers), &servers_list);
 	fibril_mutex_unlock(&servers_list_mutex);
-	
+
 	async_answer_0(iid, EOK);
-	
+
 	return server;
 }
@@ -414,18 +414,18 @@
 	if (server == NULL)
 		return EEXIST;
-	
+
 	fibril_mutex_lock(&servers_list_mutex);
-	
+
 	if (server->sess)
 		async_hangup(server->sess);
-	
+
 	/* Remove it from list of servers */
 	list_remove(&(server->servers));
-	
+
 	/* Unregister all its services */
 	fibril_mutex_lock(&services_list_mutex);
 	fibril_mutex_lock(&server->services_mutex);
 	fibril_mutex_lock(&cdir.mutex);
-	
+
 	while (!list_empty(&server->services)) {
 		loc_service_t *service = list_get_instance(
@@ -434,16 +434,16 @@
 		loc_service_unregister_core(service);
 	}
-	
+
 	fibril_mutex_unlock(&cdir.mutex);
 	fibril_mutex_unlock(&server->services_mutex);
 	fibril_mutex_unlock(&services_list_mutex);
 	fibril_mutex_unlock(&servers_list_mutex);
-	
+
 	/* Free name and server */
 	if (server->name != NULL)
 		free(server->name);
-	
+
 	free(server);
-	
+
 	loc_category_change_event();
 	return EOK;
@@ -460,5 +460,5 @@
 		return;
 	}
-	
+
 	/* Create new service entry */
 	loc_service_t *service =
@@ -468,5 +468,5 @@
 		return;
 	}
-	
+
 	/* Get fqsn */
 	char *fqsn;
@@ -478,5 +478,5 @@
 		return;
 	}
-	
+
 	char *ns_name;
 	if (!loc_fqsn_split(fqsn, &ns_name, &service->name)) {
@@ -486,9 +486,9 @@
 		return;
 	}
-	
+
 	free(fqsn);
-	
+
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	loc_namespace_t *namespace = loc_namespace_create(ns_name);
 	free(ns_name);
@@ -500,9 +500,9 @@
 		return;
 	}
-	
+
 	link_initialize(&service->services);
 	link_initialize(&service->server_services);
 	list_initialize(&service->cat_memb);
-	
+
 	/* Check that service is not already registered */
 	if (loc_service_find_name(namespace->name, service->name) != NULL) {
@@ -516,5 +516,5 @@
 		return;
 	}
-	
+
 	/* Get unique service ID */
 	service->id = loc_create_id();
@@ -522,17 +522,17 @@
 	loc_namespace_addref(namespace, service);
 	service->server = server;
-	
+
 	/* Insert service into list of all services  */
 	list_append(&service->services, &services_list);
-	
+
 	/* Insert service into list of services supplied by one server */
 	fibril_mutex_lock(&service->server->services_mutex);
-	
+
 	list_append(&service->server_services, &service->server->services);
-	
+
 	fibril_mutex_unlock(&service->server->services_mutex);
 	fibril_condvar_broadcast(&services_list_cv);
 	fibril_mutex_unlock(&services_list_mutex);
-	
+
 	async_answer_1(iid, EOK, service->id);
 }
@@ -545,5 +545,5 @@
 {
 	loc_service_t *svc;
-	
+
 	fibril_mutex_lock(&services_list_mutex);
 	svc = loc_service_find_id(IPC_GET_ARG1(*icall));
@@ -553,5 +553,5 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&cdir.mutex);
 	loc_service_unregister_core(svc);
@@ -574,5 +574,5 @@
 	size_t act_size;
 	category_t *cat;
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -580,7 +580,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&cdir.mutex);
-	
+
 	cat = category_get(&cdir, IPC_GET_ARG1(*icall));
 	if (cat == NULL) {
@@ -590,5 +590,5 @@
 		return;
 	}
-	
+
 	act_size = str_size(cat->name);
 	if (act_size > size) {
@@ -598,10 +598,10 @@
 		return;
 	}
-	
+
 	errno_t retval = async_data_read_finalize(callid, cat->name,
 	    min(size, act_size));
-	
+
 	fibril_mutex_unlock(&cdir.mutex);
-	
+
 	async_answer_0(iid, retval);
 }
@@ -614,5 +614,5 @@
 	loc_service_t *svc;
 	char *fqn;
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -620,7 +620,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	svc = loc_service_find_id(IPC_GET_ARG1(*icall));
 	if (svc == NULL) {
@@ -630,5 +630,5 @@
 		return;
 	}
-	
+
 	if (asprintf(&fqn, "%s/%s", svc->namespace->name, svc->name) < 0) {
 		fibril_mutex_unlock(&services_list_mutex);
@@ -637,5 +637,5 @@
 		return;
 	}
-	
+
 	act_size = str_size(fqn);
 	if (act_size > size) {
@@ -646,11 +646,11 @@
 		return;
 	}
-	
+
 	errno_t retval = async_data_read_finalize(callid, fqn,
 	    min(size, act_size));
 	free(fqn);
-	
+
 	fibril_mutex_unlock(&services_list_mutex);
-	
+
 	async_answer_0(iid, retval);
 }
@@ -662,5 +662,5 @@
 	size_t act_size;
 	loc_service_t *svc;
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -668,7 +668,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	svc = loc_service_find_id(IPC_GET_ARG1(*icall));
 	if (svc == NULL) {
@@ -678,5 +678,5 @@
 		return;
 	}
-	
+
 	if (svc->server == NULL) {
 		fibril_mutex_unlock(&services_list_mutex);
@@ -685,5 +685,5 @@
 		return;
 	}
-	
+
 	act_size = str_size(svc->server->name);
 	if (act_size > size) {
@@ -693,10 +693,10 @@
 		return;
 	}
-	
+
 	errno_t retval = async_data_read_finalize(callid, svc->server->name,
 	    min(size, act_size));
-	
+
 	fibril_mutex_unlock(&services_list_mutex);
-	
+
 	async_answer_0(iid, retval);
 }
@@ -711,5 +711,5 @@
 {
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	/*
 	 * Get ID from request
@@ -718,5 +718,5 @@
 	service_id_t id = IPC_GET_ARG2(*call);
 	loc_service_t *svc = loc_service_find_id(id);
-	
+
 	if ((svc == NULL) || (svc->server == NULL) || (!svc->server->sess)) {
 		fibril_mutex_unlock(&services_list_mutex);
@@ -724,9 +724,9 @@
 		return;
 	}
-	
+
 	async_exch_t *exch = async_exchange_begin(svc->server->sess);
 	async_forward_fast(callid, exch, iface, svc->id, 0, IPC_FF_NONE);
 	async_exchange_end(exch);
-	
+
 	fibril_mutex_unlock(&services_list_mutex);
 }
@@ -741,5 +741,5 @@
 {
 	char *fqsn;
-	
+
 	/* Get fqsn */
 	errno_t rc = async_data_write_accept((void **) &fqsn, true, 0,
@@ -749,5 +749,5 @@
 		return;
 	}
-	
+
 	char *ns_name;
 	char *name;
@@ -757,17 +757,17 @@
 		return;
 	}
-	
+
 	free(fqsn);
-	
+
 	fibril_mutex_lock(&services_list_mutex);
 	const loc_service_t *svc;
-	
+
 recheck:
-	
+
 	/*
 	 * Find service name in the list of known services.
 	 */
 	svc = loc_service_find_name(ns_name, name);
-	
+
 	/*
 	 * Device was not found.
@@ -780,5 +780,5 @@
 			goto recheck;
 		}
-		
+
 		async_answer_0(iid, ENOENT);
 		free(ns_name);
@@ -787,7 +787,7 @@
 		return;
 	}
-	
+
 	async_answer_1(iid, EOK, svc->id);
-	
+
 	fibril_mutex_unlock(&services_list_mutex);
 	free(ns_name);
@@ -804,5 +804,5 @@
 {
 	char *name;
-	
+
 	/* Get service name */
 	errno_t rc = async_data_write_accept((void **) &name, true, 0,
@@ -812,15 +812,15 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&services_list_mutex);
 	const loc_namespace_t *namespace;
-	
+
 recheck:
-	
+
 	/*
 	 * Find namespace name in the list of known namespaces.
 	 */
 	namespace = loc_namespace_find_name(name);
-	
+
 	/*
 	 * Namespace was not found.
@@ -833,5 +833,5 @@
 			goto recheck;
 		}
-		
+
 		async_answer_0(iid, ENOENT);
 		free(name);
@@ -839,7 +839,7 @@
 		return;
 	}
-	
+
 	async_answer_1(iid, EOK, namespace->id);
-	
+
 	fibril_mutex_unlock(&services_list_mutex);
 	free(name);
@@ -862,5 +862,5 @@
 		return;
 	}
-	
+
 	async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE);
 	if (sess == NULL) {
@@ -869,12 +869,12 @@
 		return;
 	}
-	
+
 	cb_sess->sess = sess;
 	link_initialize(&cb_sess->cb_sess_list);
-	
+
 	fibril_mutex_lock(&callback_sess_mutex);
 	list_append(&cb_sess->cb_sess_list, &callback_sess_list);
 	fibril_mutex_unlock(&callback_sess_mutex);
-	
+
 	async_answer_0(iid, EOK);
 }
@@ -883,5 +883,5 @@
 {
 	fibril_mutex_lock(&callback_sess_mutex);
-	
+
 	list_foreach(callback_sess_list, cb_sess_list, cb_sess_t, cb_sess) {
 		async_exch_t *exch = async_exchange_begin(cb_sess->sess);
@@ -889,5 +889,5 @@
 		async_exchange_end(exch);
 	}
-	
+
 	fibril_mutex_unlock(&callback_sess_mutex);
 }
@@ -903,5 +903,5 @@
 	char *name;
 	category_t *cat;
-	
+
 	/* Get service name */
 	errno_t rc = async_data_write_accept((void **) &name, true, 0,
@@ -911,5 +911,5 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&cdir.mutex);
 
@@ -920,5 +920,5 @@
 		goto cleanup;
 	}
-	
+
 	async_answer_1(iid, EOK, cat->id);
 cleanup:
@@ -930,5 +930,5 @@
 {
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	loc_namespace_t *namespace =
 	    loc_namespace_find_id(IPC_GET_ARG1(*icall));
@@ -942,5 +942,5 @@
 	} else
 		async_answer_1(iid, EOK, LOC_OBJECT_NAMESPACE);
-	
+
 	fibril_mutex_unlock(&services_list_mutex);
 }
@@ -956,5 +956,5 @@
 {
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	loc_namespace_t *namespace =
 	    loc_namespace_find_id(IPC_GET_ARG1(*icall));
@@ -963,5 +963,5 @@
 	else
 		async_answer_1(iid, EOK, namespace->refcnt);
-	
+
 	fibril_mutex_unlock(&services_list_mutex);
 }
@@ -973,5 +973,5 @@
 	size_t act_size;
 	errno_t rc;
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -979,5 +979,5 @@
 		return;
 	}
-	
+
 	category_id_t *id_buf = (category_id_t *) malloc(size);
 	if (id_buf == NULL) {
@@ -987,7 +987,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&cdir.mutex);
-	
+
 	rc = categ_dir_get_categories(&cdir, id_buf, size, &act_size);
 	if (rc != EOK) {
@@ -997,10 +997,10 @@
 		return;
 	}
-	
+
 	fibril_mutex_unlock(&cdir.mutex);
-	
+
 	errno_t retval = async_data_read_finalize(callid, id_buf, size);
 	free(id_buf);
-	
+
 	async_answer_1(iid, retval, act_size);
 }
@@ -1015,5 +1015,5 @@
 		return;
 	}
-	
+
 	if ((size % sizeof(loc_sdesc_t)) != 0) {
 		async_answer_0(callid, EINVAL);
@@ -1021,7 +1021,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	size_t count = size / sizeof(loc_sdesc_t);
 	if (count != list_count(&namespaces_list)) {
@@ -1031,5 +1031,5 @@
 		return;
 	}
-	
+
 	loc_sdesc_t *desc = (loc_sdesc_t *) malloc(size);
 	if (desc == NULL) {
@@ -1039,5 +1039,5 @@
 		return;
 	}
-	
+
 	size_t pos = 0;
 	list_foreach(namespaces_list, namespaces, loc_namespace_t, namespace) {
@@ -1046,10 +1046,10 @@
 		pos++;
 	}
-	
+
 	errno_t retval = async_data_read_finalize(callid, desc, size);
-	
+
 	free(desc);
 	fibril_mutex_unlock(&services_list_mutex);
-	
+
 	async_answer_0(iid, retval);
 }
@@ -1059,5 +1059,5 @@
 	/* FIXME: Use faster algorithm which can make better use
 	   of namespaces */
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -1067,5 +1067,5 @@
 		return;
 	}
-	
+
 	if ((size % sizeof(loc_sdesc_t)) != 0) {
 		async_answer_0(callid, EINVAL);
@@ -1073,7 +1073,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	loc_namespace_t *namespace =
 	    loc_namespace_find_id(IPC_GET_ARG1(*icall));
@@ -1084,5 +1084,5 @@
 		return;
 	}
-	
+
 	size_t count = size / sizeof(loc_sdesc_t);
 	if (count != namespace->refcnt) {
@@ -1092,5 +1092,5 @@
 		return;
 	}
-	
+
 	loc_sdesc_t *desc = (loc_sdesc_t *) malloc(size);
 	if (desc == NULL) {
@@ -1100,5 +1100,5 @@
 		return;
 	}
-	
+
 	size_t pos = 0;
 	list_foreach(services_list, services, loc_service_t, service) {
@@ -1109,10 +1109,10 @@
 		}
 	}
-	
+
 	errno_t retval = async_data_read_finalize(callid, desc, size);
-	
+
 	free(desc);
 	fibril_mutex_unlock(&services_list_mutex);
-	
+
 	async_answer_0(iid, retval);
 }
@@ -1124,5 +1124,5 @@
 	size_t act_size;
 	errno_t rc;
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -1130,7 +1130,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&cdir.mutex);
-	
+
 	category_t *cat = category_get(&cdir, IPC_GET_ARG1(*icall));
 	if (cat == NULL) {
@@ -1140,5 +1140,5 @@
 		return;
 	}
-	
+
 	category_id_t *id_buf = (category_id_t *) malloc(size);
 	if (id_buf == NULL) {
@@ -1148,7 +1148,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&cat->mutex);
-	
+
 	rc = category_get_services(cat, id_buf, size, &act_size);
 	if (rc != EOK) {
@@ -1159,11 +1159,11 @@
 		return;
 	}
-	
+
 	fibril_mutex_unlock(&cat->mutex);
 	fibril_mutex_unlock(&cdir.mutex);
-	
+
 	errno_t retval = async_data_read_finalize(callid, id_buf, size);
 	free(id_buf);
-	
+
 	async_answer_1(iid, retval, act_size);
 }
@@ -1173,8 +1173,8 @@
 {
 	fibril_mutex_lock(&null_services_mutex);
-	
+
 	unsigned int i;
 	bool fnd = false;
-	
+
 	for (i = 0; i < NULL_SERVICES; i++) {
 		if (null_services[i] == NULL) {
@@ -1183,5 +1183,5 @@
 		}
 	}
-	
+
 	if (!fnd) {
 		fibril_mutex_unlock(&null_services_mutex);
@@ -1189,8 +1189,8 @@
 		return;
 	}
-	
+
 	char null[LOC_NAME_MAXLEN];
 	snprintf(null, LOC_NAME_MAXLEN, "%u", i);
-	
+
 	char *dev_name = str_dup(null);
 	if (dev_name == NULL) {
@@ -1199,5 +1199,5 @@
 		return;
 	}
-	
+
 	loc_service_t *service =
 	    (loc_service_t *) malloc(sizeof(loc_service_t));
@@ -1207,7 +1207,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&services_list_mutex);
-	
+
 	loc_namespace_t *namespace = loc_namespace_create("null");
 	if (namespace == NULL) {
@@ -1217,16 +1217,16 @@
 		return;
 	}
-	
+
 	link_initialize(&service->services);
 	link_initialize(&service->server_services);
 	list_initialize(&service->cat_memb);
-	
+
 	/* Get unique service ID */
 	service->id = loc_create_id();
 	service->server = NULL;
-	
+
 	loc_namespace_addref(namespace, service);
 	service->name = dev_name;
-	
+
 	/*
 	 * Insert service into list of all services and into null services array.
@@ -1237,8 +1237,8 @@
 	list_append(&service->server_services, &dummy_null_services);
 	null_services[i] = service;
-	
+
 	fibril_mutex_unlock(&services_list_mutex);
 	fibril_mutex_unlock(&null_services_mutex);
-	
+
 	async_answer_1(iid, EOK, (sysarg_t) i);
 }
@@ -1251,7 +1251,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&null_services_mutex);
-	
+
 	if (null_services[i] == NULL) {
 		fibril_mutex_unlock(&null_services_mutex);
@@ -1259,5 +1259,5 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&services_list_mutex);
 	fibril_mutex_lock(&cdir.mutex);
@@ -1265,7 +1265,7 @@
 	fibril_mutex_unlock(&cdir.mutex);
 	fibril_mutex_unlock(&services_list_mutex);
-	
+
 	null_services[i] = NULL;
-	
+
 	fibril_mutex_unlock(&null_services_mutex);
 	async_answer_0(iid, EOK);
@@ -1279,14 +1279,14 @@
 	service_id_t svc_id;
 	errno_t retval;
-	
+
 	svc_id = IPC_GET_ARG1(*icall);
 	cat_id = IPC_GET_ARG2(*icall);
-	
+
 	fibril_mutex_lock(&services_list_mutex);
 	fibril_mutex_lock(&cdir.mutex);
-	
+
 	cat = category_get(&cdir, cat_id);
 	svc = loc_service_find_id(svc_id);
-	
+
 	if (cat == NULL || svc == NULL) {
 		fibril_mutex_unlock(&cdir.mutex);
@@ -1295,5 +1295,5 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&cat->mutex);
 	retval = category_add_service(cat, svc);
@@ -1324,5 +1324,5 @@
 	for (i = 0; i < NULL_SERVICES; i++)
 		null_services[i] = NULL;
-	
+
 	categ_dir_init(&cdir);
 
@@ -1368,8 +1368,8 @@
 	cat = category_new("virtual");
 	categ_dir_add_cat(&cdir, cat);
-	
+
 	cat = category_new("nic");
 	categ_dir_add_cat(&cdir, cat);
-	
+
 	cat = category_new("ieee80211");
 	categ_dir_add_cat(&cdir, cat);
@@ -1383,8 +1383,8 @@
 	cat = category_new("renderer");
 	categ_dir_add_cat(&cdir, cat);
-	
+
 	cat = category_new("audio-pcm");
 	categ_dir_add_cat(&cdir, cat);
-	
+
 	return true;
 }
@@ -1397,16 +1397,16 @@
 	/* Accept connection */
 	async_answer_0(iid, EOK);
-	
+
 	loc_server_t *server = loc_server_register();
 	if (server == NULL)
 		return;
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case LOC_SERVER_UNREGISTER:
@@ -1438,5 +1438,5 @@
 		}
 	}
-	
+
 	if (server != NULL) {
 		/*
@@ -1455,12 +1455,12 @@
 	/* Accept connection */
 	async_answer_0(iid, EOK);
-	
+
 	while (true) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case LOC_SERVICE_GET_ID:
@@ -1524,10 +1524,10 @@
 {
 	printf("%s: HelenOS Location Service\n", NAME);
-	
+
 	if (!loc_init()) {
 		printf("%s: Error while initializing service\n", NAME);
 		return -1;
 	}
-	
+
 	port_id_t port;
 	errno_t rc = async_create_port(INTERFACE_LOC_SUPPLIER,
@@ -1537,5 +1537,5 @@
 		return rc;
 	}
-	
+
 	rc = async_create_port(INTERFACE_LOC_CONSUMER,
 	    loc_connection_consumer, NULL, &port);
@@ -1544,8 +1544,8 @@
 		return rc;
 	}
-	
+
 	/* Set a handler of incomming connections */
 	async_set_fallback_port_handler(loc_forward, NULL);
-	
+
 	/* Register location service at naming service */
 	rc = service_register(SERVICE_LOC);
@@ -1554,8 +1554,8 @@
 		return rc;
 	}
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	async_manager();
-	
+
 	/* Never reached */
 	return 0;
Index: uspace/srv/locsrv/locsrv.h
===================================================================
--- uspace/srv/locsrv/locsrv.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/locsrv/locsrv.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -49,14 +49,14 @@
 	/** Link to servers_list */
 	link_t servers;
-	
+
 	/** List of services supplied by this server */
 	list_t services;
-	
+
 	/** Session asociated with this server */
 	async_sess_t *sess;
-	
+
 	/** Server name */
 	char *name;
-	
+
 	/** Fibril mutex for list of services owned by this server */
 	fibril_mutex_t services_mutex;
@@ -69,11 +69,11 @@
 	/** Link to namespaces_list */
 	link_t namespaces;
-	
+
 	/** Unique namespace identifier */
 	service_id_t id;
-	
+
 	/** Namespace name */
 	char *name;
-	
+
 	/** Reference count */
 	size_t refcnt;
@@ -86,23 +86,23 @@
 	/** Link to global list of services (services_list) */
 	link_t services;
-	
+
 	/** Link to server list of services (loc_server_t.services) */
 	link_t server_services;
-	
+
 	/** Link to list of services in category (category_t.services) */
 	link_t cat_services;
-	
+
 	/** List of category memberships (svc_categ_t) */
 	list_t cat_memb;
-	
+
 	/** Unique service identifier */
 	service_id_t id;
-	
+
 	/** Service namespace */
 	loc_namespace_t *namespace;
-	
+
 	/** Service name */
 	char *name;
-	
+
 	/** Supplier of this service */
 	loc_server_t *server;
Index: uspace/srv/logger/main.c
===================================================================
--- uspace/srv/logger/main.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/logger/main.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -63,10 +63,10 @@
 {
 	printf(NAME ": HelenOS Logging Service\n");
-	
+
 	parse_initial_settings();
 	for (int i = 1; i < argc; i++) {
 		parse_level_settings(argv[i]);
 	}
-	
+
 	port_id_t port;
 	errno_t rc = async_create_port(INTERFACE_LOGGER_CONTROL,
@@ -76,5 +76,5 @@
 		return rc;
 	}
-	
+
 	rc = async_create_port(INTERFACE_LOGGER_WRITER,
 	    connection_handler_writer, NULL, &port);
@@ -83,5 +83,5 @@
 		return rc;
 	}
-	
+
 	rc = service_register(SERVICE_LOGGER);
 	if (rc != EOK) {
@@ -89,8 +89,8 @@
 		return -1;
 	}
-	
+
 	printf(NAME ": Accepting connections\n");
 	async_manager();
-	
+
 	/* Never reached */
 	return 0;
Index: uspace/srv/net/dhcp/dhcp.c
===================================================================
--- uspace/srv/net/dhcp/dhcp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/dhcp/dhcp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -430,10 +430,10 @@
 
 	dlink->retries_left = dhcp_discover_retries;
-	
+
 	if ((dlink->timeout->state == fts_not_set) ||
 	    (dlink->timeout->state == fts_fired))
 		fibril_timer_set(dlink->timeout, dhcp_discover_timeout_val,
 		    dhcpsrv_discover_timeout, dlink);
-	
+
 	return rc;
 }
@@ -507,7 +507,7 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "dhcpsrv_link_add(%zu)", link_id);
-	
+
 	dhcp_link_t *dlink = dhcpsrv_link_find(link_id);
-	
+
 	if (dlink == NULL) {
 		log_msg(LOG_DEFAULT, LVL_NOTE, "Link %zu doesn't exist",
@@ -515,5 +515,5 @@
 		return EINVAL;
 	}
-	
+
 	return dhcp_discover_proc(dlink);
 }
Index: uspace/srv/net/dnsrsrv/dns_msg.c
===================================================================
--- uspace/srv/net/dnsrsrv/dns_msg.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/dnsrsrv/dns_msg.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -298,10 +298,10 @@
 {
 	assert(buf_size >= 4);
-	
+
 	uint32_t w = ((uint32_t) buf[0] << 24) +
 	    ((uint32_t) buf[1] << 16) +
 	    ((uint32_t) buf[2] << 8) +
 	    buf[3];
-	
+
 	return w;
 }
@@ -311,5 +311,5 @@
 {
 	assert(buf_size >= 16);
-	
+
 	addr128_t_be2host(buf, addr);
 }
Index: uspace/srv/net/dnsrsrv/dnsrsrv.c
===================================================================
--- uspace/srv/net/dnsrsrv/dnsrsrv.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/dnsrsrv/dnsrsrv.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -90,7 +90,7 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_get_srvaddr_srv()");
-	
+
 	ip_ver_t ver = IPC_GET_ARG1(*icall);
-	
+
 	char *name;
 	errno_t rc = async_data_write_accept((void **) &name, true, 0,
@@ -100,5 +100,5 @@
 		return;
 	}
-	
+
 	dns_host_info_t *hinfo;
 	rc = dns_name2host(name, &hinfo, ver);
@@ -107,5 +107,5 @@
 		return;
 	}
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -115,5 +115,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -121,5 +121,5 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, &hinfo->addr, size);
 	if (rc != EOK) {
@@ -128,5 +128,5 @@
 		return;
 	}
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -134,5 +134,5 @@
 		return;
 	}
-	
+
 	size_t act_size = str_size(hinfo->cname);
 	if (act_size > size) {
@@ -141,11 +141,11 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, hinfo->cname, act_size);
 	if (rc != EOK)
 		async_answer_0(callid, rc);
-	
+
 	async_answer_0(iid, rc);
-	
+
 	dns_hostinfo_destroy(hinfo);
 }
@@ -155,5 +155,5 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_get_srvaddr_srv()");
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -163,5 +163,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -169,11 +169,11 @@
 		return;
 	}
-	
+
 	// FIXME locking
-	
+
 	errno_t rc = async_data_read_finalize(callid, &dns_server_addr, size);
 	if (rc != EOK)
 		async_answer_0(callid, rc);
-	
+
 	async_answer_0(iid, rc);
 }
@@ -183,5 +183,5 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "dnsr_set_srvaddr_srv()");
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -191,5 +191,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -197,7 +197,7 @@
 		return;
 	}
-	
+
 	// FIXME locking
-	
+
 	errno_t rc = async_data_write_finalize(callid, &dns_server_addr, size);
 	if (rc != EOK) {
@@ -205,5 +205,5 @@
 		async_answer_0(iid, rc);
 	}
-	
+
 	async_answer_0(iid, rc);
 }
Index: uspace/srv/net/dnsrsrv/query.c
===================================================================
--- uspace/srv/net/dnsrsrv/query.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/dnsrsrv/query.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -54,5 +54,5 @@
 	if (sname == NULL)
 		return ENOMEM;
-	
+
 	char *qname = str_dup(name);
 	if (qname == NULL) {
@@ -60,5 +60,5 @@
 		return ENOMEM;
 	}
-	
+
 	dns_question_t *question = calloc(1, sizeof(dns_question_t));
 	if (question == NULL) {
@@ -67,9 +67,9 @@
 		return ENOMEM;
 	}
-	
+
 	question->qname = qname;
 	question->qtype = qtype;
 	question->qclass = DC_IN;
-	
+
 	dns_message_t *msg = dns_message_new();
 	if (msg == NULL) {
@@ -79,5 +79,5 @@
 		return ENOMEM;
 	}
-	
+
 	msg->id = msg_id++;
 	msg->qr = QR_QUERY;
@@ -87,7 +87,7 @@
 	msg->rd = true;
 	msg->ra = false;
-	
+
 	list_append(&question->msg, &msg->question);
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "dns_name_query: send DNS request");
 	dns_message_t *amsg;
@@ -98,15 +98,15 @@
 		return rc;
 	}
-	
+
 	list_foreach(amsg->answer, msg, dns_rr_t, rr) {
 		log_msg(LOG_DEFAULT, LVL_DEBUG, " - '%s' %u/%u, dsize %zu",
 		    rr->name, rr->rtype, rr->rclass, rr->rdata_size);
-		
+
 		if ((rr->rtype == DTYPE_CNAME) && (rr->rclass == DC_IN) &&
 		    (str_cmp(rr->name, sname) == 0)) {
-			
+
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "decode cname (%p, %zu, %zu)",
 			    amsg->pdu.data, amsg->pdu.size, rr->roff);
-			
+
 			char *cname;
 			size_t eoff;
@@ -114,26 +114,26 @@
 			if (rc != EOK) {
 				assert((rc == EINVAL) || (rc == ENOMEM));
-				
+
 				log_msg(LOG_DEFAULT, LVL_DEBUG, "error decoding cname");
-				
+
 				dns_message_destroy(msg);
 				dns_message_destroy(amsg);
 				free(sname);
-				
+
 				return rc;
 			}
-			
+
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "name = '%s' "
 			    "cname = '%s'", sname, cname);
-			
+
 			/* Continue looking for the more canonical name */
 			free(sname);
 			sname = cname;
 		}
-		
+
 		if ((qtype == DTYPE_A) && (rr->rtype == DTYPE_A) &&
 		    (rr->rclass == DC_IN) && (rr->rdata_size == sizeof(addr32_t)) &&
 		    (str_cmp(rr->name, sname) == 0)) {
-			
+
 			info->cname = str_dup(rr->name);
 			if (info->cname == NULL) {
@@ -141,22 +141,22 @@
 				dns_message_destroy(amsg);
 				free(sname);
-				
+
 				return ENOMEM;
 			}
-			
+
 			inet_addr_set(dns_uint32_t_decode(rr->rdata, rr->rdata_size),
 			    &info->addr);
-			
+
 			dns_message_destroy(msg);
 			dns_message_destroy(amsg);
 			free(sname);
-			
+
 			return EOK;
 		}
-		
+
 		if ((qtype == DTYPE_AAAA) && (rr->rtype == DTYPE_AAAA) &&
 		    (rr->rclass == DC_IN) && (rr->rdata_size == sizeof(addr128_t)) &&
 		    (str_cmp(rr->name, sname) == 0)) {
-		
+
 			info->cname = str_dup(rr->name);
 			if (info->cname == NULL) {
@@ -164,27 +164,27 @@
 				dns_message_destroy(amsg);
 				free(sname);
-				
+
 				return ENOMEM;
 			}
-			
+
 			addr128_t addr;
 			dns_addr128_t_decode(rr->rdata, rr->rdata_size, addr);
-			
+
 			inet_addr_set6(addr, &info->addr);
-			
+
 			dns_message_destroy(msg);
 			dns_message_destroy(amsg);
 			free(sname);
-			
+
 			return EOK;
 		}
 	}
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "'%s' not resolved, fail", sname);
-	
+
 	dns_message_destroy(msg);
 	dns_message_destroy(amsg);
 	free(sname);
-	
+
 	return EIO;
 }
@@ -195,14 +195,14 @@
 	if (info == NULL)
 		return ENOMEM;
-	
+
 	errno_t rc;
-	
+
 	switch (ver) {
 	case ip_any:
 		rc = dns_name_query(name, DTYPE_AAAA, info);
-		
+
 		if (rc != EOK)
 			rc = dns_name_query(name, DTYPE_A, info);
-		
+
 		break;
 	case ip_v4:
@@ -215,10 +215,10 @@
 		rc = EINVAL;
 	}
-	
+
 	if (rc == EOK)
 		*rinfo = info;
 	else
 		free(info);
-	
+
 	return rc;
 }
Index: uspace/srv/net/ethip/arp.c
===================================================================
--- uspace/srv/net/ethip/arp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/ethip/arp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -55,33 +55,33 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "arp_received()");
-	
+
 	arp_eth_packet_t packet;
 	errno_t rc = arp_pdu_decode(frame->data, frame->size, &packet);
 	if (rc != EOK)
 		return;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ARP PDU decoded, opcode=%d, tpa=%x",
 	    packet.opcode, packet.target_proto_addr);
-	
+
 	inet_addr_t addr;
 	inet_addr_set(packet.target_proto_addr, &addr);
-	
+
 	ethip_link_addr_t *laddr = ethip_nic_addr_find(nic, &addr);
 	if (laddr == NULL)
 		return;
-	
+
 	addr32_t laddr_v4;
 	ip_ver_t laddr_ver = inet_addr_get(&laddr->addr, &laddr_v4, NULL);
 	if (laddr_ver != ip_v4)
 		return;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "Request/reply to my address");
-	
+
 	(void) atrans_add(packet.sender_proto_addr,
 	    packet.sender_hw_addr);
-	
+
 	if (packet.opcode == aop_request) {
 		arp_eth_packet_t reply;
-		
+
 		reply.opcode = aop_reply;
 		addr48(nic->mac_addr, reply.sender_hw_addr);
@@ -89,5 +89,5 @@
 		addr48(packet.sender_hw_addr, reply.target_hw_addr);
 		reply.target_proto_addr = packet.sender_proto_addr;
-		
+
 		arp_send_packet(nic, &reply);
 	}
@@ -106,7 +106,7 @@
 	if (rc == EOK)
 		return EOK;
-	
+
 	arp_eth_packet_t packet;
-	
+
 	packet.opcode = aop_request;
 	addr48(nic->mac_addr, packet.sender_hw_addr);
@@ -114,9 +114,9 @@
 	addr48(addr48_broadcast, packet.target_hw_addr);
 	packet.target_proto_addr = ip_addr;
-	
+
 	rc = arp_send_packet(nic, &packet);
 	if (rc != EOK)
 		return rc;
-	
+
 	return atrans_lookup_timeout(ip_addr, ARP_REQUEST_TIMEOUT, mac_addr);
 }
Index: uspace/srv/net/ethip/ethip.c
===================================================================
--- uspace/srv/net/ethip/ethip.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/ethip/ethip.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -80,5 +80,5 @@
 {
 	async_set_fallback_port_handler(ethip_client_conn, NULL);
-	
+
 	errno_t rc = loc_server_register(NAME);
 	if (rc != EOK) {
@@ -86,9 +86,9 @@
 		return rc;
 	}
-	
+
 	rc = ethip_nic_discovery_start();
 	if (rc != EOK)
 		return rc;
-	
+
 	return EOK;
 }
@@ -173,8 +173,8 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_send()");
-	
+
 	ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
 	eth_frame_t frame;
-	
+
 	errno_t rc = arp_translate(nic, sdu->src, sdu->dest, frame.dest);
 	if (rc != EOK) {
@@ -183,10 +183,10 @@
 		return rc;
 	}
-	
+
 	addr48(nic->mac_addr, frame.src);
 	frame.etype_len = ETYPE_IP;
 	frame.data = sdu->data;
 	frame.size = sdu->size;
-	
+
 	void *data;
 	size_t size;
@@ -194,8 +194,8 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = ethip_nic_send(nic, data, size);
 	free(data);
-	
+
 	return rc;
 }
@@ -204,8 +204,8 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_send6()");
-	
+
 	ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
 	eth_frame_t frame;
-	
+
 	addr48(sdu->dest, frame.dest);
 	addr48(nic->mac_addr, frame.src);
@@ -213,5 +213,5 @@
 	frame.data = sdu->data;
 	frame.size = sdu->size;
-	
+
 	void *data;
 	size_t size;
@@ -219,8 +219,8 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = ethip_nic_send(nic, data, size);
 	free(data);
-	
+
 	return rc;
 }
@@ -230,7 +230,7 @@
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_received(): srv=%p", srv);
 	ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, " - eth_pdu_decode");
-	
+
 	eth_frame_t frame;
 	errno_t rc = eth_pdu_decode(data, size, &frame);
@@ -239,7 +239,7 @@
 		return rc;
 	}
-	
+
 	iplink_recv_sdu_t sdu;
-	
+
 	switch (frame.etype_len) {
 	case ETYPE_ARP:
@@ -264,5 +264,5 @@
 		    frame.etype_len);
 	}
-	
+
 	free(frame.data);
 	return rc;
@@ -279,8 +279,8 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_get_mac48()");
-	
+
 	ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
 	addr48(nic->mac_addr, *mac);
-	
+
 	return EOK;
 }
@@ -289,8 +289,8 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_set_mac48()");
-	
+
 	ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
 	addr48(*mac, nic->mac_addr);
-	
+
 	return EOK;
 }
@@ -299,5 +299,5 @@
 {
 	ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
-	
+
 	return ethip_nic_addr_add(nic, addr);
 }
@@ -306,5 +306,5 @@
 {
 	ethip_nic_t *nic = (ethip_nic_t *) srv->arg;
-	
+
 	return ethip_nic_addr_remove(nic, addr);
 }
Index: uspace/srv/net/ethip/ethip.h
===================================================================
--- uspace/srv/net/ethip/ethip.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/ethip/ethip.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,5 +62,5 @@
 	/** MAC address */
 	addr48_t mac_addr;
-	
+
 	/**
 	 * List of IP addresses configured on this link
Index: uspace/srv/net/ethip/ethip_nic.c
===================================================================
--- uspace/srv/net/ethip/ethip_nic.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/ethip/ethip_nic.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -112,8 +112,8 @@
 		return NULL;
 	}
-	
+
 	link_initialize(&nic->link);
 	list_initialize(&nic->addr_list);
-	
+
 	return nic;
 }
@@ -127,8 +127,8 @@
 		return NULL;
 	}
-	
+
 	link_initialize(&laddr->link);
 	laddr->addr = *addr;
-	
+
 	return laddr;
 }
@@ -138,5 +138,5 @@
 	if (nic->svc_name != NULL)
 		free(nic->svc_name);
-	
+
 	free(nic);
 }
@@ -151,10 +151,10 @@
 	bool in_list = false;
 	nic_address_t nic_address;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_open()");
 	ethip_nic_t *nic = ethip_nic_new();
 	if (nic == NULL)
 		return ENOMEM;
-	
+
 	errno_t rc = loc_service_get_name(sid, &nic->svc_name);
 	if (rc != EOK) {
@@ -162,5 +162,5 @@
 		goto error;
 	}
-	
+
 	nic->sess = loc_service_connect(sid, INTERFACE_DDF, 0);
 	if (nic->sess == NULL) {
@@ -168,7 +168,7 @@
 		goto error;
 	}
-	
+
 	nic->svc_id = sid;
-	
+
 	rc = nic_callback_create(nic->sess, ethip_nic_cb_conn, nic);
 	if (rc != EOK) {
@@ -192,5 +192,5 @@
 		goto error;
 	}
-	
+
 	addr48(nic_address.address, nic->mac_addr);
 
@@ -216,8 +216,8 @@
 	if (in_list)
 		list_remove(&nic->link);
-	
+
 	if (nic->sess != NULL)
 		async_hangup(nic->sess);
-	
+
 	ethip_nic_delete(nic);
 	return rc;
@@ -332,5 +332,5 @@
 		return rc;
 	}
-	
+
 	return ethip_nic_check_new();
 }
@@ -371,9 +371,9 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_setup_multicast()");
-	
+
 	/* Count the number of multicast addresses */
-	
+
 	size_t count = 0;
-	
+
 	list_foreach(nic->addr_list, link, ethip_link_addr_t, laddr) {
 		ip_ver_t ver = inet_addr_get(&laddr->addr, NULL, NULL);
@@ -381,17 +381,17 @@
 			count++;
 	}
-	
+
 	if (count == 0)
 		return nic_multicast_set_mode(nic->sess, NIC_MULTICAST_BLOCKED,
 		    NULL, 0);
-	
+
 	nic_address_t *mac_list = calloc(count, sizeof(nic_address_t));
 	if (mac_list == NULL)
 		return ENOMEM;
-	
+
 	/* Create the multicast MAC list */
-	
+
 	size_t i = 0;
-	
+
 	list_foreach(nic->addr_list, link, ethip_link_addr_t, laddr) {
 		addr128_t v6;
@@ -399,14 +399,14 @@
 		if (ver != ip_v6)
 			continue;
-		
+
 		assert(i < count);
-		
+
 		addr48_t mac;
 		addr48_solicited_node(v6, mac);
-		
+
 		/* Avoid duplicate addresses in the list */
-		
+
 		bool found = false;
-		
+
 		for (size_t j = 0; j < i; j++) {
 			if (addr48_compare(mac_list[j].address, mac)) {
@@ -415,5 +415,5 @@
 			}
 		}
-		
+
 		if (!found) {
 			addr48(mac, mac_list[i].address);
@@ -422,10 +422,10 @@
 			count--;
 	}
-	
+
 	/* Setup the multicast MAC list */
-	
+
 	errno_t rc = nic_multicast_set_mode(nic->sess, NIC_MULTICAST_LIST,
 	    mac_list, count);
-	
+
 	free(mac_list);
 	return rc;
@@ -435,11 +435,11 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_add()");
-	
+
 	ethip_link_addr_t *laddr = ethip_nic_addr_new(addr);
 	if (laddr == NULL)
 		return ENOMEM;
-	
+
 	list_append(&laddr->link, &nic->addr_list);
-	
+
 	return ethip_nic_setup_multicast(nic);
 }
@@ -448,12 +448,12 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_remove()");
-	
+
 	ethip_link_addr_t *laddr = ethip_nic_addr_find(nic, addr);
 	if (laddr == NULL)
 		return ENOENT;
-	
+
 	list_remove(&laddr->link);
 	ethip_link_addr_delete(laddr);
-	
+
 	return ethip_nic_setup_multicast(nic);
 }
@@ -463,10 +463,10 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ethip_nic_addr_find()");
-	
+
 	list_foreach(nic->addr_list, link, ethip_link_addr_t, laddr) {
 		if (inet_addr_compare(addr, &laddr->addr))
 			return laddr;
 	}
-	
+
 	return NULL;
 }
Index: uspace/srv/net/inetsrv/addrobj.c
===================================================================
--- uspace/srv/net/inetsrv/addrobj.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/addrobj.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -113,5 +113,5 @@
 {
 	fibril_mutex_lock(&addr_list_lock);
-	
+
 	list_foreach(addr_list, addr_list, inet_addrobj_t, naddr) {
 		switch (find) {
@@ -134,8 +134,8 @@
 		}
 	}
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_addrobj_find: Not found");
 	fibril_mutex_unlock(&addr_list_lock);
-	
+
 	return NULL;
 }
Index: uspace/srv/net/inetsrv/icmpv6.c
===================================================================
--- uspace/srv/net/inetsrv/icmpv6.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/icmpv6.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -50,32 +50,32 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "icmpv6_recv_echo_request()");
-	
+
 	if (dgram->size < sizeof(icmpv6_message_t))
 		return EINVAL;
-	
+
 	icmpv6_message_t *request = (icmpv6_message_t *) dgram->data;
 	size_t size = dgram->size;
-	
+
 	addr128_t src_v6;
 	ip_ver_t src_ver = inet_addr_get(&dgram->src, NULL, &src_v6);
-	
+
 	addr128_t dest_v6;
 	ip_ver_t dest_ver = inet_addr_get(&dgram->dest, NULL, &dest_v6);
-	
+
 	if ((src_ver != dest_ver) || (src_ver != ip_v6))
 		return EINVAL;
-	
+
 	icmpv6_message_t *reply = calloc(1, size);
 	if (reply == NULL)
 		return ENOMEM;
-	
+
 	memcpy(reply, request, size);
-	
+
 	reply->type = ICMPV6_ECHO_REPLY;
 	reply->code = 0;
 	reply->checksum = 0;
-	
+
 	inet_dgram_t rdgram;
-	
+
 	inet_get_srcaddr(&dgram->src, 0, &rdgram.src);
 	rdgram.dest = dgram->src;
@@ -84,7 +84,7 @@
 	rdgram.data = reply;
 	rdgram.size = size;
-	
+
 	icmpv6_phdr_t phdr;
-	
+
 	host2addr128_t_be(dest_v6, phdr.src_addr);
 	host2addr128_t_be(src_v6, phdr.dest_addr);
@@ -92,18 +92,18 @@
 	memset(phdr.zeroes, 0, 3);
 	phdr.next = IP_PROTO_ICMPV6;
-	
+
 	uint16_t cs_phdr =
 	    inet_checksum_calc(INET_CHECKSUM_INIT, &phdr,
 	    sizeof(icmpv6_phdr_t));
-	
+
 	uint16_t cs_all = inet_checksum_calc(cs_phdr, reply, size);
-	
+
 	reply->checksum = host2uint16_t_be(cs_all);
-	
+
 	errno_t rc = inet_route_packet(&rdgram, IP_PROTO_ICMPV6,
 	    INET6_HOP_LIMIT_MAX, 0);
-	
+
 	free(reply);
-	
+
 	return rc;
 }
@@ -112,21 +112,21 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "icmpv6_recv_echo_reply()");
-	
+
 	if (dgram->size < sizeof(icmpv6_message_t))
 		return EINVAL;
-	
+
 	inetping_sdu_t sdu;
-	
+
 	sdu.src = dgram->src;
 	sdu.dest = dgram->dest;
-	
+
 	icmpv6_message_t *reply = (icmpv6_message_t *) dgram->data;
-	
+
 	sdu.seq_no = uint16_t_be2host(reply->un.echo.seq_no);
 	sdu.data = reply + sizeof(icmpv6_message_t);
 	sdu.size = dgram->size - sizeof(icmpv6_message_t);
-	
+
 	uint16_t ident = uint16_t_be2host(reply->un.echo.ident);
-	
+
 	return inetping_recv(ident, &sdu);
 }
@@ -135,10 +135,10 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "icmpv6_recv()");
-	
+
 	if (dgram->size < 1)
 		return EINVAL;
-	
+
 	uint8_t type = *(uint8_t *) dgram->data;
-	
+
 	switch (type) {
 	case ICMPV6_ECHO_REQUEST:
@@ -153,5 +153,5 @@
 		break;
 	}
-	
+
 	return EINVAL;
 }
@@ -163,7 +163,7 @@
 	if (rdata == NULL)
 		return ENOMEM;
-	
+
 	icmpv6_message_t *request = (icmpv6_message_t *) rdata;
-	
+
 	request->type = ICMPV6_ECHO_REQUEST;
 	request->code = 0;
@@ -171,9 +171,9 @@
 	request->un.echo.ident = host2uint16_t_be(ident);
 	request->un.echo.seq_no = host2uint16_t_be(sdu->seq_no);
-	
+
 	memcpy(rdata + sizeof(icmpv6_message_t), sdu->data, sdu->size);
-	
+
 	inet_dgram_t dgram;
-	
+
 	dgram.src = sdu->src;
 	dgram.dest = sdu->dest;
@@ -182,10 +182,10 @@
 	dgram.data = rdata;
 	dgram.size = rsize;
-	
+
 	icmpv6_phdr_t phdr;
-	
+
 	assert(sdu->src.version == ip_v6);
 	assert(sdu->dest.version == ip_v6);
-	
+
 	host2addr128_t_be(sdu->src.addr6, phdr.src_addr);
 	host2addr128_t_be(sdu->dest.addr6, phdr.dest_addr);
@@ -193,18 +193,18 @@
 	memset(phdr.zeroes, 0, 3);
 	phdr.next = IP_PROTO_ICMPV6;
-	
+
 	uint16_t cs_phdr =
 	    inet_checksum_calc(INET_CHECKSUM_INIT, &phdr,
 	    sizeof(icmpv6_phdr_t));
-	
+
 	uint16_t cs_all = inet_checksum_calc(cs_phdr, rdata, rsize);
-	
+
 	request->checksum = host2uint16_t_be(cs_all);
-	
+
 	errno_t rc = inet_route_packet(&dgram, IP_PROTO_ICMPV6,
 	    INET6_HOP_LIMIT_MAX, 0);
-	
+
 	free(rdata);
-	
+
 	return rc;
 }
Index: uspace/srv/net/inetsrv/inet_link.c
===================================================================
--- uspace/srv/net/inetsrv/inet_link.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/inet_link.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -154,5 +154,5 @@
 	if (ilink->svc_name != NULL)
 		free(ilink->svc_name);
-	
+
 	free(ilink);
 }
@@ -197,5 +197,5 @@
 		goto error;
 	}
-	
+
 	/*
 	 * Get the MAC address of the link. If the link has a MAC
@@ -221,17 +221,17 @@
 
 	inet_addrobj_t *addr = NULL;
-	
+
 	/* XXX FIXME Cannot rely on loopback being the first IP link service!! */
 	if (first_link) {
 		addr = inet_addrobj_new();
-		
+
 		inet_naddr(&addr->naddr, 127, 0, 0, 1, 24);
 		first_link = false;
 	}
-	
+
 	if (addr != NULL) {
 		addr->ilink = ilink;
 		addr->name = str_dup("v4a");
-		
+
 		rc = inet_addrobj_add(addr);
 		if (rc == EOK) {
@@ -249,25 +249,25 @@
 		}
 	}
-	
+
 	inet_addrobj_t *addr6 = NULL;
-	
+
 	if (first_link6) {
 		addr6 = inet_addrobj_new();
-		
+
 		inet_naddr6(&addr6->naddr, 0, 0, 0, 0, 0, 0, 0, 1, 128);
 		first_link6 = false;
 	} else if (ilink->mac_valid) {
 		addr6 = inet_addrobj_new();
-		
+
 		addr128_t link_local;
 		inet_link_local_node_ip(ilink->mac, link_local);
-		
+
 		inet_naddr_set6(link_local, 64, &addr6->naddr);
 	}
-	
+
 	if (addr6 != NULL) {
 		addr6->ilink = ilink;
 		addr6->name = str_dup("v6a");
-		
+
 		rc = inet_addrobj_add(addr6);
 		if (rc == EOK) {
@@ -285,12 +285,12 @@
 		}
 	}
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "Configured link '%s'.", ilink->svc_name);
 	return EOK;
-	
+
 error:
 	if (ilink->iplink != NULL)
 		iplink_close(ilink->iplink);
-	
+
 	inet_link_delete(ilink);
 	return rc;
@@ -319,22 +319,22 @@
 	if (src_ver != ip_v4)
 		return EINVAL;
-	
+
 	addr32_t dest_v4;
 	ip_ver_t dest_ver = inet_addr_get(&dgram->dest, &dest_v4, NULL);
 	if (dest_ver != ip_v4)
 		return EINVAL;
-	
+
 	/*
 	 * Fill packet structure. Fragmentation is performed by
 	 * inet_pdu_encode().
 	 */
-	
+
 	iplink_sdu_t sdu;
-	
+
 	sdu.src = lsrc;
 	sdu.dest = ldest;
-	
+
 	inet_packet_t packet;
-	
+
 	packet.src = dgram->src;
 	packet.dest = dgram->dest;
@@ -342,20 +342,20 @@
 	packet.proto = proto;
 	packet.ttl = ttl;
-	
+
 	/* Allocate identifier */
 	fibril_mutex_lock(&ip_ident_lock);
 	packet.ident = ++ip_ident;
 	fibril_mutex_unlock(&ip_ident_lock);
-	
+
 	packet.df = df;
 	packet.data = dgram->data;
 	packet.size = dgram->size;
-	
+
 	errno_t rc;
 	size_t offs = 0;
-	
+
 	do {
 		/* Encode one fragment */
-		
+
 		size_t roffs;
 		rc = inet_pdu_encode(&packet, src_v4, dest_v4, offs, ilink->def_mtu,
@@ -363,12 +363,12 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Send the PDU */
 		rc = iplink_send(ilink->iplink, &sdu);
-		
+
 		free(sdu.data);
 		offs = roffs;
 	} while (offs < packet.size);
-	
+
 	return rc;
 }
@@ -394,20 +394,20 @@
 	if (src_ver != ip_v6)
 		return EINVAL;
-	
+
 	addr128_t dest_v6;
 	ip_ver_t dest_ver = inet_addr_get(&dgram->dest, NULL, &dest_v6);
 	if (dest_ver != ip_v6)
 		return EINVAL;
-	
+
 	iplink_sdu6_t sdu6;
 	addr48(ldest, sdu6.dest);
-	
+
 	/*
 	 * Fill packet structure. Fragmentation is performed by
 	 * inet_pdu_encode6().
 	 */
-	
+
 	inet_packet_t packet;
-	
+
 	packet.src = dgram->src;
 	packet.dest = dgram->dest;
@@ -415,20 +415,20 @@
 	packet.proto = proto;
 	packet.ttl = ttl;
-	
+
 	/* Allocate identifier */
 	fibril_mutex_lock(&ip_ident_lock);
 	packet.ident = ++ip_ident;
 	fibril_mutex_unlock(&ip_ident_lock);
-	
+
 	packet.df = df;
 	packet.data = dgram->data;
 	packet.size = dgram->size;
-	
+
 	errno_t rc;
 	size_t offs = 0;
-	
+
 	do {
 		/* Encode one fragment */
-		
+
 		size_t roffs;
 		rc = inet_pdu_encode6(&packet, src_v6, dest_v6, offs, ilink->def_mtu,
@@ -436,12 +436,12 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		/* Send the PDU */
 		rc = iplink_send6(ilink->iplink, &sdu6);
-		
+
 		free(sdu6.data);
 		offs = roffs;
 	} while (offs < packet.size);
-	
+
 	return rc;
 }
Index: uspace/srv/net/inetsrv/inetcfg.c
===================================================================
--- uspace/srv/net/inetsrv/inetcfg.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/inetcfg.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -257,7 +257,7 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_create_static_srv()");
-	
+
 	sysarg_t link_id = IPC_GET_ARG1(*icall);
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -267,5 +267,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_naddr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -273,5 +273,5 @@
 		return;
 	}
-	
+
 	inet_naddr_t naddr;
 	errno_t rc = async_data_write_finalize(callid, &naddr, size);
@@ -281,5 +281,5 @@
 		return;
 	}
-	
+
 	char *name;
 	rc = async_data_write_accept((void **) &name, true, 0, LOC_NAME_MAXLEN,
@@ -289,5 +289,5 @@
 		return;
 	}
-	
+
 	sysarg_t addr_id = 0;
 	rc = inetcfg_addr_create_static(name, &naddr, link_id, &addr_id);
@@ -312,13 +312,13 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_addr_get_srv()");
-	
+
 	sysarg_t addr_id = IPC_GET_ARG1(*icall);
-	
+
 	inet_addr_info_t ainfo;
-	
+
 	inet_naddr_any(&ainfo.naddr);
 	ainfo.ilink = 0;
 	ainfo.name = NULL;
-	
+
 	errno_t rc = inetcfg_addr_get(addr_id, &ainfo);
 	if (rc != EOK) {
@@ -326,5 +326,5 @@
 		return;
 	}
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -334,5 +334,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_naddr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -340,5 +340,5 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, &ainfo.naddr, size);
 	if (rc != EOK) {
@@ -347,5 +347,5 @@
 		return;
 	}
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -353,15 +353,15 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, ainfo.name,
 	    min(size, str_size(ainfo.name)));
 	free(ainfo.name);
-	
-	if (rc != EOK) {
-		async_answer_0(callid, rc);
-		async_answer_0(iid, rc);
-		return;
-	}
-	
+
+	if (rc != EOK) {
+		async_answer_0(callid, rc);
+		async_answer_0(iid, rc);
+		return;
+	}
+
 	async_answer_1(iid, rc, ainfo.ilink);
 }
@@ -584,5 +584,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_naddr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -590,5 +590,5 @@
 		return;
 	}
-	
+
 	inet_naddr_t dest;
 	errno_t rc = async_data_write_finalize(callid, &dest, size);
@@ -598,5 +598,5 @@
 		return;
 	}
-	
+
 	if (!async_data_write_receive(&callid, &size)) {
 		async_answer_0(callid, EINVAL);
@@ -604,5 +604,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -610,5 +610,5 @@
 		return;
 	}
-	
+
 	inet_addr_t router;
 	rc = async_data_write_finalize(callid, &router, size);
@@ -618,5 +618,5 @@
 		return;
 	}
-	
+
 	char *name;
 	rc = async_data_write_accept((void **) &name, true, 0, LOC_NAME_MAXLEN,
@@ -626,5 +626,5 @@
 		return;
 	}
-	
+
 	sysarg_t sroute_id = 0;
 	rc = inetcfg_sroute_create(name, &dest, &router, &sroute_id);
@@ -649,13 +649,13 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inetcfg_sroute_get_srv()");
-	
+
 	sysarg_t sroute_id = IPC_GET_ARG1(*icall);
-	
+
 	inet_sroute_info_t srinfo;
-	
+
 	inet_naddr_any(&srinfo.dest);
 	inet_addr_any(&srinfo.router);
 	srinfo.name = NULL;
-	
+
 	errno_t rc = inetcfg_sroute_get(sroute_id, &srinfo);
 	if (rc != EOK) {
@@ -663,5 +663,5 @@
 		return;
 	}
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -671,5 +671,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_naddr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -677,5 +677,5 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, &srinfo.dest, size);
 	if (rc != EOK) {
@@ -684,5 +684,5 @@
 		return;
 	}
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -690,5 +690,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -696,5 +696,5 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, &srinfo.router, size);
 	if (rc != EOK) {
@@ -703,5 +703,5 @@
 		return;
 	}
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -709,9 +709,9 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, srinfo.name,
 	    min(size, str_size(srinfo.name)));
 	free(srinfo.name);
-	
+
 	async_answer_0(iid, rc);
 }
Index: uspace/srv/net/inetsrv/inetsrv.c
===================================================================
--- uspace/srv/net/inetsrv/inetsrv.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/inetsrv.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -87,5 +87,5 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()");
-	
+
 	port_id_t port;
 	errno_t rc = async_create_port(INTERFACE_INET,
@@ -93,15 +93,15 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = async_create_port(INTERFACE_INETCFG,
 	    inet_cfg_conn, NULL, &port);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = async_create_port(INTERFACE_INETPING,
 	    inetping_conn, NULL, &port);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = loc_server_register(NAME);
 	if (rc != EOK) {
@@ -109,5 +109,5 @@
 		return EEXIST;
 	}
-	
+
 	service_id_t sid;
 	rc = loc_service_register(SERVICE_NAME_INET, &sid);
@@ -116,5 +116,5 @@
 		return EEXIST;
 	}
-	
+
 	return EOK;
 }
@@ -234,7 +234,7 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_get_srcaddr_srv()");
-	
+
 	uint8_t tos = IPC_GET_ARG1(*icall);
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -244,5 +244,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -250,5 +250,5 @@
 		return;
 	}
-	
+
 	inet_addr_t remote;
 	errno_t rc = async_data_write_finalize(callid, &remote, size);
@@ -257,5 +257,5 @@
 		async_answer_0(iid, rc);
 	}
-	
+
 	inet_addr_t local;
 	rc = inet_get_srcaddr(&remote, tos, &local);
@@ -264,5 +264,5 @@
 		return;
 	}
-	
+
 	if (!async_data_read_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -270,5 +270,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -276,5 +276,5 @@
 		return;
 	}
-	
+
 	rc = async_data_read_finalize(callid, &local, size);
 	if (rc != EOK) {
@@ -283,5 +283,5 @@
 		return;
 	}
-	
+
 	async_answer_0(iid, rc);
 }
@@ -291,13 +291,13 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_send_srv()");
-	
+
 	inet_dgram_t dgram;
-	
+
 	dgram.iplink = IPC_GET_ARG1(*icall);
 	dgram.tos = IPC_GET_ARG2(*icall);
-	
+
 	uint8_t ttl = IPC_GET_ARG3(*icall);
 	int df = IPC_GET_ARG4(*icall);
-	
+
 	ipc_callid_t callid;
 	size_t size;
@@ -307,5 +307,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -313,5 +313,5 @@
 		return;
 	}
-	
+
 	errno_t rc = async_data_write_finalize(callid, &dgram.src, size);
 	if (rc != EOK) {
@@ -319,5 +319,5 @@
 		async_answer_0(iid, rc);
 	}
-	
+
 	if (!async_data_write_receive(&callid, &size)) {
 		async_answer_0(callid, EREFUSED);
@@ -325,5 +325,5 @@
 		return;
 	}
-	
+
 	if (size != sizeof(inet_addr_t)) {
 		async_answer_0(callid, EINVAL);
@@ -331,5 +331,5 @@
 		return;
 	}
-	
+
 	rc = async_data_write_finalize(callid, &dgram.dest, size);
 	if (rc != EOK) {
@@ -337,5 +337,5 @@
 		async_answer_0(iid, rc);
 	}
-	
+
 	rc = async_data_write_accept(&dgram.data, false, 0, 0, 0,
 	    &dgram.size);
@@ -344,7 +344,7 @@
 		return;
 	}
-	
+
 	rc = inet_send(client, &dgram, client->protocol, ttl, df);
-	
+
 	free(dgram.data);
 	async_answer_0(iid, rc);
Index: uspace/srv/net/inetsrv/ndp.c
===================================================================
--- uspace/srv/net/inetsrv/ndp.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/ndp.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -68,10 +68,10 @@
 	inet_dgram_t dgram;
 	ndp_pdu_encode(packet, &dgram);
-	
+
 	inet_link_send_dgram6(link, packet->target_hw_addr, &dgram,
 	    IP_PROTO_ICMPV6, INET6_HOP_LIMIT_MAX, 0);
-	
+
 	free(dgram.data);
-	
+
 	return EOK;
 }
@@ -86,21 +86,21 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "ndp_received()");
-	
+
 	ndp_packet_t packet;
 	errno_t rc = ndp_pdu_decode(dgram, &packet);
 	if (rc != EOK)
 		return rc;
-	
+
 	inet_addr_t sender;
 	inet_addr_set6(packet.sender_proto_addr, &sender);
-	
+
 	inet_addr_t target;
 	inet_addr_set6(packet.target_proto_addr, &target);
-	
+
 	inet_addrobj_t *laddr;
-	
+
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "NDP PDU decoded; opcode: %d",
 	    packet.opcode);
-	
+
 	switch (packet.opcode) {
 	case ICMPV6_NEIGHBOUR_SOLICITATION:
@@ -111,7 +111,7 @@
 			if (rc != EOK)
 				return rc;
-			
+
 			ndp_packet_t reply;
-			
+
 			reply.opcode = ICMPV6_NEIGHBOUR_ADVERTISEMENT;
 			addr48(laddr->ilink->mac, reply.sender_hw_addr);
@@ -119,8 +119,8 @@
 			addr48(packet.sender_hw_addr, reply.target_hw_addr);
 			addr128(packet.sender_proto_addr, reply.target_proto_addr);
-			
+
 			ndp_send_packet(laddr->ilink, &reply);
 		}
-		
+
 		break;
 	case ICMPV6_NEIGHBOUR_ADVERTISEMENT:
@@ -129,5 +129,5 @@
 			return ntrans_add(packet.sender_proto_addr,
 			    packet.sender_hw_addr);
-		
+
 		break;
 	case ICMPV6_ROUTER_ADVERTISEMENT:
@@ -136,5 +136,5 @@
 		return ENOTSUP;
 	}
-	
+
 	return EOK;
 }
@@ -159,11 +159,11 @@
 		return EOK;
 	}
-	
+
 	errno_t rc = ntrans_lookup(ip_addr, mac_addr);
 	if (rc == EOK)
 		return EOK;
-	
+
 	ndp_packet_t packet;
-	
+
 	packet.opcode = ICMPV6_NEIGHBOUR_SOLICITATION;
 	addr48(ilink->mac, packet.sender_hw_addr);
@@ -172,11 +172,11 @@
 	addr48_solicited_node(ip_addr, packet.target_hw_addr);
 	ndp_solicited_node_ip(ip_addr, packet.target_proto_addr);
-	
+
 	rc = ndp_send_packet(ilink, &packet);
 	if (rc != EOK)
 		return rc;
-	
+
 	(void) ntrans_wait_timeout(NDP_REQUEST_TIMEOUT);
-	
+
 	return ntrans_lookup(ip_addr, mac_addr);
 }
Index: uspace/srv/net/inetsrv/ntrans.c
===================================================================
--- uspace/srv/net/inetsrv/ntrans.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/ntrans.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -142,5 +142,5 @@
 		return ENOENT;
 	}
-	
+
 	fibril_mutex_unlock(&ntrans_list_lock);
 	addr48(ntrans->mac_addr, mac_addr);
@@ -162,5 +162,5 @@
 	    timeout);
 	fibril_mutex_unlock(&ntrans_list_lock);
-	
+
 	return rc;
 }
Index: uspace/srv/net/inetsrv/pdu.c
===================================================================
--- uspace/srv/net/inetsrv/pdu.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/pdu.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -107,33 +107,33 @@
 	/* Upper bound for fragment offset field */
 	size_t fragoff_limit = 1 << (FF_FRAGOFF_h - FF_FRAGOFF_l + 1);
-	
+
 	/* Verify that total size of datagram is within reasonable bounds */
 	if (packet->size > FRAG_OFFS_UNIT * fragoff_limit)
 		return ELIMIT;
-	
+
 	size_t hdr_size = sizeof(ip_header_t);
 	if (hdr_size >= mtu)
 		return EINVAL;
-	
+
 	assert(hdr_size % 4 == 0);
 	assert(offs % FRAG_OFFS_UNIT == 0);
 	assert(offs / FRAG_OFFS_UNIT < fragoff_limit);
-	
+
 	/* Value for the fragment offset field */
 	uint16_t foff = offs / FRAG_OFFS_UNIT;
-	
+
 	/* Amount of space in the PDU available for payload */
 	size_t spc_avail = mtu - hdr_size;
 	spc_avail -= (spc_avail % FRAG_OFFS_UNIT);
-	
+
 	/* Amount of data (payload) to transfer */
 	size_t xfer_size = min(packet->size - offs, spc_avail);
-	
+
 	/* Total PDU size */
 	size_t size = hdr_size + xfer_size;
-	
+
 	/* Offset of remaining payload */
 	size_t rem_offs = offs + xfer_size;
-	
+
 	/* Flags */
 	uint16_t flags_foff =
@@ -141,12 +141,12 @@
 	    (rem_offs < packet->size ? BIT_V(uint16_t, FF_FLAG_MF) : 0) +
 	    (foff << FF_FRAGOFF_l);
-	
+
 	void *data = calloc(size, 1);
 	if (data == NULL)
 		return ENOMEM;
-	
+
 	/* Encode header fields */
 	ip_header_t *hdr = (ip_header_t *) data;
-	
+
 	hdr->ver_ihl =
 	    (4 << VI_VERSION_l) | (hdr_size / sizeof(uint32_t));
@@ -160,17 +160,17 @@
 	hdr->src_addr = host2uint32_t_be(src);
 	hdr->dest_addr = host2uint32_t_be(dest);
-	
+
 	/* Compute checksum */
 	uint16_t chksum = inet_checksum_calc(INET_CHECKSUM_INIT,
 	    (void *) hdr, hdr_size);
 	hdr->chksum = host2uint16_t_be(chksum);
-	
+
 	/* Copy payload */
 	memcpy((uint8_t *) data + hdr_size, packet->data + offs, xfer_size);
-	
+
 	*rdata = data;
 	*rsize = size;
 	*roffs = rem_offs;
-	
+
 	return EOK;
 }
@@ -200,12 +200,12 @@
 	if (mtu < 1280)
 		return ELIMIT;
-	
+
 	/* Upper bound for fragment offset field */
 	size_t fragoff_limit = 1 << (OF_FRAGOFF_h - OF_FRAGOFF_l);
-	
+
 	/* Verify that total size of datagram is within reasonable bounds */
 	if (offs + packet->size > FRAG_OFFS_UNIT * fragoff_limit)
 		return ELIMIT;
-	
+
 	/* Determine whether we need the Fragment extension header */
 	bool fragment;
@@ -214,5 +214,5 @@
 	else
 		fragment = true;
-	
+
 	size_t hdr_size;
 	if (fragment)
@@ -220,59 +220,59 @@
 	else
 		hdr_size = sizeof(ip6_header_t);
-	
+
 	if (hdr_size >= mtu)
 		return EINVAL;
-	
+
 	static_assert(sizeof(ip6_header_t) % 8 == 0);
 	assert(hdr_size % 8 == 0);
 	assert(offs % FRAG_OFFS_UNIT == 0);
 	assert(offs / FRAG_OFFS_UNIT < fragoff_limit);
-	
+
 	/* Value for the fragment offset field */
 	uint16_t foff = offs / FRAG_OFFS_UNIT;
-	
+
 	/* Amount of space in the PDU available for payload */
 	size_t spc_avail = mtu - hdr_size;
 	spc_avail -= (spc_avail % FRAG_OFFS_UNIT);
-	
+
 	/* Amount of data (payload) to transfer */
 	size_t xfer_size = min(packet->size - offs, spc_avail);
-	
+
 	/* Total PDU size */
 	size_t size = hdr_size + xfer_size;
-	
+
 	/* Offset of remaining payload */
 	size_t rem_offs = offs + xfer_size;
-	
+
 	/* Flags */
 	uint16_t offsmf =
 	    (rem_offs < packet->size ? BIT_V(uint16_t, OF_FLAG_M) : 0) +
 	    (foff << OF_FRAGOFF_l);
-	
+
 	void *data = calloc(size, 1);
 	if (data == NULL)
 		return ENOMEM;
-	
+
 	/* Encode header fields */
 	ip6_header_t *hdr6 = (ip6_header_t *) data;
-	
+
 	hdr6->ver_tc = (6 << (VI_VERSION_l));
 	memset(hdr6->tc_fl, 0, 3);
 	hdr6->hop_limit = packet->ttl;
-	
+
 	host2addr128_t_be(src, hdr6->src_addr);
 	host2addr128_t_be(dest, hdr6->dest_addr);
-	
+
 	/* Optionally encode Fragment extension header fields */
 	if (fragment) {
 		assert(offsmf != 0);
-		
+
 		hdr6->payload_len = host2uint16_t_be(packet->size +
 		    sizeof(ip6_header_fragment_t));
 		hdr6->next = IP6_NEXT_FRAGMENT;
-		
+
 		ip6_header_fragment_t *hdr6f = (ip6_header_fragment_t *)
 		    (hdr6 + 1);
-		
+
 		hdr6f->next = packet->proto;
 		hdr6f->reserved = 0;
@@ -281,16 +281,16 @@
 	} else {
 		assert(offsmf == 0);
-		
+
 		hdr6->payload_len = host2uint16_t_be(packet->size);
 		hdr6->next = packet->proto;
 	}
-	
+
 	/* Copy payload */
 	memcpy((uint8_t *) data + hdr_size, packet->data + offs, xfer_size);
-	
+
 	*rdata = data;
 	*rsize = size;
 	*roffs = rem_offs;
-	
+
 	return EOK;
 }
@@ -312,12 +312,12 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_pdu_decode()");
-	
+
 	if (size < sizeof(ip_header_t)) {
 		log_msg(LOG_DEFAULT, LVL_DEBUG, "PDU too short (%zu)", size);
 		return EINVAL;
 	}
-	
+
 	ip_header_t *hdr = (ip_header_t *) data;
-	
+
 	uint8_t version = BIT_RANGE_EXTRACT(uint8_t, VI_VERSION_h,
 	    VI_VERSION_l, hdr->ver_ihl);
@@ -326,5 +326,5 @@
 		return EINVAL;
 	}
-	
+
 	size_t tot_len = uint16_t_be2host(hdr->tot_len);
 	if (tot_len < sizeof(ip_header_t)) {
@@ -332,5 +332,5 @@
 		return EINVAL;
 	}
-	
+
 	if (tot_len > size) {
 		log_msg(LOG_DEFAULT, LVL_DEBUG, "Total Length = %zu > PDU size = %zu",
@@ -338,5 +338,5 @@
 		return EINVAL;
 	}
-	
+
 	uint16_t ident = uint16_t_be2host(hdr->id);
 	uint16_t flags_foff = uint16_t_be2host(hdr->flags_foff);
@@ -344,5 +344,5 @@
 	    flags_foff);
 	/* XXX Checksum */
-	
+
 	inet_addr_set(uint32_t_be2host(hdr->src_addr), &packet->src);
 	inet_addr_set(uint32_t_be2host(hdr->dest_addr), &packet->dest);
@@ -351,13 +351,13 @@
 	packet->ttl = hdr->ttl;
 	packet->ident = ident;
-	
+
 	packet->df = (flags_foff & BIT_V(uint16_t, FF_FLAG_DF)) != 0;
 	packet->mf = (flags_foff & BIT_V(uint16_t, FF_FLAG_MF)) != 0;
 	packet->offs = foff * FRAG_OFFS_UNIT;
-	
+
 	/* XXX IP options */
 	size_t data_offs = sizeof(uint32_t) *
 	    BIT_RANGE_EXTRACT(uint8_t, VI_IHL_h, VI_IHL_l, hdr->ver_ihl);
-	
+
 	packet->size = tot_len - data_offs;
 	packet->data = calloc(packet->size, 1);
@@ -366,8 +366,8 @@
 		return ENOMEM;
 	}
-	
+
 	memcpy(packet->data, (uint8_t *) data + data_offs, packet->size);
 	packet->link_id = link_id;
-	
+
 	return EOK;
 }
@@ -389,12 +389,12 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_pdu_decode6()");
-	
+
 	if (size < sizeof(ip6_header_t)) {
 		log_msg(LOG_DEFAULT, LVL_DEBUG, "PDU too short (%zu)", size);
 		return EINVAL;
 	}
-	
+
 	ip6_header_t *hdr6 = (ip6_header_t *) data;
-	
+
 	uint8_t version = BIT_RANGE_EXTRACT(uint8_t, VI_VERSION_h,
 	    VI_VERSION_l, hdr6->ver_tc);
@@ -403,5 +403,5 @@
 		return EINVAL;
 	}
-	
+
 	size_t payload_len = uint16_t_be2host(hdr6->payload_len);
 	if (payload_len + sizeof(ip6_header_t) > size) {
@@ -410,5 +410,5 @@
 		return EINVAL;
 	}
-	
+
 	uint32_t ident;
 	uint16_t offsmf;
@@ -416,10 +416,10 @@
 	uint16_t next;
 	size_t data_offs = sizeof(ip6_header_t);
-	
+
 	/* Fragment extension header */
 	if (hdr6->next == IP6_NEXT_FRAGMENT) {
 		ip6_header_fragment_t *hdr6f = (ip6_header_fragment_t *)
 		    (hdr6 + 1);
-		
+
 		ident = uint32_t_be2host(hdr6f->id);
 		offsmf = uint16_t_be2host(hdr6f->offsmf);
@@ -435,23 +435,23 @@
 		next = hdr6->next;
 	}
-	
+
 	addr128_t src;
 	addr128_t dest;
-	
+
 	addr128_t_be2host(hdr6->src_addr, src);
 	inet_addr_set6(src, &packet->src);
-	
+
 	addr128_t_be2host(hdr6->dest_addr, dest);
 	inet_addr_set6(dest, &packet->dest);
-	
+
 	packet->tos = 0;
 	packet->proto = next;
 	packet->ttl = hdr6->hop_limit;
 	packet->ident = ident;
-	
+
 	packet->df = 1;
 	packet->mf = (offsmf & BIT_V(uint16_t, OF_FLAG_M)) != 0;
 	packet->offs = foff * FRAG_OFFS_UNIT;
-	
+
 	packet->size = payload_len;
 	packet->data = calloc(packet->size, 1);
@@ -460,5 +460,5 @@
 		return ENOMEM;
 	}
-	
+
 	memcpy(packet->data, (uint8_t *) data + data_offs, packet->size);
 	packet->link_id = link_id;
@@ -480,17 +480,17 @@
 	dgram->tos = 0;
 	dgram->size = sizeof(icmpv6_message_t) + sizeof(ndp_message_t);
-	
+
 	dgram->data = calloc(1, dgram->size);
 	if (dgram->data == NULL)
 		return ENOMEM;
-	
+
 	icmpv6_message_t *icmpv6 = (icmpv6_message_t *) dgram->data;
-	
+
 	icmpv6->type = ndp->opcode;
 	icmpv6->code = 0;
 	memset(icmpv6->un.ndp.reserved, 0, 3);
-	
+
 	ndp_message_t *message = (ndp_message_t *) (icmpv6 + 1);
-	
+
 	if (ndp->opcode == ICMPV6_NEIGHBOUR_SOLICITATION) {
 		host2addr128_t_be(ndp->solicited_ip, message->target_address);
@@ -502,10 +502,10 @@
 		icmpv6->un.ndp.flags = NDP_FLAG_OVERRIDE | NDP_FLAG_SOLICITED;
 	}
-	
+
 	message->length = 1;
 	addr48(ndp->sender_hw_addr, message->mac);
-	
+
 	icmpv6_phdr_t phdr;
-	
+
 	host2addr128_t_be(ndp->sender_proto_addr, phdr.src_addr);
 	host2addr128_t_be(ndp->target_proto_addr, phdr.dest_addr);
@@ -513,14 +513,14 @@
 	memset(phdr.zeroes, 0, 3);
 	phdr.next = IP_PROTO_ICMPV6;
-	
+
 	uint16_t cs_phdr =
 	    inet_checksum_calc(INET_CHECKSUM_INIT, &phdr,
 	    sizeof(icmpv6_phdr_t));
-	
+
 	uint16_t cs_all = inet_checksum_calc(cs_phdr, dgram->data,
 	    dgram->size);
-	
+
 	icmpv6->checksum = host2uint16_t_be(cs_all);
-	
+
 	return EOK;
 }
@@ -541,17 +541,17 @@
 	if (src_ver != ip_v6)
 		return EINVAL;
-	
+
 	if (dgram->size < sizeof(icmpv6_message_t) + sizeof(ndp_message_t))
 		return EINVAL;
-	
+
 	icmpv6_message_t *icmpv6 = (icmpv6_message_t *) dgram->data;
-	
+
 	ndp->opcode = icmpv6->type;
-	
+
 	ndp_message_t *message = (ndp_message_t *) (icmpv6 + 1);
-	
+
 	addr128_t_be2host(message->target_address, ndp->target_proto_addr);
 	addr48(message->mac, ndp->sender_hw_addr);
-	
+
 	return EOK;
 }
Index: uspace/srv/net/inetsrv/sroute.c
===================================================================
--- uspace/srv/net/inetsrv/sroute.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/inetsrv/sroute.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -96,37 +96,37 @@
 {
 	ip_ver_t addr_ver = inet_addr_get(addr, NULL, NULL);
-	
+
 	inet_sroute_t *best = NULL;
 	uint8_t best_bits = 0;
-	
-	fibril_mutex_lock(&sroute_list_lock);
-	
+
+	fibril_mutex_lock(&sroute_list_lock);
+
 	list_foreach(sroute_list, sroute_list, inet_sroute_t, sroute) {
 		uint8_t dest_bits;
 		ip_ver_t dest_ver = inet_naddr_get(&sroute->dest, NULL, NULL,
 		    &dest_bits);
-		
+
 		/* Skip comparison with different address family */
 		if (addr_ver != dest_ver)
 			continue;
-		
+
 		/* Look for the most specific route */
 		if ((best != NULL) && (best_bits >= dest_bits))
 			continue;
-		
+
 		if (inet_naddr_compare_mask(&sroute->dest, addr)) {
 			log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_find: found candidate %p",
 			    sroute);
-			
+
 			best = sroute;
 			best_bits = dest_bits;
 		}
 	}
-	
+
 	if (best == NULL)
 		log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_sroute_find: Not found");
-	
-	fibril_mutex_unlock(&sroute_list_lock);
-	
+
+	fibril_mutex_unlock(&sroute_list_lock);
+
 	return best;
 }
Index: uspace/srv/net/loopip/loopip.c
===================================================================
--- uspace/srv/net/loopip/loopip.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/loopip/loopip.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -77,5 +77,5 @@
 typedef struct {
 	link_t link;
-	
+
 	/* XXX Version should be part of SDU */
 	ip_ver_t ver;
@@ -90,11 +90,11 @@
 		rqueue_entry_t *rqe =
 		    list_get_instance(link, rqueue_entry_t, link);
-		
+
 		(void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe->ver);
-		
+
 		free(rqe->sdu.data);
 		free(rqe);
 	}
-	
+
 	return 0;
 }
@@ -103,5 +103,5 @@
 {
 	async_set_fallback_port_handler(loopip_client_conn, NULL);
-	
+
 	errno_t rc = loc_server_register(NAME);
 	if (rc != EOK) {
@@ -109,11 +109,11 @@
 		return rc;
 	}
-	
+
 	iplink_srv_init(&loopip_iplink);
 	loopip_iplink.ops = &loopip_iplink_ops;
 	loopip_iplink.arg = NULL;
-	
+
 	prodcons_initialize(&loopip_rcv_queue);
-	
+
 	const char *svc_name = "net/loopback";
 	service_id_t sid;
@@ -124,5 +124,5 @@
 		return rc;
 	}
-	
+
 	category_id_t iplink_cat;
 	rc = loc_category_get_id("iplink", &iplink_cat, IPC_FLAG_BLOCKING);
@@ -131,5 +131,5 @@
 		return rc;
 	}
-	
+
 	rc = loc_service_add_to_cat(sid, iplink_cat);
 	if (rc != EOK) {
@@ -138,11 +138,11 @@
 		return rc;
 	}
-	
+
 	fid_t fid = fibril_create(loopip_recv_fibril, NULL);
 	if (fid == 0)
 		return ENOMEM;
-	
+
 	fibril_add_ready(fid);
-	
+
 	return EOK;
 }
@@ -169,9 +169,9 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip_send()");
-	
+
 	rqueue_entry_t *rqe = calloc(1, sizeof(rqueue_entry_t));
 	if (rqe == NULL)
 		return ENOMEM;
-	
+
 	/*
 	 * Clone SDU
@@ -183,13 +183,13 @@
 		return ENOMEM;
 	}
-	
+
 	memcpy(rqe->sdu.data, sdu->data, sdu->size);
 	rqe->sdu.size = sdu->size;
-	
+
 	/*
 	 * Insert to receive queue
 	 */
 	prodcons_produce(&loopip_rcv_queue, &rqe->link);
-	
+
 	return EOK;
 }
@@ -198,9 +198,9 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "loopip6_send()");
-	
+
 	rqueue_entry_t *rqe = calloc(1, sizeof(rqueue_entry_t));
 	if (rqe == NULL)
 		return ENOMEM;
-	
+
 	/*
 	 * Clone SDU
@@ -212,13 +212,13 @@
 		return ENOMEM;
 	}
-	
+
 	memcpy(rqe->sdu.data, sdu->data, sdu->size);
 	rqe->sdu.size = sdu->size;
-	
+
 	/*
 	 * Insert to receive queue
 	 */
 	prodcons_produce(&loopip_rcv_queue, &rqe->link);
-	
+
 	return EOK;
 }
@@ -250,5 +250,5 @@
 {
 	printf("%s: HelenOS loopback IP link provider\n", NAME);
-	
+
 	errno_t rc = log_init(NAME);
 	if (rc != EOK) {
@@ -256,5 +256,5 @@
 		return rc;
 	}
-	
+
 	rc = loopip_init();
 	if (rc != EOK) {
@@ -262,9 +262,9 @@
 		return rc;
 	}
-	
+
 	printf("%s: Accepting connections.\n", NAME);
 	task_retval(0);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
Index: uspace/srv/net/slip/slip.c
===================================================================
--- uspace/srv/net/slip/slip.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/net/slip/slip.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -129,8 +129,8 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "slip_send()");
-	
+
 	chardev_t *chardev = (chardev_t *) srv->arg;
 	uint8_t *data = sdu->data;
-	
+
 	/*
 	 * Strictly speaking, this is not prescribed by the RFC, but the RFC
@@ -139,5 +139,5 @@
 	 */
 	write_buffered(chardev, SLIP_END);
-	
+
 	for (size_t i = 0; i < sdu->size; i++) {
 		switch (data[i]) {
@@ -155,8 +155,8 @@
 		}
 	}
-	
+
 	write_buffered(chardev, SLIP_END);
 	write_flush(chardev);
-	
+
 	return EOK;
 }
@@ -165,5 +165,5 @@
 {
 	log_msg(LOG_DEFAULT, LVL_DEBUG, "slip_send6()");
-	
+
 	return ENOTSUP;
 }
@@ -272,5 +272,5 @@
 				break;
 			}
-			
+
 		}
 
Index: uspace/srv/ns/clonable.c
===================================================================
--- uspace/srv/ns/clonable.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/ns/clonable.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -84,22 +84,22 @@
 		return;
 	}
-	
+
 	cs_req_t *csr = list_get_instance(req_link, cs_req_t, link);
 	list_remove(req_link);
-	
+
 	/* Currently we can only handle a single type of clonable service. */
 	assert(csr->service == SERVICE_LOADER);
-	
+
 	async_answer_0(callid, EOK);
-	
+
 	async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE);
 	if (sess == NULL)
 		async_answer_0(callid, EIO);
-	
+
 	async_exch_t *exch = async_exchange_begin(sess);
 	async_forward_fast(csr->callid, exch, csr->iface, csr->arg3, 0,
 	    IPC_FF_NONE);
 	async_exchange_end(exch);
-	
+
 	free(csr);
 	async_hangup(sess);
@@ -120,5 +120,5 @@
 {
 	assert(service == SERVICE_LOADER);
-	
+
 	cs_req_t *csr = malloc(sizeof(cs_req_t));
 	if (csr == NULL) {
@@ -126,8 +126,8 @@
 		return;
 	}
-	
+
 	/* Spawn a loader. */
 	errno_t rc = loader_spawn("loader");
-	
+
 	if (rc != EOK) {
 		free(csr);
@@ -135,5 +135,5 @@
 		return;
 	}
-	
+
 	link_initialize(&csr->link);
 	csr->service = service;
@@ -141,5 +141,5 @@
 	csr->callid = callid;
 	csr->arg3 = IPC_GET_ARG3(*call);
-	
+
 	/*
 	 * We can forward the call only after the server we spawned connects
Index: uspace/srv/ns/ns.c
===================================================================
--- uspace/srv/ns/ns.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/ns/ns.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -69,25 +69,25 @@
 		return;
 	}
-	
+
 	async_answer_0(iid, EOK);
 
 	while (true) {
 		process_pending_conn();
-		
+
 		callid = async_get_call(&call);
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		task_id_t id;
 		errno_t retval;
-		
+
 		service_t service;
 		sysarg_t phone;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case NS_REGISTER:
 			service = IPC_GET_ARG1(call);
 			phone = IPC_GET_ARG5(call);
-			
+
 			/*
 			 * Server requests service registration.
@@ -99,5 +99,5 @@
 				retval = register_service(service, phone, &call);
 			}
-			
+
 			break;
 		case NS_PING:
@@ -120,5 +120,5 @@
 			break;
 		}
-		
+
 		async_answer_0(callid, retval);
 	}
@@ -130,22 +130,22 @@
 {
 	printf("%s: HelenOS IPC Naming Service\n", NAME);
-	
+
 	errno_t rc = service_init();
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = clonable_init();
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = task_init();
 	if (rc != EOK)
 		return rc;
-	
+
 	async_set_fallback_port_handler(ns_connection, NULL);
-	
+
 	printf("%s: Accepting connections\n", NAME);
 	async_manager();
-	
+
 	/* Not reached */
 	return 0;
Index: uspace/srv/ns/service.c
===================================================================
--- uspace/srv/ns/service.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/ns/service.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -43,8 +43,8 @@
 typedef struct {
 	ht_link_t link;
-	
+
 	/** Service ID */
 	service_t service;
-	
+
 	/** Session to the service */
 	async_sess_t *sess;
@@ -60,5 +60,5 @@
 	hashed_service_t *service =
 	    hash_table_get_inst(item, hashed_service_t, link);
-	
+
 	return service->service;
 }
@@ -68,5 +68,5 @@
 	hashed_service_t *service =
 	    hash_table_get_inst(item, hashed_service_t, link);
-	
+
 	return service->service == *(service_t *) key;
 }
@@ -102,7 +102,7 @@
 		return ENOMEM;
 	}
-	
+
 	list_initialize(&pending_conn);
-	
+
 	return EOK;
 }
@@ -116,5 +116,5 @@
 		if (!link)
 			continue;
-		
+
 		hashed_service_t *hashed_service = hash_table_get_inst(link, hashed_service_t, link);
 		async_exch_t *exch = async_exchange_begin(hashed_service->sess);
@@ -122,8 +122,8 @@
 		    pending->arg3, 0, IPC_FF_NONE);
 		async_exchange_end(exch);
-		
+
 		list_remove(&pending->link);
 		free(pending);
-		
+
 		goto loop;
 	}
@@ -143,15 +143,15 @@
 	if (hash_table_find(&service_hash_table, &service))
 		return EEXIST;
-	
+
 	hashed_service_t *hashed_service =
 	    (hashed_service_t *) malloc(sizeof(hashed_service_t));
 	if (!hashed_service)
 		return ENOMEM;
-	
+
 	hashed_service->service = service;
 	hashed_service->sess = async_callback_receive(EXCHANGE_SERIALIZE);
 	if (hashed_service->sess == NULL)
 		return EIO;
-	
+
 	hash_table_insert(&service_hash_table, &hashed_service->link);
 	return EOK;
@@ -174,5 +174,5 @@
 	sysarg_t flags = IPC_GET_ARG4(*call);
 	errno_t retval;
-	
+
 	ht_link_t *link = hash_table_find(&service_hash_table, &service);
 	if (!link) {
@@ -185,5 +185,5 @@
 				goto out;
 			}
-			
+
 			link_initialize(&pending->link);
 			pending->service = service;
@@ -191,13 +191,13 @@
 			pending->callid = callid;
 			pending->arg3 = arg3;
-			
+
 			list_append(&pending->link, &pending_conn);
 			return;
 		}
-		
+
 		retval = ENOENT;
 		goto out;
 	}
-	
+
 	hashed_service_t *hashed_service = hash_table_get_inst(link, hashed_service_t, link);
 	async_exch_t *exch = async_exchange_begin(hashed_service->sess);
@@ -205,5 +205,5 @@
 	async_exchange_end(exch);
 	return;
-	
+
 out:
 	async_answer_0(callid, retval);
Index: uspace/srv/ns/task.c
===================================================================
--- uspace/srv/ns/task.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/ns/task.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -48,5 +48,5 @@
 typedef struct {
 	ht_link_t link;
-	
+
 	task_id_t id;    /**< Task ID. */
 	bool finished;   /**< Task is done. */
@@ -115,5 +115,5 @@
 	sysarg_t in_phone_hash = *(sysarg_t*)key;
 	p2i_entry_t *entry = hash_table_get_inst(item, p2i_entry_t, link);
-	
+
 	return (in_phone_hash == entry->in_phone_hash);
 }
@@ -157,10 +157,10 @@
 		return ENOMEM;
 	}
-	
+
 	if (!hash_table_create(&phone_to_id, 0, 0, &p2i_ops)) {
 		printf(NAME ": No memory available for tasks\n");
 		return ENOMEM;
 	}
-	
+
 	list_initialize(&pending_wait);
 	return EOK;
@@ -171,5 +171,5 @@
 {
 	task_exit_t texit;
-	
+
 loop:
 	list_foreach(pending_wait, link, pending_wait_t, pr) {
@@ -177,13 +177,13 @@
 		if (!link)
 			continue;
-		
+
 		hashed_task_t *ht = hash_table_get_inst(link, hashed_task_t, link);
 		if (!ht->finished)
 			continue;
-		
+
 		texit = ht->have_rval ? TASK_EXIT_NORMAL :
 		    TASK_EXIT_UNEXPECTED;
 		async_answer_2(pr->callid, EOK, texit, ht->retval);
-		
+
 		list_remove(&pr->link);
 		free(pr);
@@ -197,5 +197,5 @@
 	hashed_task_t *ht = (link != NULL) ?
 	    hash_table_get_inst(link, hashed_task_t, link) : NULL;
-	
+
 	if (ht == NULL) {
 		/* No such task exists. */
@@ -203,5 +203,5 @@
 		return;
 	}
-	
+
 	if (ht->finished) {
 		task_exit_t texit = ht->have_rval ? TASK_EXIT_NORMAL :
@@ -210,5 +210,5 @@
 		return;
 	}
-	
+
 	/* Add to pending list */
 	pending_wait_t *pr =
@@ -218,5 +218,5 @@
 		return;
 	}
-	
+
 	link_initialize(&pr->link);
 	pr->id = id;
@@ -228,13 +228,13 @@
 {
 	task_id_t id = MERGE_LOUP32(IPC_GET_ARG1(*call), IPC_GET_ARG2(*call));
-	
+
 	ht_link_t *link = hash_table_find(&phone_to_id, &call->in_phone_hash);
 	if (link != NULL)
 		return EEXIST;
-	
+
 	p2i_entry_t *entry = (p2i_entry_t *) malloc(sizeof(p2i_entry_t));
 	if (entry == NULL)
 		return ENOMEM;
-	
+
 	hashed_task_t *ht = (hashed_task_t *) malloc(sizeof(hashed_task_t));
 	if (ht == NULL) {
@@ -242,17 +242,17 @@
 		return ENOMEM;
 	}
-	
+
 	/*
 	 * Insert into the phone-to-id map.
 	 */
-	
+
 	entry->in_phone_hash = call->in_phone_hash;
 	entry->id = id;
 	hash_table_insert(&phone_to_id, &entry->link);
-	
+
 	/*
 	 * Insert into the main table.
 	 */
-	
+
 	ht->id = id;
 	ht->finished = false;
@@ -260,5 +260,5 @@
 	ht->retval = -1;
 	hash_table_insert(&task_hash_table, &ht->link);
-	
+
 	return EOK;
 }
@@ -269,8 +269,8 @@
 	if (link == NULL)
 		return ENOENT;
-	
+
 	p2i_entry_t *entry = hash_table_get_inst(link, p2i_entry_t, link);
 	*id = entry->id;
-	
+
 	return EOK;
 }
@@ -279,18 +279,18 @@
 {
 	task_id_t id = call->in_task_id;
-	
+
 	ht_link_t *link = hash_table_find(&task_hash_table, &id);
 	hashed_task_t *ht = (link != NULL) ?
 	    hash_table_get_inst(link, hashed_task_t, link) : NULL;
-	
+
 	if ((ht == NULL) || (ht->finished))
 		return EINVAL;
-	
+
 	ht->finished = true;
 	ht->have_rval = true;
 	ht->retval = IPC_GET_ARG1(*call);
-	
+
 	process_pending_wait();
-	
+
 	return EOK;
 }
@@ -302,8 +302,8 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	/* Delete from phone-to-id map. */
 	hash_table_remove(&phone_to_id, &call->in_phone_hash);
-	
+
 	/* Mark task as finished. */
 	ht_link_t *link = hash_table_find(&task_hash_table, &id);
@@ -312,10 +312,10 @@
 
 	hashed_task_t *ht = hash_table_get_inst(link, hashed_task_t, link);
-	
+
 	ht->finished = true;
-	
+
 	process_pending_wait();
 	hash_table_remove(&task_hash_table, &id);
-	
+
 	return EOK;
 }
Index: uspace/srv/taskmon/taskmon.c
===================================================================
--- uspace/srv/taskmon/taskmon.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/taskmon/taskmon.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -135,5 +135,5 @@
 {
 	printf("%s: Task Monitoring Service\n", NAME);
-	
+
 #ifdef CONFIG_WRITE_CORE_FILES
 	write_core_files = true;
@@ -145,7 +145,7 @@
 		return -1;
 	}
-	
+
 	async_set_fallback_port_handler(corecfg_client_conn, NULL);
-	
+
 	errno_t rc = loc_server_register(NAME);
 	if (rc != EOK) {
@@ -154,5 +154,5 @@
 		return -1;
 	}
-	
+
 	service_id_t sid;
 	rc = loc_service_register(SERVICE_NAME_CORECFG, &sid);
@@ -162,8 +162,8 @@
 		return -1;
 	}
-	
+
 	task_retval(0);
 	async_manager();
-	
+
 	return 0;
 }
Index: uspace/srv/vfs/vfs.c
===================================================================
--- uspace/srv/vfs/vfs.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/vfs/vfs.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -62,8 +62,8 @@
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case IPC_M_PAGE_IN:
@@ -91,5 +91,5 @@
 
 	printf("%s: HelenOS VFS server\n", NAME);
-	
+
 	/*
 	 * Initialize VFS node hash table.
@@ -100,5 +100,5 @@
 		return ENOMEM;
 	}
-	
+
 	/*
 	 * Allocate and initialize the Path Lookup Buffer.
@@ -111,5 +111,5 @@
 	}
 	memset(plb, 0, PLB_SIZE);
-	
+
 	/*
 	 * Set client data constructor and destructor.
@@ -138,5 +138,5 @@
 	async_event_task_subscribe(EVENT_TASK_STATE_CHANGE, notification_handler,
 	    NULL);
-	
+
 	/*
 	 * Register at the naming service.
@@ -147,5 +147,5 @@
 		return rc;
 	}
-	
+
 	/*
 	 * Start accepting connections.
Index: uspace/srv/vfs/vfs.h
===================================================================
--- uspace/srv/vfs/vfs.h	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/vfs/vfs.h	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -110,5 +110,5 @@
 	 */
 	unsigned refcnt;
-	
+
 	ht_link_t nh_link;		/**< Node hash-table link. */
 
@@ -121,5 +121,5 @@
 	 */
 	fibril_rwlock_t contents_rwlock;
-	
+
 	struct _vfs_node *mount;
 } vfs_node_t;
@@ -134,5 +134,5 @@
 
 	vfs_node_t *node;
-	
+
 	/** Number of file handles referencing this file. */
 	unsigned refcnt;
Index: uspace/srv/vfs/vfs_file.c
===================================================================
--- uspace/srv/vfs/vfs_file.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/vfs/vfs_file.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -94,5 +94,5 @@
 			(void) _vfs_fd_free(vfs_data, i);
 	}
-	
+
 	free(vfs_data->files);
 
@@ -100,5 +100,5 @@
 		link_t *lnk;
 		vfs_boxed_handle_t *bh;
-		
+
 		lnk = list_first(&vfs_data->passed_handles);
 		list_remove(lnk);
@@ -120,5 +120,5 @@
 		vfs_data->files = NULL;
 	}
-	
+
 	return vfs_data;
 }
@@ -136,16 +136,16 @@
 {
 	assert(!file->refcnt);
-	
+
 	async_exch_t *exch = vfs_exchange_grab(file->node->fs_handle);
-	
+
 	ipc_call_t answer;
 	aid_t msg = async_send_2(exch, VFS_OUT_CLOSE, file->node->service_id,
 	    file->node->index, &answer);
-	
+
 	vfs_exchange_release(exch);
-	
+
 	errno_t rc;
 	async_wait_for(msg, &rc);
-	
+
 	return IPC_GET_RETVAL(answer);
 }
@@ -179,5 +179,5 @@
 		 * endpoint FS and drop our reference to the underlying VFS node.
 		 */
-		
+
 		if (file->node != NULL) {
 			if (file->open_read || file->open_write) {
@@ -196,5 +196,5 @@
 	if (!vfs_files_init(vfs_data))
 		return ENOMEM;
-	
+
 	unsigned int i;
 	if (desc)
@@ -202,5 +202,5 @@
 	else
 		i = 0;
-	
+
 	fibril_mutex_lock(&vfs_data->lock);
 	while (true) {
@@ -211,34 +211,34 @@
 				return ENOMEM;
 			}
-			
-			
+
+
 			memset(vfs_data->files[i], 0, sizeof(vfs_file_t));
-			
+
 			fibril_mutex_initialize(&vfs_data->files[i]->_lock);
 			fibril_mutex_lock(&vfs_data->files[i]->_lock);
 			vfs_file_addref(vfs_data, vfs_data->files[i]);
-			
+
 			*file = vfs_data->files[i];
 			vfs_file_addref(vfs_data, *file);
-			
+
 			fibril_mutex_unlock(&vfs_data->lock);
 			*out_fd = (int) i;
 			return EOK;
 		}
-		
+
 		if (desc) {
 			if (i == 0)
 				break;
-			
+
 			i--;
 		} else {
 			if (i == MAX_OPEN_FILES - 1)
 				break;
-			
+
 			i++;
 		}
 	}
 	fibril_mutex_unlock(&vfs_data->lock);
-	
+
 	return EMFILE;
 }
@@ -280,5 +280,5 @@
 	rc = _vfs_fd_free_locked(vfs_data, fd);
 	fibril_mutex_unlock(&vfs_data->lock);
-	
+
 	return rc;
 }
@@ -319,9 +319,9 @@
 	(void) _vfs_fd_free_locked(VFS_DATA, fd);
 	assert(FILES[fd] == NULL);
-	
+
 	FILES[fd] = file;
 	vfs_file_addref(VFS_DATA, FILES[fd]);
 	fibril_mutex_unlock(&VFS_DATA->lock);
-	
+
 	return EOK;
 }
@@ -330,5 +330,5 @@
 {
 	fibril_mutex_unlock(&file->_lock);
-	
+
 	fibril_mutex_lock(&vfs_data->lock);
 	vfs_file_delref(vfs_data, file);
@@ -340,5 +340,5 @@
 	if (!vfs_files_init(vfs_data))
 		return NULL;
-	
+
 	fibril_mutex_lock(&vfs_data->lock);
 	if ((fd >= 0) && (fd < MAX_OPEN_FILES)) {
@@ -347,5 +347,5 @@
 			vfs_file_addref(vfs_data, file);
 			fibril_mutex_unlock(&vfs_data->lock);
-			
+
 			fibril_mutex_lock(&file->_lock);
 			if (file->node == NULL) {
@@ -359,5 +359,5 @@
 	}
 	fibril_mutex_unlock(&vfs_data->lock);
-	
+
 	return NULL;
 }
@@ -432,5 +432,5 @@
 {
 	vfs_client_data_t *vfs_data = VFS_DATA;
-	
+
 	fibril_mutex_lock(&vfs_data->lock);
 	while (list_empty(&vfs_data->passed_handles))
@@ -449,5 +449,5 @@
 		return rc;
 	}
-	
+
 	file->node = bh->node;
 	file->permissions = bh->permissions;
Index: uspace/srv/vfs/vfs_ipc.c
===================================================================
--- uspace/srv/vfs/vfs_ipc.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/vfs/vfs_ipc.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -40,5 +40,5 @@
 	int newfd = IPC_GET_ARG2(*request);
 	bool desc = IPC_GET_ARG3(*request);
-	
+
 	int outfd = -1;
 	errno_t rc = vfs_op_clone(oldfd, newfd, desc, &outfd);
@@ -54,5 +54,5 @@
 	size_t len;
 	errno_t rc;
-	
+
 	/*
 	 * Now we expect the client to send us data with the name of the file
@@ -65,10 +65,10 @@
 		return;
 	}
-	
+
 	rc = vfs_op_fsprobe(fs_name, service_id, &info);
 	async_answer_0(rid, rc);
 	if (rc != EOK)
 		goto out;
-	
+
 	/* Now we should get a read request */
 	if (!async_data_read_receive(&callid, &len))
@@ -114,5 +114,5 @@
 {
 	int mpfd = IPC_GET_ARG1(*request);
-	
+
 	/*
 	 * We expect the library to do the device-name to device-handle
@@ -121,11 +121,11 @@
 	 */
 	service_id_t service_id = (service_id_t) IPC_GET_ARG2(*request);
-	
+
 	unsigned int flags = (unsigned int) IPC_GET_ARG3(*request);
 	unsigned int instance = IPC_GET_ARG4(*request);
-	
+
 	char *opts = NULL;
 	char *fs_name = NULL;
-	
+
 	/* Now we expect to receive the mount options. */
 	errno_t rc = async_data_write_accept((void **) &opts, true, 0,
@@ -135,5 +135,5 @@
 		return;
 	}
-	
+
 	/* Now, we expect the client to send us data with the name of the file
 	 * system.
@@ -146,10 +146,10 @@
 		return;
 	}
-	
+
 	int outfd = 0;
 	rc = vfs_op_mount(mpfd, service_id, flags, instance, opts, fs_name,
 	     &outfd);
 	async_answer_1(rid, rc, outfd);
-	
+
 	free(opts);
 	free(fs_name);
@@ -190,30 +190,30 @@
 	char *new = NULL;
 	errno_t rc;
-	
+
 	basefd = IPC_GET_ARG1(*request);
-	
+
 	/* Retrieve the old path. */
 	rc = async_data_write_accept((void **) &old, true, 0, 0, 0, NULL);
 	if (rc != EOK)
 		goto out;
-	
+
 	/* Retrieve the new path. */
 	rc = async_data_write_accept((void **) &new, true, 0, 0, 0, NULL);
 	if (rc != EOK)
 		goto out;
-	
+
 	size_t olen;
 	size_t nlen;
 	char *oldc = canonify(old, &olen);
 	char *newc = canonify(new, &nlen);
-	
+
 	if ((!oldc) || (!newc)) {
 		rc = EINVAL;
 		goto out;
 	}
-	
+
 	assert(oldc[olen] == '\0');
 	assert(newc[nlen] == '\0');
-	
+
 	rc = vfs_op_rename(basefd, oldc, newc);
 
@@ -245,5 +245,5 @@
 {
 	int fd = (int) IPC_GET_ARG1(*request);
-	
+
 	errno_t rc = vfs_op_statfs(fd);
 	async_answer_0(rid, rc);
@@ -261,10 +261,10 @@
 	int parentfd = IPC_GET_ARG1(*request);
 	int expectfd = IPC_GET_ARG2(*request);
-	
+
 	char *path;
 	errno_t rc = async_data_write_accept((void **) &path, true, 0, 0, 0, NULL);
 	if (rc == EOK)
 		rc = vfs_op_unlink(parentfd, expectfd, path);
-	
+
 	async_answer_0(rid, rc);
 }
@@ -293,5 +293,5 @@
 	int parentfd = IPC_GET_ARG1(*request);
 	int flags = IPC_GET_ARG2(*request);
-	
+
 	int fd = 0;
 	char *path;
@@ -318,5 +318,5 @@
 {
 	bool cont = true;
-	
+
 	/*
 	 * The connection was opened via the IPC_CONNECT_ME_TO call.
@@ -324,12 +324,12 @@
 	 */
 	async_answer_0(iid, EOK);
-	
+
 	while (cont) {
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
+
 		if (!IPC_GET_IMETHOD(call))
 			break;
-		
+
 		switch (IPC_GET_IMETHOD(call)) {
 		case VFS_IN_CLONE:
@@ -393,5 +393,5 @@
 		}
 	}
-	
+
 	/*
 	 * Open files for this client will be cleaned up when its last
Index: uspace/srv/vfs/vfs_lookup.c
===================================================================
--- uspace/srv/vfs/vfs_lookup.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/vfs/vfs_lookup.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -108,5 +108,5 @@
 	 */
 	list_append(&entry->plb_link, &plb_entries);
-	
+
 	fibril_mutex_unlock(&plb_mutex);
 
@@ -116,5 +116,5 @@
 	size_t cnt1 = min(len, (PLB_SIZE - first) + 1);
 	size_t cnt2 = len - cnt1;
-	
+
 	memcpy(&plb[first], path, cnt1);
 	memcpy(plb, &path[cnt1], cnt2);
@@ -145,9 +145,9 @@
 	assert(child->fs_handle);
 	assert(path != NULL);
-	
+
 	vfs_lookup_res_t res;
 	char component[NAME_MAX + 1];
 	errno_t rc;
-	
+
 	size_t len;
 	char *npath = canonify(path, &len);
@@ -157,7 +157,7 @@
 	}
 	path = npath;
-	
+
 	vfs_triplet_t *triplet;
-	
+
 	char *slash = str_rchr(path, L'/');
 	if (slash && slash != path) {
@@ -166,13 +166,13 @@
 			goto out;
 		}
-		
+
 		memcpy(component, slash + 1, str_size(slash));
 		*slash = 0;
-		
+
 		rc = vfs_lookup_internal(base, path, L_DIRECTORY, &res);
 		if (rc != EOK)
 			goto out;
 		triplet = &res.triplet;
-		
+
 		*slash = '/';
 	} else {
@@ -181,9 +181,9 @@
 			goto out;
 		}
-		
+
 		memcpy(component, path + 1, str_size(path));
 		triplet = (vfs_triplet_t *) base;
 	}
-	
+
 	if (triplet->fs_handle != child->fs_handle ||
 	    triplet->service_id != child->service_id) {
@@ -191,9 +191,9 @@
 		goto out;
 	}
-	
+
 	async_exch_t *exch = vfs_exchange_grab(triplet->fs_handle);
 	aid_t req = async_send_3(exch, VFS_OUT_LINK, triplet->service_id,
 	    triplet->index, child->index, NULL);
-	
+
 	rc = async_data_write_start(exch, component, str_size(component) + 1);
 	errno_t orig_rc;
@@ -202,5 +202,5 @@
 	if (orig_rc != EOK)
 		rc = orig_rc;
-	
+
 out:
 	return rc;
@@ -212,5 +212,5 @@
 	assert(base);
 	assert(result);
-	
+
 	errno_t rc;
 	ipc_call_t answer;
@@ -221,12 +221,12 @@
 	async_wait_for(req, &rc);
 	vfs_exchange_release(exch);
-	
+
 	if (rc != EOK)
 		return rc;
-	
+
 	unsigned last = *pfirst + *plen;
 	*pfirst = IPC_GET_ARG3(answer) & 0xffff;
 	*plen = last - *pfirst;
-	
+
 	result->triplet.fs_handle = (fs_handle_t) IPC_GET_ARG1(answer);
 	result->triplet.service_id = base->service_id;
@@ -248,10 +248,10 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	size_t next = first;
 	size_t nlen = len;
-	
+
 	vfs_lookup_res_t res;
-	
+
 	/* Resolve path as long as there are mount points to cross. */
 	while (nlen > 0) {
@@ -261,13 +261,13 @@
 				goto out;
 			}
-			
+
 			base = base->mount;
 		}
-		
+
 		rc = out_lookup((vfs_triplet_t *) base, &next, &nlen, lflag,
 		    &res);
 		if (rc != EOK)
 			goto out;
-		
+
 		if (nlen > 0) {
 			base = vfs_node_peek(&res);
@@ -288,8 +288,8 @@
 		}
 	}
-	
+
 	assert(nlen == 0);
 	rc = EOK;
-	
+
 	if (result != NULL) {
 		/* The found file may be a mount point. Try to cross it. */
@@ -303,5 +303,5 @@
 					base = nbase;
 				}
-				
+
 				result->triplet = *((vfs_triplet_t *) base);
 				result->type = base->type;
@@ -316,5 +316,5 @@
 		*result = res;
 	}
-	
+
 out:
 	plb_clear_entry(&entry, first, len);
@@ -339,5 +339,5 @@
 	assert(base != NULL);
 	assert(path != NULL);
-	
+
 	size_t len;
 	errno_t rc;
@@ -348,5 +348,5 @@
 	}
 	path = npath;
-	
+
 	assert(path[0] == '/');
 
@@ -367,5 +367,5 @@
 		char *slash = str_rchr(path, L'/');
 		vfs_node_t *parent = base;
-		
+
 		if (slash != path) {
 			int tflag = lflag;
@@ -392,5 +392,5 @@
 		rc = _vfs_lookup_internal(base, path, lflag, result, len);
 	}
-	
+
 	return rc;
 }
Index: uspace/srv/vfs/vfs_node.c
===================================================================
--- uspace/srv/vfs/vfs_node.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/vfs/vfs_node.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -108,7 +108,7 @@
 {
 	bool free_node = false;
-	
-	fibril_mutex_lock(&nodes_mutex);
-	
+
+	fibril_mutex_lock(&nodes_mutex);
+
 	node->refcnt--;
 	if (node->refcnt == 0) {
@@ -117,11 +117,11 @@
 		 * Remove it from the VFS node hash table.
 		 */
-		
+
 		hash_table_remove_item(&nodes, &node->nh_link);
 		free_node = true;
 	}
-	
-	fibril_mutex_unlock(&nodes_mutex);
-	
+
+	fibril_mutex_unlock(&nodes_mutex);
+
 	if (free_node) {
 		/*
@@ -129,5 +129,5 @@
 		 * are no more hard links.
 		 */
-		
+
 		async_exch_t *exch = vfs_exchange_grab(node->fs_handle);
 		async_msg_2(exch, VFS_OUT_DESTROY, (sysarg_t) node->service_id,
@@ -239,5 +239,5 @@
 	    (node->service_id == rd->service_id))
 		rd->refcnt += node->refcnt;
-	
+
 	return true;
 }
@@ -268,14 +268,14 @@
 {
 	async_exch_t *exch = vfs_exchange_grab(node->fs_handle);
-	
+
 	ipc_call_t answer;
 	aid_t req = async_send_2(exch, VFS_OUT_OPEN_NODE,
 	    (sysarg_t) node->service_id, (sysarg_t) node->index, &answer);
-	
+
 	vfs_exchange_release(exch);
 
 	errno_t rc;
 	async_wait_for(req, &rc);
-	
+
 	return rc;
 }
@@ -311,5 +311,5 @@
 		.index = node->index
 	};
-	
+
 	return tri;
 }
Index: uspace/srv/vfs/vfs_ops.c
===================================================================
--- uspace/srv/vfs/vfs_ops.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/vfs/vfs_ops.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -64,11 +64,11 @@
 {
 	size_t res = 0;
-	
+
 	while (a[res] == b[res] && a[res] != 0)
 		res++;
-	
+
 	if (a[res] == b[res])
 		return res;
-	
+
 	res--;
 	while (a[res] != '/')
@@ -93,5 +93,5 @@
 	if (oldfd == newfd)
 		return EOK;
-	
+
 	/* Lookup the file structure corresponding to fd. */
 	vfs_file_t *oldfile = vfs_file_get(oldfd);
@@ -112,10 +112,10 @@
 			newfile->permissions = oldfile->permissions;
 			vfs_node_addref(newfile->node);
-	
+
 			vfs_file_put(newfile);
 		}
 	}
 	vfs_file_put(oldfile);
-	
+
 	return rc;
 }
@@ -131,12 +131,12 @@
 {
 	fs_handle_t fs_handle = 0;
-	
+
 	fibril_mutex_lock(&fs_list_lock);
 	while (true) {
 		fs_handle = fs_name_to_handle(instance, fsname, false);
-		
+
 		if (fs_handle != 0 || !(flags & VFS_MOUNT_BLOCKING))
 			break;
-		
+
 		fibril_condvar_wait(&fs_list_cv, &fs_list_lock);
 	}
@@ -145,5 +145,5 @@
 	if (fs_handle == 0)
 		return ENOFS;
-	
+
 	/* Tell the mountee that it is being mounted. */
 	ipc_call_t answer;
@@ -164,5 +164,5 @@
 		return rc;
 	}
-	
+
 	vfs_lookup_res_t res;
 	res.triplet.fs_handle = fs_handle;
@@ -172,5 +172,5 @@
 	    IPC_GET_ARG3(answer));
 	res.type = VFS_NODE_DIRECTORY;
-	
+
 	/* Add reference to the mounted root. */
 	*root = vfs_node_get(&res);
@@ -182,5 +182,5 @@
 		return ENOMEM;
 	}
-			
+
 	vfs_exchange_release(exch);
 
@@ -194,12 +194,12 @@
 	errno_t rc;
 	errno_t retval;
-	
+
 	fibril_mutex_lock(&fs_list_lock);
 	fs_handle = fs_name_to_handle(0, fs_name, false);
 	fibril_mutex_unlock(&fs_list_lock);
-	
+
 	if (fs_handle == 0)
 		return ENOFS;
-	
+
 	/* Send probe request to the file system server */
 	ipc_call_t answer;
@@ -209,5 +209,5 @@
 	if (msg == 0)
 		return EINVAL;
-	
+
 	/* Read probe information */
 	retval = async_data_read_start(exch, info, sizeof(*info));
@@ -216,5 +216,5 @@
 		return retval;
 	}
-	
+
 	async_wait_for(msg, &rc);
 	vfs_exchange_release(exch);
@@ -229,5 +229,5 @@
 	vfs_file_t *file = NULL;
 	*out_fd = -1;
-	
+
 	if (!(flags & VFS_MOUNT_CONNECT_ONLY)) {
 		mp = vfs_file_get(mpfd);
@@ -236,15 +236,15 @@
 			goto out;
 		}
-		
+
 		if (mp->node->mount != NULL) {
 			rc = EBUSY;
 			goto out;
 		}
-		
+
 		if (mp->node->type != VFS_NODE_DIRECTORY) {
 			rc = ENOTDIR;
 			goto out;
 		}
-		
+
 		if (vfs_node_has_children(mp->node)) {
 			rc = ENOTEMPTY;
@@ -252,5 +252,5 @@
 		}
 	}
-	
+
 	if (!(flags & VFS_MOUNT_NO_REF)) {
 		rc = vfs_fd_alloc(&file, false, out_fd);
@@ -259,7 +259,7 @@
 		}
 	}
-	
+
 	vfs_node_t *root = NULL;
-	
+
 	fibril_rwlock_write_lock(&namespace_rwlock);
 
@@ -271,15 +271,15 @@
 		mp->node->mount = root;
 	}
-	
+
 	fibril_rwlock_write_unlock(&namespace_rwlock);
-	
+
 	if (rc != EOK)
 		goto out;
-	
+
 	if (flags & VFS_MOUNT_NO_REF) {
 		vfs_node_delref(root);
 	} else {
 		assert(file != NULL);
-		
+
 		file->node = root;
 		file->permissions = MODE_READ | MODE_WRITE | MODE_APPEND;
@@ -287,5 +287,5 @@
 		file->open_write = false;
 	}
-	
+
 out:
 	if (mp)
@@ -298,5 +298,5 @@
 		*out_fd = -1;
 	}
-	
+
 	return rc;
 }
@@ -310,24 +310,24 @@
 	if (!file)
 		return EBADF;
-	
+
 	if ((mode & ~file->permissions) != 0) {
 		vfs_file_put(file);
 		return EPERM;
 	}
-	
+
 	if (file->open_read || file->open_write) {
 		vfs_file_put(file);
 		return EBUSY;
 	}
-	
+
 	file->open_read = (mode & MODE_READ) != 0;
 	file->open_write = (mode & (MODE_WRITE | MODE_APPEND)) != 0;
 	file->append = (mode & MODE_APPEND) != 0;
-	
+
 	if (!file->open_read && !file->open_write) {
 		vfs_file_put(file);
 		return EINVAL;
 	}
-	
+
 	if (file->node->type == VFS_NODE_DIRECTORY && file->open_write) {
 		file->open_read = file->open_write = false;
@@ -335,5 +335,5 @@
 		return EINVAL;
 	}
-	
+
 	errno_t rc = vfs_open_node_remote(file->node);
 	if (rc != EOK) {
@@ -342,5 +342,5 @@
 		return rc;
 	}
-	
+
 	vfs_file_put(file);
 	return EOK;
@@ -385,5 +385,5 @@
 	if (exch == NULL)
 		return ENOENT;
-	
+
 	aid_t msg = async_send_fast(exch, read ? VFS_OUT_READ : VFS_OUT_WRITE,
 	    file->node->service_id, file->node->index, LOWER32(pos),
@@ -397,8 +397,8 @@
 		return retval;
 	}
-	
+
 	errno_t rc;
 	async_wait_for(msg, &rc);
-	
+
 	chunk->size = IPC_GET_ARG1(*answer);
 
@@ -418,21 +418,21 @@
 	 * open files supports parallel access!
 	 */
-	
+
 	/* Lookup the file structure corresponding to the file descriptor. */
 	vfs_file_t *file = vfs_file_get(fd);
 	if (!file)
 		return EBADF;
-	
+
 	if ((read && !file->open_read) || (!read && !file->open_write)) {
 		vfs_file_put(file);
 		return EINVAL;
 	}
-	
+
 	vfs_info_t *fs_info = fs_handle_to_info(file->node->fs_handle);
 	assert(fs_info);
-	
+
 	bool rlock = read ||
 	    (fs_info->concurrent_read_write && fs_info->write_retains_size);
-	
+
 	/*
 	 * Lock the file's node so that no other client can read/write to it at
@@ -444,5 +444,5 @@
 	else
 		fibril_rwlock_write_lock(&file->node->contents_rwlock);
-	
+
 	if (file->node->type == VFS_NODE_DIRECTORY) {
 		/*
@@ -450,5 +450,5 @@
 		 * while we are in readdir().
 		 */
-		
+
 		if (!read) {
 			if (rlock) {
@@ -462,13 +462,13 @@
 			return EINVAL;
 		}
-		
+
 		fibril_rwlock_read_lock(&namespace_rwlock);
 	}
-	
+
 	async_exch_t *fs_exch = vfs_exchange_grab(file->node->fs_handle);
-	
+
 	if (!read && file->append)
 		pos = file->node->size;
-	
+
 	/*
 	 * Handle communication with the endpoint FS.
@@ -476,10 +476,10 @@
 	ipc_call_t answer;
 	errno_t rc = ipc_cb(fs_exch, file, pos, &answer, read, ipc_cb_data);
-	
+
 	vfs_exchange_release(fs_exch);
-	
+
 	if (file->node->type == VFS_NODE_DIRECTORY)
 		fibril_rwlock_read_unlock(&namespace_rwlock);
-	
+
 	/* Unlock the VFS node. */
 	if (rlock) {
@@ -493,5 +493,5 @@
 		fibril_rwlock_write_unlock(&file->node->contents_rwlock);
 	}
-	
+
 	vfs_file_put(file);
 
@@ -518,14 +518,14 @@
 	vfs_node_addref(base);
 	vfs_file_put(base_file);
-	
+
 	vfs_lookup_res_t base_lr;
 	vfs_lookup_res_t old_lr;
 	vfs_lookup_res_t new_lr_orig;
 	bool orig_unlinked = false;
-	
+
 	errno_t rc;
-	
+
 	size_t shared = shared_path(old, new);
-	
+
 	/* Do not allow one path to be a prefix of the other. */
 	if (old[shared] == 0 || new[shared] == 0) {
@@ -535,7 +535,7 @@
 	assert(old[shared] == '/');
 	assert(new[shared] == '/');
-	
+
 	fibril_rwlock_write_lock(&namespace_rwlock);
-	
+
 	/* Resolve the shared portion of the path first. */
 	if (shared != 0) {
@@ -547,5 +547,5 @@
 			return rc;
 		}
-		
+
 		vfs_node_put(base);
 		base = vfs_node_get(&base_lr);
@@ -565,5 +565,5 @@
 		return rc;
 	}
-		
+
 	rc = vfs_lookup_internal(base, new, L_UNLINK | L_DISABLE_MOUNTS,
 	    &new_lr_orig);
@@ -595,5 +595,5 @@
 		return rc;
 	}
-	
+
 	/* If the node is not held by anyone, try to destroy it. */
 	if (orig_unlinked) {
@@ -604,5 +604,5 @@
 			vfs_node_put(node);
 	}
-	
+
 	vfs_node_put(base);
 	fibril_rwlock_write_unlock(&namespace_rwlock);
@@ -617,10 +617,10 @@
 
 	fibril_rwlock_write_lock(&file->node->contents_rwlock);
-	
+
 	errno_t rc = vfs_truncate_internal(file->node->fs_handle,
 	    file->node->service_id, file->node->index, size);
 	if (rc == EOK)
 		file->node->size = size;
-	
+
 	fibril_rwlock_write_unlock(&file->node->contents_rwlock);
 	vfs_file_put(file);
@@ -640,5 +640,5 @@
 	    node->service_id, node->index, true, 0, NULL);
 	vfs_exchange_release(exch);
-	
+
 	vfs_file_put(file);
 	return rc;
@@ -667,20 +667,20 @@
 	if (!file)
 		return EBADF;
-	
+
 	async_exch_t *fs_exch = vfs_exchange_grab(file->node->fs_handle);
-	
+
 	aid_t msg;
 	ipc_call_t answer;
 	msg = async_send_2(fs_exch, VFS_OUT_SYNC, file->node->service_id,
 	    file->node->index, &answer);
-	
+
 	vfs_exchange_release(fs_exch);
-	
+
 	errno_t rc;
 	async_wait_for(msg, &rc);
-	
+
 	vfs_file_put(file);
 	return rc;
-	
+
 }
 
@@ -693,5 +693,5 @@
 	    UPPER32(size));
 	vfs_exchange_release(exch);
-	
+
 	return (errno_t) rc;
 }
@@ -702,10 +702,10 @@
 	vfs_file_t *parent = NULL;
 	vfs_file_t *expect = NULL;
-	
+
 	if (parentfd == expectfd)
 		return EINVAL;
-	
+
 	fibril_rwlock_write_lock(&namespace_rwlock);
-	
+
 	/*
 	 * Files are retrieved in order of file descriptors, to prevent
@@ -719,5 +719,5 @@
 		}
 	}
-	
+
 	if (expectfd >= 0) {
 		expect = vfs_file_get(expectfd);
@@ -727,5 +727,5 @@
 		}
 	}
-	
+
 	if (parentfd > expectfd) {
 		parent = vfs_file_get(parentfd);
@@ -735,7 +735,7 @@
 		}
 	}
-	
+
 	assert(parent != NULL);
-	
+
 	if (expectfd >= 0) {
 		vfs_lookup_res_t lr;
@@ -743,5 +743,5 @@
 		if (rc != EOK)
 			goto exit;
-		
+
 		vfs_node_t *found_node = vfs_node_peek(&lr);
 		vfs_node_put(found_node);
@@ -750,9 +750,9 @@
 			goto exit;
 		}
-		
+
 		vfs_file_put(expect);
 		expect = NULL;
 	}
-	
+
 	vfs_lookup_res_t lr;
 	rc = vfs_lookup_internal(parent->node, path, L_UNLINK, &lr);
@@ -783,12 +783,12 @@
 	if (mp == NULL)
 		return EBADF;
-	
+
 	if (mp->node->mount == NULL) {
 		vfs_file_put(mp);
 		return ENOENT;
 	}
-	
+
 	fibril_rwlock_write_lock(&namespace_rwlock);
-	
+
 	/*
 	 * Count the total number of references for the mounted file system. We
@@ -804,10 +804,10 @@
 		return EBUSY;
 	}
-	
+
 	async_exch_t *exch = vfs_exchange_grab(mp->node->mount->fs_handle);
 	errno_t rc = async_req_1_0(exch, VFS_OUT_UNMOUNTED,
 	    mp->node->mount->service_id);
 	vfs_exchange_release(exch);
-	
+
 	if (rc != EOK) {
 		vfs_file_put(mp);
@@ -815,11 +815,11 @@
 		return rc;
 	}
-	
+
 	vfs_node_forget(mp->node->mount);
 	vfs_node_put(mp->node);
 	mp->node->mount = NULL;
-	
+
 	fibril_rwlock_write_unlock(&namespace_rwlock);
-	
+
 	vfs_file_put(mp);
 	return EOK;
@@ -866,11 +866,11 @@
 	if (!walk_flags_valid(flags))
 		return EINVAL;
-	
+
 	vfs_file_t *parent = vfs_file_get(parentfd);
 	if (!parent)
 		return EBADF;
-	
+
 	fibril_rwlock_read_lock(&namespace_rwlock);
-	
+
 	vfs_lookup_res_t lr;
 	errno_t rc = vfs_lookup_internal(parent->node, path,
@@ -881,5 +881,5 @@
 		return rc;
 	}
-	
+
 	vfs_node_t *node = vfs_node_get(&lr);
 	if (!node) {
@@ -888,5 +888,5 @@
 		return ENOMEM;
 	}
-	
+
 	vfs_file_t *file;
 	rc = vfs_fd_alloc(&file, false, out_fd);
@@ -897,13 +897,13 @@
 	}
 	assert(file != NULL);
-	
+
 	file->node = node;
 	file->permissions = parent->permissions;
 	file->open_read = false;
 	file->open_write = false;
-	
+
 	vfs_file_put(file);
 	vfs_file_put(parent);
-	
+
 	fibril_rwlock_read_unlock(&namespace_rwlock);
 
Index: uspace/srv/vfs/vfs_register.c
===================================================================
--- uspace/srv/vfs/vfs_register.c	(revision 3061bc129a855122d429fbba1e623a521aaa164c)
+++ uspace/srv/vfs/vfs_register.c	(revision a35b458e9db1ca95e679799dc7c1b12c83359ca3)
@@ -71,5 +71,5 @@
 {
 	int i;
-	
+
 	/*
 	 * Check if the name is non-empty and is composed solely of ASCII
@@ -80,5 +80,5 @@
 		return false;
 	}
-	
+
 	for (i = 1; i < FS_NAME_MAXLEN; i++) {
 		if (!(islower(info->name[i]) || isdigit(info->name[i])) &&
@@ -93,5 +93,5 @@
 		}
 	}
-	
+
 	/*
 	 * This check is not redundant. It ensures that the name is
@@ -102,5 +102,5 @@
 		return false;
 	}
-	
+
 	return true;
 }
@@ -116,9 +116,9 @@
 	dprintf("Processing VFS_REGISTER request received from %zx.\n",
 	    request->in_phone_hash);
-	
+
 	vfs_info_t *vfs_info;
 	errno_t rc = async_data_write_accept((void **) &vfs_info, false,
 	    sizeof(vfs_info_t), sizeof(vfs_info_t), 0, NULL);
-	
+
 	if (rc != EOK) {
 		dprintf("Failed to deliver the VFS info into our AS, rc=%d.\n",
@@ -127,5 +127,5 @@
 		return;
 	}
-	
+
 	/*
 	 * Allocate and initialize a buffer for the fs_info structure.
@@ -137,11 +137,11 @@
 		return;
 	}
-	
+
 	link_initialize(&fs_info->fs_link);
 	fs_info->vfs_info = *vfs_info;
 	free(vfs_info);
-	
+
 	dprintf("VFS info delivered.\n");
-	
+
 	if (!vfs_info_sane(&fs_info->vfs_info)) {
 		free(fs_info);
@@ -149,7 +149,7 @@
 		return;
 	}
-	
+
 	fibril_mutex_lock(&fs_list_lock);
-	
+
 	/*
 	 * Check for duplicit registrations.
@@ -166,5 +166,5 @@
 		return;
 	}
-	
+
 	/*
 	 * Add fs_info to the list of registered FS's.
@@ -172,5 +172,5 @@
 	dprintf("Inserting FS into the list of registered file systems.\n");
 	list_append(&fs_info->fs_link, &fs_list);
-	
+
 	/*
 	 * Now we want the client to send us the IPC_M_CONNECT_TO_ME call so
@@ -187,11 +187,11 @@
 		return;
 	}
-	
+
 	dprintf("Callback connection to FS created.\n");
-	
+
 	/*
 	 * The client will want us to send him the address space area with PLB.
 	 */
-	
+
 	size_t size;
 	ipc_callid_t callid;
@@ -206,5 +206,5 @@
 		return;
 	}
-	
+
 	/*
 	 * We can only send the client address space area PLB_SIZE bytes long.
@@ -220,5 +220,5 @@
 		return;
 	}
-	
+
 	/*
 	 * Commit to read-only sharing the PLB with the client.
@@ -226,7 +226,7 @@
 	(void) async_share_in_finalize(callid, plb,
 	    AS_AREA_READ | AS_AREA_CACHEABLE);
-	
+
 	dprintf("Sharing PLB.\n");
-	
+
 	/*
 	 * That was it. The FS has been registered.
@@ -236,8 +236,8 @@
 	fs_info->fs_handle = (fs_handle_t) atomic_postinc(&fs_handle_next);
 	async_answer_1(rid, EOK, (sysarg_t) fs_info->fs_handle);
-	
+
 	fibril_condvar_broadcast(&fs_list_cv);
 	fibril_mutex_unlock(&fs_list_lock);
-	
+
 	dprintf("\"%.*s\" filesystem successfully registered, handle=%d.\n",
 	    FS_NAME_MAXLEN, fs_info->vfs_info.name, fs_info->fs_handle);
@@ -260,19 +260,19 @@
 	 */
 	fibril_mutex_lock(&fs_list_lock);
-	
+
 	list_foreach(fs_list, fs_link, fs_info_t, fs) {
 		if (fs->fs_handle == handle) {
 			fibril_mutex_unlock(&fs_list_lock);
-			
+
 			assert(fs->sess);
 			async_exch_t *exch = async_exchange_begin(fs->sess);
-			
+
 			assert(exch);
 			return exch;
 		}
 	}
-	
+
 	fibril_mutex_unlock(&fs_list_lock);
-	
+
 	return NULL;
 }
@@ -300,8 +300,8 @@
 {
 	int handle = 0;
-	
+
 	if (lock)
 		fibril_mutex_lock(&fs_list_lock);
-	
+
 	list_foreach(fs_list, fs_link, fs_info_t, fs) {
 		if (str_cmp(fs->vfs_info.name, name) == 0 &&
@@ -311,8 +311,8 @@
 		}
 	}
-	
+
 	if (lock)
 		fibril_mutex_unlock(&fs_list_lock);
-	
+
 	return handle;
 }
@@ -328,5 +328,5 @@
 {
 	vfs_info_t *info = NULL;
-	
+
 	fibril_mutex_lock(&fs_list_lock);
 	list_foreach(fs_list, fs_link, fs_info_t, fs) {
@@ -337,5 +337,5 @@
 	}
 	fibril_mutex_unlock(&fs_list_lock);
-	
+
 	return info;
 }
@@ -355,5 +355,5 @@
 
 	fibril_mutex_lock(&fs_list_lock);
-	
+
 	size = 0;
 	count = 0;
@@ -362,8 +362,8 @@
 		count++;
 	}
-	
+
 	if (size == 0)
 		size = 1;
-	
+
 	fstypes->buf = calloc(1, size);
 	if (fstypes->buf == NULL) {
@@ -371,5 +371,5 @@
 		return ENOMEM;
 	}
-	
+
 	fstypes->fstypes = calloc(sizeof(char *), count);
 	if (fstypes->fstypes == NULL) {
@@ -379,7 +379,7 @@
 		return ENOMEM;
 	}
-	
+
 	fstypes->size = size;
-	
+
 	size = 0; count = 0;
 	list_foreach(fs_list, fs_link, fs_info_t, fs) {
