Index: cpukit/libblock/src/bdbuf.c
===================================================================
--- cpukit/libblock/src/bdbuf.c	(revision 048dcd2b3a678fc259403b0b83f5caff7b6f4f57)
+++ cpukit/libblock/src/bdbuf.c	(revision 8b961495bbc5cc4efa9a199dd0dc2397ba0c33ca)
@@ -62,7 +62,7 @@
 
     Chain_Control  mod;          /* Modified buffers list */
-    rtems_id       flush_sema;   /* Buffer flush semaphore; counting 
+    rtems_id       flush_sema;   /* Buffer flush semaphore; counting
                                     semaphore; incremented when buffer
-                                    flushed to the disk; decremented when 
+                                    flushed to the disk; decremented when
                                     buffer modified */
     rtems_id       swapout_task; /* Swapout task ID */
@@ -463,5 +463,5 @@
         r = q->avl.left;
         if (r != NULL)
-        {   
+        {
             r->avl.bal = 0;
         }
@@ -763,7 +763,7 @@
 
 /* rtems_bdbuf_init --
- *     Prepare buffering layer to work - initialize buffer descritors 
+ *     Prepare buffering layer to work - initialize buffer descritors
  *     and (if it is neccessary)buffers. Buffers will be allocated accoriding
- *     to the configuration table, each entry describes kind of block and 
+ *     to the configuration table, each entry describes kind of block and
  *     amount requested. After initialization all blocks is placed into
  *     free elements lists.
@@ -832,5 +832,5 @@
         rtems_build_name('B', 'S', 'W', 'P'),
         SWAPOUT_PRIORITY,
-        SWAPOUT_STACK_SIZE, 
+        SWAPOUT_STACK_SIZE,
         RTEMS_DEFAULT_MODES | RTEMS_NO_PREEMPT,
         RTEMS_DEFAULT_ATTRIBUTES,
@@ -863,9 +863,9 @@
  *     obtain block buffer. If specified block already cached (i.e. there's
  *     block in the _modified_, or _recently_used_), return address
- *     of appropriate buffer descriptor and increment reference counter to 1. 
- *     If block is not cached, allocate new buffer and return it. Data 
- *     shouldn't be read to the buffer from media; buffer contains arbitrary 
- *     data. This primitive may be blocked if there are no free buffer 
- *     descriptors available and there are no unused non-modified (or 
+ *     of appropriate buffer descriptor and increment reference counter to 1.
+ *     If block is not cached, allocate new buffer and return it. Data
+ *     shouldn't be read to the buffer from media; buffer contains arbitrary
+ *     data. This primitive may be blocked if there are no free buffer
+ *     descriptors available and there are no unused non-modified (or
  *     synchronized with media) buffers available.
  *
@@ -887,5 +887,5 @@
 static rtems_status_code
 find_or_assign_buffer(disk_device *dd,
-                      blkdev_bnum block, 
+                      blkdev_bnum block,
                       bdbuf_buffer **ret_buf)
 {
@@ -909,7 +909,7 @@
     {
         /* Try to obtain semaphore without waiting first. It is the most
-           frequent case when reasonable number of buffers configured. If 
-           it is failed, obtain semaphore blocking on it. In this case 
-           it should be checked that appropriate buffer hasn't been loaded 
+           frequent case when reasonable number of buffers configured. If
+           it is failed, obtain semaphore blocking on it. In this case
+           it should be checked that appropriate buffer hasn't been loaded
            by another thread, because this thread is preempted */
         rc = rtems_semaphore_obtain(bd_pool->bufget_sema, RTEMS_NO_WAIT, 0);
@@ -932,5 +932,5 @@
             if (bd_buf != NULL)
             {
-                int avl_result; 
+                int avl_result;
                 avl_result = avl_remove(&bd_pool->tree, bd_buf);
                 if (avl_result != 0)
@@ -987,15 +987,15 @@
             if (bd_buf->modified)
             {
-                rc = rtems_semaphore_obtain(bd_ctx.flush_sema, 
+                rc = rtems_semaphore_obtain(bd_ctx.flush_sema,
                                             RTEMS_NO_WAIT, 0);
             }
             else
             {
-                rc = rtems_semaphore_obtain(bd_pool->bufget_sema, 
+                rc = rtems_semaphore_obtain(bd_pool->bufget_sema,
                                             RTEMS_NO_WAIT, 0);
             }
-            /* It is possible that we couldn't obtain flush or bufget sema 
+            /* It is possible that we couldn't obtain flush or bufget sema
              * although buffer in the appropriate chain is available:
-             * semaphore may be released to swapout task, but this task 
+             * semaphore may be released to swapout task, but this task
              * actually did not start to process it. */
             if (rc == RTEMS_UNSATISFIED)
@@ -1027,9 +1027,9 @@
  *     Obtain block buffer. If specified block already cached (i.e. there's
  *     block in the _modified_, or _recently_used_), return address
- *     of appropriate buffer descriptor and increment reference counter to 1. 
- *     If block is not cached, allocate new buffer and return it. Data 
- *     shouldn't be read to the buffer from media; buffer may contains 
- *     arbitrary data. This primitive may be blocked if there are no free 
- *     buffer descriptors available and there are no unused non-modified 
+ *     of appropriate buffer descriptor and increment reference counter to 1.
+ *     If block is not cached, allocate new buffer and return it. Data
+ *     shouldn't be read to the buffer from media; buffer may contains
+ *     arbitrary data. This primitive may be blocked if there are no free
+ *     buffer descriptors available and there are no unused non-modified
  *     (or synchronized with media) buffers available.
  *
@@ -1094,5 +1094,5 @@
     mutex_attr.priority_ceiling = 0;
 
-    _CORE_mutex_Initialize(&bd_buf->transfer_sema, 
+    _CORE_mutex_Initialize(&bd_buf->transfer_sema,
                            &mutex_attr, CORE_MUTEX_LOCKED);
 }
@@ -1121,5 +1121,5 @@
     bd_buf->in_progress = bd_buf->modified = FALSE;
     _CORE_mutex_Surrender(&bd_buf->transfer_sema, 0, NULL);
-    _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL, 
+    _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL,
                       CORE_MUTEX_STATUS_SUCCESSFUL);
 }
@@ -1147,5 +1147,5 @@
     bd_buf->error = RTEMS_IO_ERROR;
     _CORE_mutex_Surrender(&bd_buf->transfer_sema, 0, NULL);
-    _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL, 
+    _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL,
                       CORE_MUTEX_STATUS_SUCCESSFUL);
 }
