]> git.baikalelectronics.ru Git - kernel.git/commit
s390/nospec: build expoline.o for modules_prepare target
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 27 Jun 2022 12:50:53 +0000 (14:50 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 13 Jul 2022 13:21:55 +0000 (15:21 +0200)
commitb7dd4d89029c326c8eb9fbc094b6deabc15ab233
tree49da32666321502636d714842b4df4d9674b5d54
parenta2ef55e3127c8d2d7c426c76e15a5e586556f3b9
s390/nospec: build expoline.o for modules_prepare target

When CONFIG_EXPOLINE_EXTERN is used expoline thunks are generated
from arch/s390/lib/expoline.S and postlinked into every module.
This is also true for external modules. Add expoline.o build to
the modules_prepare target.

Fixes: fc158dc71420 ("s390/nospec: add an option to use thunk-extern")
Reported-by: Joe Lawrence <joe.lawrence@redhat.com>
Tested-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Tested-by: C. Erastus Toe <ctoe@redhat.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://lore.kernel.org/r/patch-1.thread-d13b6c.git-a2387a74dc49.your-ad-here.call-01656331067-ext-4899@work.hours
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/Makefile
arch/s390/lib/Makefile
arch/s390/lib/expoline.S [deleted file]
arch/s390/lib/expoline/Makefile [new file with mode: 0644]
arch/s390/lib/expoline/expoline.S [new file with mode: 0644]