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: <4A96A15C.9020800@redhat.com>
Date:	Thu, 27 Aug 2009 11:08:12 -0400
From:	Masami Hiramatsu <mhiramat@...hat.com>
To:	Frederic Weisbecker <fweisbec@...il.com>
CC:	Ingo Molnar <mingo@...e.hu>, LKML <linux-kernel@...r.kernel.org>,
	Li Zefan <lizf@...fujitsu.com>,
	Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH 20/18] tracing: Remove unneeded pointer casts

Frederic Weisbecker wrote:
> Cleaup uneeded casts from void * to char * in syscalls tracing file.
> 
> Reported-by: Li Zefan<lizf@...fujitsu.com>
> Signed-off-by: Frederic Weisbecker<fweisbec@...il.com
> Cc: Steven Rostedt<rostedt@...dmis.org>

Acked-by: Masami Hiramatsu <mhiramat@...hat.com>

> ---
>   kernel/trace/trace_syscalls.c |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
> index a928dd0..e7c676e 100644
> --- a/kernel/trace/trace_syscalls.c
> +++ b/kernel/trace/trace_syscalls.c
> @@ -324,7 +324,7 @@ int reg_event_syscall_exit(struct ftrace_event_call *call)
>   	int num;
>   	char *name;
> 
> -	name = (char *)call->data;
> +	name = call->data;
>   	num = syscall_name_to_nr(name);
>   	if (num<  0 || num>= FTRACE_SYSCALL_MAX)
>   		return -ENOSYS;
> @@ -347,7 +347,7 @@ void unreg_event_syscall_exit(struct ftrace_event_call *call)
>   	int num;
>   	char *name;
> 
> -	name = (char *)call->data;
> +	name = call->data;
>   	num = syscall_name_to_nr(name);
>   	if (num<  0 || num>= FTRACE_SYSCALL_MAX)
>   		return;

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: mhiramat@...hat.com

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