]> git.baikalelectronics.ru Git - kernel.git/commit
genetlink: make genl_ops flags a u8 and move to end
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Nov 2013 16:14:47 +0000 (17:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 22:10:41 +0000 (17:10 -0500)
commit6a6c4a066dc4aee3c206fe4f217eef89924f428f
tree422a5d96f5a43193e7792ec93bb6faf10b85dc87
parentd18fe7603ec7f90c6d685f9a5ed229f30c7325a3
genetlink: make genl_ops flags a u8 and move to end

To save some space in the struct on 32-bit systems,
make the flags a u8 (only 4 bits are used) and also
move them to the end of the struct.

This has no impact on 64-bit systems as alignment of
the struct in an array uses up the space anyway.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/genetlink.h