Skip to content

Commit 50bfc12

Browse files
committed
Fixup sphinx warnings
When configuring with 'meson -Dman=true' sphinx is printing out errors on the generated libnvme.rst file. This patch fixes up the function documentations to fixup these warnings. Signed-off-by: Hannes Reinecke <[email protected]>
1 parent 8d84dab commit 50bfc12

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/nvme/ioctl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,7 +2869,7 @@ int nvme_ns_mgmt(struct nvme_ns_mgmt_args *args);
28692869
* @csi: Command Set Identifier
28702870
*
28712871
* On successful creation, the namespace exists in the subsystem, but is not
2872-
* attached to any controller. Use the &nvme_ns_attach_ctrls() to assign the
2872+
* attached to any controller. Use the nvme_ns_attach_ctrls() to assign the
28732873
* namespace to one or more controllers.
28742874
*
28752875
* Return: The nvme command status if a response was received (see
@@ -2898,7 +2898,7 @@ static inline int nvme_ns_mgmt_create(int fd, struct nvme_id_ns *ns,
28982898
* @nsid: Namespace identifier to delete
28992899
*
29002900
* It is recommended that a namespace being deleted is not attached to any
2901-
* controller. Use the &nvme_ns_detach_ctrls() first if the namespace is still
2901+
* controller. Use the nvme_ns_detach_ctrls() first if the namespace is still
29022902
* attached.
29032903
*
29042904
* Return: The nvme command status if a response was received (see

src/nvme/types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,9 @@ enum nvme_psd_workload {
677677
* the workload indicated in the Active Power Workload field.
678678
* @apws: Bits 7-6: Active Power Scale(APS) indicates the scale for the &struct
679679
* nvme_id_psd.actp, see &enum nvme_psd_ps for decoding this value.
680-
* Bits 2-0: Active Power Workload(APW) indicates the workload
680+
* Bits 2-0: Active Power Workload(APW) indicates the workload
681681
* used to calculate maximum power for this power state.
682-
* See &enum nvme_psd_workload for decoding this field.
682+
* See &enum nvme_psd_workload for decoding this field.
683683
* @rsvd23: Reserved
684684
*/
685685
struct nvme_id_psd {
@@ -773,7 +773,7 @@ struct nvme_id_psd {
773773
* condition during which controller operation continues.
774774
* @cctemp: Critical Composite Temperature Threshold, field indicates the
775775
* minimum Composite Temperature field value (see &struct
776-
* nvme_smart_log.critical_comp_time) that indicates a critical
776+
* nvme_smart_log.critical_comp_time) that indicates a critical
777777
* overheating condition.
778778
* @mtfa: Maximum Time for Firmware Activation indicates the maximum time
779779
* the controller temporarily stops processing commands to activate

src/nvme/util.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const char *nvme_errno_to_string(int err);
8181
* @nvmsetid: NVM Set identifer
8282
*
8383
* This is intended to be used with a namespace management "create", see
84-
* &nvme_ns_mgmt_create().
84+
* nvme_ns_mgmt_create().
8585
*/
8686
void nvme_init_id_ns(struct nvme_id_ns *ns, __u64 nsze, __u64 ncap, __u8 flbas,
8787
__u8 dps, __u8 nmic, __u32 anagrpid, __u16 nvmsetid);
@@ -93,7 +93,7 @@ void nvme_init_id_ns(struct nvme_id_ns *ns, __u64 nsze, __u64 ncap, __u8 flbas,
9393
* @ctrlist: An array of controller identifiers in CPU native endian.
9494
*
9595
* This is intended to be used with any command that takes a controller list
96-
* argument. See &nvme_ns_attach_ctrls() and &nvme_ns_detach().
96+
* argument. See nvme_ns_attach_ctrls() and nvme_ns_detach().
9797
*/
9898
void nvme_init_ctrl_list(struct nvme_ctrl_list *cntlist, __u16 num_ctrls,
9999
__u16 *ctrlist);
@@ -107,7 +107,7 @@ void nvme_init_ctrl_list(struct nvme_ctrl_list *cntlist, __u16 num_ctrls,
107107
* @nr_ranges: The size of the dsm arrays
108108
*
109109
* Each array must be the same size of size 'nr_ranges'. This is intended to be
110-
* used with constructing a payload for &nvme_dsm().
110+
* used with constructing a payload for nvme_dsm().
111111
*
112112
* Return: The nvme command status if a response was received or -errno
113113
* otherwise.

0 commit comments

Comments
 (0)