kerneldoc: s/Returns/Return/, s/any value/negative errno/, move "Return:" to last...
authorKay Sievers <kay@vrfy.org>
Sat, 18 Jan 2014 14:39:34 +0000 (15:39 +0100)
committerKay Sievers <kay@vrfy.org>
Sat, 18 Jan 2014 14:40:55 +0000 (15:40 +0100)
14 files changed:
bus.c
connection.c
endpoint.c
match.c
memfd.c
message.c
metadata.c
names.c
namespace.c
notify.c
policy.c
pool.c
util.c
util.h

diff --git a/bus.c b/bus.c
index 90711b5f673db4d906932fc305326295f25bf4f7..757c260f7cb76f3c48ab77b729c77f99ac544679 100644 (file)
--- a/bus.c
+++ b/bus.c
@@ -71,7 +71,7 @@ static void __kdbus_bus_free(struct kref *kref)
  * Release a reference. If the reference count drops to 0, the bus will be
  * freed.
  *
- * Returns: NULL
+ * Return: NULL
  */
 struct kdbus_bus *kdbus_bus_unref(struct kdbus_bus *bus)
 {
@@ -172,7 +172,7 @@ static struct kdbus_bus *kdbus_bus_find(struct kdbus_ns *ns, const char *name)
  * This function will allocate a new kdbus_bus and link it to the given
  * namespace.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_bus_new(struct kdbus_ns *ns,
                  struct kdbus_cmd_make *make, const char *name,
@@ -262,7 +262,7 @@ exit:
  * This function is part of the connection ioctl() interface and will parse
  * the user-supplied data.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_bus_make_user(void __user *buf, struct kdbus_cmd_make **make,
                        char **name, size_t *bloom_size)
index a3229da087138d1aae4008caa74336a9e3912d2b..67e432a0704024c7777cbcabf88eb9028e39ad67 100644 (file)
@@ -935,7 +935,7 @@ exit_rewind:
  * @conn:              Connection to work on
  * @recv_user:         A struct kdbus_cmd_recv containing the command details
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_conn_recv_msg_user(struct kdbus_conn *conn,
                             struct kdbus_cmd_recv __user *recv_buf)
@@ -983,7 +983,7 @@ exit_unlock:
  * @conn_src:          Connection, kernel-generated messages do not have one
  * @kmsg:              Message to send
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_conn_kmsg_send(struct kdbus_ep *ep,
                         struct kdbus_conn *conn_src,
@@ -1221,7 +1221,7 @@ void kdbus_conn_kmsg_list_free(struct list_head *kmsg_list)
  *
  * The list is cleared and freed after sending.
  *
- * Returns 0 on success.
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_conn_kmsg_list_send(struct kdbus_ep *ep,
                              struct list_head *kmsg_list)
@@ -1247,9 +1247,10 @@ int kdbus_conn_kmsg_list_send(struct kdbus_ep *ep,
  *                             case the connection's message list is not
  *                             empty
  *
- * Returns 0 on success.
  * If @ensure_msg_list_empty is true, and the connection has pending messages,
  * -EBUSY is returned.
+ *
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_conn_disconnect(struct kdbus_conn *conn, bool ensure_msg_list_empty)
 {
@@ -1334,7 +1335,7 @@ int kdbus_conn_disconnect(struct kdbus_conn *conn, bool ensure_msg_list_empty)
  * kdbus_conn_active() - connection is not disconnected
  * @conn:              Connection to check
  *
- * Returns: true if the connection is still active
+ * Return: true if the connection is still active
  */
 bool kdbus_conn_active(struct kdbus_conn *conn)
 {
@@ -1371,7 +1372,7 @@ static void __kdbus_conn_free(struct kref *kref)
  * kdbus_conn_ref() - take a connection reference
  * @conn:              Connection
  *
- * Returns: the connection itself
+ * Return: the connection itself
  */
 struct kdbus_conn *kdbus_conn_ref(struct kdbus_conn *conn)
 {
@@ -1386,7 +1387,7 @@ struct kdbus_conn *kdbus_conn_ref(struct kdbus_conn *conn)
  * When the last reference is dropped, the connection's internal structure
  * is freed.
  *
- * Returns: NULL
+ * Return: NULL
  */
 struct kdbus_conn *kdbus_conn_unref(struct kdbus_conn *conn)
 {
@@ -1408,7 +1409,7 @@ struct kdbus_conn *kdbus_conn_unref(struct kdbus_conn *conn)
  * an ordinary connection is taking over a well-known name from a
  * activator connection.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_conn_move_messages(struct kdbus_conn *conn_dst,
                             struct kdbus_conn *conn_src,
@@ -1456,7 +1457,7 @@ exit_unlock_dst:
  * @conn:              Connection
  * @buf:               The returned offset to the message in the pool
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_cmd_conn_info(struct kdbus_conn *conn,
                        void __user *buf)
@@ -1610,7 +1611,7 @@ exit:
  * @meta:              The metadata gathered at open() time of the handle
  * @c:                 Returned connection
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_conn_new(struct kdbus_ep *ep,
                   struct kdbus_cmd_hello *hello,
@@ -1847,7 +1848,7 @@ exit_free_conn:
  * @conn:              Connection
  * @name:              Well-know name to check for
  *
- * Returns true if the name is currently owned by the connection.
+ * Return: true if the name is currently owned by the connection
  */
 bool kdbus_conn_has_name(struct kdbus_conn *conn, const char *name)
 {
index 64f3c32c560ec6dddf9a36993908c514f35ecc6d..094fd128d3871d1da808701b0ee7f2e1b4d2ec70 100644 (file)
@@ -147,7 +147,7 @@ static struct kdbus_ep *kdbus_ep_find(struct kdbus_bus *bus, const char *name)
  * This function will create a new enpoint with the given
  * name and properties for a given bus.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_ep_new(struct kdbus_bus *bus, struct kdbus_ns *ns, const char *name,
                 umode_t mode, kuid_t uid, kgid_t gid, bool policy_open)
@@ -236,7 +236,7 @@ exit:
  * @make:              The returned copy of user data
  * @name:              The name of the endpoint to create
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_ep_make_user(void __user *buf,
                       struct kdbus_cmd_make **make, char **name)
diff --git a/match.c b/match.c
index da8a33b583fdbe67dd5be47b12d701b056bb0f73..ad97756950800ce5773e152556ab53bb19f4c179 100644 (file)
--- a/match.c
+++ b/match.c
@@ -130,7 +130,7 @@ void kdbus_match_db_free(struct kdbus_match_db *db)
  * kdbus_match_db_new() - create a new match database
  * @db:                        Pointer location for the returned database
  *
- * Returns 0 on success, any other value in case of errors.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_match_db_new(struct kdbus_match_db **db)
 {
@@ -251,7 +251,7 @@ static bool kdbus_match_rules(const struct kdbus_match_entry *entry,
  * with kdbus_match_db_add(). As soon as any of them has an all-satisfied rule
  * set, this function will return true.
  *
- * Returns true in if there was a matching database entry, false otherwise.
+ * Return: true if there was a matching database entry, false otherwise.
  */
 bool kdbus_match_db_match_kmsg(struct kdbus_match_db *db,
                               struct kdbus_conn *conn_src,
@@ -311,7 +311,6 @@ static int cmd_match_from_user(const struct kdbus_conn *conn,
  * @conn:              The connection that was used in the ioctl call
  * @buf:               The __user buffer that was provided by the ioctl call
  *
- * Returns 0 in success, any other value in case of errors.
  * This function is used in the context of the KDBUS_CMD_MATCH_ADD ioctl
  * interface.
  *
@@ -337,6 +336,8 @@ static int cmd_match_from_user(const struct kdbus_conn *conn,
  * Also note that KDBUS_ITEM_BLOOM, KDBUS_ITEM_NAME and KDBUS_ITEM_ID are
  * used to match messages from userspace, while the others apply to kernel-
  * generated notifications.
+
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_match_db_add(struct kdbus_conn *conn, void __user *buf)
 {
@@ -499,9 +500,10 @@ exit_free:
  * @conn:              The connection that was used in the ioctl call
  * @buf:               The __user buffer that was provided by the ioctl call
  *
- * Returns 0 in success, any other value in case of errors.
  * This function is used in the context of the KDBUS_CMD_MATCH_REMOVE
  * ioctl interface.
+ *
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_match_db_remove(struct kdbus_conn *conn, void __user *buf)
 {
diff --git a/memfd.c b/memfd.c
index 0bda31df857ccde97a38b2cb5e5fde95f3f1f065..6d036e8f9dbdf804444e924b0c3c1aa1cea864f0 100644 (file)
--- a/memfd.c
+++ b/memfd.c
@@ -48,7 +48,7 @@ struct kdbus_memfile {
  * kdbus_is_memfd() - check if a file is one of our memfds
  * @fp:                        File to check
  *
- * Returns: true if the file is a memfd
+ * Return: true if the file is a memfd
  */
 bool kdbus_is_memfd(const struct file *fp)
 {
@@ -59,7 +59,7 @@ bool kdbus_is_memfd(const struct file *fp)
  * kdbus_is_memfd_sealed() - check if a memfd is protected
  * @fp:                        Memfd file to check
  *
- * Returns: true if the memfd is protected
+ * Return: true if the memfd is protected
  */
 bool kdbus_is_memfd_sealed(const struct file *fp)
 {
@@ -77,7 +77,7 @@ bool kdbus_is_memfd_sealed(const struct file *fp)
  * kdbus_memfd_size() - return the actual size of a memfd
  * @fp:                        Memfd file to check
  *
- * Returns: the actual size of the file in bytes
+ * Return: the actual size of the file in bytes
  */
 u64 kdbus_memfd_size(const struct file *fp)
 {
@@ -98,7 +98,7 @@ u64 kdbus_memfd_size(const struct file *fp)
  * @size:              Initial size of the file
  * @fd:                        Installed file descriptor
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_memfd_new(const char *name, size_t size, int *fd)
 {
index 3a65ba0c3e97c5bb7affeecba6a97438357304ee..10be92b4fc87696859ebf1b18f0e565d3e9e3ec9 100644 (file)
--- a/message.c
+++ b/message.c
@@ -49,7 +49,7 @@ void kdbus_kmsg_free(struct kdbus_kmsg *kmsg)
  * @extra_size:                additional size to reserve for data
  * @kmsg:                      Returned Message
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_kmsg_new(size_t extra_size, struct kdbus_kmsg **kmsg)
 {
@@ -75,7 +75,7 @@ int kdbus_kmsg_new(size_t extra_size, struct kdbus_kmsg **kmsg)
  * @conn:              Connection
  * @kmsg:              Message
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 static int kdbus_msg_scan_items(struct kdbus_conn *conn,
                                struct kdbus_kmsg *kmsg)
@@ -234,7 +234,7 @@ static int kdbus_msg_scan_items(struct kdbus_conn *conn,
  * @msg:               User-provided message
  * @kmsg:              Copy of message
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_kmsg_new_from_user(struct kdbus_conn *conn,
                             struct kdbus_msg __user *msg,
index cc30fae9d1a9e7b6b240b1976acd2bfaaa814732..24c80342bdee89794b9465a242beac10aec8559f 100644 (file)
@@ -33,7 +33,7 @@
  * kdbus_meta_new() - create new metadata object
  * @meta:              New metadata object
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_meta_new(struct kdbus_meta **meta)
 {
@@ -120,7 +120,7 @@ kdbus_meta_append_item(struct kdbus_meta *meta, size_t extra_size)
  * @data:              pointer to data to copy from
  * @len:               number of bytes to copy
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_meta_append_data(struct kdbus_meta *meta, u64 type,
                                  const void *data, size_t len)
@@ -392,7 +392,7 @@ static int kdbus_meta_append_seclabel(struct kdbus_meta *meta)
  * Collect the data specified in flags and allocate or extend
  * the buffer in the metadata object.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_meta_append(struct kdbus_meta *meta,
                      struct kdbus_conn *conn,
diff --git a/names.c b/names.c
index f8050980536d4c7906a2984e9543d84f7c6bc389..e1a8583236fe7bc75c1787761dda6e183b3d0048 100644 (file)
--- a/names.c
+++ b/names.c
@@ -76,7 +76,7 @@ void kdbus_name_registry_free(struct kdbus_name_registry *reg)
  * kdbus_name_registry_new() - create a new name registry
  * @reg:               The returned name registry
  *
- * Returns 0 on success, -ENOMEM if memory allocation failed.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_name_registry_new(struct kdbus_name_registry **reg)
 {
@@ -264,7 +264,7 @@ void kdbus_name_remove_by_conn(struct kdbus_name_registry *reg,
  * @reg:               The name registry
  * @name:              The name to look up
  *
- * Returns the name entry, if found. Otherwise, NULL is returned.
+ * Return: name entry if found, otherwise NULL.
  */
 struct kdbus_name_entry *kdbus_name_lookup(struct kdbus_name_registry *reg,
                                           const char *name)
@@ -380,7 +380,7 @@ bool kdbus_name_is_valid(const char *p)
  * @flags:             Acquisition flags (KDBUS_NAME_*)
  * @entry:             Return pointer for the entry (may be NULL)
  *
- * Returns 0 on success, other values on error.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_name_acquire(struct kdbus_name_registry *reg,
                       struct kdbus_conn *conn,
@@ -504,7 +504,7 @@ exit_unlock:
  * @conn:              The connection to pin this entry to
  * @buf:               The __user buffer as passed in by the ioctl
  *
- * Returns 0 on success, other values on error.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_cmd_name_acquire(struct kdbus_name_registry *reg,
                           struct kdbus_conn *conn,
@@ -610,7 +610,7 @@ exit_free:
  * @conn:              The connection that holds the name
  * @buf:               The __user buffer as passed in by the ioctl
  *
- * Returns 0 on success, other values on error.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_cmd_name_release(struct kdbus_name_registry *reg,
                           struct kdbus_conn *conn,
@@ -805,7 +805,7 @@ static int kdbus_name_list_all(struct kdbus_conn *conn, u64 flags,
  * @conn:              The connection holding the name entries
  * @buf:               The __user buffer as passed in by the ioctl
  *
- * Returns 0 on success, other values on error.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_cmd_name_list(struct kdbus_name_registry *reg,
                        struct kdbus_conn *conn,
index 76b5df7b099bbc9974c14303ed6981f1be068f2b..56e32c734c2d3d6196fb2daa07498992e1c7651a 100644 (file)
@@ -70,7 +70,7 @@ static struct device_type kdbus_devtype_control = {
  * kdbus_ns_ref() - take a namespace reference
  * @ns :               Namespace
  *
- * Returns: the namespace itself
+ * Return: the namespace itself
  */
 struct kdbus_ns *kdbus_ns_ref(struct kdbus_ns *ns)
 {
@@ -135,7 +135,7 @@ static void __kdbus_ns_free(struct kref *kref)
  * When the last reference is dropped, the namespace internal structure
  * is freed.
  *
- * Returns: NULL
+ * Return: NULL
  */
 struct kdbus_ns *kdbus_ns_unref(struct kdbus_ns *ns)
 {
@@ -171,7 +171,7 @@ static struct kdbus_ns *kdbus_ns_find(struct kdbus_ns const *parent,
  * is ref'ed, and needs to be unref'ed by the user. Returns NULL if
  * the namepace can't be found.
  *
- * Returns: the namespace, or NULL if not found
+ * Return: the namespace, or NULL if not found
  */
 struct kdbus_ns *kdbus_ns_find_by_major(unsigned int major)
 {
@@ -193,7 +193,7 @@ struct kdbus_ns *kdbus_ns_find_by_major(unsigned int major)
  * @mode:              The access mode for the "control" device node
  * @ns:                        The returned namespace
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_ns_new(struct kdbus_ns *parent, const char *name, umode_t mode,
                 struct kdbus_ns **ns)
@@ -314,7 +314,7 @@ exit_unlock:
  * @make:              The returned copy of user data
  * @name:              The name of the namespace to create
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_ns_make_user(void __user *buf,
                       struct kdbus_cmd_make **make, char **name)
index 5bcd02a655ad2b6462ef6bc6635a04dca3f7c57b..2e557a6200f69937e3538585cf80a791b1688343 100644 (file)
--- a/notify.c
+++ b/notify.c
@@ -60,7 +60,7 @@ static int kdbus_notify_reply(u64 id, u64 cookie, u64 msg_type,
  *
  * Queues a message that has a KDBUS_ITEM_REPLY_TIMEOUT item attached.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_notify_reply_timeout(u64 id, u64 cookie, struct list_head *queue_list)
 {
@@ -79,7 +79,7 @@ int kdbus_notify_reply_timeout(u64 id, u64 cookie, struct list_head *queue_list)
  *
  * Queues a message that has a KDBUS_ITEM_REPLY_DEAD item attached.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_notify_reply_dead(u64 id, u64 cookie, struct list_head *queue_list)
 {
@@ -103,7 +103,7 @@ int kdbus_notify_reply_dead(u64 id, u64 cookie, struct list_head *queue_list)
  *                     kdbus_kmsg_free(). Maybe NULL, in which case this
  *                     function does nothing.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_notify_name_change(u64 type,
                             u64 old_id, u64 new_id,
@@ -153,7 +153,7 @@ int kdbus_notify_name_change(u64 type,
  *                     kdbus_kmsg_free(). Maybe NULL, in which case this
  *                     function does nothing.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_notify_id_change(u64 type, u64 id, u64 flags,
                           struct list_head *queue_list)
index e27f93fdef5ddca050ddfb3386489802ece27966..26e06d91b63f317b02a91265fe7e1cb071794139 100644 (file)
--- a/policy.c
+++ b/policy.c
@@ -125,7 +125,7 @@ void kdbus_policy_db_free(struct kdbus_policy_db *db)
  * kdbus_policy_db_new() - create a new policy database
  * @db:                The location where to store the new database
  *
- * Return 0 on success, or any other value in case of errors.
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_policy_db_new(struct kdbus_policy_db **db)
 {
@@ -252,8 +252,7 @@ kdbus_policy_cache_entry_new(struct kdbus_conn *conn_a,
  * @conn_src:          The source connection
  * @conn_dst:          The destination connection
  *
- * Returns 0 if access is granted, -EPERM in case it's not, any any other
- * value in case of errors during adding the cache item internally.
+ * Return: 0 if access is granted, -EPERM if not, negative errno on failure
  */
 int kdbus_policy_db_check_send_access(struct kdbus_policy_db *db,
                                      struct kdbus_conn *conn_src,
@@ -330,7 +329,7 @@ void kdbus_policy_db_remove_conn(struct kdbus_policy_db *db,
  * @conn:      The connection to check
  * @name:      The name to check
  *
- * Returns true if the connection is allowed to own the name, false otherwise.
+ * Return: true if the connection is allowed to own the name, false otherwise
  */
 bool kdbus_policy_db_check_own_access(struct kdbus_policy_db *db,
                                      struct kdbus_conn *conn,
@@ -435,9 +434,10 @@ static int kdbus_policy_db_parse(struct kdbus_policy_db *db,
  * @db:                The policy database
  * @buf:       The __user buffer that was provided by the ioctl() call
  *
- * Returns 0 on success, or any other value in case of errors.
  * This function is used in the context of the KDBUS_CMD_EP_POLICY_SET
  * ioctl().
+ *
+ * Return: 0 on success, negative errno on failure
  */
 int kdbus_cmd_policy_set_from_user(struct kdbus_policy_db *db, void __user *buf)
 {
diff --git a/pool.c b/pool.c
index a9cc7a4574943f6d0874117a4b472342ef29045c..2c54b5f3eefe1a5a999ccf1c56667826744af23f 100644 (file)
--- a/pool.c
+++ b/pool.c
@@ -274,7 +274,7 @@ static void kdbus_pool_free_slice(struct kdbus_pool *pool,
  * @size:              Maximum size of the pool
  * @pool:              Newly allocated pool
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_pool_new(const char *name, size_t size, struct kdbus_pool **pool)
 {
@@ -359,7 +359,7 @@ void kdbus_pool_free(struct kdbus_pool *pool)
  * kdbus_pool_remain() - the number of free bytes in the pool
  * @pool:              The receiver's pool
  *
- * Returns: the number of unallocated bytes in the pool
+ * Return: the number of unallocated bytes in the pool
  */
 size_t kdbus_pool_remain(struct kdbus_pool *pool)
 {
@@ -382,7 +382,7 @@ size_t kdbus_pool_remain(struct kdbus_pool *pool)
  * The returned offset is used for kdbus_pool_free() to
  * free the allocated memory.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_pool_alloc_range(struct kdbus_pool *pool, size_t size, size_t *off)
 {
@@ -407,7 +407,7 @@ int kdbus_pool_alloc_range(struct kdbus_pool *pool, size_t size, size_t *off)
  * The offset was returned by the call to kdbus_pool_alloc_range(), the
  * memory is returned to the pool.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_pool_free_range(struct kdbus_pool *pool, size_t off)
 {
@@ -541,7 +541,7 @@ kdbus_pool_copy(struct file *f_dst, size_t off_dst,
  * The user memory at @data will be copied to the @off in the allocated
  * memory in the pool.
  *
- * Returns: the numbers of bytes copied, negative errno on failure.
+ * Return: the numbers of bytes copied, negative errno on failure.
  */
 ssize_t kdbus_pool_write_user(const struct kdbus_pool *pool, size_t off,
                              void __user *data, size_t len)
@@ -560,7 +560,7 @@ ssize_t kdbus_pool_write_user(const struct kdbus_pool *pool, size_t off,
  * The user memory at @data will be copied to the @off in the allocated
  * memory in the pool.
  *
- * Returns: the numbers of bytes copied, negative errno on failure.
+ * Return: the numbers of bytes copied, negative errno on failure.
  */
 ssize_t kdbus_pool_write(const struct kdbus_pool *pool, size_t off,
                         void *data, size_t len)
@@ -588,7 +588,7 @@ ssize_t kdbus_pool_write(const struct kdbus_pool *pool, size_t off,
  * destination pool, the memory copied over, and the free()d in source
  * pool.
  *
- * Returns: 0 on success, negative errno on failure.
+ * Return: 0 on success, negative errno on failure.
  */
 int kdbus_pool_move(struct kdbus_pool *dst_pool,
                    struct kdbus_pool *src_pool,
@@ -660,7 +660,7 @@ void kdbus_pool_flush_dcache(const struct kdbus_pool *pool,
  * @pool:              The receiver's pool
  * @vma:               passed by mmap() syscall
  *
- * Returns: the result of the mmap() call, negative errno on failure.
+ * Return: the result of the mmap() call, negative errno on failure.
  */
 int kdbus_pool_mmap(const struct kdbus_pool *pool, struct vm_area_struct *vma)
 {
diff --git a/util.c b/util.c
index 48f121e78e5191a2216e9d3a1a30cef874ab9cc5..74f5787ba3d947b6cb4301f04c1a6f929d1aa2e9 100644 (file)
--- a/util.c
+++ b/util.c
@@ -22,7 +22,7 @@
  * kdbus_sysname_valid - validate names showing up in /proc, /sys and /dev
  * @name:              Name of namespace, bus, endpoint
  *
- * Returns: 0 if the given name is valid, otherwise negative errno
+ * Return: 0 if the given name is valid, otherwise negative errno
  */
 int kdbus_sysname_is_valid(const char *name)
 {
diff --git a/util.h b/util.h
index 919f18ad9d9edc7db991d441962b3d8235ab1ed8..293c90ac29d9a0676829030642e9c80bda12878f 100644 (file)
--- a/util.h
+++ b/util.h
@@ -43,7 +43,7 @@
  * @_b:                        Buffer to read from
  * @_t:                        Structure, "size" is a member of
  *
- * Returns: the result of copy_from_user()
+ * Return: the result of copy_from_user()
  */
 #define kdbus_size_get_user(_s, _b, _t)                                                \
 ({                                                                             \
@@ -57,7 +57,7 @@
  * @_b:                        Buffer to write to
  * @_t:                        Structure, "offset" is a member of
  *
- * Returns: the result of copy_to_user()
+ * Return: the result of copy_to_user()
  */
 #define kdbus_offset_set_user(_s, _b, _t)                              \
 ({                                                                     \
@@ -71,7 +71,7 @@
  *                     a variable string at its end
  * @_s:                        The name of the dynamically sized string member
  *
- * Returns: 1 if the string's end marker is withing the struct, or 0 otherwise.
+ * Return: 1 if the string's end marker is withing the struct, or 0 otherwise.
  */
 #define kdbus_check_strlen(_p, _s)                                     \
 ({                                                                     \
@@ -87,7 +87,7 @@
  * Validate that a given string matches the given size, and the
  * string is \0 terminated.
  *
- * Returns: true if the given string is valid
+ * Return: true if the given string is valid
  */
 static inline bool kdbus_validate_nul(const char *s, size_t l)
 {
@@ -98,7 +98,7 @@ static inline bool kdbus_validate_nul(const char *s, size_t l)
  * kdbus_str_hash - calculate a hash
  * @str:               String
  *
- * Returns: hash value
+ * Return: hash value
  */
 static inline unsigned int kdbus_str_hash(const char *str)
 {