Received: by 10.223.164.202 with SMTP id h10csp1033819wrb; Fri, 17 Nov 2017 12:44:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMZhIQwbi3pkAeH+4wce8L0gnYesUmpxO4nqu0VgrYUZcWAAtUV4kkcx63Io82D9ghZtWE/b X-Received: by 10.99.37.69 with SMTP id l66mr6479360pgl.14.1510951494813; Fri, 17 Nov 2017 12:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510951494; cv=none; d=google.com; s=arc-20160816; b=I9DGja30lforg9elwz44hKBJHrQP5kzOWA6y5ObU65KXZOpfeNnUMYmKd27QsxC1en 5KbylUFnfIC7cTvMvX24t1JAME9HjB03NpWcRrCb1ucCJuGcTZO+S2AL91VkG9sXjNUt lsESFYBLrCHh5U5yJ21qvR7oyHRqUUO3iyp7U3ygy7QNWNb1CsTq8ZPSSTh/6fElK9oT heBhA72vYy49aoBQk2wsFQU95IL35B0ZKdmCEWKSyFMd9E6W3VqSXdf2UWs32REW0y8i SK4MMFpUS0mIS7d/h/yN9l+/CLZlgcRboykdP+gxOPJERdNQSDR+U4UDhDYi7RXXYHCp lD4A== 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=Bzhp9ruGFlwQCeCc5ifLMtc66Gam4nrDwVXpvnJaoFs=; b=TSZrdYpYq/OKG+4OcoBrD8P5iXkubasd6Wzh6xBJmd/bQyyODwXBPnlNOjZJ4QhniG nFTVsghyateKkTvmg3TjuV6ZyaGhtPzGsYaCtCFqmVo4MS+a8WMO69agiNqvFgXaZb8Y VuLcGIs83xjzS4Py9PE5cSDjFMJkIHQmxaAoBzc8z/w30QSXFn+XL9qM2UEaN0VA3DaE 4YCBzOwBaze4Jhq/D6qF0vvoQX1dj0cEwcQXvfN2ozx8qj6larZUxDBMAWCs1hKx3H4k OiUWK8m1pLlEkty7uZjsJyMEoOyEVrA2efdytFu/DFLn+a0g9zZv9fsrwURbGn+FPSox mSMg== 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 bj7si3345370plb.557.2017.11.17.12.44.41; Fri, 17 Nov 2017 12:44:54 -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 S1759561AbdKQRPe (ORCPT + 93 others); Fri, 17 Nov 2017 12:15:34 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47356 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751344AbdKQRP1 (ORCPT ); Fri, 17 Nov 2017 12:15:27 -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 F1852516; Fri, 17 Nov 2017 17:15:26 +0000 (UTC) Date: Fri, 17 Nov 2017 18:15:32 +0100 From: Greg Kroah-Hartman To: Mauro Carvalho Chehab Cc: Philippe Ombredanne , Hans Verkuil , Mauro Carvalho Chehab , Johan Hovold , Davidlohr Bueso , Sakari Ailus , Linux Media Mailing List , LKML Subject: Re: [PATCH] media: usbvision: remove unneeded DRIVER_LICENSE #define Message-ID: <20171117171532.GB17018@kroah.com> References: <20171117141826.GC17880@kroah.com> <20171117125847.28004106@vento.lan> <20171117150102.1f5faeda@vento.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171117150102.1f5faeda@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 03:01:02PM -0200, Mauro Carvalho Chehab wrote: > Em Fri, 17 Nov 2017 16:01:41 +0100 > Philippe Ombredanne escreveu: > > > On Fri, Nov 17, 2017 at 3:58 PM, 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 > > Acked-by: Mauro Carvalho Chehab > > > >> --- > > >> 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"); > > > > Mauro: > > > > actually even if it sounds weird the module.h doc [1] is clear on this topic: > > > > * "GPL" [GNU Public License v2 or later] > > * "GPL v2" [GNU Public License v2] > > > > So it should be "GPL" IMHO. > > > > > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/module.h?id=refs/tags/v4.10#n175 > > > > Oh! Yeah, you're right. I would add that on the Kernel documentation > somewhere, perhaps with the new document that Thomas is writing > about SPFX. > > The Documentation/kernel-hacking/hacking.rst doc mentions > MODULE_LICENSE, but doesn't define the expected values for it. It's buried in the code comments in include/linux/module.h. One of these days I want to just make a #define for the licenses that makes it a bit more obvious what each should be, but for now, we have lots of other things to clean up before dealing with this :) thanks, greg k-h From 1584347411676578908@xxx Fri Nov 17 20:43:54 +0000 2017 X-GM-THRID: 1584342085865135600 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread