[openib-general] [PATCH][SDP][21/33] Fix comment style in sdp_proc.c

Tom Duffy Tom.Duffy at Sun.COM
Thu Feb 17 14:12:05 PST 2005


Signed-off-by: Tom Duffy <tduffy at sun.com>

--- drivers/infiniband/ulp/sdp-orig/sdp_proc.c	2005-02-14 11:13:15.600961000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_proc.c	2005-02-17 11:12:47.182006000 -0800
@@ -1,38 +1,49 @@
 /*
-  This software is available to you under a choice of one of two
-  licenses.  You may choose to be licensed under the terms of the GNU
-  General Public License (GPL) Version 2, available at
-  <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
-  license, available in the LICENSE.TXT file accompanying this
-  software.  These details are also available at
-  <http://openib.org/license.html>.
-
-  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-  SOFTWARE.
-
-  Copyright (c) 2005 Topspin Communications.  All rights reserved.
-
-  $Id: sdp_proc.c 619 2004-08-10 03:23:02Z roland $
-*/
+ * Copyright (c) 2005 Topspin Communications.  All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses.  You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ *     Redistribution and use in source and binary forms, with or
+ *     without modification, are permitted provided that the following
+ *     conditions are met:
+ *
+ *      - Redistributions of source code must retain the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer.
+ *
+ *      - Redistributions in binary form must reproduce the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer in the documentation and/or other materials
+ *        provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * $Id$
+ */
 
 #include "sdp_main.h"
 
 static const char _dir_name_root[] = SDP_PROC_DIR_NAME;
 static struct proc_dir_entry *_dir_root = NULL;
 
-/* ------------------------------------------------------------------- */
-/*                                                                     */
-/* Generic static functions used by read/write functions               */
-/*                                                                     */
-/* ------------------------------------------------------------------- */
-/* ========================================================================= */
-/*.._sdp_proc_read_parse -- read function for the injection table */
+/*
+ * Generic static functions used by read/write functions
+ */
+
+/*
+ * _sdp_proc_read_parse - read function for the injection table
+ */
 static int _sdp_proc_read_parse(char *page,
 				char **start, 
 				off_t offset,
@@ -69,11 +80,10 @@ static int _sdp_proc_read_parse(char *pa
 	return size;
 } /* _sdp_proc_read_parse */
 
-/* ------------------------------------------------------------------- */
-/*                                                                     */
-/* Static read/write functions for each proc/framework directory entry */
-/*                                                                     */
-/* ------------------------------------------------------------------- */
+/*
+ * Static read/write functions for each proc/framework directory entry
+ */
+
 /*
  * Initialization structure, each table in the gateway framework directory
  * (anything that is not a module) should create an entry and define read
@@ -118,14 +128,13 @@ static struct sdpc_proc_ent _file_entry_
       },
 } ;
 
-/* ------------------------------------------------------------------- */
-/*                                                                     */
-/* SDP module public functions.                                        */
-/*                                                                     */
-/* ------------------------------------------------------------------- */
+/*
+ * SDP module public functions.
+ */
 
-/* ========================================================================= */
-/*..sdp_main_proc_cleanup -- cleanup the proc filesystem entries  */
+/*
+ * sdp_main_proc_cleanup - cleanup the proc filesystem entries
+ */
 int sdp_main_proc_cleanup(void)
 {
 	struct sdpc_proc_ent *sub_entry;
@@ -154,8 +163,9 @@ int sdp_main_proc_cleanup(void)
 	return 0;
 } /* sdp_main_proc_cleanup */
 
-/* ========================================================================= */
-/*..sdp_main_proc_init -- initialize the proc filesystem entries  */
+/*
+ * sdp_main_proc_init - initialize the proc filesystem entries
+ */
 int sdp_main_proc_init(void)
 {
 	struct sdpc_proc_ent *sub_entry;




More information about the general mailing list