From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:55080 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728198AbfHZHms (ORCPT ); Mon, 26 Aug 2019 03:42:48 -0400 Date: Mon, 26 Aug 2019 09:42:15 +0200 From: Peter Zijlstra Subject: Re: [PATCH 03/11] asm-generic: add generic dwarf definition Message-ID: <20190826074215.GL2369@hirez.programming.kicks-ass.net> References: <20190825132330.5015-1-changbin.du@gmail.com> <20190825132330.5015-4-changbin.du@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190825132330.5015-4-changbin.du@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Changbin Du Cc: Steven Rostedt , Ingo Molnar , Jonathan Corbet , Jessica Yu , Thomas Gleixner , x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org On Sun, Aug 25, 2019 at 09:23:22PM +0800, Changbin Du wrote: > Add generic DWARF constant definitions. We will use it later. > > Signed-off-by: Changbin Du > --- > include/asm-generic/dwarf.h | 199 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 199 insertions(+) > create mode 100644 include/asm-generic/dwarf.h > > diff --git a/include/asm-generic/dwarf.h b/include/asm-generic/dwarf.h > new file mode 100644 > index 000000000000..c705633c2a8f > --- /dev/null > +++ b/include/asm-generic/dwarf.h > @@ -0,0 +1,199 @@ > +/* SPDX-License-Identifier: GPL-2.0 > + * > + * Architecture independent definitions of DWARF. > + * > + * Copyright (C) 2019 Changbin Du You're claiming copyright on dwarf definitions? ;-) I'm thinking only Oracle was daft enough to think stuff like that was copyrightable. Also; I think it would be very good to not use/depend on DWARF for this. You really don't need all of DWARF; I'm thikning you only need a few types; for location we already have regs_get_kernel_argument() which has all the logic to find the n-th argument.