aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/genl_magic_struct.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-05-03 08:56:09 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 10:55:38 -0500
commitb966b5dd8e17e6c105ca55533fd412de5d5b429e (patch)
tree5597a93a0753ccd2476f4ba9ff31de5eeb09d83c /include/linux/genl_magic_struct.h
parentd8cd289dbe69ce9b8115d6f200ceff657e5dafa0 (diff)
drbd: Generate the drbd_set_*_defaults() functions from drbd_genl.h
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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/genl_magic_struct.h b/include/linux/genl_magic_struct.h
index 9a605b9ee834..f2c7cc7831df 100644
--- a/include/linux/genl_magic_struct.h
+++ b/include/linux/genl_magic_struct.h
@@ -107,6 +107,14 @@ enum {
107 __array(attr_nr, attr_flag, name, NLA_BINARY, char, maxlen, \ 107 __array(attr_nr, attr_flag, name, NLA_BINARY, char, maxlen, \
108 nla_memcpy, NLA_PUT) 108 nla_memcpy, NLA_PUT)
109 109
110/* fields with default values */
111#define __flg_field_def(attr_nr, attr_flag, name, default) \
112 __flg_field(attr_nr, attr_flag, name)
113#define __u32_field_def(attr_nr, attr_flag, name, default) \
114 __u32_field(attr_nr, attr_flag, name)
115#define __str_field_def(attr_nr, attr_flag, name, maxlen) \
116 __str_field(attr_nr, attr_flag, name, maxlen)
117
110#define __nla_put_flag(skb, attrtype, value) \ 118#define __nla_put_flag(skb, attrtype, value) \
111 do { \ 119 do { \
112 if (value) \ 120 if (value) \