mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: fix misra 4.4 violations
This change eliminates the two instances of MISRA Advisory Rule 4.4 violations from nvgpu by moving the code in question within #if 0/#endif. Advisory Rule 4.4 states that sections of code should not be commented out. JIRA NVGPU-3798 Change-Id: Id7c501d2d9407a87af5db54c3590705f67ba1ba3 Signed-off-by: Scott Long <scottl@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2208185 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
77ffea99bd
commit
67179c661e
@@ -38,7 +38,13 @@
|
||||
#include <nvgpu/types.h>
|
||||
#include <nvgpu/utils.h>
|
||||
|
||||
/* #define ALLOCATOR_DEBUG_FINE */
|
||||
/*
|
||||
* Enable this flag to get finer control over allocator debug messaging
|
||||
* (see below).
|
||||
*/
|
||||
#if 0
|
||||
#define ALLOCATOR_DEBUG_FINE
|
||||
#endif
|
||||
|
||||
struct nvgpu_allocator;
|
||||
struct nvgpu_alloc_carveout;
|
||||
|
||||
@@ -67,7 +67,10 @@ struct nvgpu_kmem_cache;
|
||||
* Since this is a fairly high overhead operation and is only necessary for
|
||||
* debugging actual bugs it's left here for developers to enable.
|
||||
*/
|
||||
/* #define __NVGPU_SAVE_KALLOC_STACK_TRACES */
|
||||
|
||||
#if 0
|
||||
#define __NVGPU_SAVE_KALLOC_STACK_TRACES
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Defined per-OS.
|
||||
|
||||
Reference in New Issue
Block a user