mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Burton <paul.burton@imgtec.com>
To: <linux-mips@linux-mips.org>
Cc: Guenter Roeck <linux@roeck-us.net>,
	Matthew Fortune <matthew.fortune@imgtec.com>,
	Paul Burton <paul.burton@imgtec.com>,
	"Michael Ellerman" <mpe@ellerman.id.au>,
	<linux-kernel@vger.kernel.org>,
	"Richard Weinberger" <richard@nod.at>,
	Andy Lutomirski <luto@amacapital.net>,
	"Ralf Baechle" <ralf@linux-mips.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH v2 08/16] MIPS: remove unused {get,put}_sigset functions
Date: Mon, 27 Jul 2015 12:58:19 -0700	[thread overview]
Message-ID: <1438027107-24420-9-git-send-email-paul.burton@imgtec.com> (raw)
In-Reply-To: <1438027107-24420-1-git-send-email-paul.burton@imgtec.com>

These functions are never called & thus dead code. Remove them.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
---

Changes in v2: None

 arch/mips/kernel/signal32.c | 51 ---------------------------------------------
 1 file changed, 51 deletions(-)

diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c
index 2a7c6dd..3059f36 100644
--- a/arch/mips/kernel/signal32.c
+++ b/arch/mips/kernel/signal32.c
@@ -131,57 +131,6 @@ static int restore_sigcontext32(struct pt_regs *regs,
 }
 
 /*
- *
- */
-extern void __put_sigset_unknown_nsig(void);
-extern void __get_sigset_unknown_nsig(void);
-
-static inline int put_sigset(const sigset_t *kbuf, compat_sigset_t __user *ubuf)
-{
-	int err = 0;
-
-	if (!access_ok(VERIFY_WRITE, ubuf, sizeof(*ubuf)))
-		return -EFAULT;
-
-	switch (_NSIG_WORDS) {
-	default:
-		__put_sigset_unknown_nsig();
-	case 2:
-		err |= __put_user(kbuf->sig[1] >> 32, &ubuf->sig[3]);
-		err |= __put_user(kbuf->sig[1] & 0xffffffff, &ubuf->sig[2]);
-	case 1:
-		err |= __put_user(kbuf->sig[0] >> 32, &ubuf->sig[1]);
-		err |= __put_user(kbuf->sig[0] & 0xffffffff, &ubuf->sig[0]);
-	}
-
-	return err;
-}
-
-static inline int get_sigset(sigset_t *kbuf, const compat_sigset_t __user *ubuf)
-{
-	int err = 0;
-	unsigned long sig[4];
-
-	if (!access_ok(VERIFY_READ, ubuf, sizeof(*ubuf)))
-		return -EFAULT;
-
-	switch (_NSIG_WORDS) {
-	default:
-		__get_sigset_unknown_nsig();
-	case 2:
-		err |= __get_user(sig[3], &ubuf->sig[3]);
-		err |= __get_user(sig[2], &ubuf->sig[2]);
-		kbuf->sig[1] = sig[2] | (sig[3] << 32);
-	case 1:
-		err |= __get_user(sig[1], &ubuf->sig[1]);
-		err |= __get_user(sig[0], &ubuf->sig[0]);
-		kbuf->sig[0] = sig[0] | (sig[1] << 32);
-	}
-
-	return err;
-}
-
-/*
  * Atomically swap in the new signal mask, and wait for a signal.
  */
 
-- 
2.4.6


  parent reply	other threads:[~2015-07-27 20:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 19:58 [PATCH v2 00/16] MSA vector context signal handling & HWCAPs Paul Burton
2015-07-27 19:58 ` [PATCH v2 01/16] MIPS: remove outdated comments in sigcontext.h Paul Burton
2015-07-28  8:39   ` Ralf Baechle
2015-07-27 19:58 ` [PATCH v2 02/16] MIPS: simplify EVA FP context handling code Paul Burton
2015-07-27 19:58 ` [PATCH v2 03/16] MIPS: add offsets to sigcontext FP fields to struct mips_abi Paul Burton
2015-07-27 19:58 ` [PATCH v2 04/16] MIPS: use struct mips_abi offsets to save FP context Paul Burton
2015-07-27 19:58 ` [PATCH v2 05/16] MIPS: move FP usage checks into protected_{save,restore}_fp_context Paul Burton
2015-07-27 19:58 ` [PATCH v2 06/16] MIPS: skip odd double FP registers when copying FP32 sigcontext Paul Burton
2015-07-27 19:58 ` [PATCH v2 07/16] MIPS: use common FP sigcontext code for O32 compat Paul Burton
2015-07-27 19:58 ` Paul Burton [this message]
2015-07-27 19:58 ` [PATCH v2 09/16] MIPS: indicate FP mode in sigcontext sc_used_math Paul Burton
2015-07-27 19:58 ` [PATCH v2 10/16] MIPS: add definitions for extended context Paul Burton
2015-07-27 19:58 ` [PATCH v2 11/16] MIPS: save MSA extended context around signals Paul Burton
2015-07-27 19:58 ` [PATCH v2 12/16] MIPS: AT_HWCAP aux vector infrastructure Paul Burton
2015-07-27 19:58 ` [PATCH v2 13/16] MIPS: advertise MIPSr6 via HWCAP when appropriate Paul Burton
2015-07-27 19:58 ` [PATCH v2 14/16] MIPS: advertise MSA support via HWCAP when present Paul Burton
2015-07-27 19:58 ` [PATCH v2 15/16] MIPS: require O32 FP64 support for MIPS64 with O32 compat Paul Burton
2015-07-27 19:58 ` [PATCH v2 16/16] MIPS: drop EXPERIMENTAL tag from O32+FP64 & MSA Paul Burton

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=1438027107-24420-9-git-send-email-paul.burton@imgtec.com \
    --to=paul.burton@imgtec.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux@roeck-us.net \
    --cc=luto@amacapital.net \
    --cc=matthew.fortune@imgtec.com \
    --cc=mpe@ellerman.id.au \
    --cc=ralf@linux-mips.org \
    --cc=richard@nod.at \
    /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®