From: Daniel Mack Date: Thu, 16 Oct 2014 16:12:54 +0000 (+0200) Subject: kdbus.h: remove features bitfield from make calls (ABI break) X-Git-Tag: upstream/0.20141102.012929utc~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dd392db366a8adcdfbee2b2aae830559d212b99;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git kdbus.h: remove features bitfield from make calls (ABI break) After discussion in the systemd hackfest, we agreed on flags negotiation via the flags fields, so there's no need for a bitmask called 'features' anymore. Drop it. Signed-off-by: Daniel Mack --- diff --git a/handle.c b/handle.c index 34c468f..2bdd613 100644 --- a/handle.c +++ b/handle.c @@ -508,12 +508,6 @@ static long kdbus_handle_ioctl_ep(struct file *file, unsigned int cmd, if (ret < 0) break; - /* Reject all feature requests for now */ - if (hello->features != 0) { - ret = -EOPNOTSUPP; - break; - } - if (hello->pool_size == 0 || !IS_ALIGNED(hello->pool_size, PAGE_SIZE)) { ret = -EFAULT; diff --git a/kdbus.h b/kdbus.h index 79a17f3..a9c4c80 100644 --- a/kdbus.h +++ b/kdbus.h @@ -554,7 +554,6 @@ enum kdbus_attach_flags { /** * struct kdbus_cmd_hello - struct to say hello to kdbus * @size: The total size of the structure - * @features: Feature negotiation bitmask * @conn_flags: Connection flags (KDBUS_HELLO_*). * @attach_flags: Mask of metadata to attach to each message sent * (KDBUS_ATTACH_*) @@ -574,7 +573,6 @@ enum kdbus_attach_flags { */ struct kdbus_cmd_hello { __u64 size; - __u64 features; __u64 conn_flags; __u64 attach_flags; __u64 bus_flags; @@ -598,7 +596,6 @@ enum kdbus_make_flags { /** * struct kdbus_cmd_make - struct to make a bus, an endpoint or a domain * @size: The total size of the struct - * @features: Feature negotiation bitmask * @flags: Properties for the bus/ep/domain to create * @items: Items describing details * @@ -607,7 +604,6 @@ enum kdbus_make_flags { */ struct kdbus_cmd_make { __u64 size; - __u64 features; __u64 flags; struct kdbus_item items[0]; } __attribute__((aligned(8))); diff --git a/kdbus.txt b/kdbus.txt index 3a219be..14d7719 100644 --- a/kdbus.txt +++ b/kdbus.txt @@ -307,14 +307,6 @@ struct kdbus_cmd_make { __u64 size; The overall size of the struct, including its items. - __u64 features; - Feature negotiation bitmask. In this field, userspace specifies a set - of features it requires from the kernel driver. When the ioctl returns, - the kernel has set this field to a value describing the features it - requires from the userspace. This field is intended for future forward- - compatibility and has to be set to 0. Userspace should check the value - after the ioctl returned and treat non-null values as error. - __u64 flags; The flags for creation. @@ -426,14 +418,6 @@ struct kdbus_cmd_hello { __u64 size; The overall size of the struct, including all attached items. - __u64 features; - Feature negotiation bitmask. In this field, userspace specifies a set - of features it requires from the kernel driver. When the ioctl returns, - the kernel has set this field to a value describing the features it - requires from the userspace. This field is intended for future forward- - compatibility and has to be set to 0. Userspace should check the value - after the ioctl returned and treat non-null values as error. - __u64 conn_flags; Flags to apply to this connection: