]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: use __packed instead of __attribute__((packed))
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 28 Mar 2011 07:04:09 +0000 (10:04 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 14 Apr 2011 08:34:41 +0000 (11:34 +0300)
commit0db83c8cd9ebd09f9a865dd5c21bf8928d28cf00
tree1804290f2659105b2bd00e4d31f677f43f7d0dc1
parenta7823bb39f529d770d27aba18f2d0b67412857c5
UBI: 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 UBI to use __packed, so let's do it.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/ubi-media.h
include/mtd/ubi-user.h