Index: uspace/Makefile.common
===================================================================
--- uspace/Makefile.common	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/Makefile.common	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -311,5 +311,4 @@
 endif
 
-
 ifneq ($(MAKECMDGOALS),clean)
 -include $(DEPEND)
Index: uspace/app/usbinfo/info.c
===================================================================
--- uspace/app/usbinfo/info.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/app/usbinfo/info.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -93,5 +93,5 @@
 	init_match_ids(&matches);
 	usb_device_create_match_ids_from_device_descriptor(
-		&usb_device_descriptors(usb_dev)->device, &matches);
+	    &usb_device_descriptors(usb_dev)->device, &matches);
 	printf("%sDevice match ids (0x%04x by 0x%04x, %s)\n", get_indent(0),
 	    usb_device_descriptors(usb_dev)->device.product_id,
@@ -229,5 +229,5 @@
 {
 	dump_descriptor_tree_callback(
-	    (const uint8_t *)&usb_device_descriptors(usb_dev)->device,
+	    (const uint8_t *) &usb_device_descriptors(usb_dev)->device,
 	    (size_t) -1, NULL);
 
@@ -242,5 +242,5 @@
 {
 	dump_descriptor_tree_callback(
-	    (const uint8_t *)&usb_device_descriptors(usb_dev)->device,
+	    (const uint8_t *) &usb_device_descriptors(usb_dev)->device,
 	    (size_t) -1, usb_dev);
 
@@ -296,5 +296,5 @@
 	uint64_t str_mask = 0;
 	find_string_indexes_callback(
-	    (const uint8_t *)&usb_device_descriptors(usb_dev)->device, 0,
+	    (const uint8_t *) &usb_device_descriptors(usb_dev)->device, 0,
 	    &str_mask);
 
Index: uspace/app/usbinfo/list.c
===================================================================
--- uspace/app/usbinfo/list.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/app/usbinfo/list.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -148,5 +148,5 @@
 	}
 
-	for (unsigned i = 0; i < count; ++i) {
+	for (unsigned int i = 0; i < count; ++i) {
 		print_usb_bus(svcs[i]);
 	}
Index: uspace/app/usbinfo/usbinfo.h
===================================================================
--- uspace/app/usbinfo/usbinfo.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/app/usbinfo/usbinfo.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -44,5 +44,5 @@
 typedef struct {
 	int opt;
-	void (*action)(usb_device_t *usb_dev);
+	void (*action)(usb_device_t *);
 	bool active;
 } usbinfo_action_t;
@@ -51,9 +51,9 @@
 #define NAME "usbinfo"
 
-void dump_buffer(const char *, size_t, const uint8_t *, size_t);
-const char *get_indent(size_t);
-void dump_match_ids(match_id_list_t *, const char *);
-void dump_usb_descriptor(uint8_t *, size_t);
-void dump_descriptor_tree(uint8_t *, size_t);
+extern void dump_buffer(const char *, size_t, const uint8_t *, size_t);
+extern const char *get_indent(size_t);
+extern void dump_match_ids(match_id_list_t *, const char *);
+extern void dump_usb_descriptor(uint8_t *, size_t);
+extern void dump_descriptor_tree(uint8_t *, size_t);
 
 static inline void internal_error(int err)
@@ -63,17 +63,18 @@
 
 typedef void (*dump_descriptor_in_tree_t)(const uint8_t *, size_t, void *);
-void browse_descriptor_tree(uint8_t *, size_t, usb_dp_descriptor_nesting_t *,
-    dump_descriptor_in_tree_t, size_t, void *);
 
-void list(void);
+extern void browse_descriptor_tree(uint8_t *, size_t,
+    usb_dp_descriptor_nesting_t *, dump_descriptor_in_tree_t, size_t, void *);
 
-void dump_short_device_identification(usb_device_t *);
-void dump_device_match_ids(usb_device_t *);
-void dump_descriptor_tree_brief(usb_device_t *);
-void dump_descriptor_tree_full(usb_device_t *);
-void dump_strings(usb_device_t *);
-void dump_status(usb_device_t *);
-void dump_hidreport_raw(usb_device_t *);
-void dump_hidreport_usages(usb_device_t *);
+extern void list(void);
+
+extern void dump_short_device_identification(usb_device_t *);
+extern void dump_device_match_ids(usb_device_t *);
+extern void dump_descriptor_tree_brief(usb_device_t *);
+extern void dump_descriptor_tree_full(usb_device_t *);
+extern void dump_strings(usb_device_t *);
+extern void dump_status(usb_device_t *);
+extern void dump_hidreport_raw(usb_device_t *);
+extern void dump_hidreport_usages(usb_device_t *);
 
 #endif
Index: uspace/drv/bus/usb/ehci/main.c
===================================================================
--- uspace/drv/bus/usb/ehci/main.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ehci/main.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -27,4 +27,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbehci
  * @{
@@ -33,4 +34,5 @@
  * Main routines of EHCI driver.
  */
+
 #include <ddf/driver.h>
 #include <ddf/interrupt.h>
@@ -70,5 +72,6 @@
 
 
-static int ehci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res, bool irq)
+static int ehci_driver_init(hcd_t *hcd, const hw_res_list_parsed_t *res,
+    bool irq)
 {
 	assert(hcd);
@@ -138,4 +141,5 @@
 	return ddf_driver_main(&ehci_driver);
 }
+
 /**
  * @}
Index: uspace/drv/bus/usb/ehci/res.h
===================================================================
--- uspace/drv/bus/usb/ehci/res.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ehci/res.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -39,5 +39,5 @@
 #include <device/hw_res_parsed.h>
 
-int disable_legacy(ddf_dev_t *);
+extern int disable_legacy(ddf_dev_t *);
 
 #endif
Index: uspace/drv/bus/usb/ohci/endpoint_list.h
===================================================================
--- uspace/drv/bus/usb/ohci/endpoint_list.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/endpoint_list.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -76,5 +76,7 @@
 void endpoint_list_add_ep(endpoint_list_t *instance, ohci_endpoint_t *ep);
 void endpoint_list_remove_ep(endpoint_list_t *instance, ohci_endpoint_t *ep);
+
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/ohci/hc.c
===================================================================
--- uspace/drv/bus/usb/ohci/hc.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hc.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -177,5 +177,5 @@
 		usb_log_error("Failed to create OHCI memory structures: %s.\n",
 		    str_error(ret));
-		//TODO: We should disable pio access here
+		// TODO: We should disable pio access here
 		return ret;
 	}
@@ -393,5 +393,5 @@
 		    ohci_emulation_reg, OHCI_RD(*ohci_emulation_reg));
 		/* Zero everything but A20State */
-		//TODO: should we ack interrupts before doing this?
+		// TODO: should we ack interrupts before doing this?
 		OHCI_CLR(*ohci_emulation_reg, ~0x100);
 		usb_log_debug(
@@ -403,5 +403,5 @@
 	if (OHCI_RD(instance->registers->control) & C_IR) {
 		usb_log_debug("SMM driver: request ownership change.\n");
-		//TODO: should we ack interrupts before doing this?
+		// TODO: should we ack interrupts before doing this?
 		OHCI_SET(instance->registers->command_status, CS_OCR);
 		/* Hope that SMM actually knows its stuff or we can hang here */
Index: uspace/drv/bus/usb/ohci/hc.h
===================================================================
--- uspace/drv/bus/usb/ohci/hc.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hc.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
@@ -32,4 +33,5 @@
  * @brief OHCI host controller driver structure
  */
+
 #ifndef DRV_OHCI_HC_H
 #define DRV_OHCI_HC_H
@@ -78,16 +80,18 @@
 } hc_t;
 
-int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts);
-void hc_fini(hc_t *instance);
+extern int hc_init(hc_t *, const hw_res_list_parsed_t *, bool);
+extern void hc_fini(hc_t *);
 
-void hc_enqueue_endpoint(hc_t *instance, const endpoint_t *ep);
-void hc_dequeue_endpoint(hc_t *instance, const endpoint_t *ep);
+extern void hc_enqueue_endpoint(hc_t *, const endpoint_t *);
+extern void hc_dequeue_endpoint(hc_t *, const endpoint_t *);
 
 int ohci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res);
 
-void ohci_hc_interrupt(hcd_t *hcd, uint32_t status);
-int ohci_hc_status(hcd_t *hcd, uint32_t *status);
-int ohci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);
+extern void ohci_hc_interrupt(hcd_t *, uint32_t);
+extern int ohci_hc_status(hcd_t *, uint32_t *);
+extern int ohci_hc_schedule(hcd_t *, usb_transfer_batch_t *);
+
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/ohci/hw_struct/completion_codes.h
===================================================================
--- uspace/drv/bus/usb/ohci/hw_struct/completion_codes.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hw_struct/completion_codes.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -54,5 +54,5 @@
 };
 
