[ofa-general] [PATCH] osm: cosmetics - removing trailing blanks

2007-08-02 Thread Yevgeny Kliteynik
Hi Sasha.

This patch removes trailing blanks in bunch of files

Signed-off-by: Yevgeny Kliteynik [EMAIL PROTECTED]
---
 infiniband-diags/configure.in |2 +-
 libibcommon/Makefile.am   |2 +-
 libibmad/Makefile.am  |2 +-
 opensm/Makefile.am|4 ++--
 opensm/complib/Makefile.am|4 ++--
 opensm/complib/configure.in   |2 +-
 opensm/libvendor/Makefile.am  |4 ++--
 opensm/opensm/Makefile.am |   10 +-
 opensm/osmtest/Makefile.am|6 +++---
 9 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/infiniband-diags/configure.in b/infiniband-diags/configure.in
index 6e3bfb1..171dec7 100644
--- a/infiniband-diags/configure.in
+++ b/infiniband-diags/configure.in
@@ -114,7 +114,7 @@ AC_SUBST(PERL)
 
 if test $withperlpath = no
 then
-AC_PATH_PROG([PERL], [perl])
+AC_PATH_PROG([PERL], [perl])
 fi
 AC_SUBST(PERL)
 
diff --git a/libibcommon/Makefile.am b/libibcommon/Makefile.am
index 8d9d046..7bd264c 100644
--- a/libibcommon/Makefile.am
+++ b/libibcommon/Makefile.am
@@ -20,7 +20,7 @@ libibcommon_la_DEPENDENCIES = $(srcdir)/src/libibcommon.map
 
 libibcommonincludedir = $(includedir)/infiniband
 
-libibcommoninclude_HEADERS = $(srcdir)/include/infiniband/common.h 
+libibcommoninclude_HEADERS = $(srcdir)/include/infiniband/common.h
 
 EXTRA_DIST = $(srcdir)/include/infiniband/common.h libibcommon.spec.in \
 $(srcdir)/src/libibcommon.map libibcommon.ver
diff --git a/libibmad/Makefile.am b/libibmad/Makefile.am
index 0393e22..676311e 100644
--- a/libibmad/Makefile.am
+++ b/libibmad/Makefile.am
@@ -26,7 +26,7 @@ libibmad_la_DEPENDENCIES = $(srcdir)/src/libibmad.map
 
 libibmadincludedir = $(includedir)/infiniband
 
-libibmadinclude_HEADERS = $(srcdir)/include/infiniband/mad.h 
+libibmadinclude_HEADERS = $(srcdir)/include/infiniband/mad.h
 
 EXTRA_DIST = $(srcdir)/include/infiniband/mad.h libibmad.spec.in \
 $(srcdir)/src/libibmad.map libibmad.ver
diff --git a/opensm/Makefile.am b/opensm/Makefile.am
index 667b400..f99e78b 100644
--- a/opensm/Makefile.am
+++ b/opensm/Makefile.am
@@ -1,10 +1,10 @@
 
-# note that order matters: make the libs first then use them 
+# note that order matters: make the libs first then use them
 SUBDIRS= complib libvendor opensm osmtest include 
$(DEFAULT_EVENT_PLUGIN)
 DIST_SUBDIRS = complib libvendor opensm osmtest include osmeventplugin
 
 # this will control the update of the files in order
-MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in 
+MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in
 
 ACLOCAL= aclocal -I $(ac_aux_dir)
 
diff --git a/opensm/complib/Makefile.am b/opensm/complib/Makefile.am
index 81de124..fce797a 100644
--- a/opensm/complib/Makefile.am
+++ b/opensm/complib/Makefile.am
@@ -80,10 +80,10 @@ EXTRA_DIST = $(srcdir)/libosmcomp.spec.in 
$(srcdir)/libosmcomp.map \
 dist-hook: libosmcomp.spec
cp libosmcomp.spec $(distdir)
 
-# as we can not use libtool -release since it actually changes the SONAME 
+# as we can not use libtool -release since it actually changes the SONAME
 # to the full release name instead of keeping it to the original
 # name. What we can do it create a link to the installed file such
