Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1571651rwb; Fri, 12 Aug 2022 03:20:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR5gMqELWB3p4pLujYiS6dMRHC9g+1pmtqd4plXRjrW8E5+6UVsXnaBBKLtOwXaKvspLehYf X-Received: by 2002:a17:907:3f85:b0:733:3f0e:2f28 with SMTP id hr5-20020a1709073f8500b007333f0e2f28mr2182774ejc.376.1660299635614; Fri, 12 Aug 2022 03:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660299635; cv=none; d=google.com; s=arc-20160816; b=poR5yLSTihDqqhW7n5qrVdovnHDM6hlEBrYdsrGoac1ueqlu5yGh3/RZWPDamCaPcv /iYzJPDXJKAoaRaFAxlxEUkRLZimC0SYvBPWsTBPJW+Pjvs3gWS18PAunsz9GALMPH+Q ZJQNmmjXfEJ8DpDIBVK4+U3sEaP3qpXlwkAx7N+Nbe2sQhN1pBh40wpGsVR0gE6SdtiC Lc3yNIFsvQYV0nq3uoA4HTf3Q8aNqtuV0mQLthSpBh6LOf3yt4K8e8RbU+yftcEhtYSN bVWR+0xtTqmHU5203+FxL1MHVm/OzBiXlyZcSrbAZpmVKwGSOc2zgcZgJU29cMbJqekf VrIw== 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=2c/iImSQTA02RBtmBVV2RGW771GUr2pXHiaSO81S20w=; b=eakw7M6VSs1UDca07+57WTTyhxwyMJSge7caHet7/QjA+cSk8oqypd+BgLFQJLTeDq ipl0PN4qN0Az5ut2TAqebtjaNjlbJMVcOI1jNiEGzU+e5KXweludEqIrufJI468Yy1p4 IyUeX1hl3wdM+tqJM6ybyWmBgcnZ89RHCi1REnn1TcdBBE7Jfz063+ZqATX+4HgXC0GY Zs2W8KbT//Nk8ZTMS/D3iRGQGvvMFrt7xT2VFuYU21cWTHZCuoF/YgXHu0SyJVuOGbtJ O0D/GkN+1vFxT1zRc0bRoKIbqxHoNHOnq7lFZJVt+7qLw7Nx1hIZBEWpAEv3M2HkVtyB 4R+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IHmORjdK; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a056402359000b0043d32528589si1993732edc.549.2022.08.12.03.20.09; Fri, 12 Aug 2022 03:20:35 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IHmORjdK; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237839AbiHLJq0 (ORCPT + 99 others); Fri, 12 Aug 2022 05:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbiHLJqU (ORCPT ); Fri, 12 Aug 2022 05:46:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 66F5BA4B0D for ; Fri, 12 Aug 2022 02:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660297578; 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: in-reply-to:in-reply-to:references:references; bh=2c/iImSQTA02RBtmBVV2RGW771GUr2pXHiaSO81S20w=; b=IHmORjdK92XMIvtpgDkxRLhynwSIMUrcXWet14jLOWw11hFUs1Pgh6YqTUmF0vgzC5Acx1 o6Z3hZGSmT6lBOKm27yBfk7gzSIv6ie3Y9slGv12aFy0DVBu9FqpEZHGdP0+019z/gubTK EHKHcM86F4/tRJbheEf7C8VnFIRaKxU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-211-2Wxmoo5wOzabgm-izal5tA-1; Fri, 12 Aug 2022 05:46:15 -0400 X-MC-Unique: 2Wxmoo5wOzabgm-izal5tA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 29815811E75; Fri, 12 Aug 2022 09:46:14 +0000 (UTC) Received: from localhost (ovpn-12-160.pek2.redhat.com [10.72.12.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E44A42166B26; Fri, 12 Aug 2022 09:46:12 +0000 (UTC) Date: Fri, 12 Aug 2022 17:46:09 +0800 From: Baoquan He To: Eric DeVolder Cc: 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, bp@alien8.de, 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 v10 1/8] crash: introduce arch/*/asm/crash.h Message-ID: References: <20220721181747.1640-1-eric.devolder@oracle.com> <20220721181747.1640-2-eric.devolder@oracle.com> <52d40562-ee6f-bb89-6d21-2d6baf67053d@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52d40562-ee6f-bb89-6d21-2d6baf67053d@oracle.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 On 08/08/22 at 10:18am, Eric DeVolder wrote: > > > On 8/7/22 22:25, Baoquan He wrote: > > Hi Eric, > > > > On 07/21/22 at 02:17pm, Eric DeVolder wrote: > > > The use of __weak is being eliminated within kexec sources. > > > The technique uses macros mapped onto inline functions in > > > order to replace __weak. > > > > > > This patchset was using __weak and so in order to replace > > > __weak, this patch introduces arch/*/asm/crash.h, patterned > > > after how kexec is moving away from __weak and to the macro > > > definitions. > > > > Are you going to replace __weak in kexec of arll ARCHes? I don't see > > your point why all these empty header files are introduced. Wondering > > what's impacted if not adding these empty files? > > Hi Baoquan, > In this patchset, to file include/linux/crash_core.h I added the line #include . > I patterned this after how include/linux/kexec.h does #include . I am sorry, Eric, it looks not so good. I understand you want to pattern asm/kexe.h, but we need consider reality. Introducing a dozen of empty header file and not being able to tell when they will be filled doesn't make sense. Includig where needed is much simpler. I doubt if your way can pass other reviewers' line. Can you reconsider? diff --git a/kernel/crash_core.c b/kernel/crash_core.c index 77f5f3591760..b0577bdcc491 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -15,6 +15,7 @@ #include #include +#include #include