From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.c | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.c b/kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.c
index 973739f..c846491 100644
--- a/kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.c
+++ b/kernel/drivers/gpu/arm/bifrost/mali_kbase_debugfs_helper.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
/*
*
- * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2019-2023 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
@@ -34,20 +34,20 @@
/**
* set_attr_from_string - Parse a string to set elements of an array
*
- * This is the core of the implementation of
- * kbase_debugfs_helper_set_attr_from_string. The only difference between the
- * two functions is that this one requires the input string to be writable.
- *
* @buf: Input string to parse. Must be nul-terminated!
* @array: Address of an object that can be accessed like an array.
* @nelems: Number of elements in the array.
* @set_attr_fn: Function to be called back for each array element.
*
+ * This is the core of the implementation of
+ * kbase_debugfs_helper_set_attr_from_string. The only difference between the
+ * two functions is that this one requires the input string to be writable.
+ *
* Return: 0 if success, negative error code otherwise.
*/
static int
set_attr_from_string(char *const buf, void *const array, size_t const nelems,
- kbase_debugfs_helper_set_attr_fn *const set_attr_fn)
+ kbase_debugfs_helper_set_attr_fn * const set_attr_fn)
{
size_t index, err = 0;
char *ptr = buf;
@@ -90,11 +90,10 @@
int kbase_debugfs_string_validator(char *const buf)
{
- size_t index;
int err = 0;
char *ptr = buf;
- for (index = 0; *ptr; ++index) {
+ while (*ptr) {
unsigned long test_number;
size_t len;
@@ -143,7 +142,7 @@
int kbase_debugfs_helper_set_attr_from_string(
const char *const buf, void *const array, size_t const nelems,
- kbase_debugfs_helper_set_attr_fn *const set_attr_fn)
+ kbase_debugfs_helper_set_attr_fn * const set_attr_fn)
{
char *const wbuf = kstrdup(buf, GFP_KERNEL);
int err = 0;
@@ -168,7 +167,7 @@
ssize_t kbase_debugfs_helper_get_attr_to_string(
char *const buf, size_t const size, void *const array,
size_t const nelems,
- kbase_debugfs_helper_get_attr_fn *const get_attr_fn)
+ kbase_debugfs_helper_get_attr_fn * const get_attr_fn)
{
ssize_t total = 0;
size_t index;
@@ -189,7 +188,7 @@
int kbase_debugfs_helper_seq_write(
struct file *const file, const char __user *const ubuf,
size_t const count, size_t const nelems,
- kbase_debugfs_helper_set_attr_fn *const set_attr_fn)
+ kbase_debugfs_helper_set_attr_fn * const set_attr_fn)
{
const struct seq_file *const sfile = file->private_data;
void *const array = sfile->private;
@@ -228,8 +227,8 @@
}
int kbase_debugfs_helper_seq_read(
- struct seq_file *const sfile, size_t const nelems,
- kbase_debugfs_helper_get_attr_fn *const get_attr_fn)
+ struct seq_file * const sfile, size_t const nelems,
+ kbase_debugfs_helper_get_attr_fn * const get_attr_fn)
{
void *const array = sfile->private;
size_t index;
--
Gitblit v1.6.2