[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAEYL+X9WUbbo1U+vw6Ybd6wPz7VPiGA1kgM-fQU5D_+Qe25vmQ@mail.gmail.com>
Date: Sun, 4 Dec 2022 14:06:58 +1100
From: Zopolis0 <creatorsmithmdt@...il.com>
To: linux-kernel@...r.kernel.org
Subject: PATCH [2/2] gcn-gqr: remove "struct file *" argument of
proc_dointvec() call
>From bc3ccabbe4f6e8a56c9b2ab5cb8fe9915739283a Mon Sep 17 00:00:00 2001
From: Albert Herranz <albert_herranz@...oo.es>
Date: Thu, 1 Oct 2009 19:12:08 +0200
Subject: [PATCH 2/2] gcn-gqr: remove "struct file *" argument of
proc_dointvec() call
Adhere to the function parameter changes introduced in
commit 8d65af789f3e2cf4cfbdbf71a0f7a61ebcd41d38.
While at it, use 'struct ctl_table' instead of 'ctl_table'.
Signed-off-by: Albert Herranz <albert_herranz@...oo.es>
---
drivers/misc/gcn-gqr.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/misc/gcn-gqr.c b/drivers/misc/gcn-gqr.c
index 66482653f8ef..ff390eb79a06 100644
--- a/drivers/misc/gcn-gqr.c
+++ b/drivers/misc/gcn-gqr.c
@@ -37,7 +37,7 @@ static struct ctl_table_header *gqr_table_header;
#define MFSPR_CASE(i) case (i): (*((u32 *)table->data) = mfspr(SPR_GQR##i))
#define MTSPR_CASE(i) case (i): mtspr(SPR_GQR##i, *((u32 *)table->data))
-static int proc_dogqr(ctl_table *table, int write, struct file *file,
+static int proc_dogqr(struct ctl_table *table, int write,
void __user *buffer, size_t *lenp, loff_t *ppos)
{
int r;
@@ -57,7 +57,7 @@ static int proc_dogqr(ctl_table *table, int write,
struct file *file,
}
}
- r = proc_dointvec(table, write, file, buffer, lenp, ppos);
+ r = proc_dointvec(table, write, buffer, lenp, ppos);
if ((r == 0) && write) { /* if they are writing, update the reg */
switch (table->data - (void *)gqr_values) {
@@ -86,7 +86,7 @@ static int proc_dogqr(ctl_table *table, int write,
struct file *file,
.proc_handler = &proc_dogqr \
}
-static ctl_table gqr_members[] = {
+static struct ctl_table gqr_members[] = {
DECLARE_GQR(0),
DECLARE_GQR(1),
DECLARE_GQR(2),
@@ -98,7 +98,7 @@ static ctl_table gqr_members[] = {
{ .ctl_name = 0 }
};
-static ctl_table gqr_table[] = {
+static struct ctl_table gqr_table[] = {
{
.ctl_name = CTL_UNNUMBERED,
.procname = "gqr",
--
2.38.1
Powered by blists - more mailing lists