[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1207091514310.32082@chino.kir.corp.google.com>
Date: Mon, 9 Jul 2012 15:23:16 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: linux-kernel@...r.kernel.org
cc: mm-commits@...r.kernel.org, joe@...ches.com, apw@...onical.com
Subject: Re: + checkpatch-add-check-for-use-of-sizeof-without-parenthesis.patch
added to -mm tree
On Mon, 9 Jul 2012, akpm@...ux-foundation.org wrote:
> From: Joe Perches <joe@...ches.com>
> Subject: checkpatch: Add acheck for use of sizeof without parenthesis
>
> Kernel style uses parenthesis around sizeof.
>
Nack, there's a difference between "sizeof *task" and
"sizeof(struct task_struct)". The former operates on a unary expression
and the latter operates on a type. There are over 1000 occurrences in the
kernel where the sizeof operator, the former, is used on a unary
expression.
--
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