Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp380344pxb; Wed, 24 Feb 2021 04:54:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVJrCn8IYNXt66M6wPa5VR+L+2BWzK1DWEEYApVySRnBw18ojCcQGfaFjtG6o7wShdo/aZ X-Received: by 2002:a17:906:7485:: with SMTP id e5mr15692685ejl.86.1614171289847; Wed, 24 Feb 2021 04:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614171289; cv=none; d=google.com; s=arc-20160816; b=kjEWedce6s3GezDYIBc5/fFlikWC8zUBti2itQq1oMZwxiU5orIOC4OdGIJoAJvQDB Umi83nyjqPs8TWsEiYnv6UKcPdDiWsqu5t+h60WK4oO+kFnuvgTloMGy2nQpn+C0jms5 O9HiGIkcyKhO8hWZwWXlHZ9jLAW7csVlVMKsIhJPiSfTmSkGDfBhZQNsvp5mh9/hHyzH aa9Bq71RpcV2o8jxP6dwuNi9Xn1hCCm893vB7aM0qtB5Cik6s7wSVJ1eQm3SBT9I4/uP yZKaQVIra2Tb/eO3X7vqnlhUeJ/vfXzTogtZ7XElhpH3LIRGd/aB9rtZPMindeSYiAG4 YTeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:message-id; bh=6KuoAuR4brlx9/g+M3hTmCUgh3KYoNm0sem0BWhAS0M=; b=kjOiOTSL63jP0Y0eucIGf7Fpjcpu0MNDBy4sGWyyQNfxAsfu4CyCAGSzswR/ECV+d1 O15B8AlZBlrFGDH7+bSOSFI8rmCllGpBkNRPs1IvfLRFtxpr3DmS0qu8PNeKe3H+qT/N id2kc10gD5oKkWFK+o47VpZI4SnElrozZnNcMsStfknC9Hqi2mjrfOUXIUJcXSnBzdQT XF/Mi3/Wpn3dCBFew4DOivlnKW0hT1TjpPZMvx1BkXm3zndEDWjBdZkPZvJKM39ZfAXv bXmQA43noiwR5r4Zv3c6BCMJOomH/FXxqcx1GiwElem+gaJfp7qVazfioKtpJTAIA1rS O+Bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si1252851ejz.244.2021.02.24.04.54.24; Wed, 24 Feb 2021 04:54:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbhBXGfM (ORCPT + 99 others); Wed, 24 Feb 2021 01:35:12 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:57662 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbhBXGfL (ORCPT ); Wed, 24 Feb 2021 01:35:11 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4DlmNZ11TJz9typF; Wed, 24 Feb 2021 07:34:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id UrfR2TZ5sEw8; Wed, 24 Feb 2021 07:34:22 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4DlmNY6lfZz9tyhP; Wed, 24 Feb 2021 07:34:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E205B8B833; Wed, 24 Feb 2021 07:34:22 +0100 (CET) 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 ljQKO2k2kZk9; Wed, 24 Feb 2021 07:34:22 +0100 (CET) Received: from localhost.localdomain (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A85EB8B766; Wed, 24 Feb 2021 07:34:22 +0100 (CET) Received: by localhost.localdomain (Postfix, from userid 0) id 70B6E673C1; Wed, 24 Feb 2021 06:34:22 +0000 (UTC) Message-Id: <53f3a1f719441761000c41154602bf097d4350b5.1614148356.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH] powerpc/syscall: Force inlining of __prep_irq_for_enabled_exit() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , npiggin@gmail.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Wed, 24 Feb 2021 06:34:22 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As reported by kernel test robot, a randconfig with high amount of debuging options can lead to build failure for undefined reference to replay_soft_interrupts() on ppc32. This is due to gcc not seeing that __prep_irq_for_enabled_exit() always returns true on ppc32 because it doesn't inline it for some reason. Force inlining of __prep_irq_for_enabled_exit() to fix the build. Reported-by: kernel test robot Signed-off-by: Christophe Leroy Fixes: 344bb20b159d ("powerpc/syscall: Make interrupt.c buildable on PPC32") --- arch/powerpc/kernel/interrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/kernel/interrupt.c index 398cd86b6ada..2ef3c4051bb9 100644 --- a/arch/powerpc/kernel/interrupt.c +++ b/arch/powerpc/kernel/interrupt.c @@ -149,7 +149,7 @@ notrace long system_call_exception(long r3, long r4, long r5, * enabled when the interrupt handler returns (indicating a process-context / * synchronous interrupt) then irqs_enabled should be true. */ -static notrace inline bool __prep_irq_for_enabled_exit(bool clear_ri) +static notrace __always_inline bool __prep_irq_for_enabled_exit(bool clear_ri) { /* This must be done with RI=1 because tracing may touch vmaps */ trace_hardirqs_on(); -- 2.25.0