]> granicus.if.org Git - strace/commit
loop: mpersify struct loop_info and loop_ioctl function
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 19 Dec 2016 00:15:27 +0000 (03:15 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 29 Dec 2016 00:11:30 +0000 (00:11 +0000)
commitf0026a38189d3febd7ee090232fa07409b9048c9
tree3c14758911da02f480b48e80bf7fb5dc74a3fcb1
parent52e3c75a1c6402639e412fb1799f463e371fcf4c
loop: mpersify struct loop_info and loop_ioctl function

struct loop_info contains fields of type long, so it definitely should
have been mpersified.

* defs.h (loop_ioctl): Remove prototype.
* loop.c (struct_loop_info): New typedef.
Include DEF_MPERS_TYPE(struct_loop_info) and MPERS_DEFS.
(decode_loop_info): Replace struct loop_info with struct_loop_info.
Cast lo_inode, lo_init[0], and lo_init[1] to kernel_ulong_t and print
them using appropriate format specifiers.
(loop_ioctl): Wrap into MPERS_PRINTER_DECL.

Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
defs.h
loop.c