mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Fix MISRA violations in BIOS unit
- Fix Rule 16.1 and 16.6 violations: Every switch statement shall have at least two switch-clauses - Fix Rule 15.6 violations: The body of an iteration statement shall be a compound statement. - Fix Rule 17.7 violations: The return value of a non-void function shall be used. JIRA NVGPU-3546 Change-Id: I475d185945f0998d4d359f4b9ded6e983474f01f Signed-off-by: Divya Singhatwaria <dsinghatwari@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2127923 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
13a7ef2cc7
commit
42f8b51411
@@ -334,9 +334,13 @@ gk20a_ctrl_ioctl_gpu_characteristics(
|
||||
gpu.dma_copy_class =
|
||||
g->ops.get_litter_value(g, GPU_LIT_DMA_COPY_CLASS);
|
||||
|
||||
#ifdef NVGPU_DGPU_SUPPORT
|
||||
gpu.vbios_version = nvgpu_bios_get_vbios_version(g);
|
||||
gpu.vbios_oem_version = nvgpu_bios_get_vbios_oem_version(g);
|
||||
|
||||
#else
|
||||
gpu.vbios_version = 0;
|
||||
gpu.vbios_oem_version = 0;
|
||||
#endif
|
||||
gpu.big_page_size = nvgpu_mm_get_default_big_page_size(g);
|
||||
gpu.pde_coverage_bit_count =
|
||||
g->ops.mm.gmmu.get_mmu_levels(g,
|
||||
|
||||
Reference in New Issue
Block a user