From: Gianluca Gennari Date: Tue, 6 Mar 2012 12:47:45 +0000 (-0300) Subject: [media] as102: add __packed attribute to structs defined inside packed structs X-Git-Tag: v3.4-rc1~110^2^2~73 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abf9d005375d6c6160cc9c17e5dcac32e412c8dc;p=pandora-kernel.git [media] as102: add __packed attribute to structs defined inside packed structs This patch fixes a regression in kernel 3.3 due to this patch: http://patchwork.linuxtv.org/patch/8332/ That patch changes "#pragma pack(1)" with "__packed" attributes, but it is not complete. In fact, in the as102 driver there are a lot of structs/unions defined inside other structs/unions. When the "__packed" attribute is applied only on the external struct, it will not affect the internal struct definitions. So the regression is fixed by specifiying the "__packed" attribute also on the internal structs. This patch should go into 3.3, as it fixes a regression introduced in the new kernel version. Signed-off-by: Gianluca Gennari Signed-off-by: Ryley Angus Cc: stable@kernel.org # for v3.3 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed