summaryrefslogtreecommitdiff
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorYohan Pipereau <yohan.pipereau@gmail.com>2018-07-08 21:19:32 +0300
committerJonathan Corbet <corbet@lwn.net>2018-07-11 00:11:00 +0300
commit9ac8c3bd50018c80ad413bff00f054496998cc0d (patch)
tree88a3b43449c263004c33802c95d3503e0b44f1fe /Documentation/filesystems
parent819d731fe3562783d5697f3269f7d15384b38f4c (diff)
downloadlinux-9ac8c3bd50018c80ad413bff00f054496998cc0d.tar.xz
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". Signed-off-by: Yohan Pipereau <yohan.pipereau@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r--Documentation/filesystems/relay.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/filesystems/relay.txt b/Documentation/filesystems/relay.txt
index 33e2f3694733..cd709a94d054 100644
--- a/Documentation/filesystems/relay.txt
+++ b/Documentation/filesystems/relay.txt
@@ -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;