From nobody Mon Feb 9 09:10:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1769538299; cv=pass; d=zohomail.com; s=zohoarc; b=ErIFo6nEJUBijt1PORYqob4epMMyb0uVvqyjYYbGftgzSWblHogmhVX5y6vBgxmE1a32vTri/uVqr0soXYCBmHqwpFdHffSmHg/kUhRbC55PwlpOQnkMf0Do+kaarGymlX5UxEN3EoKg0xSP5v+KeFZ82Sgd/dzZMl85x3OtXTc= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769538299; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=IML5BFKvjfdck5Q0nv/+mI7U0qt095NbOXoMVGFN7dM=; b=V90aoHqDTRVQ3a3qeX95gHVtCTPFtCmmyML+FSWoklp+PYkCvLHu08pH6bKgUmi+E1l5HbYiu+2gETnY3uDipiV7Os95lhkhWd0g+6sbu+s+r6rOzoIQOdjP0nL54IAB/W96SkfSLX0DmKg/ydOBVvkb79tX53J6HUge5SLSwy4= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1769538299824869.2321274444375; Tue, 27 Jan 2026 10:24:59 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1215146.1525402 (Exim 4.92) (envelope-from ) id 1vknjt-0004Rd-8c; Tue, 27 Jan 2026 18:24:33 +0000 Received: by outflank-mailman (output) from mailman id 1215146.1525402; Tue, 27 Jan 2026 18:24:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vknjt-0004RW-4l; Tue, 27 Jan 2026 18:24:33 +0000 Received: by outflank-mailman (input) for mailman id 1215146; Tue, 27 Jan 2026 18:24:32 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vknjr-0004RP-Rq for xen-devel@lists.xenproject.org; Tue, 27 Jan 2026 18:24:32 +0000 Received: from MW6PR02CU001.outbound.protection.outlook.com (mail-westus2azlp170120002.outbound.protection.outlook.com [2a01:111:f403:c007::2]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 68aa1d4c-fbad-11f0-9ccf-f158ae23cfc8; Tue, 27 Jan 2026 19:24:26 +0100 (CET) Received: from SJ0PR03CA0061.namprd03.prod.outlook.com (2603:10b6:a03:331::6) by SN7PR12MB8102.namprd12.prod.outlook.com (2603:10b6:806:359::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.7; Tue, 27 Jan 2026 18:24:21 +0000 Received: from BY1PEPF0001AE16.namprd04.prod.outlook.com (2603:10b6:a03:331:cafe::21) by SJ0PR03CA0061.outlook.office365.com (2603:10b6:a03:331::6) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9542.16 via Frontend Transport; Tue, 27 Jan 2026 18:24:19 +0000 Received: from satlexmb07.amd.com (165.204.84.17) by BY1PEPF0001AE16.mail.protection.outlook.com (10.167.242.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.3 via Frontend Transport; Tue, 27 Jan 2026 18:24:19 +0000 Received: from xcbagarciav01.xilinx.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Tue, 27 Jan 2026 12:24:17 -0600 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 68aa1d4c-fbad-11f0-9ccf-f158ae23cfc8 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AEUyAdg37CmUcARjLa3U14+XYvct/XIMbH+DwE4z8tGqQ8FvRw0Fe4MUHZoTsTQ+xzjDQ9GR7SvbHBJR3GeWy4Xxd0yJPrnxIq5AcoyVqWIRhJsEMjjJu9sG2z7rGAHIFiAYFdz9O8GCxg2I8xwfdV8SIHUq1rh0B28QmscM2QVZyWv1l5rmWpNf4DbMDD+v25BDNmQk8QtK9WhNxprDkkzvM1pBobi1MG4i0xVp08onwpmo5lejEDHvLrv4D4NOGg7PCdQLAnMedGOacy+iEQIAUlZ6nG+hULVdYMgFDatCBBU+4QdPgLKDt6ST/fM/+U08LrZtiBc17B8EjVtLrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IML5BFKvjfdck5Q0nv/+mI7U0qt095NbOXoMVGFN7dM=; b=GpQA4ldnhmnZX49GxZI30J9W0g1GTRZ/qEeUxL4Foec18cGNtZLewCZrnXlYhT2wPMaHkv5rtbOu1zXiA4XbFJQNHIMgLew2aNC80mv5NTjHei5os34y13pVx7mkb5pqxvdLp41eQld22IlItebots40RAzt4TFcJWMTwq6Fx5kVJSpcwu2lvBBBuz9fOECdzSDAKw5hdDYU0qOiLYuKJIPDVhTdAyzlTaxzTurYMeRMOQ0SBoo2yphdjc3dvQ55RTbr1ZsuzsH5BRoGZF6CeYfI9nn1wQcFBn5RlQaeu0ARAfevZ9Unv5DR32SBLdKKM4OmaCzz6FQ+SAAtmLmfBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IML5BFKvjfdck5Q0nv/+mI7U0qt095NbOXoMVGFN7dM=; b=w8anWturB9F97bjYufypLkLDqbXgl+yclulJyflY68y7vcGRYrVu97EyrwDQjHHcQo+jLuibrx7qTWzL5Mlgtdfiu6vZon6YmJwfmfCXp2UrgJHnmc9yDe26702ldYGXI9DjzK9wSg7iormWUIP+f/HBREBVmaX+9CeDTvZeOho= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C From: Alejandro Vallejo To: CC: Alejandro Vallejo , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , "Julien Grall" , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [RFC PATCH] CODING_STYLE: Establish a policy with regards to copyright notices Date: Tue, 27 Jan 2026 19:24:01 +0100 Message-ID: <20260127182403.141459-1-alejandro.garciavallejo@amd.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PEPF0001AE16:EE_|SN7PR12MB8102:EE_ X-MS-Office365-Filtering-Correlation-Id: cecabb38-6dae-4c7b-8e60-08de5dd149b4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|36860700013|376014|13003099007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?/SgSgePDeHWcMJers+hznzLutC69jNnEpRtWu9FCYrxhk9ev61Ca/8t/l/5I?= =?us-ascii?Q?s6VkSBHNdNvFaggqXCmdqdPnEoEHp7yMqaMZYc+dcms4JdsofR2vnoerGwqc?= =?us-ascii?Q?GNaJg4N6lgP4K46M4XQH8q25zIiBH+YvKvz641RkUnhJt74ZygbIYkzzBIkP?= =?us-ascii?Q?tpqbGclXFCzgqhtcyRJHxwcYyMOnWpOsSY4MYZFBZypgUO524QsvIL4WLTn6?= =?us-ascii?Q?bDZgSaPOXH/zs3OM5Rzoo/aYK5x0VrJB2UXZDSAYTvpgspcrPBEtsYTTtaMx?= =?us-ascii?Q?MwewUw64Y8JSvgZ1ORx2esaZqhr2+tmINymnXHjwTNAmL+XkHvC5Gs1WQ0Ui?= =?us-ascii?Q?dC93a1+/9Rr47DCThD9gSYM/3m8B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IHj2o9K+VQ/QAVOan0MjLcHPlRGR0boRxtcjnv+wJkfATFq7?= =?us-ascii?Q?abhLoTrs9n27oRobcd/QAY6758l8AXqhUPJDHWXeKSjo/t0w6gmz9LCH01Fv?= =?us-ascii?Q?DmagJMfWmUXWrrPF1zhraWCtJ/5hMNYch4Xhof7bYjhezaTwkHq0DSXDl9xu?= =?us-ascii?Q?yZHlvU//sk1jF7Dw2lS1VTez/YpK37d8k8KJINsVPkfGRR2fE5HclVbqY23P?= =?us-ascii?Q?t0ICHJH/FIjjFnDeAeSiT85K9C1KAtUuZA+MrflzjGhhKksO3jgJTcuN21nM?= =?us-ascii?Q?mV9KCg4PW6A2OPSzQL6M0s4kUhUohYFcgqyPh72payzF8gLGpdh9T+nAVvax?= =?us-ascii?Q?G5EMpPD8/lrc3QgdsLcnOsk=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(82310400026)(36860700013)(376014)(13003099007);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2026 18:24:19.7963 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cecabb38-6dae-4c7b-8e60-08de5dd149b4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BY1PEPF0001AE16.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8102 X-ZohoMail-DKIM: pass (identity @amd.com) X-ZM-MESSAGEID: 1769538300845158500 Content-Type: text/plain; charset="utf-8" This patch modifies CODING_STYLE to severely discourage use of copyright notices when their presence is not legally mandatory. Copyright notices are redundant on commit, misleading from the time the file receives contributions from anyone not represented by such notice, and acti= vely harmful for attribution by the time the original code is long gone. They are plain wrong when added on code motion.... the list goes on. All attribution worth keeping is version-controlled through Signed-off-by, Co-authored and the like, DCO and the cumulative contents of git history. License banners have already been superseded by the contents of licenses/ a= nd SPDX tags. Other FOSS projects have already moved away from explicit copyright notices where possible, and severely discourage their use when not. Apache and LLVM take active issue with copyrighted contributions and Chromi= um takes issues with copyrighted contributions not attributed to the project. = Some Linux subsystem maintainers already frown upon copyright notices too, even = if it hasn't reached the point of being a mandated requirement yet. Signed-off-by: Alejandro Vallejo --- The actual changes are almost verbatim from the LLVM guideline, but it's not exact. Wording can be adjusted as needed. I care about the core of the prop= osal. Saying "please, drop the notice" on contributions where it's clearly not a legal requirement, or have the contributor state that it is a legal require= ment and why. For fairness sake for all contributors to the project. I'd prefer taking the Apache approach for new contributions, but I want some discussions to happen first. Thoughts? Relevant examples: - LLVM: They banned copyright notices, unless part of a vendored components. - Links: - https://llvm.org/docs/DeveloperPolicy.html#embedded-copyright-or-co= ntributed-by-statements - Relevant quote: The LLVM project does not accept contributions that include in-source copyright notices except where such notices are part of a larger external project being added as a vendored dependency. - Apache: They banned optional copyright notices and relegated mandatory notices to a NOTICES file that also contains an Apache copyright notice. See links. - Links: - https://www.apache.org/legal/src-headers.html - https://infra.apache.org/licensing-howto.html#mod-notice - Relevant quote: If the source file is submitted with a copyright notice included in it, the copyright owner (or owner's agent) must either: * remove such notices, or * move them to the NOTICE file associated with each applicable project release, or * provide written permission for the ASF to make such removal or relocation of the notices. - btrfs: They are highly discouraged. - Links: - https://lore.kernel.org/20220909101521.GS32411@twin.jikos.cz/ - https://lwn.net/ml/linux-fsdevel/20221026074145.2be5ca09@gandalf.lo= cal.home/ - https://archive.kernel.org/oldwiki/btrfs.wiki.kernel.org/index.php/= Developer's_FAQ.html#Copyright_notices_in_files.2C_SPDX - https://lwn.net/Articles/912355/ - Relevant quote: Let's say it's OK for substantial amount of code. What if somebody moves existing code that he did not write to a new file and adds a copyright notice? We got stuck there, both sides have different answer. I see it at minimum as unfair to the original code authors if not completely wrong because it could appear as "stealing" ownership. There's more cases of other projects taking similar stances. --- CODING_STYLE | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CODING_STYLE b/CODING_STYLE index aae5a47ac2..97f80245ed 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -24,6 +24,24 @@ license, e.g.: =20 See LICENSES/ for a list of licenses and SPDX tags currently used. =20 +Copyright notices +----------------- + +Copyright for the code in the Xen Project is held by the respective +contributors. Because you (or your company) retain ownership of the code y= ou +contribute, you know it may only be used under the terms of the open source +license you contributed it under: the license for your contributions canno= t be +changed in the future without your approval. + +The Xen Project does not accept contributions that include in-source copyr= ight +notices except in the following cases: + * where a committed file already contains it. + * where a committed file is renamed. + * where such notices are on files from an external project being importe= d. + +The best way to track contributions is through revision control history. S= ee DCO +under CONTRIBUTING for existing mechanisms of attribution. + MISRA C ------- =20 base-commit: 02bbdda863697096b63e83c2c0a37aa167045476 --=20 2.43.0