]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Use "__attribute__" shortcut macros
authorSven Eckelmann <sven@narfation.org>
Sat, 15 Jan 2011 14:39:43 +0000 (14:39 +0000)
committerSven Eckelmann <sven@narfation.org>
Sun, 16 Jan 2011 02:25:19 +0000 (03:25 +0100)
commitd0c5c992df58ab24a4b898502dfa996a2621d08f
tree19406bf80804801e85cf0182f5037ddfc656465e
parentd71e8cd913d4c5edaf0cc0447a691f62d14ba445
batman-adv: Use "__attribute__" shortcut macros

Linux 2.6.21 defines different macros for __attribute__ which are also
used inside batman-adv. The next version of checkpatch.pl warns about
the usage of __attribute__((packed))).

Linux 2.6.33 defines an extra macro __always_unused which is used to
assist source code analyzers and can be used to removed the last
existing __attribute__ inside the source code.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/main.h
net/batman-adv/packet.h
net/batman-adv/types.h