linux/tools/lib/python/kdoc
Randy Dunlap 3b61bb3fe1 kernel-doc: xforms: support __SYSFS_FUNCTION_ALTERNATIVE()
Add support for __SYSFS_FUNCTION_ALTERNATIVE() to create a union of its
members (as though CONFIG_CFI is unset).

Fixes these docs build warnings:

WARNING: include/linux/device.h:117 Invalid param: __SYSFS_FUNCTION_ALTERNATIVE( ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf)
WARNING: include/linux/device.h:117 struct member '__SYSFS_FUNCTION_ALTERNATIVE( ssize_t (*show' not described in 'device_attribute'
WARNING: include/linux/device.h:117 Invalid param: __SYSFS_FUNCTION_ALTERNATIVE( ssize_t (*store)(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
WARNING: include/linux/device.h:117 struct member '__SYSFS_FUNCTION_ALTERNATIVE( ssize_t (*store' not described in 'device_attribute'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260623190006.406571-1-rdunlap@infradead.org>
2026-06-23 14:31:25 -06:00
..
__init__.py
c_lex.py docs: c_lex.py: store logger on its data 2026-03-25 13:36:46 -06:00
enrich_formatter.py docs: kdoc: enrich_formatter: Improve docstrings and comments 2026-01-23 11:37:38 -07:00
kdoc_files.py doc tools: better handle KBUILD_VERBOSE 2026-03-30 10:03:40 -06:00
kdoc_item.py docs: kdoc: better handle source when producing YAML output 2026-03-25 13:36:46 -06:00
kdoc_output.py docs: kdoc_output: raise an error if full_proto not available for var 2026-03-25 13:36:46 -06:00
kdoc_parser.py scripts/kernel-doc: Detect mismatched inline member documentation tags 2026-05-15 08:34:13 -06:00
kdoc_re.py docs: kdoc_re: better represent long regular expressions 2026-03-22 15:10:40 -06:00
kdoc_yaml_file.py docs: kdoc_yaml_file: use a better name for the tests 2026-03-25 13:36:46 -06:00
latex_fonts.py docs: kdoc: latex_fonts: Improve docstrings and comments 2026-01-23 11:37:38 -07:00
parse_data_structs.py docs: kdoc: parse_data_structs: Improve docstrings and comments 2026-01-23 11:37:38 -07:00
python_version.py docs: kdoc: python_version: Improve docstrings and comments 2026-01-23 11:37:38 -07:00
xforms_lists.py kernel-doc: xforms: support __SYSFS_FUNCTION_ALTERNATIVE() 2026-06-23 14:31:25 -06:00