Skip to content

RFC staging: alarm-dev: Cleanups and compat_ioctl support (v2)

John Stultz lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging: alarm-dev: Drop pre Android 1.0 _OLD ioctlsdrivers/staging/android/alarm-dev.c+2 -160 replies
2/3staging: alarm-dev: Refactor alarm-dev ioctl code in prep for compat_ioctldrivers/staging/android/alarm-dev.c+139 -890 replies
3/3staging: alarm-dev: Implement compat_ioctl supportdrivers/staging/android/alarm-dev.c drivers/staging/android/android_alarm.h+54 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 0/3] staging: alarm-dev: Cleanups and compat_ioctl support (v2)

Here is the second revision at implementing compat_ioctl support for Android's alarm-dev driver in staging.

The first patch removes the pre-Android 1.0 _OLD ioctls, per Colin's suggestion. Then the second patch does some refactoring to cleanup and separate the copying of user data from the logic, and the final patch adds the compat_ioctl support.

I've tested this with a trivial unit test compiled for both 32bit and 64bit on a x86_64 kernel, and it looks ok, but closer review would be appreciated to make sure I didn't break anything.

Additional feedback or thoughts would be welcome!

thanks
-john

Cc Greg KH <[email protected]>
Cc Serban Constantinescu <[email protected]>
Cc Arve Hjønnevåg <[email protected]>
Cc Colin Cross <[email protected]>
Cc Android Kernel Team <[email protected]>

John Stultz (3):
staging: alarm-dev: Drop pre Android 1.0 _OLD ioctls
staging: alarm-dev: Refactor alarm-dev ioctl code in prep for
compat_ioctl
staging: alarm-dev: Implement compat_ioctl support

 drivers/staging/android/alarm-dev.c     |  277 +++++++++++++++++++------------
 drivers/staging/android/android_alarm.h |   19 +++
 2 files changed, 193 insertions(+), 103 deletions(-)
Signature · 1 line
1.7.10.4