diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/page_allocator.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/page_allocator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/page_allocator.c b/drivers/gpu/nvgpu/common/mm/page_allocator.c index 0eda13ec..72ff8f2d 100644 --- a/drivers/gpu/nvgpu/common/mm/page_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/page_allocator.c | |||
@@ -756,7 +756,7 @@ static void nvgpu_page_allocator_destroy(struct nvgpu_allocator *__a) | |||
756 | alloc_unlock(__a); | 756 | alloc_unlock(__a); |
757 | } | 757 | } |
758 | 758 | ||
759 | #ifdef CONFIG_DEBUG_FS | 759 | #ifdef __KERNEL__ |
760 | static void nvgpu_page_print_stats(struct nvgpu_allocator *__a, | 760 | static void nvgpu_page_print_stats(struct nvgpu_allocator *__a, |
761 | struct seq_file *s, int lock) | 761 | struct seq_file *s, int lock) |
762 | { | 762 | { |
@@ -833,7 +833,7 @@ static const struct nvgpu_allocator_ops page_ops = { | |||
833 | 833 | ||
834 | .fini = nvgpu_page_allocator_destroy, | 834 | .fini = nvgpu_page_allocator_destroy, |
835 | 835 | ||
836 | #ifdef CONFIG_DEBUG_FS | 836 | #ifdef __KERNEL__ |
837 | .print_stats = nvgpu_page_print_stats, | 837 | .print_stats = nvgpu_page_print_stats, |
838 | #endif | 838 | #endif |
839 | }; | 839 | }; |