Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp383975ybg; Wed, 3 Jun 2020 03:20:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSwpC2fk7C/h0FMDuVJxsnVgZkiVrintSU1MB312Scg3peCKOD/ZBSNDLjc6zJIkgwEF/T X-Received: by 2002:a17:906:17c5:: with SMTP id u5mr26309833eje.275.1591179659491; Wed, 03 Jun 2020 03:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591179659; cv=none; d=google.com; s=arc-20160816; b=LjTWxyg7bpyLxE74yF5LzjUi2hTfCrqgOvCM8fCLI/BEEnXwJXm/2e/xGAz9HghI+Y BOQ6q/EZG5/efUJVedCwrYrkjgR+XwHwrKc8u/2KPsSLCJtFo096yJtfPaSB8J/SexqT qE7U9saj/nWHsTpoHj7Gz4SEZRIZqX+qhmwab/5xkX/286++8hpM48Z83GApa2/P7LBu L4eWR88GFR8bK87nFb+iR8qA6V2bX8VZMGTRzSpTfxLmHhuKFKLgYK2wCsfRfwCzn+uo KgIejlvm6ztRYXsBaU6r7VpQMlYdSpgE78uAqxLHEALqS52YvL6zOGAjkTMAnBoPtsyw y8pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hhkzkyV+MMQX1Tc6wI8k+fSmmbaabOB3WTKH0EJ/62U=; b=kXvVd/uWlC9el6PHbp2rvb8o8QyBcldbrtK85hWvw4jqLag0Etqe2dI6sFP+bYEf9L 9GdKD9caDEx+yYWTLFZIVQPhb4KOOJpbVI2o4FQSk77v0vGF7x++OVIQHxnzd1ly4VmS ZQS94fyII68CcRJLT9Z38cQoad076UuWtxqzXOjQnb6Jv33thwg8kZeVvjXzbMFFiKRF QN7vqsqcbfCwY2z8Hyg3At3Zpjsgi0cHXHgVmJ0nQhRb0A20bXiPn+a6NVeQ1Gv1igB7 3zX9XUh4WdUn68GakB1X4uiev9Va+P7E+f4zSEwidkKRMlPhIxpBphKax0/B2orZL0f6 VX5Q== 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 dp8si1096220ejc.281.2020.06.03.03.20.33; Wed, 03 Jun 2020 03:20:59 -0700 (PDT) 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 S1726099AbgFCKQc (ORCPT + 99 others); Wed, 3 Jun 2020 06:16:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:53970 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgFCKQc (ORCPT ); Wed, 3 Jun 2020 06:16:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 732DCAC2C; Wed, 3 Jun 2020 10:16:33 +0000 (UTC) Date: Wed, 3 Jun 2020 12:16:28 +0200 From: Petr Mladek To: John Ogness Cc: Peter Zijlstra , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] crash: add VMCOREINFO macro for anonymous structs Message-ID: <20200603101627.GE14855@linux-b0ei> References: <20200501094010.17694-1-john.ogness@linutronix.de> <20200501094010.17694-2-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501094010.17694-2-john.ogness@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2020-05-01 11:46:08, John Ogness wrote: > Some structs are not named and are only available via their typedef. > Add a VMCOREINFO macro to export field offsets for such structs. Honestly, I did not get the meaning until I looked at the sample usage added by the 2nd patch. The term "anonymous structures" has another meaning in C++. It is used for structures without any name that are defined inside a named structure. Something like this might be better: "crash: Add VMCOREINFO macro to define offset in a struct declared by typedef The existing macro VMCOREINFO_OFFSET() can't be used for structures declared via typedef because "struct" is not part of type definition. Create another macro for this purpose." Anyway, thanks a lot for the prototype of crash implementation. I am happy that it is possible. Best Regards, Petr PS: It might take few more days until I send some feedback for the other patches. They are a bit more complex ;-)