On Mon, 9 Jul 2012, a...@linux-foundation.org wrote: > From: Joe Perches <j...@perches.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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/