Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1095349rwb; Wed, 7 Dec 2022 08:33:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7S7qtgA9A8JPhVcK1TJ8wFjYGhXgqKbYp8NUsX8BueIGISFGjw2GJbmIZD84CLI7feaGTX X-Received: by 2002:a63:d742:0:b0:478:bc19:a511 with SMTP id w2-20020a63d742000000b00478bc19a511mr13221526pgi.380.1670430823851; Wed, 07 Dec 2022 08:33:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670430823; cv=none; d=google.com; s=arc-20160816; b=TlbnLnReX/BVZyhyYEvTO2oZl4GocPlhKr4LPmaX5BeAkgKVajIzFJt6yHHX4reB0K b5CFFvsvinY1ovVue1ffmSPIjunxd+CdQKvO48KZsZe5s545990bxgniDFk2BUfSl/FL bOu2O06JojgkoJx9O6M1aEJl/xvNbloG/EPrn9LroeJ9jPhvw5mpY9/euDL39GdhEX14 2vReqLv0lmmRNycImlndXrTWJ4cUwQ1DLvWeFSihdcZfSIyRiaG6d7aRX5/lny+hWODN rkT/eYUDbzqmTrQNk4Zy0A9idwU4k8fwBDMv6BAn+braZeIhlB8bsGMhcN8Sc/SP4Hm5 /FSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JedNHJvTEEw3ngTfwq+GhcMA8oL9D/gBR+soBVALxbA=; b=N1ui1MQ9Y4syBKVy5riPm/Ys8CMIusE8znQbrRkfSAoCnji31aFiHOIyPIuSEDLssW Ok0BulvY9KF2vjx3t+TIkdIG3PxmJVOfZnrA7X533KIkvJh5KzSS5jsQRavTb/iDd9e/ p64vPKTY7mXAeN5+2yigH9HpgwQfffnkofZeuH8w4cQXGbCmusKEhTHhj4AMbRjs0wSN hoDdpXjBO4TyqLXnSPQ85wYwzH57Lpg6eg6S0zZIbD2dSb5ja1RP2v5UXCbQpnOD86g+ Ydmx6zOj6bMYRx39TOhczdZZabI3jNmc+hITYzXvA8wGQ8aShBLdF75Np5zKlTKM999L JXlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=GKj+moEu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a656683000000b0046ec76d7a09si20662354pgw.665.2022.12.07.08.33.33; Wed, 07 Dec 2022 08:33:43 -0800 (PST) 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; dkim=pass header.i=@alien8.de header.s=dkim header.b=GKj+moEu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229773AbiLGP4Q (ORCPT + 76 others); Wed, 7 Dec 2022 10:56:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbiLGP4O (ORCPT ); Wed, 7 Dec 2022 10:56:14 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4750262CA for ; Wed, 7 Dec 2022 07:56:13 -0800 (PST) Received: from zn.tnic (p200300ea9733e711329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e711:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D1E991EC0513; Wed, 7 Dec 2022 16:56:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1670428571; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=JedNHJvTEEw3ngTfwq+GhcMA8oL9D/gBR+soBVALxbA=; b=GKj+moEuIiUJgoIjdqmbjvmbgbpbKy4esY6NqqiZ0Y+hVPmlLWCZdkwD9ik5rVUU7jkoCv jy4xPiZ/9Gj+76MXrkbgx7kXEmGXewJacn2aSUe7zH3ZiRgiPHFLdz0wpkl+lkCeR/fpfq dFF4+cq2L5WT0/xLo5JmQPUQsYCxkFY= Date: Wed, 7 Dec 2022 16:56:11 +0100 From: Borislav Petkov To: Baoquan He Cc: Eric DeVolder , linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, vgoyal@redhat.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, nramas@linux.microsoft.com, thomas.lendacky@amd.com, robh@kernel.org, efault@gmx.de, rppt@kernel.org, david@redhat.com, sourabhjain@linux.ibm.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com Subject: Re: [PATCH v14 3/7] crash: add generic infrastructure for crash hotplug support Message-ID: References: <20221116214643.6384-1-eric.devolder@oracle.com> <20221116214643.6384-4-eric.devolder@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 On Wed, Dec 07, 2022 at 09:57:48PM +0800, Baoquan He wrote: > I thought we usually need to introduce the kernel config option, then > add code related to it, so that is a wrong idea. It depends: sometimes it is prudent to add the code behind an ifdeffery first but have it not being buildable so that you don't have to deal with build breakages but rather concentrate on adding the facilities first. And you add the Kconfig item only in the end where everything is in place and it should build properly then. > It would be helpful to tell this somewhere in document. Feel free. I mean, it is pretty obvious but if it helps, it wouldn't hurt. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette