lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49DDCE99.3060907@fastmail.fm>
Date:	Thu, 09 Apr 2009 11:31:53 +0100
From:	Jack Stone <jwjstone@...tmail.fm>
To:	linux-kernel@...r.kernel.org
CC:	jeff@...zik.org, kernel-janitors@...r.kernel.org,
	davem@...emloft.net
Subject: Re: [PATCH 49/56] sparc: Remove void casts

[Added maintainer CC]
Jack Stone wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@...tmail.fm>
> ---
>  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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