summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/buddy_allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/buddy_allocator.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/buddy_allocator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/buddy_allocator.c b/drivers/gpu/nvgpu/common/mm/buddy_allocator.c
index a2e6c44a..2938bfac 100644
--- a/drivers/gpu/nvgpu/common/mm/buddy_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/buddy_allocator.c
@@ -1076,7 +1076,7 @@ static u64 nvgpu_buddy_alloc_space(struct nvgpu_allocator *a)
1076 return space; 1076 return space;
1077} 1077}
1078 1078
1079#ifdef CONFIG_DEBUG_FS 1079#ifdef __KERNEL__
1080/* 1080/*
1081 * Print the buddy allocator top level stats. If you pass @s as NULL then the 1081 * Print the buddy allocator top level stats. If you pass @s as NULL then the
1082 * stats are printed to the kernel log. This lets this code be used for 1082 * stats are printed to the kernel log. This lets this code be used for
@@ -1174,7 +1174,7 @@ static const struct nvgpu_allocator_ops buddy_ops = {
1174 1174
1175 .fini = nvgpu_buddy_allocator_destroy, 1175 .fini = nvgpu_buddy_allocator_destroy,
1176 1176
1177#ifdef CONFIG_DEBUG_FS 1177#ifdef __KERNEL__
1178 .print_stats = nvgpu_buddy_print_stats, 1178 .print_stats = nvgpu_buddy_print_stats,
1179#endif 1179#endif
1180}; 1180};