-# that it will mark it with an alias... 
+# that it will mark it with an alias...
 # we find the new lib by traversing the links
 install-exec-hook:
if test -L $(DESTDIR)/$(libdir)/libosmcomp-$(VERSION).so; then rm 
$(DESTDIR)/$(libdir)/libosmcomp-$(VERSION).so; fi; \
diff --git a/opensm/complib/configure.in b/opensm/complib/configure.in
index 4fe8db4..2e2bd59 100644
--- a/opensm/complib/configure.in
+++ b/opensm/complib/configure.in
@@ -48,7 +48,7 @@ AC_CACHE_CHECK(whether ld accepts --version-script, 
ac_cv_version_script,
 
 AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test $ac_cv_version_script = yes)
 
-dnl Support debug mode build - if enable-debug provided the DEBUG variable is 
set 
+dnl Support debug mode build - if enable-debug provided the DEBUG variable is 
set
 AC_ARG_ENABLE(debug,
 [  --enable-debug Turn on debug mode],
 [case ${enableval} in
diff --git a/opensm/libvendor/Makefile.am b/opensm/libvendor/Makefile.am
index c712724..3be6479 100644
--- a/opensm/libvendor/Makefile.am
+++ b/opensm/libvendor/Makefile.am
@@ -89,10 +89,10 @@ EXTRA_DIST = libosmvendor.spec.in 
$(srcdir)/libosmvendor.map $(srcdir)/libosmven
 dist-hook: libosmvendor.spec
cp libosmvendor.spec $(distdir)
 
-# as we can not use libtool -release since it actually changes the SONAME 
+# as we can not use libtool -release since it actually changes the SONAME
 # to the full release name instead of keeping it to the original
 # name. What we can do it create a link to the installed file such
-# that it will mark it with an alias... 
+# that it will mark it with an alias...
 # we find the new lib by traversing the links
 install-exec-hook:
if test -L 

[ofa-general] [PATCH] osm: cosmetics - removing trailing blanks

2007-07-05 Thread Yevgeny Kliteynik

Hi Hal,

Removing trailing white spaces in fat-tree

-- Yevgeny

Signed-off-by: Yevgeny Kliteynik [EMAIL PROTECTED]
---
 opensm/opensm/osm_ucast_ftree.c |  340 +++---
 1 files changed, 170 insertions(+), 170 deletions(-)

diff --git a/opensm/opensm/osm_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c
index 1ead199..e91f3ed 100644
--- a/opensm/opensm/osm_ucast_ftree.c
+++ b/opensm/opensm/osm_ucast_ftree.c
@@ -63,12 +63,12 @@
  *so no need to use FatTree routing.
  *  - Why maximum rank is 8:
  *Each node (switch) is assigned a unique tuple.
- *Switches are stored in two cl_qmaps - one is
+ *Switches are stored in two cl_qmaps - one is
  *ordered by guid, and the other by a key that is
  *generated from tuple. Since cl_qmap supports only
  *a 64-bit key, the maximal tuple lenght is 8 bytes.
  *which means that maximal tree rank is 8.
- * Note that the above also implies that each switch
+ * Note that the above also implies that each switch
  * can have at max 255 up/down ports.
  */

@@ -132,7 +132,7 @@ typedef uint8_t * ftree_fwd_tbl_t;
  **
  ***/

-typedef struct ftree_port_t_
+typedef struct ftree_port_t_
 {
cl_map_item_t  map_item;
uint8_tport_num;   /* port number on the current node */
@@ -170,7 +170,7 @@ typedef struct ftree_port_group_t_
  **
  ***/

-typedef struct ftree_sw_t_
+typedef struct ftree_sw_t_
 {
cl_map_item_t  map_item;
osm_switch_t * p_osm_sw;
@@ -203,7 +203,7 @@ typedef struct ftree_hca_t_ {
  **
  ***/

-typedef struct ftree_fabric_t_
+typedef struct ftree_fabric_t_
 {
osm_opensm_t  * p_osm;
cl_qmap_t   hca_tbl;
@@ -226,11 +226,11 @@ typedef struct ftree_fabric_t_

 static int OSM_CDECL
 __osm_ftree_compare_switches_by_index(
-   IN  const void * p1,
+   IN  const void * p1,
IN  const void * p2)
 {
-   ftree_sw_t ** pp_sw1 = (ftree_sw_t **)p1;
-   ftree_sw_t ** pp_sw2 = (ftree_sw_t **)p2;
+   ftree_sw_t ** pp_sw1 = (ftree_sw_t **)p1;
+   ftree_sw_t ** pp_sw2 = (ftree_sw_t **)p2;

uint16_t i;
for (i = 0; i  FTREE_TUPLE_LEN; i++)
@@ -247,13 +247,13 @@ __osm_ftree_compare_switches_by_index(

 static int OSM_CDECL
 __osm_ftree_compare_port_groups_by_remote_switch_index(
-   IN  const void * p1,
+   IN  const void * p1,
IN  const void * p2)
 {
-   ftree_port_group_t ** pp_g1 = (ftree_port_group_t **)p1;
-   ftree_port_group_t ** pp_g2 = (ftree_port_group_t **)p2;
+   ftree_port_group_t ** pp_g1 = (ftree_port_group_t **)p1;
+   ftree_port_group_t ** pp_g2 = (ftree_port_group_t **)p2;

-   return __osm_ftree_compare_switches_by_index(
+   return __osm_ftree_compare_switches_by_index(
   ((*pp_g1)-remote_hca_or_sw.remote_sw),
   ((*pp_g2)-remote_hca_or_sw.remote_sw) );
 }
@@ -290,7 +290,7 @@ __osm_ftree_sw_greater_by_index(
  **
  ***/

-static void
+static void
 __osm_ftree_tuple_init(
IN  ftree_tuple_t tuple)
 {
@@ -310,7 +310,7 @@ __osm_ftree_tuple_assigned(

 #define FTREE_TUPLE_BUFFERS_NUM 6

-static char *
+static char *
 __osm_ftree_tuple_to_str(
IN  ftree_tuple_t tuple)
 {
@@ -340,7 +340,7 @@ __osm_ftree_tuple_to_str(

 /***/

-static inline ftree_tuple_key_t
+static inline ftree_tuple_key_t
 __osm_ftree_tuple_to_key(
IN  ftree_tuple_t tuple)
 {
@@ -351,9 +351,9 @@ __osm_ftree_tuple_to_key(

 /***/

-static inline void
+static inline void
 __osm_ftree_tuple_from_key(
-   IN  ftree_tuple_t tuple,
+   IN  ftree_tuple_t tuple,
IN  ftree_tuple_key_t key)
 {
memcpy(tuple, key, FTREE_TUPLE_LEN);
@@ -369,7 +369,7 @@ static ftree_sw_tbl_element_t *
 __osm_ftree_sw_tbl_element_create(
IN  ftree_sw_t * p_sw)
 {
-   ftree_sw_tbl_element_t * p_element =
+   ftree_sw_tbl_element_t * p_element =
   (ftree_sw_tbl_element_t *) malloc(sizeof(ftree_sw_tbl_element_t));
if (!p_element)
return NULL;
@@ -397,8 +397,8 @@ __osm_ftree_sw_tbl_element_destroy(
  **
  ***/

-static ftree_port_t *
-__osm_ftree_port_create(
+static ftree_port_t *
+__osm_ftree_port_create(
IN  uint8_t port_num,
IN  uint8_t remote_port_num)
 {
@@ -415,7 +415,7 @@ __osm_ftree_port_create(

 /***/

-static void
+static void
 __osm_ftree_port_destroy(
IN  ftree_port_t * p_port)
 {
@@ -429,8 +429,8 @@ __osm_ftree_port_destroy(
  **
  ***/

-static ftree_port_group_t *
-__osm_ftree_port_group_create(
+static ftree_port_group_t *
+__osm_ftree_port_group_create(
IN  ib_net16_tbase_lid,
IN  ib_net16_tremote_base_lid,
IN  ib_net64_t  * p_port_guid,
@@ -439,9 +439,9 @@