mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
When error (negative value) with int type is returned from read/write fops (gk20a_power_node_ops) is read as ssize_t value as expected in userspace it will be seen as large non-negative number and will suppress the error. Make return type for these fops ssize_t. Also include power_ops.h in power_ops.c. This would have caught the type mismatch issue. Bug 3388725 Change-Id: Ie66b0178b31a1b7d147b4f441884bbba3bd2e4d8 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2604342 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>