RDMA: fix typos and repeated words in comments
Subsystems (14)
cover RDMA: fix typos and repeated words in comments
This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (2):
RDMA: fix typos in comments
RDMA: fix repeated words in comments
drivers/infiniband/core/device.c | 2 +- drivers/infiniband/core/iwcm.c | 2 +- drivers/infiniband/core/uverbs_uapi.c | 2 +- drivers/infiniband/core/verbs.c | 2 +- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 +- drivers/infiniband/hw/cxgb4/cq.c | 2 +- drivers/infiniband/hw/erdma/erdma_main.c | 2 +- drivers/infiniband/hw/hfi1/affinity.c | 2 +- drivers/infiniband/hw/hfi1/firmware.c | 2 +- drivers/infiniband/hw/mlx4/mcg.c | 4 ++-- drivers/infiniband/hw/mlx5/odp.c | 2 +- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 6 +++--- drivers/infiniband/hw/qedr/verbs.c | 2 +- drivers/infiniband/hw/usnic/usnic_abi.h | 2 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- drivers/infiniband/hw/usnic/usnic_transport.h | 2 +- drivers/infiniband/sw/rdmavt/qp.c | 2 +- drivers/infiniband/sw/rdmavt/srq.c | 2 +- drivers/infiniband/ulp/ipoib/ipoib_vlan.c | 2 +- drivers/infiniband/ulp/iser/iscsi_iser.c | 6 +++--- drivers/infiniband/ulp/iser/iser_verbs.c | 2 +- drivers/infiniband/ulp/srpt/ib_srpt.c | 2 +- include/rdma/ib_verbs.h | 4 ++-- include/rdma/uverbs_ioctl.h | 2 +- 24 files changed, 30 insertions(+), 30 deletions(-)
PATCH 1/2 RDMA: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/infiniband/core/device.c | 2 +- drivers/infiniband/core/uverbs_uapi.c | 2 +- drivers/infiniband/core/verbs.c | 2 +- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 +- drivers/infiniband/hw/cxgb4/cq.c | 2 +- drivers/infiniband/hw/erdma/erdma_main.c | 2 +- drivers/infiniband/hw/hfi1/affinity.c | 2 +- drivers/infiniband/hw/hfi1/firmware.c | 2 +- drivers/infiniband/hw/mlx4/mcg.c | 4 ++-- drivers/infiniband/hw/mlx5/odp.c | 2 +- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 6 +++--- drivers/infiniband/hw/qedr/verbs.c | 2 +- drivers/infiniband/hw/usnic/usnic_abi.h | 2 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- drivers/infiniband/hw/usnic/usnic_transport.h | 2 +- drivers/infiniband/sw/rdmavt/qp.c | 2 +- drivers/infiniband/sw/rdmavt/srq.c | 2 +- drivers/infiniband/ulp/ipoib/ipoib_vlan.c | 2 +- drivers/infiniband/ulp/iser/iscsi_iser.c | 6 +++--- drivers/infiniband/ulp/iser/iser_verbs.c | 2 +- include/rdma/ib_verbs.h | 4 ++-- include/rdma/uverbs_ioctl.h | 2 +- 22 files changed, 28 insertions(+), 28 deletions(-)
drivers/infiniband/core/device.c +1 -1
@@ -893,7 +893,7 @@ static int setup_port_data(struct ib_device *device)* ib_port_immutable_read() - Read rdma port's immutable data * @dev: IB device * @port: port number whose immutable data to read. It starts with index 1 and -* valid upto including rdma_end_port(). +* valid up to including rdma_end_port(). */ const struct ib_port_immutable *ib_port_immutable_read (struct ib_device *dev,unsigned int port)
drivers/infiniband/core/uverbs_uapi.c +1 -1
@@ -729,7 +729,7 @@ void uverbs_disassociate_api(struct uverbs_api *uapi)* * release_cleanup is the exception because * uverbs_uobject_fd_release() needs it. In this case -* the module reference held by the fops will guarentee +* the module reference held by the fops will guarantee * the type_class remains valid too. */ if (type_attrs &&
drivers/infiniband/core/verbs.c +1 -1
@@ -2358,7 +2358,7 @@ EXPORT_SYMBOL(ib_dereg_mr_user);* @max_num_sg: maximum sg entries available for registration. * * Notes: -* Memory registeration page/sg lists must not exceed max_num_sg. +* Memory registration page/sg lists must not exceed max_num_sg. * For mr_type IB_MR_TYPE_MEM_REG, the total length cannot exceed * max_num_sg * used_page_size. *
drivers/infiniband/hw/bnxt_re/ib_verbs.c +1 -1
@@ -2903,7 +2903,7 @@ static int bnxt_re_build_qp1_send_v2(struct bnxt_re_qp *qp, qp->send_psn &=BTH_PSN_MASK ; qp->qp1_hdr.bth.psn =cpu_to_be32 (qp->send_psn);/* DETH */ -/* Use the priviledged Q_Key for QP1 */ +/* Use the privileged Q_Key for QP1 */ qp->qp1_hdr.deth.qkey =cpu_to_be32 (IB_QP1_QKEY ); qp->qp1_hdr.deth.source_qpn =IB_QP1 ;
drivers/infiniband/hw/cxgb4/cq.c +1 -1
@@ -1182,7 +1182,7 @@ void c4iw_flush_srqidx(struct c4iw_qp *qhp, u32 srqidx)struct c4iw_cq *rchp =to_c4iw_cq (qhp->ibqp.recv_cq);unsigned long flag; -/* locking heirarchy: cq lock first, then qp lock. */ +/* locking hierarchy: cq lock first, then qp lock. */ spin_lock_irqsave (&rchp->lock, flag);spin_lock (&qhp->lock);
drivers/infiniband/hw/erdma/erdma_main.c +1 -1
@@ -50,7 +50,7 @@ static int erdma_enum_and_get_netdev(struct erdma_dev *dev)struct net_device *netdev;int ret = -EPROBE_DEFER ; -/* Already binded to a net_device, so we skip. */ +/* Already bound to a net_device, so we skip. */ if (dev->netdev)return 0 ;
drivers/infiniband/hw/hfi1/affinity.c +1 -1
@@ -386,7 +386,7 @@ static void _dev_comp_vect_mappings_destroy(struct hfi1_devdata *dd)/* * This function creates the table for looking up CPUs for completion vectors. -* num_comp_vectors needs to have been initilized before calling this function. +* num_comp_vectors needs to have been initialized before calling this function. */ static int _dev_comp_vect_mappings_create (struct hfi1_devdata *dd,struct hfi1_affinity_node *entry)
drivers/infiniband/hw/hfi1/firmware.c +1 -1
@@ -77,7 +77,7 @@ struct css_header {/* size of platform configuration partition */ #define MAX_PLATFORM_CONFIG_FILE_SIZE 4096 -/* size of file of plaform configuration encoded in format version 4 */ +/* size of file of platform configuration encoded in format version 4 */ #define PLATFORM_CONFIG_FORMAT_4_FILE_SIZE 528/* the file itself */
drivers/infiniband/hw/mlx4/mcg.c +2 -2
@@ -433,7 +433,7 @@ static u16 cmp_rec(struct ib_sa_mcmember_data *src, }/* release group, return 1 if this was last release and group is destroyed -* timout work is canceled sync */ +* timeout work is canceled sync */ static int release_group (struct mcast_group *group,int from_timeout_handler) {struct mlx4_ib_demux_ctx *ctx = group->demux;
@@ -694,7 +694,7 @@ static void mlx4_ib_mcg_work_handler(struct work_struct *work) cur_join_state = group->rec.scope_join_state &0xf ;if (method ==IB_MGMT_METHOD_GET_RESP ) { -/* successfull join */ +/* successful join */ if (!cur_join_state && resp_join_state) --rc; }else if (!resp_join_state)
drivers/infiniband/hw/mlx5/odp.c +1 -1
@@ -300,7 +300,7 @@ static bool mlx5_ib_invalidate_range(struct mmu_interval_notifier *mni,/* * Iteration one - zap the HW's MTTs. The notifiers_count ensures that * while we are doing the invalidation, no page fault will attempt to -* overwrite the same MTTs. Concurent invalidations might race us, +* overwrite the same MTTs. Concurrent invalidations might race us, * but they will write 0s as well, so no difference in the end result. */ for (addr = start; addr < end; addr +=BIT (umem_odp->page_shift)) {
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +3 -3
@@ -1392,9 +1392,9 @@ int ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, qp =get_ocrdma_qp (ibqp); dev =get_ocrdma_dev (ibqp->device); -/* syncronize with multiple context trying to change, retrive qps */ +/* synchronize with multiple context trying to change, retrieve qps */ mutex_lock (&dev->dev_lock); -/* syncronize with wqe, rqe posting and cqe processing contexts */ +/* synchronize with wqe, rqe posting and cqe processing contexts */ spin_lock_irqsave (&qp->q_lock, flags); old_qps =get_ibqp_state (qp->state);if (attr_mask &IB_QP_STATE )
@@ -1599,7 +1599,7 @@ static void ocrdma_discard_cqes(struct ocrdma_qp *qp, struct ocrdma_cq *cq)*/ cur_getp = cq->getp; -/* find upto when do we reap the cq. */ +/* find up to when do we reap the cq. */ stop_getp = cur_getp; do { if (is_hw_sq_empty(qp) && (!qp->srq && is_hw_rq_empty(qp)))
drivers/infiniband/hw/qedr/verbs.c +1 -1
@@ -1075,7 +1075,7 @@ int qedr_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata)/* We don't want the IRQ handler to handle a non-existing CQ so we * wait until all CNQ interrupts, if any, are received. This will always * happen and will always happen very fast. If not, then a serious error -* has occured. That is why we can use a long delay. +* has occurred. That is why we can use a long delay. * We spin for a short time so we don’t lose time on context switching * in case all the completions are handled in that span. Otherwise * we sleep for a while and check again. Since the CNQ may be
drivers/infiniband/hw/usnic/usnic_abi.h +1 -1
@@ -72,7 +72,7 @@ struct usnic_ib_create_qp_resp {u64 bar_bus_addr;u32 bar_len;/* -* WQ, RQ, CQ are explicitly specified bc exposing a generic resources inteface +* WQ, RQ, CQ are explicitly specified bc exposing a generic resources interface * expands the scope of ABI to many files. */ u32 wq_cnt;
drivers/infiniband/hw/usnic/usnic_ib_verbs.c +1 -1
@@ -181,7 +181,7 @@ find_free_vf_and_create_qp_grp(struct ib_qp *qp, }if (usnic_ib_share_vf) { -/* Try to find resouces on a used vf which is in pd */ +/* Try to find resources on a used vf which is in pd */ dev_list =usnic_uiom_get_dev_list (pd->umem_pd);if (IS_ERR (dev_list))return PTR_ERR (dev_list);
drivers/infiniband/hw/usnic/usnic_transport.h +1 -1
@@ -50,7 +50,7 @@ int usnic_transport_sock_to_str(char *buf, int buf_sz,u16 usnic_transport_rsrv_port (enum usnic_transport_type type,u16 port_num);void usnic_transport_unrsrv_port (enum usnic_transport_type type,u16 port_num);/* -* Do a fget on the socket refered to by sock_fd and returns the socket. +* Do a fget on the socket referred to by sock_fd and returns the socket. * Socket will not be destroyed before usnic_transport_put_socket has * been called. */
drivers/infiniband/sw/rdmavt/qp.c +1 -1
@@ -814,7 +814,7 @@ int rvt_alloc_rq(struct rvt_rq *rq, u32 size, int node,* * This function is called from both rvt_create_qp() and * rvt_reset_qp(). The difference is that the reset -* patch the necessary locks to protect against concurent +* patch the necessary locks to protect against concurrent * access. */ static void rvt_init_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp,
drivers/infiniband/sw/rdmavt/srq.c +1 -1
@@ -286,7 +286,7 @@ int rvt_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr) }/** -* rvt_destroy_srq - destory an srq +* rvt_destroy_srq - destroy an srq * @ibsrq: srq object to destroy * @udata: user data for libibverbs.so */
drivers/infiniband/ulp/ipoib/ipoib_vlan.c +1 -1
@@ -140,7 +140,7 @@ int __ipoib_vlan_add(struct ipoib_dev_priv *ppriv, struct ipoib_dev_priv *priv, goto out_early; } -/* RTNL childs don't need proprietary sysfs entries */ +/* RTNL children don't need proprietary sysfs entries */ if (type ==IPOIB_LEGACY_CHILD ) {if (ipoib_cm_add_mode_attr (ndev)) goto sysfs_failed;
drivers/infiniband/ulp/iser/iscsi_iser.c +3 -3
@@ -498,7 +498,7 @@ static int iscsi_iser_conn_bind(struct iscsi_cls_session *cls_session,* iscsi_iser_conn_start() - start iscsi-iser connection * @cls_conn: iscsi class connection * -* Notes: Here iser intialize (or re-initialize) stop_completion as +* Notes: Here iser initialize (or re-initialize) stop_completion as * from this point iscsi must call conn_stop in session/connection * teardown so iser transport must wait for it. */
@@ -593,7 +593,7 @@ static inline unsigned int iser_dif_prot_caps(int prot_caps)* @qdepth: session command queue depth * @initial_cmdsn: initiator command sequnce number * -* Allocates and adds a scsi host, expose DIF supprot if +* Allocates and adds a scsi host, expose DIF support if * exists, and sets up an iscsi session. */ static struct iscsi_cls_session *
@@ -866,7 +866,7 @@ static int iscsi_iser_ep_poll(struct iscsi_endpoint *ep, int timeout_ms)* @ep: iscsi endpoint handle * * This routine is not blocked by iser and RDMA termination process -* completion as we queue a deffered work for iser/RDMA destruction +* completion as we queue a deferred work for iser/RDMA destruction * and cleanup or actually call it immediately in case we didn't pass * iscsi conn bind/start stage, thus it is safe. */
drivers/infiniband/ulp/iser/iser_verbs.c +1 -1
@@ -347,7 +347,7 @@ void iser_release_work(struct work_struct *work)/* Wait for conn_stop to complete */ wait_for_completion (&iser_conn->stop_completion); -/* Wait for IB resouces cleanup to complete */ +/* Wait for IB resources cleanup to complete */ wait_for_completion (&iser_conn->ib_completion);mutex_lock (&iser_conn->state_mutex);
include/rdma/ib_verbs.h +2 -2
@@ -3532,7 +3532,7 @@ static inline bool rdma_cap_ib_cm(const struct ib_device *device, u32 port_num)* @port_num: Port number to check * * Similar to above, but specific to iWARP connections which have a different -* managment protocol than InfiniBand. +* management protocol than InfiniBand. * * Return: true if the port supports an iWARP CM (this does not guarantee that * a CM is actually running however).
@@ -3577,7 +3577,7 @@ static inline bool rdma_cap_ib_sa(const struct ib_device *device, u32 port_num)* to this group. And it should leave the group only after all queue pairs * attached to the group have been detached. * -* Return: true if the port must undertake the additional adminstrative +* Return: true if the port must undertake the additional administrative * overhead of registering/unregistering with the SM and tracking of the * total number of queue pairs attached to the multicast group. */
include/rdma/uverbs_ioctl.h +1 -1
@@ -1142,7 +1142,7 @@ static inline int ib_is_udata_in_empty(struct ib_udata *udata)* @_udata: The system calls ib_udata struct * * Used when there is no driver response data to return. Provides forward -* compatability by zeroing any buffer the user may have provided. +* compatibility by zeroing any buffer the user may have provided. */ static inline int ib_respond_empty_udata (struct ib_udata *udata) {
Re: [PATCH 1/2] RDMA: fix typos in comments
Quoted 30 lines · Hemanth Selam
Fix typos in comments, reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- drivers/infiniband/core/device.c | 2 +- drivers/infiniband/core/uverbs_uapi.c | 2 +- drivers/infiniband/core/verbs.c | 2 +- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 +- drivers/infiniband/hw/cxgb4/cq.c | 2 +- drivers/infiniband/hw/erdma/erdma_main.c | 2 +- drivers/infiniband/hw/hfi1/affinity.c | 2 +- drivers/infiniband/hw/hfi1/firmware.c | 2 +- drivers/infiniband/hw/mlx4/mcg.c | 4 ++-- drivers/infiniband/hw/mlx5/odp.c | 2 +- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 6 +++--- drivers/infiniband/hw/qedr/verbs.c | 2 +- drivers/infiniband/hw/usnic/usnic_abi.h | 2 +- drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 +- drivers/infiniband/hw/usnic/usnic_transport.h | 2 +- drivers/infiniband/sw/rdmavt/qp.c | 2 +- drivers/infiniband/sw/rdmavt/srq.c | 2 +- drivers/infiniband/ulp/ipoib/ipoib_vlan.c | 2 +- drivers/infiniband/ulp/iser/iscsi_iser.c | 6 +++--- drivers/infiniband/ulp/iser/iser_verbs.c | 2 +- include/rdma/ib_verbs.h | 4 ++-- include/rdma/uverbs_ioctl.h | 2 +- 22 files changed, 28 insertions(+), 28 deletions(-)
<...>
drivers/infiniband/core/uverbs_uapi.c void uverbs_disassociate_api(struct uverbs_api *uapi) · line 734
Quoted 7 lines
drivers/infiniband/core/uverbs_uapi.c +1
-1* * release_cleanup is the exception because * uverbs_uobject_fd_release() needs it. In this case -* the module reference held by the fops will guarentee +* the module reference held by the fops will guarantee * the type_class remains valid too. */
And what has changed here?
Thanks
Re: [PATCH 1/2] RDMA: fix typos in comments
Quoted 8 lines · Leon Romanovsky
drivers/infiniband/core/uverbs_uapi.c void uverbs_disassociate_api(struct uverbs_api *uapi) · line 734
Quoted 6 lines
drivers/infiniband/core/uverbs_uapi.c +1
-1* release_cleanup is the exception because * uverbs_uobject_fd_release() needs it. In this case -* the module reference held by the fops will guarentee +* the module reference held by the fops will guarantee * the type_class remains valid too. */ And what has changed here?
Sorry, that one is easy to miss: it is a single letter in the middle of the word.
guarentee
^
guarantee
^The fifth character goes from 'e' to 'a'. "guarentee" is a misspelling of "guarantee", and it is listed in scripts/spelling.txt, which is how checkpatch.pl flagged it.
Hemanth
Re: [PATCH 1/2] RDMA: fix typos in comments
Quoted 13 lines · Hemanth Selam
Quoted 8 lines · Leon Romanovsky
drivers/infiniband/core/uverbs_uapi.c void uverbs_disassociate_api(struct uverbs_api *uapi) · line 734
Quoted 6 lines
drivers/infiniband/core/uverbs_uapi.c +1
-1* release_cleanup is the exception because * uverbs_uobject_fd_release() needs it. In this case -* the module reference held by the fops will guarentee +* the module reference held by the fops will guarantee * the type_class remains valid too. */ And what has changed here?
Sorry, that one is easy to miss: it is a single letter in the middle of the word.
Quoted 8 lines
guarentee
^ guarantee ^The fifth character goes from 'e' to 'a'. "guarentee" is a misspelling of "guarantee", and it is listed in
scripts/spelling.txt, which is how checkpatch.pl flagged it.
Ahh, thanks
Quoted 2 lines
Hemanth
PATCH 2/2 RDMA: fix repeated words in comments
In reply to Hemanth SelamDrop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
--- drivers/infiniband/core/iwcm.c | 2 +- drivers/infiniband/ulp/srpt/ib_srpt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/core/iwcm.c +1 -1
@@ -936,7 +936,7 @@ static void cm_disconnect_handler(struct iwcm_id_private *cm_id_priv,/* * CM_ID <-- IDLE * -* If in the ESTBLISHED or CLOSING states, the QP will have have been +* If in the ESTBLISHED or CLOSING states, the QP will have been * moved by the provider to the ERR state. Disassociate the CM_ID from * the QP, move to IDLE, and remove the 'connected' reference. *
drivers/infiniband/ulp/srpt/ib_srpt.c +1 -1
@@ -1888,7 +1888,7 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch)* We divide up our send queue size into half SEND WRs to send the * completions, and half R/W contexts to actually do the RDMA * READ/WRITE transfers. Note that we need to allocate CQ slots for -* both both, as RDMA contexts will also post completions for the +* both, as RDMA contexts will also post completions for the * RDMA READ case. */ qp_init->cap.max_send_wr =min (sq_size /2 , attrs->max_qp_wr);
Leon Romanovsky
AppliedQuoted 10 lines · Hemanth Selam
This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
[...]
Applied, thanks!
[1/2] RDMA: fix typos in comments
https://git.kernel.org/rdma/rdma/c/ea42dc09368112 [2/2] RDMA: fix repeated words in comments https://git.kernel.org/rdma/rdma/c/3e1de7f906ab16
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>