summaryrefslogtreecommitdiff
path: root/mali_kbase/mali_kbase_jd_debugfs.c
diff options
context:
space:
mode:
authorSidath Senanayake <sidaths@google.com>2020-10-27 11:38:49 +0000
committerSidath Senanayake <sidaths@google.com>2020-10-27 11:38:49 +0000
commit72f2457ff7355ff0389efe5bc9cec3365362d8c4 (patch)
tree8f5fb993bd2a8eb181c880b180b6401b46f76620 /mali_kbase/mali_kbase_jd_debugfs.c
parentd4ca6eb7268ee2db9deabd1745b505c6e1c162f9 (diff)
downloadgpu-72f2457ff7355ff0389efe5bc9cec3365362d8c4.tar.gz
Mali Valhall DDK r27p0 KMD
Provenance: 7e6f74ec1 (collaborate/EAC/v_r27p0) VX504X08X-BU-00000-r27p0-01eac0 - Android DDK VX504X08X-SW-99006-r27p0-01eac0 - Android Renderscript AOSP parts VX504X08X-BU-60000-r27p0-01eac0 - Android Document Bundle VX504X08X-DC-11001-r27p0-01eac0 - Valhall Android DDK Software Errata Signed-off-by: Sidath Senanayake <sidaths@google.com> Change-Id: Ib59de731b034cc7e2631e35f1b0063b8f6894ecc
Diffstat (limited to 'mali_kbase/mali_kbase_jd_debugfs.c')
-rw-r--r--mali_kbase/mali_kbase_jd_debugfs.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mali_kbase/mali_kbase_jd_debugfs.c b/mali_kbase/mali_kbase_jd_debugfs.c
index e9a161f..5dd3f00 100644
--- a/mali_kbase/mali_kbase_jd_debugfs.c
+++ b/mali_kbase/mali_kbase_jd_debugfs.c
@@ -1,6 +1,6 @@
/*
*
- * (C) COPYRIGHT 2014-2019 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2014-2020 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -228,6 +228,12 @@ static const struct file_operations kbasep_jd_debugfs_atoms_fops = {
void kbasep_jd_debugfs_ctx_init(struct kbase_context *kctx)
{
+#if (KERNEL_VERSION(4, 7, 0) <= LINUX_VERSION_CODE)
+ const mode_t mode = S_IRUGO;
+#else
+ const mode_t mode = S_IRUSR;
+#endif
+
/* Caller already ensures this, but we keep the pattern for
* maintenance safety.
*/
@@ -236,7 +242,7 @@ void kbasep_jd_debugfs_ctx_init(struct kbase_context *kctx)
return;
/* Expose all atoms */
- debugfs_create_file("atoms", S_IRUGO, kctx->kctx_dentry, kctx,
+ debugfs_create_file("atoms", mode, kctx->kctx_dentry, kctx,
&kbasep_jd_debugfs_atoms_fops);
}