diff --git a/drivers/gpu/nvgpu/hal/init/hal_gm20b.c b/drivers/gpu/nvgpu/hal/init/hal_gm20b.c index b34604c9a..1b46052ba 100644 --- a/drivers/gpu/nvgpu/hal/init/hal_gm20b.c +++ b/drivers/gpu/nvgpu/hal/init/hal_gm20b.c @@ -1,7 +1,7 @@ /* * GM20B Graphics * - * Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -54,7 +54,9 @@ #include #endif #include +#ifdef CONFIG_NVGPU_CLK_ARB #include +#endif #include #ifdef CONFIG_NVGPU_POWER_PG #include diff --git a/drivers/gpu/nvgpu/hal/init/hal_gv11b.c b/drivers/gpu/nvgpu/hal/init/hal_gv11b.c index d10badab7..4f2c781d5 100644 --- a/drivers/gpu/nvgpu/hal/init/hal_gv11b.c +++ b/drivers/gpu/nvgpu/hal/init/hal_gv11b.c @@ -31,7 +31,9 @@ #include #endif #include +#ifdef CONFIG_NVGPU_CLK_ARB #include +#endif #include #include #include diff --git a/drivers/gpu/nvgpu/hal/top/top_gp10b.h b/drivers/gpu/nvgpu/hal/top/top_gp10b.h index 5f2843b87..d2681be5b 100644 --- a/drivers/gpu/nvgpu/hal/top/top_gp10b.h +++ b/drivers/gpu/nvgpu/hal/top/top_gp10b.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -30,8 +30,10 @@ struct gk20a; struct nvgpu_device; +#ifdef CONFIG_NVGPU_HAL_NON_FUSA int gp10b_device_info_parse_data(struct gk20a *g, u32 table_entry, u32 *inst_id, u32 *pri_base, u32 *fault_id); +#endif int gp10b_get_device_info(struct gk20a *g, struct nvgpu_device *dev_info, u32 engine_type, u32 inst_id); #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/boardobjgrp.h b/drivers/gpu/nvgpu/include/nvgpu/boardobjgrp.h index 1f106ab3a..7cebba973 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/boardobjgrp.h +++ b/drivers/gpu/nvgpu/include/nvgpu/boardobjgrp.h @@ -1,5 +1,5 @@ /* -* Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved. +* Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -31,7 +31,9 @@ struct nvgpu_list_node; #include #include #include +#ifdef CONFIG_NVGPU_DGPU #include +#endif #include /* Dependency of this include will be removed in further CL */ #include "../../common/pmu/boardobj/boardobj.h" diff --git a/drivers/gpu/nvgpu/os/posix/kmem.c b/drivers/gpu/nvgpu/os/posix/kmem.c index d7aa70142..3b8d14d7e 100644 --- a/drivers/gpu/nvgpu/os/posix/kmem.c +++ b/drivers/gpu/nvgpu/os/posix/kmem.c @@ -74,9 +74,9 @@ struct nvgpu_kmem_cache *nvgpu_kmem_cache_create(struct gk20a *g, size_t size) } #endif NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Rule, 21_3), "TID-1131") - NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Rule, 4_12), "TID-1129") + NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Directive, 4_12), "TID-1129") cache = malloc(sizeof(struct nvgpu_kmem_cache)); - NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 4_12)) + NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Directive, 4_12)) NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 21_3)) if (cache == NULL) { @@ -112,9 +112,9 @@ void *nvgpu_kmem_cache_alloc(struct nvgpu_kmem_cache *cache) } #endif NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Rule, 21_3), "TID-1131") - NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Rule, 4_12), "TID-1129") + NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Directive, 4_12), "TID-1129") ptr = malloc(cache->size); - NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 4_12)) + NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Directive, 4_12)) NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 21_3)) if (ptr == NULL) { @@ -153,9 +153,9 @@ void *nvgpu_kmalloc_impl(struct gk20a *g, size_t size, void *ip) * calls). */ NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Rule, 21_3), "TID-1131") - NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Rule, 4_12), "TID-1129") + NVGPU_COV_WHITELIST_BLOCK_BEGIN(deviate, 1, NVGPU_MISRA(Directive, 4_12), "TID-1129") ptr = malloc(size); - NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 4_12)) + NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Directive, 4_12)) NVGPU_COV_WHITELIST_BLOCK_END(NVGPU_MISRA(Rule, 21_3)) if (ptr == NULL) {