aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/genl_magic_struct.h
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2011-05-04 10:33:52 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:55:43 +0100
commit563e4cf25ec804eb02cd30a41baa2fcc6c06679b (patch)
tree78714255143b283d7a58681ab6142c3e245ebc7b /include/linux/genl_magic_struct.h
parentdrbd: Renamed (old|new)_conf into (old|new)_net_conf in receive_SyncParam (diff)
downloadlinux-dev-563e4cf25ec804eb02cd30a41baa2fcc6c06679b.tar.xz
linux-dev-563e4cf25ec804eb02cd30a41baa2fcc6c06679b.zip
drbd: Introduce __s32_field in the genetlink macro magic
...and drop explicit typecasts (int)meta_dev_idx < 0. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/genl_magic_struct.h')
-rw-r--r--include/linux/genl_magic_struct.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/genl_magic_struct.h b/include/linux/genl_magic_struct.h
index f2c7cc7831df..ddbdd0a24476 100644
--- a/include/linux/genl_magic_struct.h
+++ b/include/linux/genl_magic_struct.h
@@ -97,6 +97,9 @@ enum {
#define __u32_field(attr_nr, attr_flag, name) \
__field(attr_nr, attr_flag, name, NLA_U32, __u32, \
nla_get_u32, NLA_PUT_U32)
+#define __s32_field(attr_nr, attr_flag, name) \
+ __field(attr_nr, attr_flag, name, NLA_U32, __s32, \
+ nla_get_u32, NLA_PUT_U32)
#define __u64_field(attr_nr, attr_flag, name) \
__field(attr_nr, attr_flag, name, NLA_U64, __u64, \
nla_get_u64, NLA_PUT_U64)