[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1464771281-13248-1-git-send-email-js07.lee@samsung.com>
Date: Wed, 01 Jun 2016 17:54:41 +0900
From: Jungseung Lee <js07.lee@...sung.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Richard Cochran <richardcochran@...il.com>,
linux-kernel@...r.kernel.org
Cc: Jungseung Lee <js07.lee@...sung.com>
Subject: [PATCH] posix-clock: remove unneeded posix_clock_compat_ioctl()
posix_clock_compat_ioctl() is identical to posix_clock_ioctl().
We don't need additional compat_ioctl in this time.
Remove posix_clock_compat_ioctl() and let posix_clock_ioctl() is in charge.
Signed-off-by: Jungseung Lee <js07.lee@...sung.com>
---
kernel/time/posix-clock.c | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/kernel/time/posix-clock.c b/kernel/time/posix-clock.c
index 9cff0ab..d46ac80 100644
--- a/kernel/time/posix-clock.c
+++ b/kernel/time/posix-clock.c
@@ -131,25 +131,6 @@ static long posix_clock_ioctl(struct file *fp,
return err;
}
-#ifdef CONFIG_COMPAT
-static long posix_clock_compat_ioctl(struct file *fp,
- unsigned int cmd, unsigned long arg)
-{
- struct posix_clock *clk = get_posix_clock(fp);
- int err = -ENOTTY;
-
- if (!clk)
- return -ENODEV;
-
- if (clk->ops.ioctl)
- err = clk->ops.ioctl(clk, cmd, arg);
-
- put_posix_clock(clk);
-
- return err;
-}
-#endif
-
static int posix_clock_open(struct inode *inode, struct file *fp)
{
int err;
@@ -201,9 +182,6 @@ static const struct file_operations posix_clock_file_operations = {
.release = posix_clock_release,
.fasync = posix_clock_fasync,
.mmap = posix_clock_mmap,
-#ifdef CONFIG_COMPAT
- .compat_ioctl = posix_clock_compat_ioctl,
-#endif
};
int posix_clock_register(struct posix_clock *clk, dev_t devid)
--
1.7.9.5
Powered by blists - more mailing lists