diff options
author | Philip Elcan <pelcan@nvidia.com> | 2018-08-27 12:45:27 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-10 18:23:45 -0400 |
commit | d2be65315a9ebfc88e77489571a31c48b3d21284 (patch) | |
tree | ff4a2d2d90ad1b6f3768bcb8e67176202ccfe97c /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | c86f185d1022de18a1a1073aa91d2b06aa59e2fc (diff) |
gpu: nvgpu: fix some MISRA 10.3 violations
Fix MISRA 10.3 violations in mclk_gp106.c. Cleanup cases where values
were being assigned to narrower types.
Changes in mclk_gp106.c required updates to other files to resolve
errors and prevent introducing new violations.
JIRA NVGPU-647
Change-Id: Ifdb03ad41d9dbf05dbcf79494ae8565fff6ee083
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1809366
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index e9497ea7..dd63a105 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1653,10 +1653,10 @@ static inline bool nvgpu_is_timeouts_enabled(struct gk20a *g) | |||
1653 | return nvgpu_atomic_read(&g->timeouts_disabled_refcount) == 0; | 1653 | return nvgpu_atomic_read(&g->timeouts_disabled_refcount) == 0; |
1654 | } | 1654 | } |
1655 | 1655 | ||
1656 | static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g) | 1656 | static inline u32 gk20a_get_gr_idle_timeout(struct gk20a *g) |
1657 | { | 1657 | { |
1658 | return nvgpu_is_timeouts_enabled(g) ? | 1658 | return nvgpu_is_timeouts_enabled(g) ? |
1659 | g->gr_idle_timeout_default : ULONG_MAX; | 1659 | g->gr_idle_timeout_default : UINT_MAX; |
1660 | } | 1660 | } |
1661 | 1661 | ||
1662 | #define MULTICHAR_TAG(a, b, c, d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) | 1662 | #define MULTICHAR_TAG(a, b, c, d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d)) |