Received: by 10.223.164.202 with SMTP id h10csp868390wrb; Fri, 17 Nov 2017 09:56:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMYoHyNZkuf6eXgt9euwRKH094wUjad4rNrmcrzOTWpB7Ill+kDNFc+wLOOtavAhdgUHB04/ X-Received: by 10.159.253.9 with SMTP id p9mr5972466pls.344.1510941366252; Fri, 17 Nov 2017 09:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510941366; cv=none; d=google.com; s=arc-20160816; b=XcJn+rqG9ApBhg55s+lEAVG70eyESxqS+eQtil+xprqIBVENpbixBYI3MpDR4MLShW BiP02oQGXsXAwEaxwnJpf0NG8/hot5ZDSkvMSch1YAH2rmPJKFiCPvS+HUvliPlfYepm ebq9gpqAVRGm06tZCCVEUQj6tK+oHYOO52rmuxfc6My9GeaBq8VYSU6Xgxn4Eho/iXOO ZHzfGPEIYGSyhGh66HUvNEaj7lLUN8mSClttZlBr/E9YK2ZJgnopKc38xcvk3B5qKZaQ 27NJURSXLA+owkInvYkq/1v2biEXd7xFf3MBEWU+ZJQU/tdnUxES9COCphUapItzpJvN WK/A== 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=Xz+fFFf0xQE+YYa9gdCZ16ufkPjQFv1kmN7t0G0T7Sk=; b=xd7rxy4bZD9sWIgVz2uc2cs3TUKz4JLSzEQB4AE87Av1XBfLHv00U+uVt1aNKJJqGr kIb9/KR7TwK/lUY7fWlBofoP5KrkxDhC/zoynf7qyqun0O/T00/BYs/m+MGmOBzQAGJU ocTFp6n9okhHWldoHG/XxzUvUHvR2XPdpLsdV4ljG8DhOpqs/V3UellZS4trQp+oBAx7 1lCed+GtjFXXaBuEbad3phYezjFZTz/naEotNOYDO0FxBUmhKfxQdSeCznMwECkiGcM7 NhKGdjJMm4JUttzbsN3JTwPSqUgh40BcmnFQrmmmVpwi3UDjv9QDf/awRZgvf2DYhCF6 I7Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=afJSiQTN; 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 h185si3431200pfc.277.2017.11.17.09.55.52; Fri, 17 Nov 2017 09:56:06 -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=afJSiQTN; 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 S1753109AbdKQKxv (ORCPT + 91 others); Fri, 17 Nov 2017 05:53:51 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:45886 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbdKQKxo (ORCPT ); Fri, 17 Nov 2017 05:53:44 -0500 Received: by mail-wm0-f68.google.com with SMTP id 9so5556041wme.4 for ; Fri, 17 Nov 2017 02:53:43 -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=Xz+fFFf0xQE+YYa9gdCZ16ufkPjQFv1kmN7t0G0T7Sk=; b=afJSiQTNswk0Et38J2aoz1oEOMfEwd2wJxsh8IXJWVlx4i/Kzz1q8+UuApDklaCuHr 70uVUYY94otHFlrS0dXgKjQqZ52z/wbNZk7XJZhZgfIhcbEl4KbPmCuKeF0yjnBIr0TC IicwcTG22RUkaXa5BNjNFAcJlPe5EoQGP+H7cbjghS4NNQ1cFDlgzXQHtJ1KXWwFaIQX sxwHgqHRg1imyDFmat4wfcar2AGvSqvfKJUOzUmJ9BTPod5qwte4TRzM36xmOXXOBd8A GNBFmmaokFVxuPnZM2SIZouMU/Fb8/y48ZsaNHiEBEvcEBoXsS5VVhL153A5R0fWlwxe fxCQ== 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=Xz+fFFf0xQE+YYa9gdCZ16ufkPjQFv1kmN7t0G0T7Sk=; b=EA+K2v/jxwgHnFVRmQj1/RYO0UuRHI9Wm1jEUoWkB7nv6mIKpHEDmn4NFEgXm5C87V aKCSciVW4d3G4qeO5glyC3V51Z6kmKxklgEPb+zJ2F2WakkUZ4ezuiPd9RW67GG/EH1F yKWoA0gNzW++0V/vhRVVx05hX7nDfoiQvF4wvObyq8TAw6Ni3/5uM22Xx8vG17OJHtJj 4RJm1O0MSOaZZgCYZonjioY4/YayQeEhB7Vo26UQwzsBkot1IqEZCwVmQecEZH5wqZWW hZl61m5+aLsUFUTOOiwL0nc2X0D7pPSM5hZEdjFRh4CQV3LIg1KeZgaDLBMm3IgXUay0 /TmA== X-Gm-Message-State: AJaThX7uufe5twysE6y/H2gs3fm9FV7BSTXgz+9bEVs92yW1TBudcaqn FiYqVBtmYPxnaB8EfZdRXyUrjT6v/OhB140v2Xgkag== X-Received: by 10.28.237.18 with SMTP id l18mr3587752wmh.136.1510916022462; Fri, 17 Nov 2017 02:53:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.157.195 with HTTP; Fri, 17 Nov 2017 02:53:01 -0800 (PST) In-Reply-To: <20171117085731.GA28421@kroah.com> References: <20171112191821.240484206@linutronix.de> <20171112192142.525567667@linutronix.de> <20171116080723.279591c8@lwn.net> <20171116151540.GA18500@silk.coyote.org> <20171117085731.GA28421@kroah.com> From: Philippe Ombredanne Date: Fri, 17 Nov 2017 11:53:01 +0100 Message-ID: Subject: Re: [patch 1/7] Documentation: Add license-rules.rst to describe how to properly identify file licenses To: Greg Kroah-Hartman Cc: Jonas Oberg , Jonathan Corbet , Thomas Gleixner , LKML , Linus Torvalds , Andrew Morton , Christoph Hellwig , Russell King , Rob Herring , Joe Perches , xfs , Kate Stewart 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 9:57 AM, Greg Kroah-Hartman wrote: > On Fri, Nov 17, 2017 at 08:37:28AM +0100, Philippe Ombredanne wrote: >> Or fix the non-standard redefinition of the MODULE_LICENSE macro as >> DRIVER_LICENSE as in [2] and found elsewhere with >> grep -r . -e "DRIVER_LICENSE" >> >> These break the otherwise nicely grepable MODULE_LICENSE macros >> with this kind of warty redirection I stumbled upon while reviewing kernel >> license scans: >> >> #define DRIVER_LICENSE "GPL" >> [...] >> MODULE_LICENSE(DRIVER_LICENSE); > > Yes, those should be cleaned up, there's only 11 instances of them, > should be simple enough to do. I can knock up a patch series for > them... That would be awesome and you are probably a million times faster than me at that. There are actually more like 29 locations with such an oddity around AFAIK. Here is a better, more comprehensive grep: egrep "MODULE_LICENSE\([^\"]|DRIVER_LICENSE|DRV_LICENSE|MOD_LICENSE" -r . | egrep -v "module\.h|nand_ecc\.c|Documentation|scripts|az6007\.c|mt2063.c" yielding these: ./drivers/ntb/test/ntb_perf.c:#define DRIVER_LICENSE "Dual BSD/GPL" ./drivers/ntb/test/ntb_perf.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/ntb/test/ntb_tool.c:#define DRIVER_LICENSE "Dual BSD/GPL" ./drivers/ntb/test/ntb_tool.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/ntb/test/ntb_pingpong.c:#define DRIVER_LICENSE "Dual BSD/GPL" ./drivers/ntb/test/ntb_pingpong.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/ntb/ntb.c:#define DRIVER_LICENSE "Dual BSD/GPL" ./drivers/ntb/ntb.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/input/tablet/hanwang.c:#define DRIVER_LICENSE "GPL" ./drivers/input/tablet/hanwang.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/input/tablet/kbtab.c:#define DRIVER_LICENSE "GPL" ./drivers/input/tablet/kbtab.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/input/tablet/acecad.c:#define DRIVER_LICENSE "GPL" ./drivers/input/tablet/acecad.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/input/misc/keyspan_remote.c:#define DRIVER_LICENSE "GPL" ./drivers/input/misc/keyspan_remote.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/gpu/drm/gma500/psb_drv.h:#define DRIVER_LICENSE "GPL" ./drivers/gpu/drm/gma500/psb_drv.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/net/usb/hso.c:#define MOD_LICENSE "GPL" ./drivers/net/usb/hso.c:MODULE_LICENSE(MOD_LICENSE); ./drivers/scsi/csiostor/csio_init.c:MODULE_LICENSE(CSIO_DRV_LICENSE); ./drivers/scsi/csiostor/csio_init.h:#define CSIO_DRV_LICENSE "Dual BSD/GPL" ./drivers/media/usb/usbvision/usbvision-video.c:#define DRIVER_LICENSE "GPL" ./drivers/media/usb/usbvision/usbvision-video.c:MODULE_LICENSE(DRIVER_LICENSE); ./drivers/watchdog/pcwd_usb.c:#define DRIVER_LICENSE "GPL" ./drivers/watchdog/pcwd_usb.c:MODULE_LICENSE(DRIVER_LICENSE); ./include/linux/raid/pq.h:#define MODULE_LICENSE(licence) -- Cordially Philippe Ombredanne From 1584330761442588314@xxx Fri Nov 17 16:19:15 +0000 2017 X-GM-THRID: 1583890256805737544 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread