Skip to content

Commit acdc79a

Browse files
Jing HuangJames Bottomley
authored andcommitted
[SCSI] bfa: fix comments for header files
This patch addresses the comments from Randy Dunlap (Randy.Dunlap@oracle.com) regarding comment blocks that begining with "/**". bfa driver comments currently do not follow kernel-doc convention, we hence replace all /** with /* and **/ with */. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
1 parent e0a08a3 commit acdc79a

16 files changed

Lines changed: 266 additions & 267 deletions

‎drivers/scsi/bfa/bfa.h‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ struct bfa_s;
2929
typedef void (*bfa_isr_func_t) (struct bfa_s *bfa, struct bfi_msg_s *m);
3030
typedef void (*bfa_cb_cbfn_t) (void *cbarg, bfa_boolean_t complete);
3131

32-
/**
32+
/*
3333
* Interrupt message handlers
3434
*/
3535
void bfa_isr_unhandled(struct bfa_s *bfa, struct bfi_msg_s *m);
3636
void bfa_isr_bind(enum bfi_mclass mc, bfa_isr_func_t isr_func);
3737

38-
/**
38+
/*
3939
* Request and response queue related defines
4040
*/
4141
#define BFA_REQQ_NELEMS_MIN (4)
@@ -58,8 +58,8 @@ void bfa_isr_bind(enum bfi_mclass mc, bfa_isr_func_t isr_func);
5858
#define bfa_reqq_produce(__bfa, __reqq) do { \
5959
(__bfa)->iocfc.req_cq_pi[__reqq]++; \
6060
(__bfa)->iocfc.req_cq_pi[__reqq] &= \
61-
((__bfa)->iocfc.cfg.drvcfg.num_reqq_elems - 1); \
62-
writel((__bfa)->iocfc.req_cq_pi[__reqq], \
61+
((__bfa)->iocfc.cfg.drvcfg.num_reqq_elems - 1); \
62+
writel((__bfa)->iocfc.req_cq_pi[__reqq], \
6363
(__bfa)->iocfc.bfa_regs.cpe_q_pi[__reqq]); \
6464
mmiowb(); \
6565
} while (0)
@@ -76,7 +76,7 @@ void bfa_isr_bind(enum bfi_mclass mc, bfa_isr_func_t isr_func);
7676
(__index) &= ((__size) - 1); \
7777
} while (0)
7878

79-
/**
79+
/*
8080
* Queue element to wait for room in request queue. FIFO order is
8181
* maintained when fullfilling requests.
8282
*/
@@ -86,7 +86,7 @@ struct bfa_reqq_wait_s {
8686
void *cbarg;
8787
};
8888

