Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932828AbZDIKd0 (ORCPT ); Thu, 9 Apr 2009 06:33:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754059AbZDIKdO (ORCPT ); Thu, 9 Apr 2009 06:33:14 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:52568 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751551AbZDIKdN (ORCPT ); Thu, 9 Apr 2009 06:33:13 -0400 X-Sasl-enc: npxwAsQwwfAHnR/8M8Ms6MWNl+Q4sj2c/zs9kTaBKiw3 1239273117 Message-ID: <49DDCE99.3060907@fastmail.fm> Date: Thu, 09 Apr 2009 11:31:53 +0100 From: Jack Stone User-Agent: Thunderbird 2.0.0.21 (X11/20090325) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org CC: jeff@garzik.org, kernel-janitors@vger.kernel.org, davem@davemloft.net Subject: Re: [PATCH 49/56] sparc: Remove void casts References: <> <1239189748-11703-35-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-36-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-37-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-38-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-39-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-40-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-41-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-42-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-43-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-44-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-45-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-46-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-47-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-48-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-49-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-50-git-send-email-jwjstone@fastmail.fm> In-Reply-To: <1239189748-11703-50-git-send-email-jwjstone@fastmail.fm> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3794 Lines: 94 [Added maintainer CC] Jack Stone wrote: > Remove uneeded void casts > > Signed-Off-By: Jack Stone > --- > arch/sparc/kernel/iommu.c | 2 +- > arch/sparc/kernel/signal32.c | 6 ++---- > arch/sparc/kernel/signal_32.c | 6 ++---- > arch/sparc/kernel/signal_64.c | 3 +-- > 4 files changed, 6 insertions(+), 11 deletions(-) > > diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c > index d8900e1..792c0e8 100644 > --- a/arch/sparc/kernel/iommu.c > +++ b/arch/sparc/kernel/iommu.c > @@ -220,7 +220,7 @@ int iommu_table_init(struct iommu *iommu, int tsbsize, > printk(KERN_ERR "IOMMU: Error, gfp(tsb) failed.\n"); > goto out_free_dummy_page; > } > - iommu->page_table = (iopte_t *)page_address(page); > + iommu->page_table = page_address(page); > > for (i = 0; i < num_tsb_entries; i++) > iopte_make_dummy(iommu, &iommu->page_table[i]); > diff --git a/arch/sparc/kernel/signal32.c b/arch/sparc/kernel/signal32.c > index ba5b09a..432a0ad 100644 > --- a/arch/sparc/kernel/signal32.c > +++ b/arch/sparc/kernel/signal32.c > @@ -468,8 +468,7 @@ static void setup_frame32(struct k_sigaction *ka, struct pt_regs *regs, > if (!(current_thread_info()->fpsaved[0] & FPRS_FEF)) > sigframe_size -= sizeof(__siginfo_fpu_t); > > - sf = (struct signal_frame32 __user *) > - get_sigframe(&ka->sa, regs, sigframe_size); > + sf = get_sigframe(&ka->sa, regs, sigframe_size); > > if (invalid_frame_pointer(sf, sigframe_size)) > goto sigill; > @@ -603,8 +602,7 @@ static void setup_rt_frame32(struct k_sigaction *ka, struct pt_regs *regs, > if (!(current_thread_info()->fpsaved[0] & FPRS_FEF)) > sigframe_size -= sizeof(__siginfo_fpu_t); > > - sf = (struct rt_signal_frame32 __user *) > - get_sigframe(&ka->sa, regs, sigframe_size); > + sf = get_sigframe(&ka->sa, regs, sigframe_size); > > if (invalid_frame_pointer(sf, sigframe_size)) > goto sigill; > diff --git a/arch/sparc/kernel/signal_32.c b/arch/sparc/kernel/signal_32.c > index 181d069..45ef48e 100644 > --- a/arch/sparc/kernel/signal_32.c > +++ b/arch/sparc/kernel/signal_32.c > @@ -326,8 +326,7 @@ static void setup_frame(struct k_sigaction *ka, struct pt_regs *regs, > if (!used_math()) > sigframe_size -= sizeof(__siginfo_fpu_t); > > - sf = (struct signal_frame __user *) > - get_sigframe(&ka->sa, regs, sigframe_size); > + sf = get_sigframe(&ka->sa, regs, sigframe_size); > > if (invalid_frame_pointer(sf, sigframe_size)) > goto sigill_and_return; > @@ -402,8 +401,7 @@ static void setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs, > sigframe_size = RT_ALIGNEDSZ; > if (!used_math()) > sigframe_size -= sizeof(__siginfo_fpu_t); > - sf = (struct rt_signal_frame __user *) > - get_sigframe(&ka->sa, regs, sigframe_size); > + sf = get_sigframe(&ka->sa, regs, sigframe_size); > if (invalid_frame_pointer(sf, sigframe_size)) > goto sigill; > if (current_thread_info()->w_saved != 0) > diff --git a/arch/sparc/kernel/signal_64.c b/arch/sparc/kernel/signal_64.c > index ec82d76..638bfe6 100644 > --- a/arch/sparc/kernel/signal_64.c > +++ b/arch/sparc/kernel/signal_64.c > @@ -422,8 +422,7 @@ setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs, > if (!(current_thread_info()->fpsaved[0] & FPRS_FEF)) > sigframe_size -= sizeof(__siginfo_fpu_t); > > - sf = (struct rt_signal_frame __user *) > - get_sigframe(ka, regs, sigframe_size); > + sf = get_sigframe(ka, regs, sigframe_size); > > if (invalid_frame_pointer (sf, sigframe_size)) > goto sigill; > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/