From patchwork Fri Mar 29 17:50:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 15771 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DFB0323E75 for ; Fri, 29 Mar 2013 17:50:17 +0000 (UTC) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by fiordland.canonical.com (Postfix) with ESMTP id 8E48FA18E9E for ; Fri, 29 Mar 2013 17:50:17 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id ht11so708963vcb.27 for ; Fri, 29 Mar 2013 10:50:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=KpaGR3cCBewBi9/MT2UjoSOwys4hbJpj6KwScwnTdio=; b=gSA2CTEP/5hce4TkJEJW/OLOvXdBiKe+95eeQuI9Rq0vFfMPt+dFSs0eBnzh1UZmYq gUrOGHGRfSrYp02QVX8Ky9KOb8aL7aV2Y+DRPnNBOWXgM5lvJ+CrjkBtuWD/AEEqXBPP BwEkR5fmEypvIgXa0xdXFFiAdy0ZIipTR5iUcEozypZYzWq01+A8Oye2y0XjH8OcgeOG bBNwoQIWj4OaLQWrNY+7t/pCVGlyjFB8g0olZOHrZjSWcImQn3fHXRWNgxjzev/FU/Yu fiS++AHqVGBt/50Kh7o+yLF9DQEyx5A6RAFIZuA0EWHNJV+SANJOQPxn92wI++gtQbyE PoIg== X-Received: by 10.220.150.74 with SMTP id x10mr2442078vcv.68.1364579417079; Fri, 29 Mar 2013 10:50:17 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp70120ved; Fri, 29 Mar 2013 10:50:16 -0700 (PDT) X-Received: by 10.68.254.35 with SMTP id af3mr4842119pbd.176.1364579415855; Fri, 29 Mar 2013 10:50:15 -0700 (PDT) Received: from mail-da0-x236.google.com (mail-da0-x236.google.com [2607:f8b0:400e:c00::236]) by mx.google.com with ESMTPS id tm7si3745767pbc.240.2013.03.29.10.50.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 10:50:15 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::236 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=2607:f8b0:400e:c00::236; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400e:c00::236 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) smtp.mail=john.stultz@linaro.org Received: by mail-da0-f54.google.com with SMTP id p1so295043dad.13 for ; Fri, 29 Mar 2013 10:50:15 -0700 (PDT) X-Received: by 10.66.14.232 with SMTP id s8mr5772598pac.13.1364579415207; Fri, 29 Mar 2013 10:50:15 -0700 (PDT) Received: from localhost.localdomain (c-24-21-54-107.hsd1.or.comcast.net. [24.21.54.107]) by mx.google.com with ESMTPS id jk1sm3577836pbb.14.2013.03.29.10.50.13 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 10:50:14 -0700 (PDT) From: John Stultz To: lkml Cc: Dmitry Pervushin , Erik Gilling , Greg KH , =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= , Android Kernel Team , John Stultz Subject: [PATCH] staging: sync: Add compat_ioctl handlers to sync drivers Date: Fri, 29 Mar 2013 10:50:02 -0700 Message-Id: <1364579403-28621-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQns8VGWZj+2BIR/qIA5hcF6U96TcIz6SZUuRutIbzUoW0E2tWMrm32O4LZnlvV3i57SPyMe From: Dmitry Pervushin The sync drivers are missing compat_ioctl handlers, so this patch adds them. Cc: Erik Gilling Cc: Greg KH Cc: Dmitry Pervushin Cc: Bernhard Rosenkränzer Cc: Android Kernel Team Signed-off-by: Dmitry Pervushin Signed-off-by: John Stultz --- This applies against staging-next. The same change has been submitted to AOSP: https://android-review.googlesource.com/#/c/54901/ Change-Id: If1a1ecc3952b321c8d64c6a8b050104859efc4b1 drivers/staging/android/sw_sync.c | 1 + drivers/staging/android/sync.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c index ec7de30..4928f93 100644 --- a/drivers/staging/android/sw_sync.c +++ b/drivers/staging/android/sw_sync.c @@ -239,6 +239,7 @@ static const struct file_operations sw_sync_fops = { .open = sw_sync_open, .release = sw_sync_release, .unlocked_ioctl = sw_sync_ioctl, + .compat_ioctl = sw_sync_ioctl, }; static struct miscdevice sw_sync_dev = { diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index bf66c19..3893a35 100644 --- a/drivers/staging/android/sync.c +++ b/drivers/staging/android/sync.c @@ -248,6 +248,7 @@ static const struct file_operations sync_fence_fops = { .release = sync_fence_release, .poll = sync_fence_poll, .unlocked_ioctl = sync_fence_ioctl, + .compat_ioctl = sync_fence_ioctl, }; static struct sync_fence *sync_fence_alloc(const char *name)