Received: by 10.223.185.116 with SMTP id b49csp3526421wrg; Tue, 13 Feb 2018 03:50:55 -0800 (PST) X-Google-Smtp-Source: AH8x2268LZNV2oceYCq93EinAgNY1tFwL9VORAmJ4tJ6Auot4XJz2+xf+l9+fcVzOTodNhra6gde X-Received: by 10.98.204.75 with SMTP id a72mr995977pfg.33.1518522655188; Tue, 13 Feb 2018 03:50:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518522655; cv=none; d=google.com; s=arc-20160816; b=g+Ntd/yT+2LijDRtH8npzf81WHLHZXN/1pf7DkSAm4f4MNfmp51yQqPey+YwF3FJ+8 VJPfmNkCVdTeQRzJL+o+yOukQTp+joWVttQRtsrBxIaWM08exG4A+4wA4Wztrn3akGY/ c3lxp4nKloYgLQL58PjsxXpVroJSGbb1kP25A3gsxeyzMsNSgA9o366YD3u9wNJfTo9u RDZ9Rt3RcGhW0piYs0lCzagF10MQifoJBJmuwtD9Vn24V/FfkqEAu474/1JjwACpzpm3 8JnKUwQbu8ZVbhMih4ImaVdRYqJQwYNEt5eIrtO7hw+ZQV3qW5nB4V/tyKRwDwHYhHbI 8rTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=NJ+x+LsTzjjE4PDC8uGlatC/vX6UVxk9dvknmThwX+U=; b=DlSY6PxPPEkkFYIx7devs6caSXCw/3qRNFV5AmUiHroBgLRhZXX+daGeK/Ux69GnTg dRihG1zlRmcrqVQAKfZ5vgdu2o4f6j5mfvH0hjVMArdE/NmXKobks0DTqJu1WkXGa5nJ FKzS7uKlsiF/84GMDoX81TerfDjBi9Nf2JE0IyIQ+Sr5DvCaLGuaAZk/vFsRLqLWsnaz vLl1R9IVCw0td8VR/lBZO90242ML9zVCSuCUnzH14e+74/z+z60n39nfUFG6r8uAoVBC MlLSE3RDFMdF3VTcrAs1pderNjNolIJ9MCN8DVhX4TZqktjLERCzk65D5ePoYB+F+aXb n6iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p69si609298pfl.73.2018.02.13.03.50.40; Tue, 13 Feb 2018 03:50:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934947AbeBMLt3 (ORCPT + 99 others); Tue, 13 Feb 2018 06:49:29 -0500 Received: from ozlabs.org ([103.22.144.67]:40119 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934231AbeBMLt2 (ORCPT ); Tue, 13 Feb 2018 06:49:28 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 3zggn22yvmz9t67; Tue, 13 Feb 2018 22:49:26 +1100 (AEDT) From: Michael Ellerman To: Guenter Roeck , Benjamin Herrenschmidt Cc: Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Guenter Roeck , Balbir Singh , Nicholas Piggin Subject: Re: [PATCH 1/2] powerpc/kdump: Add missing optional dummy functions In-Reply-To: <1518474848-3158-1-git-send-email-linux@roeck-us.net> References: <1518474848-3158-1-git-send-email-linux@roeck-us.net> Date: Tue, 13 Feb 2018 22:49:22 +1100 Message-ID: <877erh2jp9.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Guenter Roeck writes: > If KEXEC_CORE is not enabled, PowerNV builds fail as follows. > > arch/powerpc/platforms/powernv/smp.c: In function 'pnv_smp_cpu_kill_self': > arch/powerpc/platforms/powernv/smp.c:236:4: error: > implicit declaration of function 'crash_ipi_callback' > > Add dummy function calls, similar to kdump_in_progress(), to solve the > problem. > > Fixes: 4145f358644b ("powernv/kdump: Fix cases where the kdump kernel ...") Personally I prefer these untruncated. > Cc: Balbir Singh > Cc: Michael Ellerman > Cc: Nicholas Piggin > Signed-off-by: Guenter Roeck > --- > arch/powerpc/include/asm/kexec.h | 6 ++++++ > 1 file changed, 6 insertions(+) Thanks. Nathan sent a fix for this a few days ago, but I like this version because it uses the existing #ifdefs. I've taken this version but used the subject from his patch. cheers > diff --git a/arch/powerpc/include/asm/kexec.h b/arch/powerpc/include/asm/kexec.h > index 9dcbfa6bbb91..d8b1e8e7e035 100644 > --- a/arch/powerpc/include/asm/kexec.h > +++ b/arch/powerpc/include/asm/kexec.h > @@ -140,6 +140,12 @@ static inline bool kdump_in_progress(void) > return false; > } > > +static inline void crash_ipi_callback(struct pt_regs *regs) { } > + > +static inline void crash_send_ipi(void (*crash_ipi_callback)(struct pt_regs *)) > +{ > +} > + > #endif /* CONFIG_KEXEC_CORE */ > #endif /* ! __ASSEMBLY__ */ > #endif /* __KERNEL__ */ > -- > 2.7.4