| .. | .. |
|---|
| 54 | 54 | mutex_lock(&kbdev->kctx_list_lock); |
|---|
| 55 | 55 | list_for_each_entry(kctx, &kbdev->kctx_list, kctx_list_link) { |
|---|
| 56 | 56 | /* output the memory usage and cap for each kctx |
|---|
| 57 | | - * opened on this device |
|---|
| 58 | | - */ |
|---|
| 57 | + * opened on this device |
|---|
| 58 | + */ |
|---|
| 59 | 59 | seq_printf(sfile, " %s-0x%pK %10u\n", |
|---|
| 60 | 60 | "kctx", |
|---|
| 61 | 61 | kctx, |
|---|
| .. | .. |
|---|
| 88 | 88 | */ |
|---|
| 89 | 89 | void kbasep_gpu_memory_debugfs_init(struct kbase_device *kbdev) |
|---|
| 90 | 90 | { |
|---|
| 91 | | - debugfs_create_file("gpu_memory", S_IRUGO, |
|---|
| 91 | + debugfs_create_file("gpu_memory", 0444, |
|---|
| 92 | 92 | kbdev->mali_debugfs_directory, NULL, |
|---|
| 93 | 93 | &kbasep_gpu_memory_debugfs_fops); |
|---|
| 94 | | - return; |
|---|
| 95 | 94 | } |
|---|
| 96 | | - |
|---|
| 97 | 95 | #else |
|---|
| 98 | 96 | /* |
|---|
| 99 | 97 | * Stub functions for when debugfs is disabled |
|---|
| 100 | 98 | */ |
|---|
| 101 | | -void kbasep_gpu_memory_debugfs_init(struct kbase_device *kbdev) |
|---|
| 102 | | -{ |
|---|
| 103 | | - return; |
|---|
| 104 | | -} |
|---|
| 99 | +void kbasep_gpu_memory_debugfs_init(struct kbase_device *kbdev) {} |
|---|
| 105 | 100 | #endif |
|---|