All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/fork.c: use sizeof() instead of sizeof
@ 2016-02-02  7:53 Wei Tang
  2016-02-02  9:11 ` Ingo Molnar
  0 siblings, 1 reply; 11+ messages in thread
From: Wei Tang @ 2016-02-02  7:53 UTC (permalink / raw)
  To: akpm, mingo
  Cc: peterz, tj, kirill.shutemov, jason.low2, xypron.glpk, oleg,
	koct9i, josh, ebiederm, cyphar, linux-kernel, Wei Tang

This patch fixes the checkpatch.pl warning to fork.c:

WARNING: sizeof sig->rlim should be sizeof(sig->rlim)

Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com>
---
 kernel/fork.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/fork.c b/kernel/fork.c
index 2e391c7..30e04d2 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1143,7 +1143,7 @@ static int copy_signal(unsigned long clone_flags, struct task_struct *tsk)
 	sig->real_timer.function = it_real_fn;
 
 	task_lock(current->group_leader);
-	memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim);
+	memcpy(sig->rlim, current->signal->rlim, sizeof(sig->rlim));
 	task_unlock(current->group_leader);
 
 	posix_cpu_timers_init_group(sig);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-02-03  4:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02  7:53 [PATCH] kernel/fork.c: use sizeof() instead of sizeof Wei Tang
2016-02-02  9:11 ` Ingo Molnar
2016-02-02 11:28   ` [PATCH] treewide: Use 'sizeof(x)' instead of 'sizeof x' Ingo Molnar
2016-02-02 13:58     ` Joe Perches
2016-02-02 15:45   ` [PATCH] kernel/fork.c: use sizeof() instead of sizeof Al Viro
2016-02-02 17:02     ` Joe Perches
2016-02-02 17:11       ` Al Viro
2016-02-02 17:21         ` Joe Perches
     [not found]     ` <CAOviyajXB2y5zuFhdRPQfVSe_NYvaFjjUz6f86e791AvFPYfMw@mail.gmail.com>
2016-02-02 17:04       ` Al Viro
2016-02-03  3:46         ` Kevin Easton
2016-02-03  4:02           ` Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.