RPMsg inter-partition messaging
0
fork

Configure Feed

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

fix(lint): remove underscore prefix from used bindings (E335)

Rename _get to get_entry in h2_hpack.ml and _iow to iow in rpmsg.ml
and test_wire.ml since these bindings are actually used.

+8 -8
+3 -3
lib/rpmsg.ml
··· 41 41 [RPMSG_DESTROY_EPT_IOCTL = _IOW(0xb5, 0x2, struct rpmsg_endpoint_info)] 42 42 43 43 _IOW(type, nr, size) = (1 << 30) | (size << 16) | (type << 8) | nr *) 44 - let _iow typ nr size = (1 lsl 30) lor (size lsl 16) lor (typ lsl 8) lor nr 44 + let iow typ nr size = (1 lsl 30) lor (size lsl 16) lor (typ lsl 8) lor nr 45 45 46 - let rpmsg_create_ept_ioctl = _iow 0xb5 0x1 endpoint_info_size 47 - let rpmsg_destroy_ept_ioctl = _iow 0xb5 0x2 endpoint_info_size 46 + let rpmsg_create_ept_ioctl = iow 0xb5 0x1 endpoint_info_size 47 + let rpmsg_destroy_ept_ioctl = iow 0xb5 0x2 endpoint_info_size 48 48 49 49 external rpmsg_ioctl : Unix.file_descr -> int -> bytes -> int 50 50 = "caml_rpmsg_ioctl"
+5 -5
test/test_wire.ml
··· 13 13 let rpmsg_addr_any = 0xFFFFFFFF 14 14 15 15 (* _IOW(type, nr, size) from include/uapi/asm-generic/ioctl.h *) 16 - let _iow typ nr size = (1 lsl 30) lor (size lsl 16) lor (typ lsl 8) lor nr 16 + let iow typ nr size = (1 lsl 30) lor (size lsl 16) lor (typ lsl 8) lor nr 17 17 18 18 (* -- struct size -- *) 19 19 ··· 187 187 188 188 let test_ioctl_create_cmd () = 189 189 (* _IOW(0xb5, 0x1, 40) = (1 << 30) | (40 << 16) | (0xb5 << 8) | 1 *) 190 - let expected = _iow 0xb5 0x1 40 in 190 + let expected = iow 0xb5 0x1 40 in 191 191 Alcotest.(check int) "create cmd" expected 0x4028b501 192 192 193 193 let test_ioctl_destroy_cmd () = 194 - let expected = _iow 0xb5 0x2 40 in 194 + let expected = iow 0xb5 0x2 40 in 195 195 Alcotest.(check int) "destroy cmd" expected 0x4028b502 196 196 197 197 let test_ioctl_create_dev_cmd () = 198 198 (* RPMSG_CREATE_DEV_IOCTL, added in Linux 6.0 (commit 85a0679e586e) *) 199 - let expected = _iow 0xb5 0x3 40 in 199 + let expected = iow 0xb5 0x3 40 in 200 200 Alcotest.(check int) "create dev cmd" expected 0x4028b503 201 201 202 202 let test_ioctl_release_dev_cmd () = 203 203 (* RPMSG_RELEASE_DEV_IOCTL, added in Linux 6.0 (commit 85a0679e586e) *) 204 - let expected = _iow 0xb5 0x4 40 in 204 + let expected = iow 0xb5 0x4 40 in 205 205 Alcotest.(check int) "release dev cmd" expected 0x4028b504 206 206 207 207 let suite =