firewire: cdev: add new event to notify response subaction with time stamp
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 29 May 2023 23:12:40 +0000 (08:12 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 29 May 2023 23:12:40 +0000 (08:12 +0900)
commitfc2b52cf2e0e48938b65e20fae7099e54ef74c76
tree5f18632b2e9cf0dd5346497b3174e72e82b2a4a4
parent147e9d3af34a92ff567c58b0e89099d26787faba
firewire: cdev: add new event to notify response subaction with time stamp

This commit adds new event to notify event of response subaction with
time stamp field.

Current compiler implementation of System V ABI selects one of structure
members which has the maximum alignment size in the structure to decide
the size of structure. In the case of fw_cdev_event_request3 structure,
it is closure member which has 8 byte storage. The size of alignment for
the type of 8 byte storage differs depending on architectures; 4 byte for
i386 architecture and 8 byte for the others including x32 architecture.
It is inconvenient to device driver developer to use structure layout
which varies between architectures since the developer takes care of ioctl
compat layer. This commit adds 32 bit member for padding to keep the
size of structure as multiples of 8.

Cc: kunit-dev@googlegroups.com
Link: https://lore.kernel.org/r/20230529113406.986289-9-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/uapi-test.c
include/uapi/linux/firewire-cdev.h