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:06 +0000 (15:32 -0400)
commit62d0a59ccfae6bd4a60f9f706431991a6dbf976f
tree2bf6ce12de611b104f44858215bffd93716ff721
parentcc87d2b4fa9348da830b0da09db1ee6653e0d758
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]
src/wrapper/random.c
This page took 0.025977 seconds and 4 git commands to generate.