Skip to contentSkip to conversation

Documentation : Update relay function types

PATCH In review Yohan Pipereau 2 participants 2 messages Jul 8, 2018 – Jul 10, 2018 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation : Update relay function types

This patch updates two callback functions provided as an example in relay API documentation : subbuf_start and create_buf_file_handler.

These functions were using older and incorrect types causing an "initialization from incompatible pointer type".

diffstat for this patch is:

 relay.txt |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

(quoted diff) +0 -0

b/Documentation/filesystems/relay.txt
index 33e2f3694733..cd709a94d054 100644

Documentation/filesystems/relay.txt +2 -2
@@ -222,7 +222,7 @@ using debugfs:
  */
 static struct dentry *create_buf_file_handler(const char *filename,
                                               struct dentry *parent,
-                                              int mode,
+                                              umode_t mode,
                                               struct rchan_buf *buf,
                                               int *is_global)
 {
@@ -375,7 +375,7 @@ would be very similar:
 static int subbuf_start(struct rchan_buf *buf,
                         void *subbuf,
 			void *prev_subbuf,
-			unsigned int prev_padding)
+			size_t prev_padding)
 {
 	if (prev_subbuf)
 		*((unsigned *)prev_subbuf) = prev_padding;

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#1 lore raw
Quoted 5 lines · On Sun, 8 Jul 2018 20:19:32 +0200 Yohan Pipereau <[email protected]>…

This patch updates two callback functions provided as an example in relay API documentation : subbuf_start and create_buf_file_handler.

These functions were using older and incorrect types causing an "initialization from incompatible pointer type".

Heh, nobody has seriously touched that file in ten years. Patch applied, but...

Quoted 3 lines

diffstat for this patch is:

 relay.txt |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Please include information like this after the "---" line so I don't have to edit it out of the changelog manually.

Thanks,

jon
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html