]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: use __packed instead of __attribute__((packed))
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 25 Mar 2011 13:37:35 +0000 (15:37 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 13 May 2011 16:23:53 +0000 (19:23 +0300)
commitd5d3c5ab7b5914c8931d72a99a6cf3013ff4e310
tree9b8058302b65896e1dcf2bdac408939680fcba2e
parent316ad36f91e282daf77aa742ee6bcab5924b6575
UBIFS: use __packed instead of __attribute__((packed))

There was an attempt to standartize various "__attribute__" and
other macros in order to have potentially portable and more
consistent code, see commit c24cd302fdf8d8c2848fb649714df15d6da23187.

Note, that commit refers Rober Love's blog post, but the URL
is broken, the valid URL is:
http://blog.rlove.org/2005/10/with-little-help-from-your-compiler.html

Moreover, nowadays checkpatch.pl warns about using
__attribute__((packed)):

"WARNING: __packed is preferred over __attribute__((packed))"

It is not a big deal for UBIFS to use __packed, so let's do it.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/ubifs-media.h