-inline static unsigned cc_to_rc(unsigned cc)
+inline static unsigned int cc_to_rc(unsigned int cc)
 {
 	switch (cc) {
Index: uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c
===================================================================
--- uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
Index: uspace/drv/bus/usb/ohci/hw_struct/hcca.h
===================================================================
--- uspace/drv/bus/usb/ohci/hw_struct/hcca.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hw_struct/hcca.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
@@ -32,4 +33,5 @@
  * @brief OHCI driver
  */
+
 #ifndef DRV_OHCI_HW_STRUCT_HCCA_H
 #define DRV_OHCI_HW_STRUCT_HCCA_H
@@ -85,5 +87,7 @@
 	OHCI_MEM32_WR(hcca->int_ep[index], pa);
 }
+
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/ohci/hw_struct/iso_transfer_descriptor.h
===================================================================
--- uspace/drv/bus/usb/ohci/hw_struct/iso_transfer_descriptor.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hw_struct/iso_transfer_descriptor.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
@@ -32,4 +33,5 @@
  * @brief OHCI driver
  */
+
 #ifndef DRV_OHCI_HW_STRUCT_ISO_TRANSFER_DESCRIPTOR_H
 #define DRV_OHCI_HW_STRUCT_ISO_TRANSFER_DESCRIPTOR_H
@@ -68,5 +70,7 @@
 
 } __attribute__((packed)) itd_t;
+
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/ohci/hw_struct/mem_access.h
===================================================================
--- uspace/drv/bus/usb/ohci/hw_struct/mem_access.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hw_struct/mem_access.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
@@ -32,4 +33,5 @@
  * @brief OHCI driver
  */
+
 #ifndef DRV_OHCI_HW_MEM_ACCESS_H
 #define DRV_OHCI_HW_MEM_ACCESS_H
Index: uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c
===================================================================
--- uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
Index: uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h
===================================================================
--- uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
@@ -32,4 +33,5 @@
  * @brief OHCI driver
  */
+
 #ifndef DRV_OHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
 #define DRV_OHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
@@ -139,5 +141,7 @@
 	return OHCI_MEM32_RD(instance->be) - OHCI_MEM32_RD(instance->cbp) + 1;
 }
+
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/ohci/main.c
===================================================================
--- uspace/drv/bus/usb/ohci/main.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/main.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -27,4 +27,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
@@ -128,4 +129,5 @@
 	return ddf_driver_main(&ohci_driver);
 }
+
 /**
  * @}
Index: uspace/drv/bus/usb/ohci/ohci_batch.c
===================================================================
--- uspace/drv/bus/usb/ohci/ohci_batch.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/ohci_batch.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
Index: uspace/drv/bus/usb/ohci/ohci_endpoint.c
===================================================================
--- uspace/drv/bus/usb/ohci/ohci_endpoint.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/ohci_endpoint.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
@@ -117,4 +118,5 @@
 	}
 }
+
 /**
  * @}
Index: uspace/drv/bus/usb/ohci/ohci_regs.h
===================================================================
--- uspace/drv/bus/usb/ohci/ohci_regs.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/ohci/ohci_regs.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbohci
  * @{
@@ -32,6 +33,8 @@
  * @brief OHCI host controller register structure
  */
+
 #ifndef DRV_OHCI_OHCI_REGS_H
 #define DRV_OHCI_OHCI_REGS_H
+
 #include <ddi.h>
 #include <sys/types.h>
@@ -246,5 +249,7 @@
 #define RHPS_CHANGE_WC_MASK (0x1f0000)
 } ohci_regs_t;
+
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/uhci/hc.c
===================================================================
--- uspace/drv/bus/usb/uhci/hc.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/hc.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhcihc
  * @{
Index: uspace/drv/bus/usb/uhci/hc.h
===================================================================
--- uspace/drv/bus/usb/uhci/hc.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/hc.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -33,4 +33,5 @@
  * @brief UHCI host controller driver structure
  */
+
 #ifndef DRV_UHCI_HC_H
 #define DRV_UHCI_HC_H
@@ -123,12 +124,12 @@
 } hc_t;
 
-int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interupts);
-void hc_fini(hc_t *instance);
+extern int hc_init(hc_t *, const hw_res_list_parsed_t *, bool);
+extern void hc_fini(hc_t *);
 
-int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res);
+extern int uhci_hc_gen_irq_code(irq_code_t *, const hw_res_list_parsed_t *);
 
-void uhci_hc_interrupt(hcd_t *hcd, uint32_t status);
-int uhci_hc_status(hcd_t *hcd, uint32_t *status);
-int uhci_hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);
+extern void uhci_hc_interrupt(hcd_t *, uint32_t);
+extern int uhci_hc_status(hcd_t *, uint32_t *);
+extern int uhci_hc_schedule(hcd_t *, usb_transfer_batch_t *);
 
 #endif
Index: uspace/drv/bus/usb/uhci/hw_struct/link_pointer.h
===================================================================
--- uspace/drv/bus/usb/uhci/hw_struct/link_pointer.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/hw_struct/link_pointer.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhcihc
  * @{
@@ -32,4 +33,5 @@
  * @brief UHCI driver
  */
+
 #ifndef DRV_UHCI_HW_STRUCT_LINK_POINTER_H
 #define DRV_UHCI_HW_STRUCT_LINK_POINTER_H
@@ -58,4 +60,5 @@
 
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/uhci/hw_struct/queue_head.h
===================================================================
--- uspace/drv/bus/usb/uhci/hw_struct/queue_head.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/hw_struct/queue_head.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhcihc
  * @{
@@ -32,4 +33,5 @@
  * @brief UHCI driver
  */
+
 #ifndef DRV_UHCI_HW_STRUCT_QH_H
 #define DRV_UHCI_HW_STRUCT_QH_H
@@ -103,5 +105,7 @@
 	}
 }
