]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/pti: Fix section mismatch warning/error
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 2 Sep 2018 04:01:28 +0000 (21:01 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:51:36 +0000 (19:51 -0600)
commit8f4a1b14ae8b78713c2625e875f0fe28d9437dcc
treecfdab7d5dfd2ef8eab1e0ebd0615bdcf587e7bc4
parentb13c7c6f787c8c64e44154f63a6a376ee3de1995
x86/pti: Fix section mismatch warning/error

BugLink: https://bugs.launchpad.net/bugs/1836287
[ Upstream commit ff924c5a1ec7548825cc2d07980b03be4224ffac ]

Fix the section mismatch warning in arch/x86/mm/pti.c:

WARNING: vmlinux.o(.text+0x6972a): Section mismatch in reference from the function pti_clone_pgtable() to the function .init.text:pti_user_pagetable_walk_pte()
The function pti_clone_pgtable() references
the function __init pti_user_pagetable_walk_pte().
This is often because pti_clone_pgtable lacks a __init
annotation or the annotation of pti_user_pagetable_walk_pte is wrong.
FATAL: modpost: Section mismatches detected.

Fixes: 85900ea51577 ("x86/pti: Map the vsyscall page if needed")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/43a6d6a3-d69d-5eda-da09-0b1c88215a2a@infradead.org
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/x86/mm/pti.c