Add 'kernel_read' wrapper for kernels < v4.14
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 2 Oct 2020 17:03:34 +0000 (13:03 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Oct 2020 19:32:25 +0000 (15:32 -0400)
commit38ab121b3eb45242e21112b4e5e817686de4efbd
treeccc115a2574b186b3c238c224e866b602d4159b5
parentb02458336d103100bf7d8b90fc6120a5695ea6c0
Add 'kernel_read' wrapper for kernels < v4.14

See upstream commit:

  commit bdd1d2d3d251c65b74ac4493e08db18971c09240
  Author: Christoph Hellwig <hch@lst.de>
  Date:   Fri Sep 1 17:39:13 2017 +0200

    fs: fix kernel_read prototype

    Use proper ssize_t and size_t types for the return value and count
    argument, move the offset last and make it an in/out argument like
    all other read/write helpers, and make the buf argument a void pointer
    to get rid of lots of casts in the callers.

Change-Id: I825c3fcbcc17e9b46e2a661fadc66b52a94eb2da
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/wrapper/fs.h [new file with mode: 0644]
wrapper/random.c
This page took 0.025908 seconds and 4 git commands to generate.