Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7156320ybi; Mon, 8 Jul 2019 15:47:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5Zc9nk5iWx+ueaf0VwTq4nDbvG6Nod3mAkZoIp1RT7+XF6wT4tSABxUZ2XcetWNSe3hfG X-Received: by 2002:a17:902:4683:: with SMTP id p3mr25843604pld.31.1562626040127; Mon, 08 Jul 2019 15:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562626040; cv=none; d=google.com; s=arc-20160816; b=NT0X7QYIGwsJETCEUDLgl8vByvWEudiG6RFrAehaVSvKr56GSzF9e2EG0JE0jubZVt KKv8r2NgKkHHJ8McJtZ139MirvTk8UcjVkyTWJ5SZRVCXN2n07YJeewLBxE6d/XOo3IY MDWBzoltIZL1Y+cqCnAQS2pGT8sVEHuB3Vr4GLEBJz/ymOPUnxrCI3dS6j0aP1UxXhb7 oyHUPy0qfc+wpQTkjW9C/R+qBjVYQwQGXz6jXeAzc0Gi9xv1nLeVZc6a875rdQ7HOMy9 +fWRmscJi1VEXf3gnYjD8D4zStNRrb3jBUR7KeeVY7QXdyJsmQt+snhSoJvrY9377xvA rM+Q== 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; bh=wuYR4ctP+Z0e4Snpj6oEKGwghzEqHesmniJR9+rfaQ0=; b=BnCblf/mGv5Me5GnJ5a2X5a3JWzuPKM5QNnDrL3v260SU7bh1gwkuzaVnIfpF4xqav V6O9QJl1mYc0TPb51cpvsjQt1CQKBX2nuqhx6LzjTYq5zyMd6T1Gilsq1xDGlV58dEvc 0IqSlK9RRoc3bVeSm6wy+kdWYATONtBQazbuaJtezcCMupqCkLkgRmb1ztkrTbow3ZEy Tzf+TNwmWIZh3CYD+PHAGB0ye7M5lz5DHZBrwyzOWHA1SRZFItZXUl+RB5eKx4acyiBk b0hJFQqS2+iNkfLECaIVkEE3VkCIVEfgwzBVPScAtgEEu0Z7Oban4fzBLb1l1Baej/xK 3R2g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j36si19424906plb.77.2019.07.08.15.47.05; Mon, 08 Jul 2019 15:47:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390437AbfGHTV5 (ORCPT + 99 others); Mon, 8 Jul 2019 15:21:57 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:47070 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731498AbfGHTV4 (ORCPT ); Mon, 8 Jul 2019 15:21:56 -0400 Received: by mail-vs1-f66.google.com with SMTP id r3so8976431vsr.13 for ; Mon, 08 Jul 2019 12:21:55 -0700 (PDT) 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=wuYR4ctP+Z0e4Snpj6oEKGwghzEqHesmniJR9+rfaQ0=; b=Ku1Vy6alZeml11f0c+7TEC4aohRoNZh9/nnrDospkRZ/DxDWvutgr5ffim+/wRo3pN gFooHTd9TgkFQZAyNu8332yNzLrOXGySkueupxi1m9iWh1mdCgfzTIzdSyv/xUf4NLZW 0xSh25Yx1SLxIG7bJhxbX4pQAtK9Uk+mQLHbCo3jpaBgsxr9a1VxNcO4G7ynRMIH4PSC bNxHGvRoKmBZDMLgF2qUxWnNQfS4ZoOWfWzpAK6k8tj+4kKb7rL3o0fE+XF6q+09rtYw P5PpcrgrfKfF2JtGc/Hvc9Vru12Wr1zb+mJO/ek4Pwp4R7pJ2KBJHNx7cghDaAWmGnDL K4bg== X-Gm-Message-State: APjAAAXYMZoAYOh4GI5JhXFZ0YADu7dKh13Pa+tFCuyAnvInA/38uPdz T+vbxMFkImZQcO/b2d1f67WqErloVz7d4fgfveE= X-Received: by 2002:a67:dd0d:: with SMTP id y13mr3159460vsj.210.1562613715328; Mon, 08 Jul 2019 12:21:55 -0700 (PDT) MIME-Version: 1.0 References: <1562609151-7283-1-git-send-email-cai@lca.pw> In-Reply-To: <1562609151-7283-1-git-send-email-cai@lca.pw> From: Ilia Mirkin Date: Mon, 8 Jul 2019 15:21:44 -0400 Message-ID: Subject: Re: [PATCH v2] gpu/drm_memory: fix a few warnings To: Qian Cai Cc: Andrew Morton , David Airlie , Daniel Vetter , Maarten Lankhorst , Sean Paul , joe@perches.com, linux-spdx@archiver.kernel.org, dri-devel , LKML 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 On Mon, Jul 8, 2019 at 2:06 PM Qian Cai wrote: > > The opening comment mark "/**" is reserved for kernel-doc comments, so > it will generate a warning with "make W=1". > > drivers/gpu/drm/drm_memory.c:2: warning: Cannot understand * \file > drm_memory.c > > Also, silence a checkpatch warning by adding a license identfiter where > it indicates the MIT license further down in the source file. > > WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 > > It becomes redundant to add both an SPDX identifier and have a > description of the license in the comment block at the top, so remove > the later. > > Signed-off-by: Qian Cai > --- > > v2: remove the redundant description of the license. > > drivers/gpu/drm/drm_memory.c | 22 ++-------------------- > 1 file changed, 2 insertions(+), 20 deletions(-) > > diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c > index 132fef8ff1b6..86a11fc8e954 100644 > --- a/drivers/gpu/drm/drm_memory.c > +++ b/drivers/gpu/drm/drm_memory.c > @@ -1,4 +1,5 @@ > -/** > +// SPDX-License-Identifier: MIT > +/* > * \file drm_memory.c > * Memory management wrappers for DRM > * > @@ -12,25 +13,6 @@ > * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. > * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. > * All Rights Reserved. > - * > - * Permission is hereby granted, free of charge, to any person obtaining a > - * copy of this software and associated documentation files (the "Software"), > - * to deal in the Software without restriction, including without limitation > - * the rights to use, copy, modify, merge, publish, distribute, sublicense, > - * and/or sell copies of the Software, and to permit persons to whom the > - * Software is furnished to do so, subject to the following conditions: > - * > - * The above copyright notice and this permission notice (including the next > - * paragraph) shall be included in all copies or substantial portions of the > - * Software. > - * > - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR > - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, > - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL > - * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR This talks about VA Linux Systems and/or its suppliers, while the MIT licence talks about authors or copyright holders. Are such transformations OK to just do? -ilia > - * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, > - * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > - * OTHER DEALINGS IN THE SOFTWARE. > */ > > #include > -- > 1.8.3.1 >