aboutsummaryrefslogtreecommitdiff
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2021-01-25 12:37:52 +0100
committerJens Wiklander <[email protected]>2021-02-08 13:42:31 +0100
commit67bc809752796acb2641ca343cad5b45eef31d7c (patch)
treeb52dc73f429a1ba3c79cc98b10e7f79cc0d3dbd8 /net/unix/unix_bpf.c
parente71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 (diff)
optee: simplify i2c access
Storing a bogus i2c_client structure on the stack adds overhead and causes a compile-time warning: drivers/tee/optee/rpc.c:493:6: error: stack frame size of 1056 bytes in function 'optee_handle_rpc' [-Werror,-Wframe-larger-than=] void optee_handle_rpc(struct tee_context *ctx, struct optee_rpc_param *param, Change the implementation of handle_rpc_func_cmd_i2c_transfer() to open-code the i2c_transfer() call, which makes it easier to read and avoids the warning. Fixes: c05210ab9757 ("drivers: optee: allow op-tee to access devices on the i2c bus") Tested-by: Jorge Ramirez-Ortiz <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions