Received: by 10.223.164.202 with SMTP id h10csp970626wrb; Fri, 17 Nov 2017 11:39:51 -0800 (PST) X-Google-Smtp-Source: AGs4zMbFDIWxCk3PTDoEchr/WzK/2IvTFMmt/69Hxk6sDvJKrLXke41PcUAv01mwhTCNHiVMDOkz X-Received: by 10.84.172.195 with SMTP id n61mr6108420plb.78.1510947591864; Fri, 17 Nov 2017 11:39:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510947591; cv=none; d=google.com; s=arc-20160816; b=w3xklz6tUtWSjRPSQLuycM9wh2IP3lR29A+ztpygejHhD9jmP+puekl6uW309TIJ1L gKOtfH1Delm+Sw67PV6s+zl7d3WIeA5D5VwE2RyUW0J6nY4Gsv2ZoIv3ZV5pho6MK7VG Y2lsPCLmitfuHXaus1U4kj6iEmqyr/qsAWRI2nk1dLECvA3NPe8p0EHQGLsMlrHOjzMl rlDj40pAMjUOgoy6WWuSsGAljwPmoUSOm1URmqzuWP41KfrRVyxcfP3bTDSJeh0wzEYy iE7VkJSygrI6xLZ0Bgoafd89pP9arctbG/1KaNp5K8OrMNCzzIE+kfps2EOZA2dA0/FK TFog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=h+pwO3v/XFV1M+UkipE7uLXhZwUdxgIVS2VZf8f3Txs=; b=vGoq9JvB0zZgs2+D5vZ3ZDsQMRfuaKWoYwK1H40hkqwEeHpB11hkLhd72jOwpab42O s54yJmWOt8O01sknqz9TvcgZfLU3xT2y8uz0j9x0ObHGjX3eUWAFIMJi+DF2QRFS4kiy wCrb1d+7nJVZnf8Z7YOLNw4GnJzESQvuKWyrlepR3aAQKOHazB9Ihum0xKZvli64VHcb 2Qsd7nQvIvrevwo3zxqJSWP5phB34ieVbjbH0R7MI3n4fOqWDLL1b1v+0aEkk2lPMbFp Ew7IW+q9VD/CIcB0Aka+Wiqf9VejdK+L1YKmiJd2qFSPkvnPrQ+pBsS+ur+q7tKnnZ/E J3tg== 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 j1si3129986pgt.798.2017.11.17.11.39.38; Fri, 17 Nov 2017 11:39:51 -0800 (PST) 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 S965435AbdKQPiU (ORCPT + 93 others); Fri, 17 Nov 2017 10:38:20 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:41814 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965319AbdKQPiO (ORCPT ); Fri, 17 Nov 2017 10:38:14 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CB62B92B; Fri, 17 Nov 2017 15:38:13 +0000 (UTC) Date: Fri, 17 Nov 2017 16:38:18 +0100 From: Greg Kroah-Hartman To: Mauro Carvalho Chehab Cc: Hans Verkuil , Mauro Carvalho Chehab , Johan Hovold , Davidlohr Bueso , Sakari Ailus , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Philippe Ombredanne Subject: Re: [PATCH] media: usbvision: remove unneeded DRIVER_LICENSE #define Message-ID: <20171117153818.GA12642@kroah.com> References: <20171117141826.GC17880@kroah.com> <20171117125847.28004106@vento.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171117125847.28004106@vento.lan> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 17, 2017 at 12:58:47PM -0200, Mauro Carvalho Chehab wrote: > Em Fri, 17 Nov 2017 15:18:26 +0100 > Greg Kroah-Hartman escreveu: > > > There is no need to #define the license of the driver, just put it in > > the MODULE_LICENSE() line directly as a text string. > > > > This allows tools that check that the module license matches the source > > code license to work properly, as there is no need to unwind the > > unneeded dereference. > > > > Cc: Hans Verkuil > > Cc: Mauro Carvalho Chehab > > Cc: Johan Hovold > > Cc: Davidlohr Bueso > > Cc: Sakari Ailus > > Reported-by: Philippe Ombredanne > > Signed-off-by: Greg Kroah-Hartman > > --- > > drivers/media/usb/usbvision/usbvision-video.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c > > index 960272d3c924..0f5954a1fea2 100644 > > --- a/drivers/media/usb/usbvision/usbvision-video.c > > +++ b/drivers/media/usb/usbvision/usbvision-video.c > > @@ -72,7 +72,6 @@ > > #define DRIVER_NAME "usbvision" > > #define DRIVER_ALIAS "USBVision" > > #define DRIVER_DESC "USBVision USB Video Device Driver for Linux" > > -#define DRIVER_LICENSE "GPL" > > #define USBVISION_VERSION_STRING "0.9.11" > > > > #define ENABLE_HEXDUMP 0 /* Enable if you need it */ > > @@ -141,7 +140,7 @@ MODULE_PARM_DESC(radio_nr, "Set radio device number (/dev/radioX). Default: -1 > > /* Misc stuff */ > > MODULE_AUTHOR(DRIVER_AUTHOR); > > MODULE_DESCRIPTION(DRIVER_DESC); > > -MODULE_LICENSE(DRIVER_LICENSE); > > +MODULE_LICENSE("GPL"); > > Makes sense to me, but, if we look at the header of this file: > > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License as published by > * the Free Software Foundation; either version 2 of the License, or > * (at your option) any later version. > > Its license is actually GPL 2.0+ > > So, I would actually change it to: > > MODULE_LICENSE("GPL v2"); As Philippe points out, the original marking is correct. Once we get SPDX tags on all of the kernel files, mis-matches, if they are present, will be obvious to check for and fix up. Which is why I have submitted this patch :) thanks, greg k-h From 1584342260220100359@xxx Fri Nov 17 19:22:01 +0000 2017 X-GM-THRID: 1584342085865135600 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread