Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7155230ybi; Mon, 8 Jul 2019 15:45:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNgNuo3qo3Cb04iClYNKrKoNN0YgkX6MsqcEkGJluk9aYvWggKTpHSYFHoxnzIakNEnh/T X-Received: by 2002:a17:90a:7d04:: with SMTP id g4mr28831653pjl.41.1562625952191; Mon, 08 Jul 2019 15:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625952; cv=none; d=google.com; s=arc-20160816; b=A/kQNNAE9mHIEEQKfgykbbPdIbuN2DX+T5YIAovAIpJlGMTCPnhMTm8f+p/Ht//BcI l+ir1E9VdFoFtWYx1xLOabe5h/jzDPm+w2l1UEUO+t3pyffvsi1/EwcmfitggkzI7sPL 43WtX6/YG/n2sqopYeLw8l+7iPm17GRulsiOZZhrgjzkyt8vvKWB17fSZEOPxAYgzmgT N4CJ+u7mBnyYYC5fLMMH8NWi4x3en8HJrMIcT8nsdPblcV8f2yU7dPkp2wrNFoRXunqf OW8scu7ZJctq9TTUVMULb5SFSKAZaTzKZvLZM6wNu0JDuWUhExatINyEX+opkE69soXh yDGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=I8jJ+UMX+62Iqns8V74zJotY7EecOGGtFx+XKKcbDpY=; b=rmpm3bsuYohXWYYS+jkdoA3dnkauZnrLOOKomcOnv8Eklp7b7o+c3SFKzuj17VHHQG CIPKeFYGAYvcxdfJTFl4pppptGFRyQABi/NBPcS+iz6woHV9U8u6ls0Yk1HSl79wsTc7 LgECACgIRnq0bEY/vmW49R2xSY2FxmEKygb5KCxA5YnF2EJEwuC88hUHBmstbjFiJsQi MlUXsCkFyaawEnhe34mwFU4a8nHVFwgp1ME2RitSEFxDJiPofYXoylJV6nrwDbJGmZmj Kg++4xqGE9f+1YlSDJm2j1k4rsVlv09Yw3TtB9x5vwka0AnkouNb/bfGOi0UTtYLxwS1 6lpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=VarsZURq; 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 i5si675523pjk.57.2019.07.08.15.45.37; Mon, 08 Jul 2019 15:45:52 -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=@lca.pw header.s=google header.b=VarsZURq; 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 S1732681AbfGHSGK (ORCPT + 99 others); Mon, 8 Jul 2019 14:06:10 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:36305 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731096AbfGHSGJ (ORCPT ); Mon, 8 Jul 2019 14:06:09 -0400 Received: by mail-qk1-f195.google.com with SMTP id g18so14030409qkl.3 for ; Mon, 08 Jul 2019 11:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id; bh=I8jJ+UMX+62Iqns8V74zJotY7EecOGGtFx+XKKcbDpY=; b=VarsZURq90ygwxHNrjFAh6rbNnMR0TBSzeXPcIx1G6WMYl/iCVbjuCpFXSQMmalgxG ABuhiSwWf9p4tw6VEjz6ID7WK7tqr/ZHdYuOYifeXdBfvzpewaJgL7z7FmiGbjce6fQu oYb9e+HkhfkkrJFxPCiS179lh3lqa0ILLD1epaKvM7vjs9HFuFlQVpYF/bqP/LsIe2xw Ax4KGV/mFAyn3JLLWmqIiftYUsNmS8d8cr5LQAG6HIbeu7nCFCVIOORVOgo4ygL44y6j q3dnHlHfI86v/O+bZEZFuAbchGVk8nF/r5wCummh8518kvC35p0dCiebjC1Jp8cBkWvx e4Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=I8jJ+UMX+62Iqns8V74zJotY7EecOGGtFx+XKKcbDpY=; b=ccB3nSPFQDib+s4HVz0FHhXpKsiJK1YtyAOU0ojZ9CUc2PjDuRnfbbXN9XpKCBfGDw zaGthS8oywzeTSvgVdG/RTdhOtcUDUq2OCp26YtS4mAKFo3qKj3MQ22u9BlnO1kqvuJ1 2T5BO9ZB31F8EAEKN9wARU2no+ApgzL8m/nybFZPyvbvy/GoZ4zh6Uq14Zz+xsarO7AT 3B/MWZq9GNqKiw2AdytAPhiQbknHYQYHZglrjl9mLTJrlxKmQcybSSbwrtqmMpH/oAt2 nRg3IPJ8LkYZ71RzNwURA1IY5Iodgzeujc2w5Y+HCpjohXvtcR+81XNtJGQSGDmrvPyI WoBA== X-Gm-Message-State: APjAAAW3EAWJkvK/YA9C0mZHclYJmIintYtEx8INMKRgDMPqzAUIsoW8 SeJRRXJBA5AO0rkgZhs2wbPbJA== X-Received: by 2002:a37:743:: with SMTP id 64mr13812170qkh.175.1562609168824; Mon, 08 Jul 2019 11:06:08 -0700 (PDT) Received: from qcai.nay.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id o5sm7812422qkf.10.2019.07.08.11.06.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 11:06:08 -0700 (PDT) From: Qian Cai To: akpm@linux-foundation.org Cc: airlied@linux.ie, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, sean@poorly.run, joe@perches.com, linux-spdx@archiver.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Qian Cai Subject: [PATCH v2] gpu/drm_memory: fix a few warnings Date: Mon, 8 Jul 2019 14:05:51 -0400 Message-Id: <1562609151-7283-1-git-send-email-cai@lca.pw> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 - * 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