+
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c
===================================================================
--- uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhcihc
  * @{
Index: uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h
===================================================================
--- uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhcihc
  * @{
@@ -32,4 +33,5 @@
  * @brief UHCI driver
  */
+
 #ifndef DRV_UHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
 #define DRV_UHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
@@ -165,4 +167,5 @@
 
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/uhci/main.c
===================================================================
--- uspace/drv/bus/usb/uhci/main.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/main.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhci
  * @{
Index: uspace/drv/bus/usb/uhci/transfer_list.h
===================================================================
--- uspace/drv/bus/usb/uhci/transfer_list.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/transfer_list.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhcihc
  * @{
@@ -32,4 +33,5 @@
  * @brief UHCI driver transfer list structure
  */
+
 #ifndef DRV_UHCI_TRANSFER_LIST_H
 #define DRV_UHCI_TRANSFER_LIST_H
@@ -61,5 +63,7 @@
 void transfer_list_remove_finished(transfer_list_t *instance, list_t *done);
 void transfer_list_abort_all(transfer_list_t *instance);
+
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/uhci/uhci_batch.c
===================================================================
--- uspace/drv/bus/usb/uhci/uhci_batch.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/uhci_batch.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhcihc
  * @{
Index: uspace/drv/bus/usb/uhci/uhci_batch.h
===================================================================
--- uspace/drv/bus/usb/uhci/uhci_batch.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/uhci/uhci_batch.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,4 +26,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbuhcihc
  * @{
@@ -32,4 +33,5 @@
  * @brief UHCI driver USB tranfer helper functions
  */
+
 #ifndef DRV_UHCI_BATCH_H
 #define DRV_UHCI_BATCH_H
@@ -119,4 +121,5 @@
 
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/usbhid/mouse/mousedev.c
===================================================================
--- uspace/drv/bus/usb/usbhid/mouse/mousedev.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbhid/mouse/mousedev.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -254,5 +254,5 @@
 		    "will not be destroyed.\n", ddf_fun_get_name(fun)); \
 	} \
-} else (void)0
+} else (void) 0
 
 /** Get highest index of a button mentioned in given report.
@@ -325,5 +325,5 @@
 
 	if (hid_dev == NULL) {
-		usb_log_error("Failed to init keyboard structure: no structure"
+		usb_log_error("Failed to init mouse structure: no structure"
 		    " given.\n");
 		return EINVAL;
Index: uspace/drv/bus/usb/usbhub/port.c
===================================================================
--- uspace/drv/bus/usb/usbhub/port.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbhub/port.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -27,4 +27,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbhub
  * @{
@@ -175,5 +176,5 @@
 		} else {
 			/* Handle the case we were in reset */
-			//usb_hub_port_reset_fail(port);
+			// FIXME: usb_hub_port_reset_fail(port);
 			/* If enabled change was reported leave the removal
 			 * to that handler, it shall ACK the change too. */
@@ -186,5 +187,5 @@
 	/* Enable change, ports are automatically disabled on errors. */
 	if (status & USB_HUB_PORT_C_STATUS_ENABLED) {
-		//TODO: maybe HS reset failed?
+		// TODO: maybe HS reset failed?
 		usb_log_info("(%p-%u): Port disabled because of errors.\n", hub,
 		   port->port_number);
Index: uspace/drv/bus/usb/usbhub/port.h
===================================================================
--- uspace/drv/bus/usb/usbhub/port.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbhub/port.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -27,4 +27,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbhub
  * @{
@@ -33,4 +34,5 @@
  * Hub ports related functions.
  */
+
 #ifndef DRV_USBHUB_PORT_H
 #define DRV_USBHUB_PORT_H
@@ -45,5 +47,5 @@
 typedef struct {
 	/** Port number as reported in descriptors. */
-	unsigned port_number;
+	unsigned int port_number;
 	/** Device communication pipe. */
 	usb_pipe_t *control_pipe;
@@ -69,6 +71,6 @@
  * @param port Port to be initialized.
  */
-static inline void usb_hub_port_init(usb_hub_port_t *port, unsigned port_number,
-    usb_pipe_t *control_pipe)
+static inline void usb_hub_port_init(usb_hub_port_t *port,
+    unsigned int port_number, usb_pipe_t *control_pipe)
 {
 	assert(port);
@@ -80,4 +82,5 @@
 	fibril_condvar_initialize(&port->reset_cv);
 }
+
 int usb_hub_port_fini(usb_hub_port_t *port, usb_hub_dev_t *hub);
 int usb_hub_port_clear_feature(
@@ -89,4 +92,5 @@
 
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/usbhub/status.h
===================================================================
--- uspace/drv/bus/usb/usbhub/status.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbhub/status.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -27,4 +27,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbhub
  * @{
@@ -114,5 +115,6 @@
 }
 
-#endif	/* HUB_STATUS_H */
+#endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/usbhub/usbhub.c
===================================================================
--- uspace/drv/bus/usb/usbhub/usbhub.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbhub/usbhub.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -27,4 +27,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbhub
  * @{
@@ -56,4 +57,5 @@
 
 #define HUB_FNC_NAME "hub"
+
 /** Hub status-change endpoint description.
  *
@@ -229,5 +231,4 @@
     uint8_t *change_bitmap, size_t change_bitmap_size, void *arg)
 {
-//	usb_log_debug("hub_port_changes_callback\n");
 	usb_hub_dev_t *hub = arg;
 	assert(hub);
@@ -314,5 +315,5 @@
 	    hub_dev->per_port_power ? "per port" : "ganged");
 
-	for (unsigned port = 0; port < hub_dev->port_count; ++port) {
+	for (unsigned int port = 0; port < hub_dev->port_count; ++port) {
 		usb_log_debug("(%p): Powering port %u.", hub_dev, port);
 		const int ret = usb_hub_port_set_feature(
Index: uspace/drv/bus/usb/usbhub/usbhub.h
===================================================================
--- uspace/drv/bus/usb/usbhub/usbhub.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbhub/usbhub.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -27,4 +27,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup drvusbhub
  * @{
@@ -33,4 +34,5 @@
  * @brief Hub driver.
  */
+
 #ifndef DRV_USBHUB_USBHUB_H
 #define DRV_USBHUB_USBHUB_H
@@ -82,12 +84,13 @@
 extern const usb_endpoint_description_t hub_status_change_endpoint_description;
 
-int usb_hub_device_add(usb_device_t *usb_dev);
-int usb_hub_device_remove(usb_device_t *usb_dev);
-int usb_hub_device_gone(usb_device_t *usb_dev);
+extern int usb_hub_device_add(usb_device_t *);
+extern int usb_hub_device_remove(usb_device_t *);
+extern int usb_hub_device_gone(usb_device_t *);
 
-bool hub_port_changes_callback(usb_device_t *dev,
-    uint8_t *change_bitmap, size_t change_bitmap_size, void *arg);
+extern bool hub_port_changes_callback(usb_device_t *, uint8_t *, size_t,
+    void *);
 
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/usbmast/bo_trans.c
===================================================================
--- uspace/drv/bus/usb/usbmast/bo_trans.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbmast/bo_trans.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -34,4 +34,5 @@
  * USB mass storage bulk-only transport.
  */
+
 #include <stdbool.h>
 #include <errno.h>
Index: uspace/drv/bus/usb/usbmast/main.c
===================================================================
--- uspace/drv/bus/usb/usbmast/main.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbmast/main.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -35,4 +35,5 @@
  * Main routines of USB mass storage driver.
  */
+
 #include <as.h>
 #include <async.h>
Index: uspace/drv/bus/usb/usbmast/scsi_ms.c
===================================================================
--- uspace/drv/bus/usb/usbmast/scsi_ms.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbmast/scsi_ms.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -35,4 +35,5 @@
  * SCSI functions for USB mass storage driver.
  */
+
 #include <bitops.h>
 #include <byteorder.h>
Index: uspace/drv/bus/usb/usbmid/explore.c
===================================================================
--- uspace/drv/bus/usb/usbmid/explore.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbmid/explore.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -34,4 +34,5 @@
  * Exploration of available interfaces in the USB device.
  */
+
 #include <errno.h>
 #include <str_error.h>
Index: uspace/drv/bus/usb/usbmid/usbmid.c
===================================================================
--- uspace/drv/bus/usb/usbmid/usbmid.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbmid/usbmid.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -35,4 +35,5 @@
  * Helper functions.
  */
+
 #include <errno.h>
 #include <str_error.h>
Index: uspace/drv/bus/usb/usbmid/usbmid.h
===================================================================
--- uspace/drv/bus/usb/usbmid/usbmid.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/usbmid/usbmid.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -62,10 +62,10 @@
 } usb_mid_t;
 
-int usbmid_explore_device(usb_device_t *);
-int usbmid_spawn_interface_child(usb_device_t *, usbmid_interface_t **,
+extern int usbmid_explore_device(usb_device_t *);
+extern int usbmid_spawn_interface_child(usb_device_t *, usbmid_interface_t **,
     const usb_standard_device_descriptor_t *,
     const usb_standard_interface_descriptor_t *);
-void usbmid_dump_descriptors(uint8_t *, size_t);
-int usbmid_interface_destroy(usbmid_interface_t *mid_iface);
+extern void usbmid_dump_descriptors(uint8_t *, size_t);
+extern int usbmid_interface_destroy(usbmid_interface_t *mid_iface);
 
 static inline usbmid_interface_t * usbmid_interface_from_link(link_t *item)
@@ -75,4 +75,5 @@
 
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/vhc/devconn.c
===================================================================
--- uspace/drv/bus/usb/vhc/devconn.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/vhc/devconn.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -95,5 +95,6 @@
 }
 
-int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle, usb_address_t address)
+int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev,
+    uintptr_t *handle, usb_address_t address)
 {
 	return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false, address);
Index: uspace/drv/bus/usb/vhc/hub/virthub.c
===================================================================
--- uspace/drv/bus/usb/vhc/hub/virthub.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/vhc/hub/virthub.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -33,4 +33,5 @@
  * @brief
  */
+
 #include <usb/classes/classes.h>
 #include <usb/classes/hub.h>
Index: uspace/drv/bus/usb/vhc/hub/virthub.h
===================================================================
--- uspace/drv/bus/usb/vhc/hub/virthub.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/vhc/hub/virthub.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -33,4 +33,5 @@
  * @brief USB hub as a virtual USB device.
  */
+
 #ifndef VHC_HUB_VIRTHUB_H_
 #define VHC_HUB_VIRTHUB_H_
@@ -86,4 +87,5 @@
 
 #endif
+
 /**
  * @}
Index: uspace/drv/bus/usb/vhc/hub/virthubops.c
===================================================================
--- uspace/drv/bus/usb/vhc/hub/virthubops.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/vhc/hub/virthubops.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -33,4 +33,5 @@
  * @brief Virtual USB hub operations.
  */
+
 #include <errno.h>
 #include <usb/classes/hub.h>
Index: uspace/drv/bus/usb/vhc/main.c
===================================================================
--- uspace/drv/bus/usb/vhc/main.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/vhc/main.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -43,5 +43,4 @@
 #include <usb/debug.h>
 #include "vhcd.h"
-
 
 static ddf_dev_ops_t vhc_ops = {
Index: uspace/drv/bus/usb/vhc/transfer.c
===================================================================
--- uspace/drv/bus/usb/vhc/transfer.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/vhc/transfer.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -233,6 +233,6 @@
 		if (rc == EOK) {
 			if (is_set_address_transfer(transfer)) {
-				usb_device_request_setup_packet_t *setup
-				    = (void*)transfer->batch->setup_buffer;
+				usb_device_request_setup_packet_t *setup =
+				    (void*) transfer->batch->setup_buffer;
 				dev->address = setup->value;
 				usb_log_debug2("Address changed to %d\n",
Index: uspace/drv/bus/usb/vhc/vhcd.h
===================================================================
--- uspace/drv/bus/usb/vhc/vhcd.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/bus/usb/vhc/vhcd.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -33,4 +33,5 @@
  * @brief Virtual USB host controller common definitions.
  */
+
 #ifndef VHCD_VHCD_H_
 #define VHCD_VHCD_H_
@@ -41,5 +42,4 @@
 
 #include <usb/host/hcd.h>
-
 
 #define NAME "vhc"
@@ -67,5 +67,4 @@
 } vhc_transfer_t;
 
-
 void on_client_close(ddf_fun_t *fun);
 void default_connection_handler(ddf_fun_t *fun, ipc_callid_t icallid,
@@ -82,4 +81,5 @@
 
 #endif
+
 /**
  * @}
Index: uspace/drv/nic/ar9271/ath_usb.c
===================================================================
--- uspace/drv/nic/ar9271/ath_usb.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/drv/nic/ar9271/ath_usb.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -100,5 +100,5 @@
 	usb_pipe_t *pipe = &usb_device_get_mapped_ep(
 	    ath_usb->usb_device, ath_usb->output_ctrl_pipe_number)->pipe;
-
+	
 	return usb_pipe_write(pipe, buffer, buffer_size);
 }
@@ -120,5 +120,5 @@
 	usb_pipe_t *pipe = &usb_device_get_mapped_ep(
 	    ath_usb->usb_device, ath_usb->input_ctrl_pipe_number)->pipe;
-
+	
 	return usb_pipe_read(pipe, buffer, buffer_size, transferred_size);
 }
@@ -141,19 +141,19 @@
 	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;
 	usb_pipe_t *pipe = &usb_device_get_mapped_ep(
 	    ath_usb->usb_device, ath_usb->output_data_pipe_number)->pipe;
-
+	
 	int ret_val = usb_pipe_write(pipe, complete_buffer,
 	    complete_buffer_size);
-
+	
 	free(complete_buffer);
-
+	
 	return ret_val;
 }
@@ -175,5 +175,5 @@
 	usb_pipe_t *pipe = &usb_device_get_mapped_ep(
 	    ath_usb->usb_device, ath_usb->input_data_pipe_number)->pipe;
-
+	
 	return usb_pipe_read(pipe, buffer, buffer_size, transferred_size);
 }
Index: uspace/lib/c/arch/amd64/src/stacktrace_asm.S
===================================================================
--- uspace/lib/c/arch/amd64/src/stacktrace_asm.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/amd64/src/stacktrace_asm.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -44,3 +44,2 @@
 	ret
 FUNCTION_END(stacktrace_pc_get)
-
Index: uspace/lib/c/arch/arm32/src/eabi.S
===================================================================
--- uspace/lib/c/arch/arm32/src/eabi.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/arm32/src/eabi.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -95,3 +95,2 @@
 	mov pc, lr
 FUNCTION_END(__aeabi_uldivmod)
-
Index: uspace/lib/c/arch/arm32/src/stacktrace_asm.S
===================================================================
--- uspace/lib/c/arch/arm32/src/stacktrace_asm.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/arm32/src/stacktrace_asm.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -44,3 +44,2 @@
 	mov pc, lr
 FUNCTION_END(stacktrace_pc_get)
-
Index: uspace/lib/c/arch/ia32/src/rtld/reloc.c
===================================================================
--- uspace/lib/c/arch/ia32/src/rtld/reloc.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/ia32/src/rtld/reloc.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -69,5 +69,5 @@
 	uint32_t sym_size;
 	char *str_tab;
-
+	
 	elf_symbol_t *sym_def;
 	module_t *dest;
@@ -80,5 +80,5 @@
 
 	DPRINTF("address: 0x%x, entries: %d\n", (uintptr_t)rt, rt_entries);
-
+	
 	for (i = 0; i < rt_entries; ++i) {
 //		DPRINTF("symbol %d: ", i);
@@ -171,5 +171,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/syscall.S
===================================================================
--- uspace/lib/c/arch/ia32/src/syscall.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/ia32/src/syscall.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -63,5 +63,4 @@
 FUNCTION_END(__syscall_slow)
 
-
 /** Syscall wrapper - SYSENTER version.
  *
Index: uspace/lib/c/arch/ia64/src/fibril.S
===================================================================
--- uspace/lib/c/arch/ia64/src/fibril.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/ia64/src/fibril.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -338,3 +338,2 @@
 	br.ret.sptk.many b0
 FUNCTION_END(context_restore)
-
Index: uspace/lib/c/arch/ia64/src/stacktrace_asm.S
===================================================================
--- uspace/lib/c/arch/ia64/src/stacktrace_asm.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/ia64/src/stacktrace_asm.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -41,3 +41,2 @@
 FUNCTION_END(stacktrace_fp_get)
 FUNCTION_END(stacktrace_pc_get)
-
Index: uspace/lib/c/arch/ia64/src/syscall.S
===================================================================
--- uspace/lib/c/arch/ia64/src/syscall.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/ia64/src/syscall.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -45,3 +45,2 @@
 	br.ret.sptk.many b0
 FUNCTION_END(__syscall)
-
Index: uspace/lib/c/arch/mips32/src/entryjmp.S
===================================================================
--- uspace/lib/c/arch/mips32/src/entryjmp.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/arch/mips32/src/entryjmp.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -51,3 +51,2 @@
 	addiu $sp, ABI_STACK_FRAME
 FUNCTION_END(entry_point_jmp)
-
Index: uspace/lib/c/generic/async.c
===================================================================
--- uspace/lib/c/generic/async.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/generic/async.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -991,4 +991,5 @@
  * @param callid Hash of the incoming call.
  * @param call   Data of the incoming call.
+ *
  */
 static void process_notification(ipc_callid_t callid, ipc_call_t *call)
@@ -1316,7 +1317,7 @@
 		fibril_t *fibril = (fibril_t *) __tcb_get()->fibril_data;
 		unsigned oldsw = fibril->switches;
-
+		
 		process_notification(callid, call);
-
+		
 		if (oldsw != fibril->switches) {
 			/*
@@ -1334,4 +1335,5 @@
 			fibril_switch(FIBRIL_FROM_DEAD);
 		}
+		
 		return;
 	}
Index: uspace/lib/c/generic/dnsr.c
===================================================================
--- uspace/lib/c/generic/dnsr.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/generic/dnsr.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -124,12 +124,12 @@
 		return (int) 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);
Index: uspace/lib/c/generic/rtld/module.c
===================================================================
--- uspace/lib/c/generic/rtld/module.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/generic/rtld/module.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -151,5 +151,5 @@
 		}
 	}
-
+	
 	return NULL; /* Not found */
 }
@@ -167,5 +167,5 @@
 	module_t *m;
 	int rc;
-
+	
 	m = calloc(1, sizeof(module_t));
 	if (m == NULL) {
@@ -173,5 +173,5 @@
 		exit(1);
 	}
-
+	
 	m->rtld = rtld;
 	m->id = rtld_get_next_id(rtld);
@@ -217,5 +217,5 @@
 	/* Insert into the list of loaded modules */
 	list_append(&m->modules_link, &rtld->modules);
-
+	
 	/* Copy TLS info */
 	m->tdata = info.tls.tdata;
@@ -223,5 +223,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);
Index: uspace/lib/c/generic/tls.c
===================================================================
--- uspace/lib/c/generic/tls.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/generic/tls.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -74,13 +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.
@@ -118,5 +119,6 @@
 	if (!tcb)
 		return NULL;
-	*data = ((void *)tcb) + sizeof(tcb_t);
+	
+	*data = ((void *) tcb) + sizeof(tcb_t);
 #ifdef CONFIG_RTLD
 	tcb->dtv = NULL;
@@ -148,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/include/fibril.h
===================================================================
--- uspace/lib/c/include/fibril.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/c/include/fibril.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -79,5 +79,5 @@
 	fibril_owner_info_t *waits_for;
 
-	unsigned switches;
+	unsigned int switches;
 } fibril_t;
 
Index: uspace/lib/drv/generic/driver.c
===================================================================
--- uspace/lib/drv/generic/driver.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/drv/generic/driver.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -126,5 +126,5 @@
 		return;
 	}
-
+	
 	ddf_dev_t *dev = create_device();
 	if (!dev) {
@@ -133,5 +133,5 @@
 		return;
 	}
-
+	
 	/* Add one reference that will be dropped by driver_dev_remove() */
 	dev_add_ref(dev);
Index: uspace/lib/drv/generic/remote_ahci.c
===================================================================
--- uspace/lib/drv/generic/remote_ahci.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/drv/generic/remote_ahci.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -226,5 +226,5 @@
 		return;
 	}	
-
+	
 	const int ret = ahci_iface->get_sata_device_name(fun,
 	    sata_dev_name_length, sata_dev_name);
@@ -235,5 +235,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);
Index: uspace/lib/drv/generic/remote_usb.c
===================================================================
--- uspace/lib/drv/generic/remote_usb.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/drv/generic/remote_usb.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -91,7 +91,10 @@
 
 /** Tell devman handle of the usb device function.
- * @param[in] exch IPC communication exchange
+ *
+ * @param[in]  exch   IPC communication exchange
  * @param[out] handle devman handle of the HC used by the target device.
+ *
  * @return Error code.
+ *
  */
 int usb_get_my_device_handle(async_exch_t *exch, devman_handle_t *handle)
@@ -119,6 +122,9 @@
 
 /** Release default USB address.
+ *
  * @param[in] exch IPC communication exchange
+ *
  * @return Error code.
+ *
  */
 int usb_release_default_address(async_exch_t *exch)
@@ -131,7 +137,10 @@
 
 /** Trigger USB device enumeration
- * @param[in] exch IPC communication exchange
+ *
+ * @param[in]  exch   IPC communication exchange
  * @param[out] handle Identifier of the newly added device (if successful)
+ *
  * @return Error code.
+ *
  */
 int usb_device_enumerate(async_exch_t *exch, unsigned port)
@@ -145,7 +154,10 @@
 
 /** Trigger USB device enumeration
- * @param[in] exch IPC communication exchange
+ *
+ * @param[in] exch   IPC communication exchange
  * @param[in] handle Identifier of the device
+ *
  * @return Error code.
+ *
  */
 int usb_device_remove(async_exch_t *exch, unsigned port)
Index: uspace/lib/drv/include/usb_iface.h
===================================================================
--- uspace/lib/drv/include/usb_iface.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/drv/include/usb_iface.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -44,22 +44,25 @@
 typedef async_sess_t usb_dev_session_t;
 
-usb_dev_session_t *usb_dev_connect(devman_handle_t);
-usb_dev_session_t *usb_dev_connect_to_self(ddf_dev_t *);
-void usb_dev_disconnect(usb_dev_session_t *);
+extern usb_dev_session_t *usb_dev_connect(devman_handle_t);
+extern usb_dev_session_t *usb_dev_connect_to_self(ddf_dev_t *);
+extern void usb_dev_disconnect(usb_dev_session_t *);
 
-int usb_get_my_interface(async_exch_t *, int *);
-int usb_get_my_device_handle(async_exch_t *, devman_handle_t *);
+extern int usb_get_my_interface(async_exch_t *, int *);
+extern int usb_get_my_device_handle(async_exch_t *, devman_handle_t *);
 
-int usb_reserve_default_address(async_exch_t *, usb_speed_t);
-int usb_release_default_address(async_exch_t *);
+extern int usb_reserve_default_address(async_exch_t *, usb_speed_t);
+extern int usb_release_default_address(async_exch_t *);
 
-int usb_device_enumerate(async_exch_t *, unsigned port);
-int usb_device_remove(async_exch_t *, unsigned port);
+extern int usb_device_enumerate(async_exch_t *, unsigned port);
+extern int usb_device_remove(async_exch_t *, unsigned port);
 
-int usb_register_endpoint(async_exch_t *, usb_endpoint_t, usb_transfer_type_t,
-    usb_direction_t, size_t, unsigned, unsigned);
-int usb_unregister_endpoint(async_exch_t *, usb_endpoint_t, usb_direction_t);
-int usb_read(async_exch_t *, usb_endpoint_t, uint64_t, void *, size_t, size_t *);
-int usb_write(async_exch_t *, usb_endpoint_t, uint64_t, const void *, size_t);
+extern int usb_register_endpoint(async_exch_t *, usb_endpoint_t,
+    usb_transfer_type_t, usb_direction_t, size_t, unsigned, unsigned);
+extern int usb_unregister_endpoint(async_exch_t *, usb_endpoint_t,
+    usb_direction_t);
+extern int usb_read(async_exch_t *, usb_endpoint_t, uint64_t, void *, size_t,
+    size_t *);
+extern int usb_write(async_exch_t *, usb_endpoint_t, uint64_t, const void *,
+    size_t);
 
 /** Callback for outgoing transfer. */
Index: uspace/lib/drv/include/usbhc_iface.h
===================================================================
--- uspace/lib/drv/include/usbhc_iface.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/drv/include/usbhc_iface.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -44,7 +44,7 @@
 #include <stdbool.h>
 
-int usbhc_read(async_exch_t *, usb_address_t, usb_endpoint_t,
+extern int usbhc_read(async_exch_t *, usb_address_t, usb_endpoint_t,
     uint64_t, void *, size_t, size_t *);
-int usbhc_write(async_exch_t *, usb_address_t, usb_endpoint_t,
+extern int usbhc_write(async_exch_t *, usb_address_t, usb_endpoint_t,
     uint64_t, const void *, size_t);
 
Index: uspace/lib/math/arch/amd64/src/sin.S
===================================================================
--- uspace/lib/math/arch/amd64/src/sin.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/math/arch/amd64/src/sin.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -77,3 +77,2 @@
 	retq
 FUNCTION_END(sin_f64)
-
Index: uspace/lib/math/arch/ia32/src/cos.S
===================================================================
--- uspace/lib/math/arch/ia32/src/cos.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/math/arch/ia32/src/cos.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -64,3 +64,2 @@
 	ret
 FUNCTION_END(cos_f64)
-
Index: uspace/lib/math/arch/ia32/src/sin.S
===================================================================
--- uspace/lib/math/arch/ia32/src/sin.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/math/arch/ia32/src/sin.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -64,3 +64,2 @@
 	ret
 FUNCTION_END(sin_f64)
-
Index: uspace/lib/math/arch/ia32/src/trunc.S
===================================================================
--- uspace/lib/math/arch/ia32/src/trunc.S	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/math/arch/ia32/src/trunc.S	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -61,3 +61,2 @@
 	ret
 FUNCTION_END(trunc_f64)
-
Index: uspace/lib/usb/include/usb/classes/hub.h
===================================================================
--- uspace/lib/usb/include/usb/classes/hub.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usb/include/usb/classes/hub.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -110,4 +110,5 @@
 	 */
 	uint8_t characteristics;
+
 #define HUB_CHAR_POWER_PER_PORT_FLAG    (1 << 0)
 #define HUB_CHAR_NO_POWER_SWITCH_FLAG   (1 << 1)
@@ -196,5 +197,5 @@
  */
 /* 7 (basic size) + 2*32 (port bitmasks) */
-#define USB_HUB_MAX_DESCRIPTOR_SIZE (7 + 2 * 32)
+#define USB_HUB_MAX_DESCRIPTOR_SIZE  (7 + 2 * 32)
 
 #endif
Index: uspace/lib/usb/include/usb/debug.h
===================================================================
--- uspace/lib/usb/include/usb/debug.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usb/include/usb/debug.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -38,5 +38,4 @@
 #include <sys/types.h>
 #include <io/log.h>
-
 
 void usb_dump_standard_descriptor(FILE *, const char *, const char *,
Index: uspace/lib/usb/include/usb/descriptor.h
===================================================================
--- uspace/lib/usb/include/usb/descriptor.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usb/include/usb/descriptor.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -45,5 +45,5 @@
 	USB_DESCTYPE_INTERFACE = 4,
 	USB_DESCTYPE_ENDPOINT = 5,
-	/* New in USB2.0 */
+	/* New in USB 2.0 */
 	USB_DESCTYPE_DEVICE_QUALIFIER = 6,
 	USB_DESCTYPE_OTHER_SPEED_CONFIGURATION = 7,
@@ -202,4 +202,5 @@
 	 * HS INT and ISO transfers. */
 	uint16_t max_packet_size;
+
 #define ED_MPS_PACKET_SIZE_MASK  0x3ff
 #define ED_MPS_PACKET_SIZE_GET(value) \
@@ -207,4 +208,5 @@
 #define ED_MPS_TRANS_OPPORTUNITIES_GET(value) \
 	((((value) >> 10) & 0x3) + 1)
+
 	/** Polling interval in milliseconds.
 	 * Ignored for bulk and control endpoints.
Index: uspace/lib/usb/include/usb/dev.h
===================================================================
--- uspace/lib/usb/include/usb/dev.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usb/include/usb/dev.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -26,10 +26,13 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup libusb
  * @{
  */
+
 /** @file
  * Common USB types and functions.
  */
+
 #ifndef LIBUSB_DEV_H_
 #define LIBUSB_DEV_H_
@@ -37,6 +40,8 @@
 #include <devman.h>
 
-int usb_resolve_device_handle(const char *, devman_handle_t *);
+extern int usb_resolve_device_handle(const char *, devman_handle_t *);
+
 #endif
+
 /**
  * @}
Index: uspace/lib/usb/include/usb/usb.h
===================================================================
--- uspace/lib/usb/include/usb/usb.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usb/include/usb/usb.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -114,4 +114,5 @@
 /** Default USB address. */
 #define USB_ADDRESS_DEFAULT 0
+
 /** Maximum address number in USB 1.1. */
 #define USB11_ADDRESS_MAX 127
@@ -121,5 +122,7 @@
  *
  * @param ep USB address.
+ *
  * @return True, if value is wihtin limits, false otherwise.
+ *
  */
 static inline bool usb_address_is_valid(usb_address_t a)
@@ -135,4 +138,5 @@
 /** Default control endpoint */
 #define USB_ENDPOINT_DEFAULT_CONTROL 0
+
 /** Maximum endpoint number in USB 1.1. */
 #define USB11_ENDPOINT_MAX 16
@@ -141,5 +145,7 @@
  *
  * @param ep USB endpoint number.
+ *
  * @return True, if value is wihtin limits, false otherwise.
+ *
  */
 static inline bool usb_endpoint_is_valid(usb_endpoint_t ep)
@@ -160,5 +166,4 @@
 	uint32_t packed;
 } usb_target_t;
-
 
 /** Check USB target for allowed values (address and endpoint).
Index: uspace/lib/usb/src/usb.c
===================================================================
--- uspace/lib/usb/src/usb.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usb/src/usb.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -121,7 +121,9 @@
  *
  * @param[in] requst Setup requst data.
+ *
  * @retval -1 No endpoints need reset.
  * @retval 0 All endpoints need reset.
  * @retval >0 Specified endpoint needs reset.
+ *
  */
 int usb_request_needs_toggle_reset(
Index: uspace/lib/usbdev/include/usb/dev/poll.h
===================================================================
--- uspace/lib/usbdev/include/usb/dev/poll.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbdev/include/usb/dev/poll.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -94,15 +94,15 @@
 typedef void (*usb_polling_terminted_callback_t)(usb_device_t *, bool, void *);
 
-int usb_device_auto_polling(usb_device_t *, usb_endpoint_t,
+extern int usb_device_auto_polling(usb_device_t *, usb_endpoint_t,
     const usb_device_auto_polling_t *, size_t);
 
-int usb_device_auto_poll(usb_device_t *, usb_endpoint_t,
+extern int usb_device_auto_poll(usb_device_t *, usb_endpoint_t,
     usb_polling_callback_t, size_t, int, usb_polling_terminted_callback_t, void *);
 
-int usb_device_auto_polling_desc(usb_device_t *,
+extern int usb_device_auto_polling_desc(usb_device_t *,
     const usb_endpoint_description_t *, const usb_device_auto_polling_t *,
     size_t);
 
-int usb_device_auto_poll_desc(usb_device_t *,
+extern int usb_device_auto_poll_desc(usb_device_t *,
     const usb_endpoint_description_t *, usb_polling_callback_t, size_t, int,
     usb_polling_terminted_callback_t, void *);
Index: uspace/lib/usbdev/include/usb/dev/recognise.h
===================================================================
--- uspace/lib/usbdev/include/usb/dev/recognise.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbdev/include/usb/dev/recognise.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -50,4 +50,5 @@
 
 extern int usb_device_create_match_ids(usb_pipe_t *, match_id_list_t *);
+
 #endif
 
Index: uspace/lib/usbdev/src/devdrv.c
===================================================================
--- uspace/lib/usbdev/src/devdrv.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbdev/src/devdrv.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -27,4 +27,5 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 /** @addtogroup libusbdev
  * @{
@@ -55,33 +56,43 @@
 	/** Connection to device on USB bus */
 	usb_dev_session_t *bus_session;
+	
 	/** devman handle */
 	devman_handle_t handle;
+	
 	/** The default control pipe. */
 	usb_pipe_t ctrl_pipe;
-
+	
 	/** Other endpoint pipes.
+	 *
 	 * This is an array of other endpoint pipes in the same order as
 	 * in usb_driver_t.
 	 */
 	usb_endpoint_mapping_t *pipes;
+	
 	/** Number of other endpoint pipes. */
 	size_t pipes_count;
+	
 	/** Current interface.
+	 *
 	 * Usually, drivers operate on single interface only.
 	 * This item contains the value of the interface or -1 for any.
 	 */
 	int interface_no;
+	
 	/** Alternative interfaces. */
 	usb_alternate_interfaces_t alternate_interfaces;
+	
 	/** Some useful descriptors for USB device. */
 	usb_device_descriptors_t descriptors;
+	
 	/** Generic DDF device backing this one. DO NOT TOUCH! */
 	ddf_dev_t *ddf_dev;
+	
 	/** Custom driver data.
+	 *
 	 * Do not use the entry in generic device, that is already used
 	 * by the framework.
 	 */
 	void *driver_data;
-
 } usb_device_t;
 
@@ -135,5 +146,5 @@
 		return rc;
 	}
-
+	
 	/* Change current alternative */
 	usb_dev->alternate_interfaces.current = alternate_setting;
@@ -279,4 +290,5 @@
  *
  * @param[in] usb_dev USB device.
+ *
  */
 void usb_device_destroy_pipes(usb_device_t *usb_dev)
@@ -284,4 +296,5 @@
 	assert(usb_dev);
 	assert(usb_dev->pipes || usb_dev->pipes_count == 0);
+	
 	/* Destroy the pipes. */
 	for (size_t i = 0; i < usb_dev->pipes_count; ++i) {
@@ -291,4 +304,5 @@
 			usb_pipe_unregister(&usb_dev->pipes[i].pipe);
 	}
+	
 	free(usb_dev->pipes);
 	usb_dev->pipes = NULL;
@@ -448,7 +462,9 @@
 	assert(handle);
 	assert(iface_no);
+	
 	async_exch_t *exch = async_exchange_begin(sess);
 	if (!exch)
 		return EPARTY;
+	
 	int ret = usb_get_my_device_handle(exch, handle);
 	if (ret == EOK) {
@@ -459,4 +475,5 @@
 		}
 	}
+	
 	async_exchange_end(exch);
 	return ret;
Index: uspace/lib/usbdev/src/devpoll.c
===================================================================
--- uspace/lib/usbdev/src/devpoll.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbdev/src/devpoll.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -33,4 +33,5 @@
  * USB device driver framework - automatic interrupt polling.
  */
+
 #include <usb/dev/device.h>
 #include <usb/dev/pipes.h>
@@ -85,6 +86,6 @@
 
 	if (params->debug > 0) {
-		const usb_endpoint_mapping_t *mapping
-		    = data->polling_mapping;
+		const usb_endpoint_mapping_t *mapping =
+		    data->polling_mapping;
 		usb_log_debug("Poll (%p): started polling of `%s' - " \
 		    "interface %d (%s,%d,%d), %zuB/%zu.\n",
@@ -154,7 +155,8 @@
 
 		/* Take a rest before next request. */
-		//TODO: This is broken, the time is in ms not us.
+		
+		// FIXME TODO: This is broken, the time is in ms not us.
 		// but first we need to fix drivers to actually stop using this,
-		// since polling dealy should be implemented in HC schedule
+		// since polling delay should be implemented in HC schedule
 		async_usleep(params->delay);
 	}
@@ -213,9 +215,9 @@
 	if (request_size == 0)
 		return EINVAL;
-
+	
 	if (!epm || (epm->pipe.transfer_type != USB_TRANSFER_INTERRUPT) ||
 	    (epm->pipe.direction != USB_DIRECTION_IN))
 		return EINVAL;
-
+	
 
 	polling_data_t *polling_data = malloc(sizeof(polling_data_t));
Index: uspace/lib/usbdev/src/pipes.c
===================================================================
--- uspace/lib/usbdev/src/pipes.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbdev/src/pipes.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -98,6 +98,6 @@
 	async_exch_t *exch = async_exchange_begin(pipe->bus_session);
 	size_t act_size = 0;
-	const int rc = usb_read(exch,
-	    pipe->endpoint_no, setup_packet, buffer, buffer_size, &act_size);
+	const int rc = usb_read(exch, pipe->endpoint_no, setup_packet, buffer,
+	    buffer_size, &act_size);
 	async_exchange_end(exch);
 
Index: uspace/lib/usbdev/src/pipesinit.c
===================================================================
--- uspace/lib/usbdev/src/pipesinit.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbdev/src/pipesinit.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -286,10 +286,9 @@
     usb_dev_session_t *bus_session)
 {
-
-	if (config_descriptor == NULL) {
+	if (config_descriptor == NULL)
 		return EBADMEM;
-	}
-	if (config_descriptor_size
-	    < sizeof(usb_standard_configuration_descriptor_t)) {
+	
+	if (config_descriptor_size <
+	    sizeof(usb_standard_configuration_descriptor_t)) {
 		return ERANGE;
 	}
Index: uspace/lib/usbdev/src/recognise.c
===================================================================
--- uspace/lib/usbdev/src/recognise.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbdev/src/recognise.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -234,5 +234,5 @@
 		    (int) device_descriptor->product_id,
 		    BCD_ARGS(device_descriptor->device_version));
-
+		
 		/* Next, without release number. */
 		ADD_MATCHID_OR_RETURN(matches, 90,
@@ -245,5 +245,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/usbdev/src/request.c
===================================================================
--- uspace/lib/usbdev/src/request.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbdev/src/request.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -50,19 +50,21 @@
  * @see usb_pipe_control_write
  *
- * @param pipe Pipe used for the communication.
+ * @param pipe         Pipe used for the communication.
  * @param request_type Request type (standard/class/vendor).
- * @param recipient Request recipient (e.g. device or endpoint).
- * @param request Actual request (e.g. GET_DESCRIPTOR).
- * @param value Value of @c wValue field of setup packet
- *	(must be in USB endianness).
- * @param index Value of @c wIndex field of setup packet
- *	(must be in USB endianness).
- * @param data Data to be sent during DATA stage
- *	(expected to be in USB endianness).
- * @param data_size Size of the @p data buffer (in native endianness).
+ * @param recipient    Request recipient (e.g. device or endpoint).
+ * @param request      Actual request (e.g. GET_DESCRIPTOR).
+ * @param value        Value of @c wValue field of setup packet
+ *                     (must be in USB endianness).
+ * @param index        Value of @c wIndex field of setup packet
+ *                     (must be in USB endianness).
+ * @param data         Data to be sent during DATA stage
+ *                     (expected to be in USB endianness).
+ * @param data_size     Size of the @p data buffer (in native endianness).
+ *
  * @return Error code.
  * @retval EBADMEM @p pipe is NULL.
  * @retval EBADMEM @p data is NULL and @p data_size is not zero.
  * @retval ERANGE Data buffer too large.
+ *
  */
 int usb_control_request_set(usb_pipe_t *pipe,
@@ -100,27 +102,29 @@
 }
 
- /** Generic wrapper for GET requests using standard control request format.
-  *
-  * @see usb_pipe_control_read
-  *
-  * @param pipe Pipe used for the communication.
-  * @param request_type Request type (standard/class/vendor).
-  * @param recipient Request recipient (e.g. device or endpoint).
-  * @param request Actual request (e.g. GET_DESCRIPTOR).
-  * @param value Value of @c wValue field of setup packet
-  *	(must be in USB endianness).
-  * @param index Value of @c wIndex field of setup packet
-  *	(must be in USB endianness).
-  * @param data Buffer where to store data accepted during the DATA stage.
-  *	(they will come in USB endianness).
-  * @param data_size Size of the @p data buffer
-  *	(in native endianness).
-  * @param actual_data_size Actual size of transfered data
-  *	(in native endianness).
-  * @return Error code.
-  * @retval EBADMEM @p pipe is NULL.
-  * @retval EBADMEM @p data is NULL and @p data_size is not zero.
-  * @retval ERANGE Data buffer too large.
-  */
+/** Generic wrapper for GET requests using standard control request format.
+ *
+ * @see usb_pipe_control_read
+ *
+ * @param pipe             Pipe used for the communication.
+ * @param request_type     Request type (standard/class/vendor).
+ * @param recipient        Request recipient (e.g. device or endpoint).
+ * @param request          Actual request (e.g. GET_DESCRIPTOR).
+ * @param value            Value of @c wValue field of setup packet
+ *                         (must be in USB endianness).
+ * @param index            Value of @c wIndex field of setup packet
+ *                         (must be in USB endianness).
+ * @param data             Buffer where to store data accepted during
+ *                         the DATA stage (they will come in USB endianness).
+ * @param data_size        Size of the @p data buffer
+ *                         (in native endianness).
+ * @param actual_data_size Actual size of transfered data
+ *                         (in native endianness).
+ *
+ * @return Error code.
+ * @retval EBADMEM @p pipe is NULL.
+ * @retval EBADMEM @p data is NULL and @p data_size is not zero.
+ * @retval ERANGE Data buffer too large.
+ *
+ */
 int usb_control_request_get(usb_pipe_t *pipe,
     usb_request_type_t request_type, usb_request_recipient_t recipient,
@@ -209,6 +213,5 @@
 {
 	if (request_type == USB_REQUEST_TYPE_STANDARD) {
-		if ((recipient == USB_REQUEST_RECIPIENT_DEVICE) && (index != 0))
-		{
+		if ((recipient == USB_REQUEST_RECIPIENT_DEVICE) && (index != 0)) {
 			return EINVAL;
 		}
@@ -234,6 +237,5 @@
 {
 	if (request_type == USB_REQUEST_TYPE_STANDARD) {
-		if ((recipient == USB_REQUEST_RECIPIENT_DEVICE) && (index != 0))
-		{
+		if ((recipient == USB_REQUEST_RECIPIENT_DEVICE) && (index != 0)) {
 			return EINVAL;
 		}
@@ -271,5 +273,6 @@
 	}
 
-	/* The wValue field specifies the descriptor type in the high byte
+	/*
+	 * The wValue field specifies the descriptor type in the high byte
 	 * and the descriptor index in the low byte. USB 1.1 spec p. 189
 	 */
Index: uspace/lib/usbhost/include/usb/host/endpoint.h
===================================================================
--- uspace/lib/usbhost/include/usb/host/endpoint.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbhost/include/usb/host/endpoint.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -88,26 +88,28 @@
 } endpoint_t;
 
-endpoint_t * endpoint_create(usb_address_t address, usb_endpoint_t endpoint,
-    usb_direction_t direction, usb_transfer_type_t type, usb_speed_t speed,
-    size_t max_packet_size, unsigned packets, size_t bw,
-    usb_address_t tt_address, unsigned tt_port);
-void endpoint_destroy(endpoint_t *instance);
+extern endpoint_t *endpoint_create(usb_address_t, usb_endpoint_t,
+    usb_direction_t, usb_transfer_type_t, usb_speed_t, size_t, unsigned int,
+    size_t, usb_address_t, unsigned int);
+extern void endpoint_destroy(endpoint_t *);
 
-void endpoint_add_ref(endpoint_t *instance);
-void endpoint_del_ref(endpoint_t *instance);
+extern void endpoint_add_ref(endpoint_t *);
+extern void endpoint_del_ref(endpoint_t *);
 
-void endpoint_set_hc_data(endpoint_t *instance,
-    void *data, int (*toggle_get)(void *), void (*toggle_set)(void *, int));
-void endpoint_clear_hc_data(endpoint_t *instance);
+extern void endpoint_set_hc_data(endpoint_t *, void *, int (*)(void *),
+    void (*)(void *, int));
+extern void endpoint_clear_hc_data(endpoint_t *);
 
-void endpoint_use(endpoint_t *instance);
-void endpoint_release(endpoint_t *instance);
+extern void endpoint_use(endpoint_t *);
+extern void endpoint_release(endpoint_t *);
 
-int endpoint_toggle_get(endpoint_t *instance);
-void endpoint_toggle_set(endpoint_t *instance, int toggle);
+extern int endpoint_toggle_get(endpoint_t *);
+extern void endpoint_toggle_set(endpoint_t *, int);
 
 /** list_get_instance wrapper.
+ *
  * @param item Pointer to link member.
+ *
  * @return Pointer to endpoint_t structure.
+ *
  */
 static inline endpoint_t * endpoint_get_instance(link_t *item)
@@ -116,4 +118,5 @@
 }
 #endif
+
 /**
  * @}
Index: uspace/lib/usbhost/include/usb/host/hcd.h
===================================================================
--- uspace/lib/usbhost/include/usb/host/hcd.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbhost/include/usb/host/hcd.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -81,6 +81,5 @@
 };
 
-void hcd_init(hcd_t *hcd, usb_speed_t max_speed, size_t bandwidth,
-    bw_count_func_t bw_count);
+extern void hcd_init(hcd_t *, usb_speed_t, size_t, bw_count_func_t);
 
 static inline void hcd_set_implementation(hcd_t *hcd, void *data,
@@ -102,9 +101,9 @@
 }
 
-usb_address_t hcd_request_address(hcd_t *hcd, usb_speed_t speed);
+extern usb_address_t hcd_request_address(hcd_t *, usb_speed_t);
 
-int hcd_release_address(hcd_t *hcd, usb_address_t address);
+extern int hcd_release_address(hcd_t *, usb_address_t);
 
-int hcd_reserve_default_address(hcd_t *hcd, usb_speed_t speed);
+extern int hcd_reserve_default_address(hcd_t *, usb_speed_t);
 
 static inline int hcd_release_default_address(hcd_t *hcd)
@@ -113,20 +112,19 @@
 }
 
-int hcd_add_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir,
-    usb_transfer_type_t type, size_t max_packet_size, unsigned packets,
-    size_t size, usb_address_t tt_address, unsigned tt_port);
+extern int hcd_add_ep(hcd_t *, usb_target_t, usb_direction_t,
+    usb_transfer_type_t, size_t, unsigned int, size_t, usb_address_t,
+    unsigned int);
 
-int hcd_remove_ep(hcd_t *hcd, usb_target_t target, usb_direction_t dir);
+extern int hcd_remove_ep(hcd_t *, usb_target_t, usb_direction_t);
 
-int hcd_send_batch(hcd_t *hcd, usb_target_t target, usb_direction_t direction,
-    void *data, size_t size, uint64_t setup_data,
-    usbhc_iface_transfer_in_callback_t in,
-    usbhc_iface_transfer_out_callback_t out, void *arg, const char* name);
+extern int hcd_send_batch(hcd_t *, usb_target_t, usb_direction_t, void *,
+    size_t, uint64_t, usbhc_iface_transfer_in_callback_t,
+    usbhc_iface_transfer_out_callback_t, void *, const char *);
 
-ssize_t hcd_send_batch_sync(hcd_t *hcd, usb_target_t target,
-    usb_direction_t dir, void *data, size_t size, uint64_t setup_data,
-    const char* name);
+extern ssize_t hcd_send_batch_sync(hcd_t *, usb_target_t, usb_direction_t,
+    void *, size_t, uint64_t, const char *);
 
 #endif
+
 /**
  * @}
Index: uspace/lib/usbhost/src/usb_transfer_batch.c
===================================================================
--- uspace/lib/usbhost/src/usb_transfer_batch.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbhost/src/usb_transfer_batch.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -56,13 +56,10 @@
  * @return Pointer to valid usb_transfer_batch_t structure, NULL on failure.
  */
-usb_transfer_batch_t * usb_transfer_batch_create(
-    endpoint_t *ep,
-    char *buffer,
+usb_transfer_batch_t *usb_transfer_batch_create(endpoint_t *ep, char *buffer,
     size_t buffer_size,
     uint64_t setup_buffer,
     usbhc_iface_transfer_in_callback_t func_in,
     usbhc_iface_transfer_out_callback_t func_out,
-    void *arg
-    )
+    void *arg)
 {
 	if (func_in == NULL && func_out == NULL)
Index: uspace/lib/usbvirt/include/usbvirt/device.h
===================================================================
--- uspace/lib/usbvirt/include/usbvirt/device.h	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbvirt/include/usbvirt/device.h	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -41,5 +41,4 @@
 #include <async.h>
 #include <errno.h>
-
 
 /** Maximum number of endpoints supported by virtual USB. */
@@ -240,21 +239,23 @@
 };
 
-
-int req_nop(usbvirt_device_t *device,
+extern int req_nop(usbvirt_device_t *device,
     const usb_device_request_setup_packet_t *setup_packet,
     uint8_t *data, size_t *act_size);
 
-int usbvirt_device_plug(usbvirt_device_t *, const char *);
-void usbvirt_device_unplug(usbvirt_device_t *);
-
-void usbvirt_control_reply_helper(const usb_device_request_setup_packet_t *,
-    uint8_t *, size_t *, const void *, size_t);
-
-int usbvirt_control_write(usbvirt_device_t *, const void *, size_t, void *, size_t);
-int usbvirt_control_read(usbvirt_device_t *, const void *, size_t, void *, size_t, size_t *);
-int usbvirt_data_out(usbvirt_device_t *, usb_transfer_type_t, usb_endpoint_t,
+extern int usbvirt_device_plug(usbvirt_device_t *, const char *);
+extern void usbvirt_device_unplug(usbvirt_device_t *);
+
+extern void usbvirt_control_reply_helper(
+    const usb_device_request_setup_packet_t *, uint8_t *, size_t *,
     const void *, size_t);
-int usbvirt_data_in(usbvirt_device_t *, usb_transfer_type_t, usb_endpoint_t,
+
+extern int usbvirt_control_write(usbvirt_device_t *, const void *, size_t,
+    void *, size_t);
+extern int usbvirt_control_read(usbvirt_device_t *, const void *, size_t,
     void *, size_t, size_t *);
+extern int usbvirt_data_out(usbvirt_device_t *, usb_transfer_type_t,
+    usb_endpoint_t, const void *, size_t);
+extern int usbvirt_data_in(usbvirt_device_t *, usb_transfer_type_t,
+    usb_endpoint_t, void *, size_t, size_t *);
 
 #endif
Index: uspace/lib/usbvirt/src/ctrltransfer.c
===================================================================
--- uspace/lib/usbvirt/src/ctrltransfer.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/lib/usbvirt/src/ctrltransfer.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -60,4 +60,5 @@
 		return EFORWARD;
 	}
+	
 	const usbvirt_control_request_handler_t *handler = control_handlers;
 	for (;handler->callback != NULL; ++handler) {
Index: uspace/srv/bd/vbd/disk.c
===================================================================
--- uspace/srv/bd/vbd/disk.c	(revision db4c43e127e6198b20ef344ad44fdf6dd156f40b)
+++ uspace/srv/bd/vbd/disk.c	(revision 585635856440deab73ad5891daab8fa87901aa68)
@@ -340,7 +340,8 @@
  * partition structure.
  *
- * @param part Partition
- * @param flag If set to @c vrf_force, force removal even if partition is in use
+ * @param part   Partition
+ * @param flag   If set to @c vrf_force, force removal even if partition is in use
  * @param rlpart Place to store pointer to liblabel partition
+ *
  */
 static int vbds_part_remove(vbds_part_t *part, vbds_rem_flag_t flag,
