From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757983AbcFAI7O (ORCPT ); Wed, 1 Jun 2016 04:59:14 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:30081 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757467AbcFAI7K (ORCPT ); Wed, 1 Jun 2016 04:59:10 -0400 X-AuditID: cbfec7f4-f796c6d000001486-f9-574ea3db03d9 From: Jungseung Lee To: Thomas Gleixner , Richard Cochran , linux-kernel@vger.kernel.org Cc: Jungseung Lee Subject: [PATCH] posix-clock: remove unneeded posix_clock_compat_ioctl() Date: Wed, 01 Jun 2016 17:54:41 +0900 Message-id: <1464771281-13248-1-git-send-email-js07.lee@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOJMWRmVeSWpSXmKPExsVy+t/xq7q3F/uFG3y9Jm7x6OZvVovLu+aw WRw584LZYvOmqcwOLB47Z91l93h37hy7R9+WVYwenzfJBbBEcdmkpOZklqUW6dslcGW0bZrL WtDMXdHyfzJzA2MXZxcjJ4eEgInEnbNnmSFsMYkL99azdTFycQgJLGWUONrwlRHCaWSSON3f wQ5SxSagJXHj9yZWEFtEoERi27KTbCA2s4CGxO8DN1lAbGEBD4n1z2eB2SwCqhLn7iwBq+EV cJE4f/g7UC8H0DYFiTmTbCYwci9gZFjFKJpamlxQnJSea6hXnJhbXJqXrpecn7uJEeL9LzsY Fx+zOsQowMGoxMOrcNE3XIg1say4MvcQowQHs5IIr+Bkv3Ah3pTEyqrUovz4otKc1OJDjNIc LErivHN3vQ8REkhPLEnNTk0tSC2CyTJxcEo1MGp96PuypoGXaXus7Z5z9i9Vd864sfGvlnBr ektXyi2bdw/f/56Tfvf8tdjOrRPfxksWaa6YfCf22xbZ5bUrSkLYNLov79qz+96G5GWLC0rS OG0UNVQD2q8t+q1fbCrve11jRrr4iZU/ylRO/gxRK5hlpyV5//uCriMSfG+WHPuS9eHqNkuj qutKLMUZiYZazEXFiQDIIbnY+gEAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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