Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1518149img; Tue, 19 Mar 2019 09:17:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBnJLNfIppOiLG8t5uebwFt0xhlXg6/13DJu4WSoKDp8c67Tyjqgr9wNEgvKZ7LjebpcB5 X-Received: by 2002:a63:181a:: with SMTP id y26mr2643729pgl.268.1553012228416; Tue, 19 Mar 2019 09:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553012228; cv=none; d=google.com; s=arc-20160816; b=oXKyMLr9O97n7voKIjt2YshKV76avstvfNQdHNiLwBhxAgiITq7CoM+qR/cwU0cQ3p qeOL7mtc+bYZP9EyMHRjMj7bj9N7YTFLsLxA+xhnNBgLbex2nsfrdL09qyJWm4TDJjzQ hTWfWnrwsKMmiz9B2C/QfgMMBml3bsZRr5PIG/O2jT8uTt9J6OB49Pi9hels36rvJmxK FguLy5n1k798GF0D13WWTzB5MWh1r+yvaudPZAJYM+U54wWsDDlwBs/gFAkdIJhqEuEU h1aeOzknpCwNH0ESKatOqYc2FHkQ+9pEbqxGnPhbx8qZHY0k1/zPOWPlZvQKYJqGJfFM C8HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tDMxXgo0eVAtSrDg7SeO+qv8r/MSb+PeMGzIW9OaYbA=; b=ZSgtsQZHBW0GeuyrlJ2W+kWBXVZZguPgeZrR01/+hOGMgNdh96BU0rcsgxEJAeHRof o8MjArtR4CpmFCRbIachXmtEBuRbYjTfWl1qO0PSJ2YC5atrOglTHuT0+C6eHED8fsTr ShMM4kZw3JI9BgfJtmQ3ZJFsdLIPfuXbpt/3mZBFD4dG9M/VnxdfYpU70H4VUya9XUFH Wy8XmhhJciYGs2U3wDd4SaYJcXQchKZ0tP4JX8Yc2uUN51Eg21JXUcw3hwcltmqPNrN1 ckZWLiTRFAL0lpdbpad4MZY8y12vllCvc2inpj/nYJX6JKav0MZ45lrWjkXX0BFFNGqj S4Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="fyMBb/WR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si11822882pfa.138.2019.03.19.09.16.52; Tue, 19 Mar 2019 09:17:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="fyMBb/WR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727163AbfCSQOq (ORCPT + 99 others); Tue, 19 Mar 2019 12:14:46 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:45688 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbfCSQOq (ORCPT ); Tue, 19 Mar 2019 12:14:46 -0400 Received: by mail-lf1-f67.google.com with SMTP id 5so2861316lft.12 for ; Tue, 19 Mar 2019 09:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tDMxXgo0eVAtSrDg7SeO+qv8r/MSb+PeMGzIW9OaYbA=; b=fyMBb/WRe1vN63Trs5ZnAJE5pgGjJdY6T6feBivzEyVlf8ieRmD6P72+BmoGZ2pLtL tSd/ED+dfYn/qp1+ji7yrDfa7ek7Go3HX55iTKagJCssCDRtGSlx78IXrjoKb/ijRkZL kGsX4qHuGEvrHXE4bz7R8enBNqj1s1du5K1heEvBLRCbpAa0Q3lfq3vJgv2LR/CedW01 s/G+0ZG5ZUpc+mLxKDvSNcigQdHw+42STmdsQTJzP7tcRQoeosRlYyjd0RDN9Gj42D9y BtjoAMo3IedI244UKNtoq53u3iek3p+PZzd3n2DL+sSM4uNJ8d+ave/vx7bxZbw7twp8 Lb1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tDMxXgo0eVAtSrDg7SeO+qv8r/MSb+PeMGzIW9OaYbA=; b=CyVzBzYseb/iNtCLWNSYDSMnlVslX6bK7W5DwRedh/9+H5/HZKYS17OWn8kAwGaW1A vihJxsgLMOn+tSa7siZOoBX3Hu05TjZr7jvvXWQ1ZfcKUmUklc7auSH3KfpuDH1YYV7z V2DH+K42chUyVj2IR5vgOXuJLx6BR6Rto3cBHdQggQH0JQ0kgwW7od7xffHviGvsnwLI 6gUHOwmrc50i4pC5E4sFcAWOEPz+gfpJBzkY3UqgRwTR1kt/akZWgmx2K7p2MnMntCxz Bc/M3avOclpubDIzEbZ2ozFIdqUwIv2fc4QpThXlKjRxzr28cvIf/Po51qBb7KiKu5fQ DuVQ== X-Gm-Message-State: APjAAAWNa/pEPGm3i5FuDwGfhXfztTx1MWMg0Zzj3qy3yC9AuraJr7Np 0G88ze82NnGFKGgdi1KTqRAL1sPAvQDSAPDaZvTMUw== X-Received: by 2002:a19:6a0b:: with SMTP id u11mr14003332lfu.13.1553012084167; Tue, 19 Mar 2019 09:14:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Kiryanov Date: Tue, 19 Mar 2019 09:14:32 -0700 Message-ID: Subject: Re: [PATCH] drivers: power: supply: goldfish_battery: Fix bogus SPDX identifier To: Thomas Gleixner Cc: LKML , Sebastian Reichel , Greg KH Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I am sorry for this warning. I remember I checked all changes I sent, maybe missed this one. At the bottom the file says MODULE_LICENSE("GPL"); and // SPDX-License-Identifier: GPL-2.0 makes it inconsistent. Regards, Roman. On Tue, Mar 19, 2019 at 7:51 AM Thomas Gleixner wrote: > > spdxcheck.py complains: > > drivers/power/supply/goldfish_battery.c: 1:28 Invalid License ID: GPL > > which is correct because GPL is not a valid identifier. Of course this > could have been caught by checkpatch.pl _before_ submitting or merging the > patch. > > WARNING: 'SPDX-License-Identifier: GPL' is not supported in LICENSES/... > #19: FILE: drivers/power/supply/goldfish_battery.c:1: > +// SPDX-License-Identifier: GPL > > Which is absolutely hillarious as the commit introducing this wreckage says > in the changelog: > > There was a checkpatch complain: > > "Missing or malformed SPDX-License-Identifier tag". > > Oh well. Replacing a checkpatch warning by a different checkpatch warning > is a really useful exercise. > > Use the proper GPL-2.0 identifier which is what the boiler plate in the > file had originally. > > Fixes: e75e3a125b40 ("drivers: power: supply: goldfish_battery: Put an SPDX tag") > Signed-off-by: Thomas Gleixner > --- > diff --git a/drivers/power/supply/goldfish_battery.c b/drivers/power/supply/goldfish_battery.c > index ad969d9fc981..c2644a9fe80f 100644 > --- a/drivers/power/supply/goldfish_battery.c > +++ b/drivers/power/supply/goldfish_battery.c > @@ -1,4 +1,4 @@ > -// SPDX-License-Identifier: GPL > +// SPDX-License-Identifier: GPL-2.0 > /* > * Power supply driver for the goldfish emulator > *