]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
of: Fix RST inline emphasis warnings in of_map_id() kernel-doc
authorVijayanand Jitta <vijayanand.jitta@oss.qualcomm.com>
Fri, 19 Jun 2026 05:46:47 +0000 (11:16 +0530)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 24 Jun 2026 12:56:55 +0000 (07:56 -0500)
The @filter_np parameter descriptions in of_map_id() and of_map_msi_id()
contained the text '*filter_np' in prose. Docutils interprets a leading
'*' as the start of RST emphasis (italic), but finds no closing '*',
triggering:

  Documentation/devicetree/kernel-api:11: ./drivers/of/base.c:2134:
  WARNING: Inline emphasis start-string without end-string. [docutils]

  Documentation/devicetree/kernel-api:11: ./drivers/of/base.c:2260:
  WARNING: Inline emphasis start-string without end-string. [docutils]

Fix by wrapping '*filter_np' in double backticks (*filter_np) to
render it as an RST inline code literal, which is also the correct
kernel-doc convention for pointer expressions.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202606130111.ldC96rqf-lkp@intel.com/
Signed-off-by: Vijayanand Jitta <vijayanand.jitta@oss.qualcomm.com>
Link: https://patch.msgid.link/20260619-iommu_map_kdoc_fix-v1-1-9573e1cf30b3@oss.qualcomm.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/base.c

index 7cb0d7e88247b42fbb4fe028ae0e2e349748bc2b..6e7a42dedad3f296a7b38b9fcbb79644dffa4f8d 100644 (file)
@@ -2160,7 +2160,7 @@ static bool of_check_bad_map(const __be32 *map, int len)
  * @map_mask_name: optional property name of the mask to use.
  * @filter_np: pointer to an optional filter node, or NULL to allow bypass.
  *     If non-NULL, the map property must exist (-ENODEV if absent). If
- *     *filter_np is also non-NULL, only entries targeting that node match.
+ *     ``*filter_np`` is also non-NULL, only entries targeting that node match.
  * @arg: pointer to a &struct of_phandle_args for the result. On success,
  *     @arg->args_count will be set to the number of output specifier cells
  *     as defined by @cells_name in the target node, and
@@ -2350,7 +2350,7 @@ EXPORT_SYMBOL_GPL(of_map_iommu_id);
  *      stream/device ID) used as the lookup key in the msi-map table.
  * @filter_np: pointer to an optional filter node, or NULL to allow bypass.
  *     If non-NULL, the map property must exist (-ENODEV if absent). If
- *     *filter_np is also non-NULL, only entries targeting that node match.
+ *     ``*filter_np`` is also non-NULL, only entries targeting that node match.
  * @arg: pointer to a &struct of_phandle_args for the result. On success,
  *     @arg->args_count will be set to the number of output specifier cells
  *     and @arg->args[0..args_count-1] will contain the translated output