Received: by 10.223.164.202 with SMTP id h10csp1130894wrb; Fri, 17 Nov 2017 14:31:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMY5slTLBoeGzfwtkcQkDDth3e99WLa9X93wdKYsF1/AVU15Ksw4wqEkdjR8nfxzwRyO2bPJ X-Received: by 10.101.96.1 with SMTP id m1mr4489786pgu.38.1510957915760; Fri, 17 Nov 2017 14:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510957915; cv=none; d=google.com; s=arc-20160816; b=SvVrqQxMVTcGRGrTZDBwiU5+1+OxS2p22B+boD4xcuMnu0DBCW/FNq6xmsLFC0BsIU tfnaFtDoz1hf1hR0U6rOMBkH1P5Q9FoQ5kXGcPCT3wynijndUQOJjPp8NAN4AjHCl2Wa hwqWUxAkeQiqfvtU7OSDlSG2h6iObvw+cDeXUeX/paHUZKeUqcdRwmHeDiuD2UH/KtE8 gIAynys1C3Km3R89vTrySnx0EyKx2x01yAIrMItAuJ9EkIpJ1iFgNR+BFSNd7CJNlT90 ogtwC/1nMG5YXtL311BHaNMyPOaJpqndR0WEqK9tcrw1gwaDml68fMEJD67hJyELw9FD ENdg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=NWXLF+8ef9gou4wGp6qT8yX7cqbosldw+v75DjrQpUA=; b=fbBv6xFcHwAKQdkHTukn4aDM20lE63TauQF28X8u5ffoDl9dFeRxXK//JxGMBkJKPX Y2+0RVGxi14KO3z8mWBKCVXB9oCFgs59iufRzKWApkLLer6iAzfDqLmDaCDlW4uGZ+Ds kh/S4Mb4ttVevsFSkTfu3kjIH9Dt98J4uMiu/GdO3vbRNOlTBxsCXjyVJ1iiAODwWFgm 99yAH3Zl/HkZR9AAqAjyBX+5aj93bsTmIokpymz9b0gSAUeKOLLKRG2Mpto9/SVjXNzB Ib0h1BOxAkGws4+RULZ322tLh1A3RxL8VqIH7d2q2QaQ1fTTSq2qqN7wrxFvZw+zEok6 RUHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=JciTYE8y; 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 v4si2346773plo.211.2017.11.17.14.31.42; Fri, 17 Nov 2017 14:31: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; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=JciTYE8y; 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 S935297AbdKQPC3 (ORCPT + 93 others); Fri, 17 Nov 2017 10:02:29 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:40358 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935012AbdKQPCW (ORCPT ); Fri, 17 Nov 2017 10:02:22 -0500 Received: by mail-qt0-f195.google.com with SMTP id u42so6690401qte.7 for ; Fri, 17 Nov 2017 07:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NWXLF+8ef9gou4wGp6qT8yX7cqbosldw+v75DjrQpUA=; b=JciTYE8yrZ9otm8BBbg1IqYhUqrlj6zkrKNBYZEPSP+3l86lnyxEhoAqeQBcJWr38y u3YN9Oq0mwbXox/yGTDKsXoLBDRURnaJ4CMowzPdUQanAokKs8szOLOBjI2IrQ7YuExp zz+Uca9RSar/kyAJyAJztlUjMsukVdNXdREHz1lixpBs3tBVTp2ty7ZQno9Z0iXhNHvx MIumiiXkptpGyB6vCxenPeetsf3FDYDDkx0gklzjM7Luz0FdszEnqLzYoY+YirvQJeql 1d6NI6fh+9wVLCbkPtFoR15hqdpHrMFdDQXWPvxlcoxxHICo0nQjtc25Ah/3YY96E+Xt TAbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NWXLF+8ef9gou4wGp6qT8yX7cqbosldw+v75DjrQpUA=; b=ZsmFqhRYrFPUga6I/s5FiEB1oK4iTmbbDVWS9T76Em15XCkmlekxk84ClA+3CCCDcv xoHz9Pj8r93ahO7GE2DaTUB44BvZk0uPsnhUVfzhhdgPkxUpwMaMY9lq/wUyOCwWvdF5 1Oi9QIJryi9d7fNv66apJrk4cj1aFlx37MSv3Gw1RGGFUI1GWRNBbq46PHsxzMnMAItx CkgnYopQJoTVGsNfurkl7o1Pk8vhHeqyvWvwVZS73/UMxqXU2g2pamcaW/pELDkI+Qtn BlA9SxyAeg5SwlaXt+JWw6oj7xjdCLiICppbJSUVyLdYITq/7uEofCLQSZ9FT0mdhCXV qPhQ== X-Gm-Message-State: AJaThX6tUeuGB34usHZ5QHLTDkKdLXHRkcPbREbllmCNBcdfWmxuveHt /Td61VtBVtAOmOJZq+C8vhnhHKhmJBASrDSgrribTg== X-Received: by 10.55.177.134 with SMTP id a128mr9126547qkf.240.1510930941660; Fri, 17 Nov 2017 07:02:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.104.145 with HTTP; Fri, 17 Nov 2017 07:01:41 -0800 (PST) In-Reply-To: <20171117125847.28004106@vento.lan> References: <20171117141826.GC17880@kroah.com> <20171117125847.28004106@vento.lan> From: Philippe Ombredanne Date: Fri, 17 Nov 2017 16:01:41 +0100 Message-ID: Subject: Re: [PATCH] media: usbvision: remove unneeded DRIVER_LICENSE #define To: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman , Hans Verkuil , Mauro Carvalho Chehab , Johan Hovold , Davidlohr Bueso , Sakari Ailus , Linux Media Mailing List , 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 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 >> --- >> 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 -- Cordially Philippe Ombredanne From 1584354032553461584@xxx Fri Nov 17 22:29:08 +0000 2017 X-GM-THRID: 1584342085865135600 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread