Fix: Use vmalloc_sync_mappings on kernel 5.6 as well
authorOvidiu Panait <ovidiu.panait@windriver.com>
Thu, 14 May 2020 10:05:24 +0000 (13:05 +0300)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 14 May 2020 17:09:56 +0000 (13:09 -0400)
commit1d618748df5c107151e5d4580fad270ccb79a243
treec48f78b17f513896c787fae6d85a49573e7b4114
parent40a6bb2f712fc46dd983e6a2786c1cd4b61cbd72
Fix: Use vmalloc_sync_mappings on kernel 5.6 as well

Upstream commit [1], that got rid of vmalloc_sync_all and introduced
vmalloc_sync_mappings, is a v5.6 commit:
$ git tag --contains 763802b53a427ed3cbd419dbba255c414fdd9e7c
v5.6
v5.6-rc7
v5.7-rc1
v5.7-rc2
v5.7-rc3

Extend the LINUX_VERSION_CODE check to v5.6 to fix the following warnings:
...
[  483.242037] LTTng: vmalloc_sync_all symbol lookup failed.
[  483.257056] Page fault handler and NMI tracing might trigger faults.
...

[1] https://github.com/torvalds/linux/commit/763802b53a427ed3cbd419dbba255c414fdd9e7c

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/wrapper/vmalloc.h
This page took 0.026084 seconds and 4 git commands to generate.