From: Alan Ott <alan@signal11.us>
To: Jiri Kosina <jkosina@suse.cz>,
Stefan Achatz <erazor_de@users.sourceforge.net>,
Antonio Ospite <ospite@studenti.unina.it>,
Tejun Heo <tj@kernel.org>, Marcel Holtmann <marcel@holtmann.org>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Alan Ott <alan@signal11.us>
Subject: [PATCH 1/1] hidraw: Added Compatibility ioctl() for 32-bit applications.
Date: Tue, 4 Jan 2011 00:37:22 -0500 [thread overview]
Message-ID: <1294119442-6827-2-git-send-email-alan@signal11.us> (raw)
In-Reply-To: <1294119442-6827-1-git-send-email-alan@signal11.us>
Added the ioctl function to the compat_ioctl pointer in the file_operations struct. Before this, some ioctls would fail for 32-bit apps on 64-bit systems.
Signed-off-by: Alan Ott <alan@signal11.us>
---
drivers/hid/hidraw.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c
index 29495e6..57ccc5f 100644
--- a/drivers/hid/hidraw.c
+++ b/drivers/hid/hidraw.c
@@ -428,6 +428,9 @@ static const struct file_operations hidraw_ops = {
.open = hidraw_open,
.release = hidraw_release,
.unlocked_ioctl = hidraw_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = hidraw_ioctl,
+#endif
};
void hidraw_report_event(struct hid_device *hid, u8 *data, int len)
--
1.7.0.4
next prev parent reply other threads:[~2011-01-04 6:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 5:37 [PATCH 0/1] hidraw: compat_ioctl for hidraw Alan Ott
2011-01-04 5:37 ` Alan Ott [this message]
2011-01-04 10:18 ` [PATCH 1/1] hidraw: Added Compatibility ioctl() for 32-bit applications Arnd Bergmann
2011-01-04 10:25 ` Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294119442-6827-2-git-send-email-alan@signal11.us \
--to=alan@signal11.us \
--cc=erazor_de@users.sourceforge.net \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=ospite@studenti.unina.it \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®