Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

HID: bpf: doc fixes for hid_hw_request() hooks

We had the following errors while doing make htmldocs:
Documentation/hid/hid-bpf:185: include/linux/hid_bpf.h:144:
ERROR: Unexpected indentation.
Documentation/hid/hid-bpf:185: include/linux/hid_bpf.h:145:
WARNING: Block quote ends without a blank line;
unexpected unindent.
Documentation/hid/hid-bpf:185: include/linux/hid_bpf.h:147:
ERROR: Unexpected indentation.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 8bd0488b5ea5 ("HID: bpf: add HID-BPF hooks for hid_hw_raw_requests")
Link: https://patch.msgid.link/20240701-fix-cki-v2-3-20564e2e1393@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>

+7 -4
+7 -4
include/linux/hid_bpf.h
··· 139 139 * 140 140 * ``ctx``: The HID-BPF context as &struct hid_bpf_ctx 141 141 * ``reportnum``: the report number, as in hid_hw_raw_request() 142 + * 142 143 * ``rtype``: the report type (``HID_INPUT_REPORT``, ``HID_FEATURE_REPORT``, 143 - * ``HID_OUTPUT_REPORT``) 144 + * ``HID_OUTPUT_REPORT``) 145 + * 144 146 * ``reqtype``: the request 147 + * 145 148 * ``source``: a u64 referring to a uniq but identifiable source. If %0, the 146 - * kernel itself emitted that call. For hidraw, ``source`` is set 147 - * to the associated ``struct file *``. 149 + * kernel itself emitted that call. For hidraw, ``source`` is set 150 + * to the associated ``struct file *``. 148 151 * 149 152 * Return: %0 to keep processing the request by hid-core; any other value 150 153 * stops hid-core from processing that event. A positive value should be ··· 156 153 */ 157 154 int (*hid_hw_request)(struct hid_bpf_ctx *ctx, unsigned char reportnum, 158 155 enum hid_report_type rtype, enum hid_class_request reqtype, 159 - __u64 source); 156 + u64 source); 160 157 161 158 /** 162 159 * @hid_hw_output_report: called whenever a hid_hw_output_report() call is emitted