From: Julia Lawall Date: Mon, 13 Oct 2014 22:52:26 +0000 (-0700) Subject: rtc: use c99 initializers in structures X-Git-Tag: omap-for-v3.19/prcm-cleanup~76^2~93 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=473b86451276d6d342ecd26d5e503163c30ea974;p=pandora-kernel.git rtc: use c99 initializers in structures Use c99 initializers for structures. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; ...}; @bad@ identifier decl.i1,i2; expression e; initializer list[decl.n] is; @@ struct i1 i2 = { is, + .fld = e - e ,...}; // Signed-off-by: Julia Lawall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed