[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC PATCH] CODING_STYLE: Establish a policy with regards to copyright notices


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Tue, 27 Jan 2026 19:24:01 +0100
  • 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)
  • 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-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==
  • Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Tue, 27 Jan 2026 18:24:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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 actively
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/ and
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 Chromium
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 <alejandro.garciavallejo@xxxxxxx>
---
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 proposal.
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 requirement
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-contributed-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@xxxxxxxxxxxxx/
      - 
https://lwn.net/ml/linux-fsdevel/20221026074145.2be5ca09@xxxxxxxxxxxxxxxxxx/
      - 
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.:
 
 See LICENSES/ for a list of licenses and SPDX tags currently used.
 
+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 you
+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 cannot be
+changed in the future without your approval.
+
+The Xen Project does not accept contributions that include in-source copyright
+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 imported.
+
+The best way to track contributions is through revision control history. See 
DCO
+under CONTRIBUTING for existing mechanisms of attribution.
+
 MISRA C
 -------
 

base-commit: 02bbdda863697096b63e83c2c0a37aa167045476
-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.