diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /mm/cma_debug.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'mm/cma_debug.c')
| -rw-r--r-- | mm/cma_debug.c | 25 | 
1 files changed, 10 insertions, 15 deletions
diff --git a/mm/cma_debug.c b/mm/cma_debug.c index 275df8b5b22e..f23467291cfb 100644 --- a/mm/cma_debug.c +++ b/mm/cma_debug.c @@ -172,23 +172,18 @@ static void cma_debugfs_add_one(struct cma *cma, int idx)  	tmp = debugfs_create_dir(name, cma_debugfs_root); -	debugfs_create_file("alloc", S_IWUSR, tmp, cma, -				&cma_alloc_fops); - -	debugfs_create_file("free", S_IWUSR, tmp, cma, -				&cma_free_fops); - -	debugfs_create_file("base_pfn", S_IRUGO, tmp, -				&cma->base_pfn, &cma_debugfs_fops); -	debugfs_create_file("count", S_IRUGO, tmp, -				&cma->count, &cma_debugfs_fops); -	debugfs_create_file("order_per_bit", S_IRUGO, tmp, -				&cma->order_per_bit, &cma_debugfs_fops); -	debugfs_create_file("used", S_IRUGO, tmp, cma, &cma_used_fops); -	debugfs_create_file("maxchunk", S_IRUGO, tmp, cma, &cma_maxchunk_fops); +	debugfs_create_file("alloc", 0200, tmp, cma, &cma_alloc_fops); +	debugfs_create_file("free", 0200, tmp, cma, &cma_free_fops); +	debugfs_create_file("base_pfn", 0444, tmp, +			    &cma->base_pfn, &cma_debugfs_fops); +	debugfs_create_file("count", 0444, tmp, &cma->count, &cma_debugfs_fops); +	debugfs_create_file("order_per_bit", 0444, tmp, +			    &cma->order_per_bit, &cma_debugfs_fops); +	debugfs_create_file("used", 0444, tmp, cma, &cma_used_fops); +	debugfs_create_file("maxchunk", 0444, tmp, cma, &cma_maxchunk_fops);  	u32s = DIV_ROUND_UP(cma_bitmap_maxno(cma), BITS_PER_BYTE * sizeof(u32)); -	debugfs_create_u32_array("bitmap", S_IRUGO, tmp, (u32*)cma->bitmap, u32s); +	debugfs_create_u32_array("bitmap", 0444, tmp, (u32 *)cma->bitmap, u32s);  }  static int __init cma_debugfs_init(void)  | 
