Commit 4deccd6d95f1f1536dad3c842e39c1ace577329d
Committed by
Roland Dreier
1 parent
fd91b1bf1b
Exists in
master
and in
39 other branches
RDMA: Improve include file coding style
Remove subversion $Id lines and improve readability by fixing other coding style problems pointed out by checkpatch.pl. Signed-off-by: Dotan Barak <dotanba@gmail.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Showing 13 changed files with 17 additions and 40 deletions Side-by-side Diff
- include/rdma/ib_cache.h
- include/rdma/ib_cm.h
- include/rdma/ib_fmr_pool.h
- include/rdma/ib_mad.h
- include/rdma/ib_pack.h
- include/rdma/ib_sa.h
- include/rdma/ib_smi.h
- include/rdma/ib_user_cm.h
- include/rdma/ib_user_mad.h
- include/rdma/ib_user_verbs.h
- include/rdma/ib_verbs.h
- include/rdma/iw_cm.h
- include/rdma/rdma_cm.h
include/rdma/ib_cache.h
include/rdma/ib_cm.h
... | ... | @@ -31,8 +31,6 @@ |
31 | 31 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
32 | 32 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
33 | 33 | * SOFTWARE. |
34 | - * | |
35 | - * $Id: ib_cm.h 4311 2005-12-05 18:42:01Z sean.hefty $ | |
36 | 34 | */ |
37 | 35 | #if !defined(IB_CM_H) |
38 | 36 | #define IB_CM_H |
include/rdma/ib_fmr_pool.h
... | ... | @@ -29,8 +29,6 @@ |
29 | 29 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
30 | 30 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
31 | 31 | * SOFTWARE. |
32 | - * | |
33 | - * $Id: ib_fmr_pool.h 2730 2005-06-28 16:43:03Z sean.hefty $ | |
34 | 32 | */ |
35 | 33 | |
36 | 34 | #if !defined(IB_FMR_POOL_H) |
... | ... | @@ -61,7 +59,7 @@ |
61 | 59 | int pool_size; |
62 | 60 | int dirty_watermark; |
63 | 61 | void (*flush_function)(struct ib_fmr_pool *pool, |
64 | - void * arg); | |
62 | + void *arg); | |
65 | 63 | void *flush_arg; |
66 | 64 | unsigned cache:1; |
67 | 65 | }; |
include/rdma/ib_mad.h
... | ... | @@ -32,11 +32,9 @@ |
32 | 32 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
33 | 33 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
34 | 34 | * SOFTWARE. |
35 | - * | |
36 | - * $Id: ib_mad.h 5596 2006-03-03 01:00:07Z sean.hefty $ | |
37 | 35 | */ |
38 | 36 | |
39 | -#if !defined( IB_MAD_H ) | |
37 | +#if !defined(IB_MAD_H) | |
40 | 38 | #define IB_MAD_H |
41 | 39 | |
42 | 40 | #include <linux/list.h> |
... | ... | @@ -194,8 +192,7 @@ |
194 | 192 | u8 data[IB_MGMT_VENDOR_DATA]; |
195 | 193 | }; |
196 | 194 | |
197 | -struct ib_class_port_info | |
198 | -{ | |
195 | +struct ib_class_port_info { | |
199 | 196 | u8 base_version; |
200 | 197 | u8 class_version; |
201 | 198 | __be16 capability_mask; |
... | ... | @@ -614,11 +611,11 @@ |
614 | 611 | * any class specific header, and MAD data area. |
615 | 612 | * If @rmpp_active is set, the RMPP header will be initialized for sending. |
616 | 613 | */ |
617 | -struct ib_mad_send_buf * ib_create_send_mad(struct ib_mad_agent *mad_agent, | |
618 | - u32 remote_qpn, u16 pkey_index, | |
619 | - int rmpp_active, | |
620 | - int hdr_len, int data_len, | |
621 | - gfp_t gfp_mask); | |
614 | +struct ib_mad_send_buf *ib_create_send_mad(struct ib_mad_agent *mad_agent, | |
615 | + u32 remote_qpn, u16 pkey_index, | |
616 | + int rmpp_active, | |
617 | + int hdr_len, int data_len, | |
618 | + gfp_t gfp_mask); | |
622 | 619 | |
623 | 620 | /** |
624 | 621 | * ib_is_mad_class_rmpp - returns whether given management class |
include/rdma/ib_pack.h
include/rdma/ib_sa.h
include/rdma/ib_smi.h
... | ... | @@ -32,11 +32,9 @@ |
32 | 32 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
33 | 33 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
34 | 34 | * SOFTWARE. |
35 | - * | |
36 | - * $Id: ib_smi.h 1389 2004-12-27 22:56:47Z roland $ | |
37 | 35 | */ |
38 | 36 | |
39 | -#if !defined( IB_SMI_H ) | |
37 | +#if !defined(IB_SMI_H) | |
40 | 38 | #define IB_SMI_H |
41 | 39 | |
42 | 40 | #include <rdma/ib_mad.h> |
include/rdma/ib_user_cm.h
... | ... | @@ -29,8 +29,6 @@ |
29 | 29 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
30 | 30 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
31 | 31 | * SOFTWARE. |
32 | - * | |
33 | - * $Id: ib_user_cm.h 4019 2005-11-11 00:33:09Z sean.hefty $ | |
34 | 32 | */ |
35 | 33 | |
36 | 34 | #ifndef IB_USER_CM_H |
include/rdma/ib_user_mad.h
include/rdma/ib_user_verbs.h
... | ... | @@ -31,8 +31,6 @@ |
31 | 31 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
32 | 32 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
33 | 33 | * SOFTWARE. |
34 | - * | |
35 | - * $Id: ib_user_verbs.h 4019 2005-11-11 00:33:09Z sean.hefty $ | |
36 | 34 | */ |
37 | 35 | |
38 | 36 | #ifndef IB_USER_VERBS_H |
include/rdma/ib_verbs.h
... | ... | @@ -34,8 +34,6 @@ |
34 | 34 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
35 | 35 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
36 | 36 | * SOFTWARE. |
37 | - * | |
38 | - * $Id: ib_verbs.h 1349 2004-12-16 21:09:43Z roland $ | |
39 | 37 | */ |
40 | 38 | |
41 | 39 | #if !defined(IB_VERBS_H) |
... | ... | @@ -777,7 +775,7 @@ |
777 | 775 | struct ib_uobject *uobject; |
778 | 776 | ib_comp_handler comp_handler; |
779 | 777 | void (*event_handler)(struct ib_event *, void *); |
780 | - void * cq_context; | |
778 | + void *cq_context; | |
781 | 779 | int cqe; |
782 | 780 | atomic_t usecnt; /* count number of work queues */ |
783 | 781 | }; |
... | ... | @@ -883,7 +881,7 @@ |
883 | 881 | void (*sync_single_for_cpu)(struct ib_device *dev, |
884 | 882 | u64 dma_handle, |
885 | 883 | size_t size, |
886 | - enum dma_data_direction dir); | |
884 | + enum dma_data_direction dir); | |
887 | 885 | void (*sync_single_for_device)(struct ib_device *dev, |
888 | 886 | u64 dma_handle, |
889 | 887 | size_t size, |
include/rdma/iw_cm.h
include/rdma/rdma_cm.h
... | ... | @@ -61,11 +61,11 @@ |
61 | 61 | }; |
62 | 62 | |
63 | 63 | enum rdma_port_space { |
64 | - RDMA_PS_SDP = 0x0001, | |
65 | - RDMA_PS_IPOIB= 0x0002, | |
66 | - RDMA_PS_TCP = 0x0106, | |
67 | - RDMA_PS_UDP = 0x0111, | |
68 | - RDMA_PS_SCTP = 0x0183 | |
64 | + RDMA_PS_SDP = 0x0001, | |
65 | + RDMA_PS_IPOIB = 0x0002, | |
66 | + RDMA_PS_TCP = 0x0106, | |
67 | + RDMA_PS_UDP = 0x0111, | |
68 | + RDMA_PS_SCTP = 0x0183 | |
69 | 69 | }; |
70 | 70 | |
71 | 71 | struct rdma_addr { |