mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
The following violations are fixed in this patch a) misra_c_2012_rule_2_1_violation: This code cannot be reached: "return err;". b) misra_c_2012_directive_4_7_violation: Calling function "nvgpu_preempt_channel(g, ch)" which returns error information without testing the error information. c) misra_c_2012_rule_8_6_violation: "" is declared but never defined for following functions 1) gm20b_dump_engine_status 2) gp10b_ramfc_setup 3) gp10b_ramfc_get_syncpt 4) gp10b_ramfc_set_syncpt 5) gk20a_fifo_intr_0_enable 6) gk20a_fifo_intr_0_isr 7) gk20a_fifo_handle_sched_error 8) gk20a_fifo_is_mmu_fault_pending 9) gk20a_fifo_intr_set_recover_mask 10) gk20a_fifo_intr_unset_recover_mask 11) gk20a_init_fifo_reset_enable_hw 12) gk20a_init_fifo_setup_hw 13) nvgpu_tsg_set_runlist_interleave 14) gm20b_dump_engine_status 15) gp10b_pbdma_channel_fatal_0_intr_descs 16) gp10b_pbdma_allowed_syncpoints_0_index_f 17) gp10b_pbdma_allowed_syncpoints_0_valid_f 18) gp10b_pbdma_allowed_syncpoints_0_index_v 19) gk20a_runlist_reschedule The above functions declarations are now embedded within CONFIG_NVGPU_HAL_NON_FUSA d) The function nvgpu_channel_abort_clean_up has a UMD version and hence its taken out of CONFIG_NVGPU_KERNEL_MODE_SUBMIT to avoid errors of type c above. Jira NVGPU-3881 Change-Id: I5f85c7070e1d2f0b18d14db07ce22a01c29f0e40 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2181032 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>