public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Arun Sharma <arun.sharma@intel.com>
To: linux-arch@vger.kernel.org
Subject: [PATCH] Move TCSBRKP to compat_ioctl.h
Date: Fri, 29 Oct 2004 14:24:37 -0700	[thread overview]
Message-ID: <4182B515.80502@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 86 bytes --]


Since TCSBRK is already in compat_ioctl.h, we think TCSBRKP should also be.

	-Arun


[-- Attachment #2: tcsbrkp-compat-ioctl.patch --]
[-- Type: text/plain, Size: 2414 bytes --]

Move ioctl TCSBRKP support to compat layer. Same rationale as TCSBRK.

- Remove corresponding code under ppc64, sparc64 and s390.
- Use ULONG_IOCTL() instead of COMPATIBLE_IOCTL(), since the argument is int, 
  not pointer.

Signed-off-by: Gordon Jin <gordon.jin@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>

diff -X dontdiff -purN linux-2.6.8c/arch/ppc64/kernel/ioctl32.c linux-2.6.8-ioctl/arch/ppc64/kernel/ioctl32.c
--- linux-2.6.8c/arch/ppc64/kernel/ioctl32.c	2004-08-31 14:42:43.000000000 +0800
+++ linux-2.6.8-ioctl/arch/ppc64/kernel/ioctl32.c	2004-10-18 09:36:02.509804974 +0800
@@ -41,7 +41,6 @@ IOCTL_TABLE_START
 #include <linux/compat_ioctl.h>
 #define DECLARES
 #include "compat_ioctl.c"
-COMPATIBLE_IOCTL(TCSBRKP)
 COMPATIBLE_IOCTL(TIOCSTART)
 COMPATIBLE_IOCTL(TIOCSTOP)
 COMPATIBLE_IOCTL(TIOCSLTC)
diff -X dontdiff -purN linux-2.6.8c/arch/s390/kernel/compat_ioctl.c linux-2.6.8-ioctl/arch/s390/kernel/compat_ioctl.c
--- linux-2.6.8c/arch/s390/kernel/compat_ioctl.c	2004-08-31 14:42:45.000000000 +0800
+++ linux-2.6.8-ioctl/arch/s390/kernel/compat_ioctl.c	2004-10-18 09:35:32.081094409 +0800
@@ -65,9 +65,6 @@ COMPATIBLE_IOCTL(BIODASDSATTR)
 COMPATIBLE_IOCTL(TAPE390_DISPLAY)
 #endif
 
-/* This one should be architecture independent */
-COMPATIBLE_IOCTL(TCSBRKP)
-
 /* s390 doesn't need handlers here */
 COMPATIBLE_IOCTL(TIOCGSERIAL)
 COMPATIBLE_IOCTL(TIOCSSERIAL)
diff -X dontdiff -purN linux-2.6.8c/arch/sparc64/kernel/ioctl32.c linux-2.6.8-ioctl/arch/sparc64/kernel/ioctl32.c
--- linux-2.6.8c/arch/sparc64/kernel/ioctl32.c	2004-08-31 14:42:34.000000000 +0800
+++ linux-2.6.8-ioctl/arch/sparc64/kernel/ioctl32.c	2004-10-18 09:36:27.043007798 +0800
@@ -475,7 +475,6 @@ IOCTL_TABLE_START
 #include <linux/compat_ioctl.h>
 #define DECLARES
 #include "compat_ioctl.c"
-COMPATIBLE_IOCTL(TCSBRKP)
 COMPATIBLE_IOCTL(TIOCSTART)
 COMPATIBLE_IOCTL(TIOCSTOP)
 COMPATIBLE_IOCTL(TIOCSLTC)
diff -X dontdiff -purN linux-2.6.8c/include/linux/compat_ioctl.h linux-2.6.8-ioctl/include/linux/compat_ioctl.h
--- linux-2.6.8c/include/linux/compat_ioctl.h	2004-08-31 14:43:10.000000000 +0800
+++ linux-2.6.8-ioctl/include/linux/compat_ioctl.h	2004-10-18 09:40:41.587926555 +0800
@@ -16,6 +16,7 @@ COMPATIBLE_IOCTL(TCSETA)
 COMPATIBLE_IOCTL(TCSETAW)
 COMPATIBLE_IOCTL(TCSETAF)
 COMPATIBLE_IOCTL(TCSBRK)
+ULONG_IOCTL(TCSBRKP)
 COMPATIBLE_IOCTL(TCXONC)
 COMPATIBLE_IOCTL(TCFLSH)
 COMPATIBLE_IOCTL(TCGETS)

                 reply	other threads:[~2004-10-29 21:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4182B515.80502@intel.com \
    --to=arun.sharma@intel.com \
    --cc=linux-arch@vger.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