Added ZERO_DATA() and COUNT_OF() macros to common.h (XCC)
authorDavide Libenzi <dlibenzi@google.com>
Fri, 27 Nov 2015 17:16:07 +0000 (09:16 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 16 Dec 2015 21:27:06 +0000 (16:27 -0500)
commit0d81b241892a03c137a84186c4d7add1ca6b0f79
tree2eeba3a5261173d9edb8fdc360d8d751e2415ff0
parent52f3085da95e51d9d38b273de4d84806cad0cdd0
Added ZERO_DATA() and COUNT_OF() macros to common.h (XCC)

Added ZERO_DATA() and COUNT_OF() macros to common.h.
The ARRAY_SIZE(), when exported from ros/common.h, fights with other
userspace code redefining it.
So export it using COUNT_OF(), and make ARRAY_SIZE() use COUNT_OF().

Reinstall your kernel headers.

Signed-off-by: Davide Libenzi <dlibenzi@google.com>
[XCC / reinstall notice]
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ros/common.h