89-
/**
89+
/*
9090
* Circular queue usage assignments
9191
*/
9292
enum {
@@ -113,7 +113,7 @@ bfa_reqq_winit(struct bfa_reqq_wait_s *wqe, void (*qresume) (void *cbarg),
113113

114114
#define bfa_reqq(__bfa, __reqq) (&(__bfa)->reqq_waitq[__reqq])
115115

116-
/**
116+
/*
117117
* static inline void
118118
* bfa_reqq_wait(struct bfa_s *bfa, int reqq, struct bfa_reqq_wait_s *wqe)
119119
*/
@@ -130,7 +130,7 @@ bfa_reqq_winit(struct bfa_reqq_wait_s *wqe, void (*qresume) (void *cbarg),
130130
#define bfa_reqq_wcancel(__wqe) list_del(&(__wqe)->qe)
131131

132132

133-
/**
133+
/*
134134
* Generic BFA callback element.
135135
*/
136136
struct bfa_cb_qe_s {
@@ -163,7 +163,7 @@ struct bfa_cb_qe_s {
163163
} while (0)
164164

165165

166-
/**
166+
/*
167167
* PCI devices supported by the current BFA
168168
*/
169169
struct bfa_pciid_s {
@@ -173,7 +173,7 @@ struct bfa_pciid_s {
173173

174174
extern char bfa_version[];
175175

176-
/**
176+
/*
177177
* BFA memory resources
178178
*/
179179
enum bfa_mem_type {
@@ -203,7 +203,7 @@ struct bfa_meminfo_s {
203203

204204
struct bfa_iocfc_regs_s {
205205
void __iomem *intr_status;
206-
void __iomem *intr_mask;
206+
void __iomem *intr_mask;
207207
void __iomem *cpe_q_pi[BFI_IOC_MAX_CQS];
208208
void __iomem *cpe_q_ci[BFI_IOC_MAX_CQS];
209209
void __iomem *cpe_q_depth[BFI_IOC_MAX_CQS];
@@ -214,7 +214,7 @@ struct bfa_iocfc_regs_s {
214214
void __iomem *rme_q_ctrl[BFI_IOC_MAX_CQS];
215215
};
216216

217-
/**
217+
/*
218218
* MSIX vector handlers
219219
*/
220220
#define BFA_MSIX_MAX_VECTORS 22
@@ -224,7 +224,7 @@ struct bfa_msix_s {
224224
bfa_msix_handler_t handler[BFA_MSIX_MAX_VECTORS];
225225
};
226226

227-
/**
227+
/*
228228
* Chip specific interfaces
229229
*/
230230
struct bfa_hwif_s {
@@ -343,7 +343,7 @@ int bfa_iocfc_get_pbc_vports(struct bfa_s *bfa,
343343
struct bfi_pbc_vport_s *pbc_vport);
344344

345345

346-
/**
346+
/*
347347
*----------------------------------------------------------------------
348348
* BFA public interfaces
349349
*----------------------------------------------------------------------

‎drivers/scsi/bfa/bfa_cb_ioim.h‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ bfad_int_to_lun(u32 luno)
4242
return lun.bfa_lun;
4343
}
4444

45-
/**
45+
/*
4646
* Get LUN for the I/O request
4747
*/
4848
#define bfa_cb_ioim_get_lun(__dio) \
4949
bfad_int_to_lun(((struct scsi_cmnd *)__dio)->device->lun)
5050

51-
/**
51+
/*
5252
* Get CDB for the I/O request
5353
*/
5454
static inline u8 *
@@ -59,7 +59,7 @@ bfa_cb_ioim_get_cdb(struct bfad_ioim_s *dio)
5959
return (u8 *) cmnd->cmnd;
6060
}
6161

62-
/**
62+
/*
6363
* Get I/O direction (read/write) for the I/O request
6464
*/
6565
static inline enum fcp_iodir
@@ -77,7 +77,7 @@ bfa_cb_ioim_get_iodir(struct bfad_ioim_s *dio)
7777
return FCP_IODIR_NONE;
7878
}
7979

80-
/**
80+
/*
8181
* Get IO size in bytes for the I/O request
8282
*/
8383
static inline u32
@@ -88,7 +88,7 @@ bfa_cb_ioim_get_size(struct bfad_ioim_s *dio)
8888
return scsi_bufflen(cmnd);
8989
}
9090

91-
/**
91+
/*
9292
* Get timeout for the I/O request
9393
*/
9494
static inline u8
@@ -104,7 +104,7 @@ bfa_cb_ioim_get_timeout(struct bfad_ioim_s *dio)
104104
return 0;
105105
}
106106

107-
/**
107+
/*
108108
* Get Command Reference Number for the I/O request. 0 if none.
109109
*/
110110
static inline u8
@@ -113,7 +113,7 @@ bfa_cb_ioim_get_crn(struct bfad_ioim_s *dio)
113113
return 0;
114114
}
115115

116-
/**
116+
/*
117117
* Get SAM-3 priority for the I/O request. 0 is default.
118118
*/
119119
static inline u8
@@ -122,7 +122,7 @@ bfa_cb_ioim_get_priority(struct bfad_ioim_s *dio)
122122
return 0;
123123
}
124124

125-
/**
125+
/*
126126
* Get task attributes for the I/O request. Default is FCP_TASK_ATTR_SIMPLE(0).
127127
*/
128128
static inline u8
@@ -148,7 +148,7 @@ bfa_cb_ioim_get_taskattr(struct bfad_ioim_s *dio)
148148
return task_attr;
149149
}
150150

151-
/**
151+
/*
152152
* Get CDB length in bytes for the I/O request. Default is FCP_CMND_CDB_LEN(16).
153153
*/
154154
static inline u8
@@ -159,7 +159,7 @@ bfa_cb_ioim_get_cdblen(struct bfad_ioim_s *dio)
159159
return cmnd->cmd_len;
160160
}
161161

162-
/**
162+
/*
163163
* Assign queue to be used for the I/O request. This value depends on whether
164164
* the driver wants to use the queues via any specific algorithm. Currently,
165165
* this is not supported.

‎drivers/scsi/bfa/bfa_cs.h‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* General Public License for more details.
1616
*/
1717

18-
/**
18+
/*
1919
* bfa_cs.h BFA common services
2020
*/
2121

@@ -24,7 +24,7 @@
2424

2525
#include "bfa_os_inc.h"
2626

27-
/**
27+
/*
2828
* BFA TRC
2929
*/
3030

@@ -73,7 +73,7 @@ enum {
7373
#define BFA_TRC_MOD_SH 10
7474
#define BFA_TRC_MOD(__mod) ((BFA_TRC_ ## __mod) << BFA_TRC_MOD_SH)
7575

76-
/**
76+
/*
7777
* Define a new tracing file (module). Module should match one defined above.
7878
*/
7979
#define BFA_TRC_FILE(__mod, __submod) \
@@ -155,7 +155,7 @@ __bfa_trc32(struct bfa_trc_mod_s *trcm, int fileno, int line, u32 data)
155155
#define bfa_trc_fp(_trcp, _data)
156156
#endif
157157

158-
/**
158+
/*
159159
* @ BFA LOG interfaces
160160
*/
161161
#define bfa_assert(__cond) do { \
@@ -249,13 +249,13 @@ bfa_q_is_on_q_func(struct list_head *q, struct list_head *qe)
249249
#define bfa_q_is_on_q(_q, _qe) \
250250
bfa_q_is_on_q_func(_q, (struct list_head *)(_qe))
251251

252-
/**
252+
/*
253253
* @ BFA state machine interfaces
254254
*/
255255

256256
typedef void (*bfa_sm_t)(void *sm, int event);
257257

258-
/**
258+
/*
259259
* oc - object class eg. bfa_ioc
260260
* st - state, eg. reset
261261
* otype - object type, eg. struct bfa_ioc_s
@@ -269,7 +269,7 @@ typedef void (*bfa_sm_t)(void *sm, int event);
269269
#define bfa_sm_get_state(_sm) ((_sm)->sm)
270270
#define bfa_sm_cmp_state(_sm, _state) ((_sm)->sm == (bfa_sm_t)(_state))
271271

272-
/**
272+
/*
273273
* For converting from state machine function to state encoding.
274274
*/
275275
struct bfa_sm_table_s {
@@ -279,12 +279,12 @@ struct bfa_sm_table_s {
279279
};
280280
#define BFA_SM(_sm) ((bfa_sm_t)(_sm))
281281

282-
/**
282+
/*
283283
* State machine with entry actions.
284284
*/
285285
typedef void (*bfa_fsm_t)(void *fsm, int event);
286286

287-
/**
287+
/*
288288
* oc - object class eg. bfa_ioc
289289
* st - state, eg. reset
290290
* otype - object type, eg. struct bfa_ioc_s
@@ -314,7 +314,7 @@ bfa_sm_to_state(struct bfa_sm_table_s *smt, bfa_sm_t sm)
314314
return smt[i].state;
315315
}
316316

317-
/**
317+
/*
318318
* @ Generic wait counter.
319319
*/
320320

@@ -340,7 +340,7 @@ bfa_wc_down(struct bfa_wc_s *wc)
340340
wc->wc_resume(wc->wc_cbarg);
341341
}
342342

343-
/**
343+
/*
344344
* Initialize a waiting counter.
345345
*/
346346
static inline void
@@ -352,7 +352,7 @@ bfa_wc_init(struct bfa_wc_s *wc, bfa_wc_resume_t wc_resume, void *wc_cbarg)
352352
bfa_wc_up(wc);
353353
}
354354

355-
/**
355+
/*
356356
* Wait for counter to reach zero
357357
*/
358358
static inline void

0 commit comments

Comments
 (0)