mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 17:36:49 +07:00
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>
This commit is contained in:
parent
819d731fe3
commit
9ac8c3bd50
@ -222,7 +222,7 @@ using debugfs:
|
|||||||
*/
|
*/
|
||||||
static struct dentry *create_buf_file_handler(const char *filename,
|
static struct dentry *create_buf_file_handler(const char *filename,
|
||||||
struct dentry *parent,
|
struct dentry *parent,
|
||||||
int mode,
|
umode_t mode,
|
||||||
struct rchan_buf *buf,
|
struct rchan_buf *buf,
|
||||||
int *is_global)
|
int *is_global)
|
||||||
{
|
{
|
||||||
@ -375,7 +375,7 @@ would be very similar:
|
|||||||
static int subbuf_start(struct rchan_buf *buf,
|
static int subbuf_start(struct rchan_buf *buf,
|
||||||
void *subbuf,
|
void *subbuf,
|
||||||
void *prev_subbuf,
|
void *prev_subbuf,
|
||||||
unsigned int prev_padding)
|
size_t prev_padding)
|
||||||
{
|
{
|
||||||
if (prev_subbuf)
|
if (prev_subbuf)
|
||||||
*((unsigned *)prev_subbuf) = prev_padding;
|
*((unsigned *)prev_subbuf) = prev_padding;
|
||||||
|
Loading…
Reference in New Issue
Block a user