Files
linux-nvgpu/drivers/gpu
Nitin Kumbhar 3ad11341c1 gpu: nvgpu: fix CERT-C EXP40-C issue in posix utils
Remove const from __mptr declaration to fix EXP40-C violation.

cert_exp40_c_violation: Casting pointer "__mptr" with type
 "struct nvgpu_clk_dev const *" to type "char *" allows an
 object defined with a const-qualified type to be modified
 through use of an lvalue with non-const-qualified type

Considering implementation of container_of() a const is
not required.

JIRA NVGPU-3908
JIRA NVGPU-3561

Change-Id: Ie94c3f994a962124afcda49a178a72c9b87ba7c7
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2195032
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2020-12-15 14:05:52 -06:00
..
2017-10-29 11:00:55 -07:00