summaryrefslogtreecommitdiffstats
path: root/include/linux/genl_magic_struct.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-05-03 14:56:09 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:55:38 +0100
commitb966b5dd8e17e6c105ca55533fd412de5d5b429e (patch)
tree5597a93a0753ccd2476f4ba9ff31de5eeb09d83c /include/linux/genl_magic_struct.h
parentd8cd289dbe69ce9b8115d6f200ceff657e5dafa0 (diff)
downloadtalos-obmc-linux-b966b5dd8e17e6c105ca55533fd412de5d5b429e.tar.gz
talos-obmc-linux-b966b5dd8e17e6c105ca55533fd412de5d5b429e.zip
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 {
__array(attr_nr, attr_flag, name, NLA_BINARY, char, maxlen, \
nla_memcpy, NLA_PUT)
+/* fields with default values */
+#define __flg_field_def(attr_nr, attr_flag, name, default) \
+ __flg_field(attr_nr, attr_flag, name)
+#define __u32_field_def(attr_nr, attr_flag, name, default) \
+ __u32_field(attr_nr, attr_flag, name)
+#define __str_field_def(attr_nr, attr_flag, name, maxlen) \
+ __str_field(attr_nr, attr_flag, name, maxlen)
+
#define __nla_put_flag(skb, attrtype, value) \
do { \
if (value) \
OpenPOWER on IntegriCloud