Received: by 2002:a17:906:c785:b0:9bd:85f7:2662 with SMTP id cw5csp207456ejb; Thu, 26 Oct 2023 01:15:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZ/P1uzZksa4HQ8136CO+r8WxpvmUhSlpQsT1gZpwZoy+KhWOYdR59sLq4MBVy7XsDqRIK X-Received: by 2002:a05:6512:10c9:b0:507:aa8d:a572 with SMTP id k9-20020a05651210c900b00507aa8da572mr15398441lfg.49.1698308120189; Thu, 26 Oct 2023 01:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698308120; cv=none; d=google.com; s=arc-20160816; b=X3U+eBJ+xNB2O5M7wGgMH+B8VqMT0JwRmfABjYcTuSYVEvOHzcUBLOeNlJt6q+qbUH tOTr/IuNuiKOmYYOcRduRYulqI3au4fwYvVzVWXZFOrEYBLP4jNTanK+yFBq+X9X1NHy R1d6WDLXXAMyuvKmyQ0VWQ/7n360hkEJLkW/oUJ2HVodw5b4oNjcCfjCdN84laPs3TgI Uhl04j4nkclRiINjjkMntqNKXmqNn4yfaO4fxoq+f0rd7VONcnHMWFsM9BeuWrlBzRvJ TioyKANr+hez5ISyIMA8poHezjIzS/vC6Gg4Mv0j9b5CSpg5texcJrNsQG/buXm0XLGo Q2ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Ql5Vy4pWQNjDcXY9mDI9mWkXrxMH6KemWvgXgYc24PY=; fh=SYVNIGgMweLEigKkxxjVeKF0UfGSstuc4pW8xSHUd/Y=; b=HwOKv1k6dv6hNtfhS6ohIHio+itl+oFUVhn5hdh6+l9RztOej/R43zSDxVeLiOZ+M/ tStiV61pWj89M4txWjJKuakVEhEaLj9YAiozcpG+Mi9Z2Lk1cehtgNfr3waet8mSGVGc EvdB0Ou4Y1+Bb/2GZmVpVzFjIymKD62HOv3gS5jinKaDD0ri7MkAQFb8Nn2kGI8YjlbR x7lcFt3qdzN82xpy0e4xJHz1AbTcCBfyEQP8A7yMVCyZ6ow+nruqmk/FwWjR8SbVENAC WLDMljhVsbL+COK1xj4HkbSndSBI6mUVs712uE9rckxoBlbteOf+pfWtuCI3E1wpJEGJ iEhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=b3jdnbWx; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d23-20020a05600c4c1700b0040924ba7ab2si410009wmp.128.2023.10.26.01.15.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Oct 2023 01:15:20 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=b3jdnbWx; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvvWH-0005mQ-LX; Thu, 26 Oct 2023 04:15:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvvWE-0005lg-KO for qemu-arm@nongnu.org; Thu, 26 Oct 2023 04:15:06 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvvWB-0003DG-Oo for qemu-arm@nongnu.org; Thu, 26 Oct 2023 04:15:05 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-53dd3f169d8so850114a12.3 for ; Thu, 26 Oct 2023 01:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698308101; x=1698912901; darn=nongnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Ql5Vy4pWQNjDcXY9mDI9mWkXrxMH6KemWvgXgYc24PY=; b=b3jdnbWx4/2EgT625N5lzFuuCBdB1Q6Zw1OY5CxR4gbnXXyDMu3wyhk+cCXvJYquDp f2aHbi1FenlPzx4leY6waVEZcl5Dv8GBQEzdvC8ZaigOQWvTE/6hAKArqJCG0yRRCcNz Y0LtdaNOQUt+38QKb+OBkciTVcsmUh90u6cp7sx/Ua4otVtlJdzqn6CLeoahjyOIDQgV 8bzOY2i0g+Bng65aBSAfna/gNAwJ0fRke8b2YsdJGZ15BlQc/hjU7uCeDZJti7VCHaVZ tth5lJubUXikH6SO6u1rC9RWQmoGXNB3vd78a2RVNTuXGcqTBMPEJseXDpu+/N9Kogv7 93Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698308101; x=1698912901; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ql5Vy4pWQNjDcXY9mDI9mWkXrxMH6KemWvgXgYc24PY=; b=s1WXxw95pYI5zc5Dga3Yi6Lw0S3/JRtMRWwwZi4PJrJqEpP09BhAGJ5p1L4Q7Kn+17 APJ/WbIEayx2cd6mQNX3ls2orMmMbrj/GhS98r1czMbZ2uHQbstH2DmybIFNylSPeuz0 C+5smC8kWBtJdRvWVeSanObGwbRrFOHOPg0w+zwXm+BHozTSOIt8r5UXPmh8VwTheAxk GydkZ3AhWigDtBor/Cdr7oEKsmMP8i3VZFyA/x5oPjdVwg7A6itM5Oby0foQfvygX9p2 DtzvjmqDs1XsU2iUG65S/tzN0ch43hK96xcXq7jvjZ2ANoixHpS1xZySY1XK5jPWFijX HquA== X-Gm-Message-State: AOJu0Yz3ixkLUGYngX79rYIeoeN3na0o6E4bpaPxOxRtrtqCIdGPRhxB Dg/R0lbXOD6FZym7xtlEgfUVqw== X-Received: by 2002:a50:8e19:0:b0:53e:98c6:5100 with SMTP id 25-20020a508e19000000b0053e98c65100mr11789231edw.30.1698308101376; Thu, 26 Oct 2023 01:15:01 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id q20-20020a056402033400b0053dd8898f75sm10706781edw.81.2023.10.26.01.15.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 01:15:00 -0700 (PDT) Date: Thu, 26 Oct 2023 10:15:00 +0200 From: Andrew Jones To: Sunil V L Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, qemu-riscv@nongnu.org, Peter Maydell , Shannon Zhao , "Michael S . Tsirkin" , Igor Mammedov , Ani Sinha , Marcel Apfelbaum , Paolo Bonzini , Richard Henderson , Eduardo Habkost , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Gerd Hoffmann , Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Anup Patel , Atish Kumar Patra , Haibo Xu Subject: Re: [PATCH v4 01/13] hw/arm/virt-acpi-build.c: Migrate fw_cfg creation to common location Message-ID: <20231026-6b31593481fe2476e49197e5@orel> References: <20231025200713.580814-1-sunilvl@ventanamicro.com> <20231025200713.580814-2-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025200713.580814-2-sunilvl@ventanamicro.com> Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=ajones@ventanamicro.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: lYv2WOiVg++j On Thu, Oct 26, 2023 at 01:37:01AM +0530, Sunil V L wrote: ... > diff --git a/hw/nvram/fw_cfg-acpi.c b/hw/nvram/fw_cfg-acpi.c > new file mode 100644 > index 0000000000..eddaffc09b > --- /dev/null > +++ b/hw/nvram/fw_cfg-acpi.c > @@ -0,0 +1,44 @@ > +/* > + * Add fw_cfg device in DSDT > + * > + * Copyright (C) 2008-2010 Kevin O'Connor > + * Copyright (C) 2006 Fabrice Bellard > + * Copyright (C) 2013 Red Hat Inc > + * > + * Author: Michael S. Tsirkin > + * > + * Copyright (c) 2015 HUAWEI TECHNOLOGIES CO.,LTD. > + * > + * Author: Shannon Zhao > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + > + * You should have received a copy of the GNU General Public License along > + * with this program; if not, see . I don't recommend creating new files with the long form GPL instead of an SPDX. I can't find a QEMU SPDX policy to point at, but pretty much every project I work on has been moving towards SPDX, and usually with a format policy. I presume QEMU will either slowly work its way there too or someday do a mass change. New files can participate in an unofficial slow transition now, rather than have to be touched again in a mass change. ... > diff --git a/include/hw/nvram/fw_cfg_acpi.h b/include/hw/nvram/fw_cfg_acpi.h > new file mode 100644 > index 0000000000..1c863df329 > --- /dev/null > +++ b/include/hw/nvram/fw_cfg_acpi.h > @@ -0,0 +1,15 @@ > +/* > + * ACPI support for fw_cfg > + * > + * SPDX-License-Identifier: GPL-2.0-or-later > + */ While QEMU doesn't appear to have an SPDX policy with formatting rules, I would format this as /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * ACPI support for fw_cfg */ And the source file above as // SPDX-License-Identifier: GPL-2.0-or-later /* * Add fw_cfg device in DSDT * * ... */ as that is the recommended format for many projects (I think starting with Linux which documents[1] it) and tools have already learned that formatting. QEMU's checkpatch will accept the C99 comment style[2]. [1] https://www.kernel.org/doc/html/latest/process/license-rules.html#license-identifier-syntax [2] commit 8d061278d385 ("checkpatch: allow SPDX-License-Identifier") Thanks, drew