From: Michael Jeanson Date: Fri, 2 Oct 2020 17:03:34 +0000 (-0400) Subject: Add 'kernel_read' wrapper for kernels < v4.14 X-Git-Tag: v2.13.0-rc1~165 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=62d0a59ccfae6bd4a60f9f706431991a6dbf976f;hp=62d0a59ccfae6bd4a60f9f706431991a6dbf976f;p=lttng-modules.git Add 'kernel_read' wrapper for kernels < v4.14 See upstream commit: commit bdd1d2d3d251c65b74ac4493e08db18971c09240 Author: Christoph Hellwig 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 Signed-off-by: Mathieu Desnoyers ---