kpatch/kmod/patch
Joe Lawrence a02668a0f7 kmod: remove redundant -mcmodel=large on ppc64le
In PR #1205, Kamalesh reports:

  ... I see that the -mcmodel=large flag is being passed twice with
  KBUILD_CFLAGS_MODULE set:

  gcc -Wp,-MMD,/root/.kpatch/tmp/patch/.livepatch-meminfo.mod.o.d ............ -mcmodel=medium .... -I/root/kpatch/kmod/patch -mcmodel=large -fplugin=/root/kpatch/kpatch-build/gcc-plugins/ppc64le-plugin.so ... -DMODULE -mno-save-toc-indirect -mcmodel=large -mcmodel=large -DKBUILD_BASENAME='"livepatch_meminfo.mod"' -DKBUILD_MODNAME='"livepatch_meminfo"' -D__KBUILD_MODNAME=kmod_livepatch_meminfo -c -o /root/.kpatch/tmp/patch/livepatch-meminfo.mod.o /root/.kpatch/tmp/patch/livepatch-meminfo.mod.c.

  I loaded the module built without the KBUILD_CFLAGS_MODULE +=
  -mcmodel=large flag and seems to okay. I guess, we can remove the arch
  specific flag from the Makefile.

Suggested-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
2021-08-09 17:58:02 -04:00
..
kpatch-macros.h kmod: convert __section to __kpatch_section 2020-11-04 14:15:12 +08:00
kpatch-patch-hook.c kmod: add support for in-kernel livepatch hooks 2018-03-23 10:32:14 -04:00
kpatch-patch.h create-kpatch-module: Fix -Wconversion warnings 2020-02-11 19:25:10 +05:30
kpatch.h build and install core module with make 2014-02-18 07:44:33 -06:00
kpatch.lds.S kmod: add support for in-kernel livepatch hooks 2018-03-23 10:32:14 -04:00
livepatch-patch-hook.c kpatch-build: enable klp with replace option by default 2021-05-25 15:18:36 -07:00
Makefile kmod: remove redundant -mcmodel=large on ppc64le 2021-08-09 17:58:02 -04:00
patch-hook.c CONFIG_LIVE_PATCHING -> CONFIG_LIVEPATCH 2015-02-04 08:32:08 -06:00