Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4187553pxb; Sun, 27 Mar 2022 13:54:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd0M/Ed10fpg6/u5N1f5NGKrRNqpElMRfTMfhau6YCN7DWGlLU/tI+M4Ai8tqaKw3a7Q79 X-Received: by 2002:a17:907:2ce3:b0:6df:d819:8b98 with SMTP id hz3-20020a1709072ce300b006dfd8198b98mr24120947ejc.130.1648414498560; Sun, 27 Mar 2022 13:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648414498; cv=none; d=google.com; s=arc-20160816; b=JbBk10SU+kL9/ENLpxX0x+ZYTK4Zcg1O/NwvUTxK3K82wWMArYRwavwqjUVIQfnEsM bgWJtR8hP2uHzw3DbS5iXTiuK3ARFrDLrq90vp7AO7ggm2VhddFHbLINPMFlIagP8KOd amI6p8UzZt6MVJjoOajNtQOiMqvEpuTBLAS04SyBqaD1EX5PoKcSUY2qxuB3SBoaRNu4 edqagzqfSgPDw9OgPtwYxK6XvJq+XOqpIc1fqbNvSnpA5HzJkYQ4ymPXfRrIav8AVTTu c49eJ6PfFdjTBgsrYjeBp4vqxuDu5BeigC87tJMm9YpAjx/YRnNggfvF3nbfPthnUID+ MZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kWe2Ywar0L7Xq47CYttkqo0bkz2nzIpZ3hcYMAh9bP4=; b=Fn2HtnyCD4sRC3vzS6OPbrwNqCS+s42ND+0IFy82GIUre24GJaxZs/5mkk6unGSynv rIPGvoPOvhP3xySr6O9SpRgi7dboTmYL6eb6eaGDB9Yd0k1V3t0FQBRRa4c247mtknoI m6y7ayL+oFM9XWRWd6JExS+KQSmtOuN0EjWD0XZFC2foFjOfCo6UprAOEOdi3DfVAELV K5+ApaALNLK7i1CZ61V2KqOOfHbA/N/7zj2ayk8xwBecGwhI5l8ySdv8NtDlcbPZ28E+ xn0fgnMXfLVkSnWRHxROPWTxb2+MOsVthkySiBW/b4MNwXaBmvYXr7gprDuw8hn2NXj0 rpnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a05640234c700b00419d804948asi3644995edc.382.2022.03.27.13.54.33; Sun, 27 Mar 2022 13:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235595AbiC0HeU (ORCPT + 99 others); Sun, 27 Mar 2022 03:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235092AbiC0HeT (ORCPT ); Sun, 27 Mar 2022 03:34:19 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 483C4312 for ; Sun, 27 Mar 2022 00:32:41 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4KR6x35gvdz9sSV; Sun, 27 Mar 2022 09:32:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l9UUxVPIjdLE; Sun, 27 Mar 2022 09:32:39 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4KR6x34b9Wz9sSS; Sun, 27 Mar 2022 09:32:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 830848B768; Sun, 27 Mar 2022 09:32:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id ThPcLHWlEFUZ; Sun, 27 Mar 2022 09:32:39 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.204.35]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3F4358B763; Sun, 27 Mar 2022 09:32:39 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 22R7WSvO2282414 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 27 Mar 2022 09:32:28 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 22R7WROw2282413; Sun, 27 Mar 2022 09:32:27 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Nicholas Piggin Subject: [PATCH] powerpc/64: Fix build failure with allyesconfig in book3s_64_entry.S Date: Sun, 27 Mar 2022 09:32:26 +0200 Message-Id: <89cf27bf43ee07a0b2879b9e8e2f5cd6386a3645.1648366338.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1648366345; l=1222; s=20211009; h=from:subject:message-id; bh=96+kSaCqQqSaoNnej1U3MksSs1dXsAqDN4zXM01iUoE=; b=XAD5BO+OzdTkf5MAnzN4AkWLh4nvU/V8fJpknb7mgYHef9EEspZjhq7TWZzxjRIGxkpZLRgzoMSX x5lxDSECADEKy/rpKTvPKPUMIK3FPfiudeaOqHmqrMnUqBt0667A X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using conditional branches between two files is hasardous, they may get linked to far from each other. arch/powerpc/kvm/book3s_64_entry.o:(.text+0x3ec): relocation truncated to fit: R_PPC64_REL14 (stub) against symbol `system_reset_common' defined in .text section in arch/powerpc/kernel/head_64.o Reorganise the code to use non conditional branches. Cc: Nicholas Piggin Fixes: 89d35b239101 ("KVM: PPC: Book3S HV P9: Implement the rest of the P9 path in C") Signed-off-by: Christophe Leroy --- arch/powerpc/kvm/book3s_64_entry.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kvm/book3s_64_entry.S b/arch/powerpc/kvm/book3s_64_entry.S index 05e003eb5d90..99fa36df36fa 100644 --- a/arch/powerpc/kvm/book3s_64_entry.S +++ b/arch/powerpc/kvm/book3s_64_entry.S @@ -414,10 +414,11 @@ END_FTR_SECTION_IFSET(CPU_FTR_DAWR1) */ ld r10,HSTATE_SCRATCH0(r13) cmpwi r10,BOOK3S_INTERRUPT_MACHINE_CHECK - beq machine_check_common + beq 1f cmpwi r10,BOOK3S_INTERRUPT_SYSTEM_RESET - beq system_reset_common + bne . - b . + b system_reset_common +1: b machine_check_common #endif -- 2.35.1