@@ -1173,5 +1173,5 @@
  */
 rtems_status_code
-rtems_bdbuf_read(dev_t device, 
+rtems_bdbuf_read(dev_t device,
                  blkdev_bnum block,
                  bdbuf_buffer **bd)
@@ -1295,5 +1295,5 @@
         else
         {
-            /* Buffer was not modified. Add this descriptor to the 
+            /* Buffer was not modified. Add this descriptor to the
              * end of lru chain and make it available for reuse. */
             Chain_Append(&bd_pool->lru, &bd_buf->link);
@@ -1315,5 +1315,5 @@
  * PARAMETERS:
  *     bd_buf - pointer to the bdbuf_buffer structure previously obtained using
- *              get/read primitive. 
+ *              get/read primitive.
  *
  * RETURNS:
@@ -1344,5 +1344,5 @@
 /* rtems_bdbuf_release_modified --
  *     Release buffer allocated before, assuming that it is _modified_ by
- *     it's owner. This primitive decrease usage counter for buffer, mark 
+ *     it's owner. This primitive decrease usage counter for buffer, mark
  *     buffer descriptor as modified. If usage counter is 0, insert it at
  *     end of mod chain and release flush_sema semaphore to activate the
@@ -1377,5 +1377,5 @@
     bd_buf->modified = TRUE;
     bd_buf->actual = TRUE;
-    rc = bdbuf_release(bd_buf);    
+    rc = bdbuf_release(bd_buf);
 
     ENABLE_PREEMPTION(key);
@@ -1480,5 +1480,5 @@
  *     disk.
  */
-static rtems_task 
+static rtems_task
 bdbuf_swapout_task(rtems_task_argument unused)
 {
@@ -1522,5 +1522,5 @@
         req.req.bufs[0].buffer = bd_buf->buffer;
 
-        /* transfer_sema initialized when bd_buf inserted in the mod chain 
+        /* transfer_sema initialized when bd_buf inserted in the mod chain
            first time */
         result = dd->ioctl(dd->phys_dev->dev, BLKIO_REQUEST, &req);
@@ -1576,5 +1576,5 @@
  * RETURNS:
  *     RTEMS status code: RTEMS_SUCCESSFUL if operation completed successfully,
- *     RTEMS_INVALID_SIZE if specified block size is invalid (not a power 
+ *     RTEMS_INVALID_SIZE if specified block size is invalid (not a power
  *     of 2), RTEMS_NOT_DEFINED if buffer pool for this or greater block size
  *     is not configured.
@@ -1624,5 +1624,5 @@
  *     block_size - block size for which buffer pool is configured returned
  *                  there
- *     blocks     - number of buffers in buffer pool returned there 
+ *     blocks     - number of buffers in buffer pool returned there
  *
  * RETURNS:
