diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/bitmap_allocator.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/bitmap_allocator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c b/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c index 274e9c93..9b3fccf1 100644 --- a/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c | |||
@@ -311,7 +311,7 @@ static void nvgpu_bitmap_alloc_destroy(struct nvgpu_allocator *__a) | |||
311 | nvgpu_kfree(nvgpu_alloc_to_gpu(__a), a); | 311 | nvgpu_kfree(nvgpu_alloc_to_gpu(__a), a); |
312 | } | 312 | } |
313 | 313 | ||
314 | #ifdef CONFIG_DEBUG_FS | 314 | #ifdef __KERNEL__ |
315 | static void nvgpu_bitmap_print_stats(struct nvgpu_allocator *__a, | 315 | static void nvgpu_bitmap_print_stats(struct nvgpu_allocator *__a, |
316 | struct seq_file *s, int lock) | 316 | struct seq_file *s, int lock) |
317 | { | 317 | { |
@@ -347,7 +347,7 @@ static const struct nvgpu_allocator_ops bitmap_ops = { | |||
347 | 347 | ||
348 | .fini = nvgpu_bitmap_alloc_destroy, | 348 | .fini = nvgpu_bitmap_alloc_destroy, |
349 | 349 | ||
350 | #ifdef CONFIG_DEBUG_FS | 350 | #ifdef __KERNEL__ |
351 | .print_stats = nvgpu_bitmap_print_stats, | 351 | .print_stats = nvgpu_bitmap_print_stats, |
352 | #endif | 352 | #endif |
353 | }; | 353 | }; |