diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2011-05-04 10:33:52 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 16:55:43 +0100 |
commit | 563e4cf25ec804eb02cd30a41baa2fcc6c06679b (patch) | |
tree | 78714255143b283d7a58681ab6142c3e245ebc7b /include/linux/drbd_genl.h | |
parent | 2ec91e0e29a3f1166ad96dbb3466b57dbc5d8ebf (diff) | |
download | op-kernel-dev-563e4cf25ec804eb02cd30a41baa2fcc6c06679b.zip op-kernel-dev-563e4cf25ec804eb02cd30a41baa2fcc6c06679b.tar.gz |
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/drbd_genl.h')
-rw-r--r-- | include/linux/drbd_genl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/drbd_genl.h b/include/linux/drbd_genl.h index 5498006..f143e3c 100644 --- a/include/linux/drbd_genl.h +++ b/include/linux/drbd_genl.h @@ -102,7 +102,7 @@ GENL_struct(DRBD_NLA_CFG_CONTEXT, 2, drbd_cfg_context, GENL_struct(DRBD_NLA_DISK_CONF, 3, disk_conf, __str_field(1, GENLA_F_REQUIRED | GENLA_F_INVARIANT, backing_dev, 128) __str_field(2, GENLA_F_REQUIRED | GENLA_F_INVARIANT, meta_dev, 128) - __u32_field(3, GENLA_F_REQUIRED | GENLA_F_INVARIANT, meta_dev_idx) + __s32_field(3, GENLA_F_REQUIRED | GENLA_F_INVARIANT, meta_dev_idx) /* use the resize command to try and change the disk_size */ __u64_field(4, GENLA_F_MANDATORY | GENLA_F_INVARIANT, disk_size) |