Received: by 10.223.164.202 with SMTP id h10csp1032914wrb; Fri, 17 Nov 2017 12:43:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMYpnoocJKHunAcrlbGAuJXtxsZ1J5svBqkfFbrQ8cIBRFPUHmYNIR6vaxFtdEZb5Cvs2B3/ X-Received: by 10.98.137.68 with SMTP id v65mr3280820pfd.170.1510951435142; Fri, 17 Nov 2017 12:43:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510951435; cv=none; d=google.com; s=arc-20160816; b=KCAmYKU8fKj5a9Bh0uCcaWxXFUQHu0YeQNjqG/j0xSbF2zLL8kxPT1plF7Wdx7uMq1 7EYMLvMP/ukAEGeGSCBfCCWL0j47jpiwrpKItaRwRv2dfsh3o5QWuQZIrfSQJHizWnUi J1HJW14ImqTqLGtnhmdQZf0AcVtUYvAantrqWZa9OXInPzsxbKUUJ/VPL7n8RgoK/g+h MT/9Z52qn0WEATHNKPjR5LXFY5K/GTIh6eKS4ITNc7o+8DhITduCSIUobaVkfu1A17Ne wnNq5uUqm3p3c9UIOh0dxt+ROkcrTNMYB+FPo4MQOJ9TtJRbDXneBNWyn7Ma8go0t3ok r+Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=fB9oyOLAx4LSxYVNv+pG/58w5vYNUlwqVhJ+q3fi4F8=; b=K8JgvREOVEMaiI+9vfJnlh25R1tZl1eeAgcXZIE1j1GPdZl1nuqfQOWPk1XF5tGHi4 p6ih8bz+59j+qj8LtT6b7GqJanHpEVfi0d9+9TxfptH4sish/d2s/a3oHJrm96JM4/Dc QCgLkuDmEoF8jCcCioR7KELUjj3g06FRPLN9pW50VC710mg67LV0bKFhDRu1V/duMfLN n9S1CzKNjk8mqI+lKj8kk2iqW2sXvfJu9XYon1BljKbFKxV8bM81dvgiFwzDSNYbVHlJ 6Iwn4QV8rZ1RkCSdcL1IjUNTwYG7XAq8hifP2RgNU2SnTTlPvcn+VADzqOfX8aNPkRVI qKTw== 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 r26si3643282pfi.232.2017.11.17.12.43.42; Fri, 17 Nov 2017 12:43:55 -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 S1759400AbdKQRBZ (ORCPT + 93 others); Fri, 17 Nov 2017 12:01:25 -0500 Received: from osg.samsung.com ([64.30.133.232]:43883 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751425AbdKQRBT (ORCPT ); Fri, 17 Nov 2017 12:01:19 -0500 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 412E72C358; Fri, 17 Nov 2017 09:01:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Oa2TYb17T1fC; Fri, 17 Nov 2017 09:01:08 -0800 (PST) Received: from vento.lan (177.17.214.168.dynamic.adsl.gvt.net.br [177.17.214.168]) by osg.samsung.com (Postfix) with ESMTPSA id 299262C350; Fri, 17 Nov 2017 09:01:05 -0800 (PST) Date: Fri, 17 Nov 2017 15:01:02 -0200 From: Mauro Carvalho Chehab To: Philippe Ombredanne Cc: Greg Kroah-Hartman , 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: <20171117150102.1f5faeda@vento.lan> In-Reply-To: References: <20171117141826.GC17880@kroah.com> <20171117125847.28004106@vento.lan> Organization: Samsung X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Mauro From 1584343382302963277@xxx Fri Nov 17 19:39:52 +0000 2017 X-GM-THRID: 1584342085865135600 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread