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:21 +0000 (15:32 -0400)
commitbce099b208cb540917015b0f1c806ff29b1a687e
treefcea006700968863886dbb0823d792f41348666f
parent96aaa47dd0cc8f98e2e98afba336c04ee6743468
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.026122 seconds and 4 git commands to generate.