| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
This macro is a variant on CONTAINER_OF that takes an object pointer
instead of a type name as its second argument. In the following commit
this will simplify many users of CONTAINER_OF.
|
| |
|
|
|
|
| |
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Jesse Gross <jesse@nicira.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
On sparc, GCC would issue the following warning for every use of
CONTAINER_OF:
warning: cast increases required alignment of target type
This is a false positive: assuming that the data structure that it is
applied to was allocated properly, the use of CONTAINER_OF to reach it is
valid. And if it was not allocated properly, then code that accesses it
other ways will have trouble too.
|
| |
|
|
| |
These will be used further in an upcoming commit.
|
| |\ |
|
| | |
| |
| |
| | |
Great ideas in theory, but we haven't used them.
|
| |\ \
| |/
| |
| |
| | |
The main change here is the need to update all of the uses of UNUSED in
the next branch to OVS_UNUSED as it is now spelled on "master".
|
| | |
| |
| |
| |
| |
| |
| | |
Some systems complain when certain functions' return values are not
checked. This commit fixes those warnings.
Creating ignore() function suggested by Ben Pfaff.
|
| | | |
|
| | |
| |
| |
| | |
This will be used by the upcoming Open vSwitch configuration database.
|
| |/ |
|
| | |
|
| |
|
|
|
|
|
|
| |
ROUND_UP rounds up to a multiple of a given value. That means that
bitmap_allocate() was allocating one byte for each bit in the bitmap,
which is clearly excessive.
Instead, just allocate one bit for every bit in the bitmap.
|
| | |
|
| |
|