Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A5A5C433F5 for ; Thu, 16 Dec 2021 19:22:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240940AbhLPTWL (ORCPT ); Thu, 16 Dec 2021 14:22:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240928AbhLPTWK (ORCPT ); Thu, 16 Dec 2021 14:22:10 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8A20C06173E for ; Thu, 16 Dec 2021 11:22:09 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id l22so51581025lfg.7 for ; Thu, 16 Dec 2021 11:22:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iJmd78S3YbBSlGQn83I0jq9ljqrL5KMi3cs+QYv4G5Q=; b=IMgJ0vGuO/mp788yQJshC9wZYW0T/EEGkCkJvNmjGYmgBuCAXQi9R2rtPnVUXGpiuW dATrFQX97/XiSGJEL5ODlEI125Pc8PGXuuEZFtY+4+LgL446FVYJYbytxskslz7R4my4 6T+6uiuzXFLvbqemsAX65zgj5iPDLNM0Gr5O4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iJmd78S3YbBSlGQn83I0jq9ljqrL5KMi3cs+QYv4G5Q=; b=qYvTkaO8qE3yCAtOjzwVWoKlmoX9OXlkeTA8Pqu+n5KgbL9HDkmR6ajRIcqAFiLRgt qIgOYcaaHbL0mJkpjnglWOQXbKbP2fD6ZixKS00ngCQrKk5K0y+fRQwYsRMQZf5SXCf1 ifnNuLDYEYEmFE0C/CoNNc98auOro4yEHfkZWj0nrMJYyvgadEDHm8hCEWRdBv/krIVT Ch6XhYSQ+wIFLU3PUQQ8G+pK+9JEPD9DHK72HSp7GKqyoZqpRQlmJjMae8R/3s1aNJH8 8hDrtop2YV4iBVXvBBFjPUSNNaIyJVmnxTPyPRLexqUcj0t/vsEkjjj9/11txs0E1rhA zNTw== X-Gm-Message-State: AOAM5328rd5m+gV4JVOQwFFGmkhf/1gx7BYu7+YrgZel9dqFLBePSNOQ WKTnyJ7zRgaJpmLELrJRl8ORAcFmqRsQv4s4HNuwqA== X-Google-Smtp-Source: ABdhPJyCyOzuaF/9HovqrvOyPV/d+bMWRgT/6AyULF6y3aDZ9NbPhU2nDhZoejovfVAoP9h+Uv3p9CWC1x60r/Mch2U= X-Received: by 2002:a05:6512:23a7:: with SMTP id c39mr16423447lfv.655.1639682527942; Thu, 16 Dec 2021 11:22:07 -0800 (PST) MIME-Version: 1.0 References: <20211216094503.10597-1-lukas.bulwahn@gmail.com> In-Reply-To: From: Kate Stewart Date: Thu, 16 Dec 2021 13:21:56 -0600 Message-ID: Subject: Re: [PATCH] drm/amdkfd: make SPDX License expression more sound To: Richard Fontana Cc: Lukas Bulwahn , Felix Kuehling , Jonathan Kim , Alex Deucher , amd-gfx@lists.freedesktop.org, Thomas Gleixner , Greg Kroah-Hartman , linux-spdx@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 16, 2021 at 11:14 AM Richard Fontana wrote: > > On Thu, Dec 16, 2021 at 4:45 AM Lukas Bulwahn wrote: > > > > Commit b5f57384805a ("drm/amdkfd: Add sysfs bitfields and enums to uAPI") > > adds include/uapi/linux/kfd_sysfs.h with the "GPL-2.0 OR MIT WITH > > Linux-syscall-note" SPDX-License expression. > > > > The command ./scripts/spdxcheck.py warns: > > > > include/uapi/linux/kfd_sysfs.h: 1:48 Exception not valid for license MIT: Linux-syscall-note > > > > For a uapi header, the file under GPLv2 License must be combined with the > > Linux-syscall-note, but combining the MIT License with the > > Linux-syscall-note makes no sense, as the note provides an exception for > > GPL-licensed code, not for permissively licensed code. > > > > So, reorganize the SPDX expression to only combine the note with the GPL > > License condition. This makes spdxcheck happy again. > > > > Signed-off-by: Lukas Bulwahn > > --- > > I am not a lawyer and I do not intend to modify the actual licensing of > > this header file. So, I really would like to have an Ack from some AMD > > developer here. > > > > Maybe also a lawyer on the linux-spdx list can check my reasoning on the > > licensing with the exception note? > > I believe "MIT WITH Linux-syscall-note" is a syntactically correct > SPDX expression but is otherwise sort of non-meaningful. > "(GPL-2.0 WITH Linux-syscall-note) OR MIT" is presumably what is > intended here. But yes would be good to get confirmation from someone > associated with AMD. Thanks Lukas, I agree that this is indeed clearer. +1 Reviewed-by: kstewart@linuxfoundation.org