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: <49DDCD3B.7000404@fastmail.fm>
Date:	Thu, 09 Apr 2009 11:26:03 +0100
From:	Jack Stone <jwjstone@...tmail.fm>
To:	linux-kernel@...r.kernel.org
CC:	jeff@...zik.org, kernel-janitors@...r.kernel.org,
	heiko.carstens@...ibm.com, schwidefsky@...ibm.com
Subject: Re: [PATCH 43/56] s390: Remove void casts

[Added maintainer CCs]
Jack Stone wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@...tmail.fm>
> ---
>  arch/s390/math-emu/math.c |   26 +++++++++++++-------------
>  1 files changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/arch/s390/math-emu/math.c b/arch/s390/math-emu/math.c
> index 3ee78cc..c1d43c9 100644
> --- a/arch/s390/math-emu/math.c
> +++ b/arch/s390/math-emu/math.c
> @@ -1917,7 +1917,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>  
>                  emu_store_regd((opcode[1] >> 4) & 15);
>                  opc = *((__u32 *) opcode);
> -                dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +                dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>                  mathemu_copy_from_user(&temp, dxb, 8);
>                  /* call the emulation function */
>                  _fex = ((int (*)(struct pt_regs *, int, double *))
> @@ -1932,7 +1932,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>  
>                  emu_store_rege((opcode[1] >> 4) & 15);
>                  opc = *((__u32 *) opcode);
> -                dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +                dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>                  mathemu_get_user(temp, dxb);
>                  /* call the emulation function */
>                  _fex = ((int (*)(struct pt_regs *, int, float *))
> @@ -1948,7 +1948,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>                  emu_store_regd((opcode[1] >> 4) & 15);
>                  emu_store_regd((opcode[4] >> 4) & 15);
>                  opc = *((__u32 *) opcode);
> -                dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +                dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>                  mathemu_copy_from_user(&temp, dxb, 8);
>                  /* call the emulation function */
>                  _fex = ((int (*)(struct pt_regs *, int, double *, int))
> @@ -1964,7 +1964,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>                  emu_store_rege((opcode[1] >> 4) & 15);
>                  emu_store_rege((opcode[4] >> 4) & 15);
>                  opc = *((__u32 *) opcode);
> -                dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +                dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>                  mathemu_get_user(temp, dxb);
>                  /* call the emulation function */
>                  _fex = ((int (*)(struct pt_regs *, int, float *, int))
> @@ -1982,7 +1982,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>  			return SIGILL;
>                  emu_store_regd((opcode[1] >> 4) & 15);
>                  opc = *((__u32 *) opcode);
> -                dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +                dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>                  mathemu_copy_from_user(&temp, dxb, 8);
>                  /* call the emulation function */
>                  _fex = ((int (*)(struct pt_regs *, int, double *))
> @@ -1999,7 +1999,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>                  __u32 opc;
>                  emu_store_rege((opcode[1] >> 4) & 15);
>                  opc = *((__u32 *) opcode);
> -                dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +                dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>                  mathemu_get_user(temp, dxb);
>                  /* call the emulation function */
>                  _fex = ((int (*)(struct pt_regs *, int, float *))
> @@ -2017,7 +2017,7 @@ int math_emu_ed(__u8 *opcode, struct pt_regs * regs) {
>  			return SIGILL;
>                  emu_store_rege((opcode[1] >> 4) & 15);
>                  opc = *((__u32 *) opcode);
> -                dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +                dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>                  mathemu_get_user(temp, dxb);
>                  /* call the emulation function */
>                  _fex = ((int (*)(struct pt_regs *, int, float *))
> @@ -2148,7 +2148,7 @@ int math_emu_ld(__u8 *opcode, struct pt_regs * regs) {
>          __u32 opc = *((__u32 *) opcode);
>          __u64 *dxb;
>  
> -        dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +        dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>          mathemu_copy_from_user(&fp_regs->fprs[(opc >> 20) & 0xf].d, dxb, 8);
>  	return 0;
>  }
> @@ -2161,7 +2161,7 @@ int math_emu_le(__u8 *opcode, struct pt_regs * regs) {
>          __u32 opc = *((__u32 *) opcode);
>          __u32 *mem, *dxb;
>  
> -        dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +        dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>          mem = (__u32 *) (&fp_regs->fprs[(opc >> 20) & 0xf].f);
>          mathemu_get_user(mem[0], dxb);
>  	return 0;
> @@ -2175,7 +2175,7 @@ int math_emu_std(__u8 *opcode, struct pt_regs * regs) {
>          __u32 opc = *((__u32 *) opcode);
>          __u64 *dxb;
>  
> -        dxb = (__u64 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +        dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>          mathemu_copy_to_user(dxb, &fp_regs->fprs[(opc >> 20) & 0xf].d, 8);
>  	return 0;
>  }
> @@ -2188,7 +2188,7 @@ int math_emu_ste(__u8 *opcode, struct pt_regs * regs) {
>          __u32 opc = *((__u32 *) opcode);
>          __u32 *mem, *dxb;
>  
> -        dxb = (__u32 *) calc_addr(regs, opc >> 16, opc >> 12, opc);
> +        dxb = calc_addr(regs, opc >> 16, opc >> 12, opc);
>          mem = (__u32 *) (&fp_regs->fprs[(opc >> 20) & 0xf].f);
>          mathemu_put_user(mem[0], dxb);
>  	return 0;
> @@ -2201,7 +2201,7 @@ int math_emu_lfpc(__u8 *opcode, struct pt_regs *regs) {
>          __u32 opc = *((__u32 *) opcode);
>          __u32 *dxb, temp;
>  
> -        dxb= (__u32 *) calc_addr(regs, 0, opc>>12, opc);
> +        dxb= calc_addr(regs, 0, opc>>12, opc);
>          mathemu_get_user(temp, dxb);
>          if ((temp & ~FPC_VALID_MASK) != 0)
>  		return SIGILL;
> @@ -2216,7 +2216,7 @@ int math_emu_stfpc(__u8 *opcode, struct pt_regs *regs) {
>          __u32 opc = *((__u32 *) opcode);
>          __u32 *dxb;
>  
> -        dxb= (__u32 *) calc_addr(regs, 0, opc>>12, opc);
> +        dxb= calc_addr(regs, 0, opc>>12, opc);
>          mathemu_put_user(current->thread.fp_regs.fpc, dxb);
>          return 0;
>  }
>   

--
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