]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vchiq: rework compat handling
authorArnd Bergmann <arnd@arndb.de>
Fri, 18 Sep 2020 09:54:37 +0000 (11:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Sep 2020 07:48:22 +0000 (09:48 +0200)
commit94eb628d1b4a3b189a4f1b9413a7ec95f4cddd7d
tree117351e86a742f79b79d5f0e99c7ab2a4bdd7125
parentec32ee1b5975b1d07d59b6ded3f91d2ce1cdd8b1
staging: vchiq: rework compat handling

The compat handlers for VCHIQ_IOC_QUEUE_MESSAGE32 and
VCHIQ_IOC_GET_CONFIG32 can simply call the underlying implementations
that are already separate functions rather than using copy_in_user to
simulate the native 64-bit interface for the full ioctl handler.

vchiq_ioc_queue_message gets a small update to the calling
conventions to simplify the compat version by directly
returning a normal errno value.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200918095441.1446041-2-arnd@arndb.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c