From bb57564e6096c16008b5de1921489694d6abd8e1 Mon Sep 17 00:00:00 2001 From: Joe Lawrence Date: Mon, 16 Jan 2023 09:33:55 -0500 Subject: [PATCH] kpatch-build: paravirt_patch_site is x86-only Architectures like ppc64le may set CONFIG_PARAVIRT=y but do not necessarily implement via struct paravirt_patch_site. Signed-off-by: Joe Lawrence --- kpatch-build/kpatch-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 45e8b14..36ab25a 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -342,11 +342,12 @@ find_special_section_data() { check[b]=true # bug_entry check[e]=true # exception_table_entry - # Arch-specific features, without kernel CONFIG_ toggle + # Arch-specific features case "$ARCH" in "x86_64") check[a]=true # alt_instr kernel_version_gte 5.10.0 && check[s]=true # static_call_site + [[ -n "$CONFIG_PARAVIRT" ]] && check[p]=true # paravirt_patch_site ;; "ppc64le") check[f]=true # fixup_entry @@ -360,7 +361,6 @@ find_special_section_data() { [[ -n "$CONFIG_PRINTK_INDEX" ]] && check[i]=true # pi_entry [[ -n "$CONFIG_JUMP_LABEL" ]] && check[j]=true # jump_entry [[ -n "$CONFIG_UNWINDER_ORC" ]] && check[o]=true # orc_entry - [[ -n "$CONFIG_PARAVIRT" ]] && check[p]=true # paravirt_patch_site local c AWK_OPTIONS for c in "${!check[@]}"; do