Received: by 10.223.164.202 with SMTP id h10csp1023767wrb; Fri, 17 Nov 2017 12:33:45 -0800 (PST) X-Google-Smtp-Source: AGs4zMZbFNluWF3D2Q5QcMFxmD+ljI8ZCrm4XBNU5hhE2kWESlp4Lbiuz4fJ+idZnCe3MxyBcE7W X-Received: by 10.159.252.76 with SMTP id t12mr6464215plz.323.1510950825210; Fri, 17 Nov 2017 12:33:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510950825; cv=none; d=google.com; s=arc-20160816; b=W+a6EZ28KlHFlpZK9znxWsTUtp3zLyl14H0WPDZlPWY3+qGK8mUd6JCeOPs62wZ0Zs kUjdiSpi0ROmcfMg8wA1qc9KbPu+e5NlST/MpJjg1rQ0xdOiOBE//TGtdS6j/2YnLJzj WVm/qHhJbM/Ec6XocV1/nD0b2tedvjci2ZHKIpzGX4ICfrg8aby7ry5tZc8qpOjmpQ7e L0P3oHvFw+0uAAF2bxElvmCaHVS9Qk9Vuj9dqtqVnZOeKueVlJ5ObzRIC1uBf20ySDKh 0RoO8PKakjjx9qj41Lj9rSQaQb+n3O9Ok3/7m0Ba9haax32KzkTIfFcF94J0/bQU1/Rv trRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=kLN8qbBPjVaYzZ+P7cr71M/VSFj5KPYH6VP2wtP94bc=; b=GKuVCoGVO838yNpGvknC30pGseGIexFYvGw/EoENGCpDRu0GgTv/8pHvR+T5ScD+D+ PF5ohrLLPytui5JwVrtcchgFVeCos/sNz4vP4oX37HURE2ALGTRO9o0a0/4GJ1kd2VJJ ZQG/fqajbnOhTUjQ1cqYau/I5eXP/QeGKAkwojWPqmG2UH7eF0jQZgsRugkYMpcLdTE5 f+MrF9JrnZ0+HFJO9uchT6oUwWhZKl5sHYnNR2swWnvrBVE0tGhrPjyVrYDQ7jzrZ8Om OyOyKcw8K9MXrr405WnmPGz0UHlR5ECv/D9QfDPs4wisHc+9QbMzLjnwSw26v2bldo17 tTkQ== 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 w12si3270513pgp.482.2017.11.17.12.33.32; Fri, 17 Nov 2017 12:33:45 -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 S933816AbdKQOUl (ORCPT + 93 others); Fri, 17 Nov 2017 09:20:41 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35772 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757190AbdKQOUd (ORCPT ); Fri, 17 Nov 2017 09:20:33 -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 DFAA1A67; Fri, 17 Nov 2017 14:20:32 +0000 (UTC) Date: Fri, 17 Nov 2017 15:20:38 +0100 From: Greg Kroah-Hartman To: Jon Mason , Dave Jiang , Allen Hubbe , Gary R Hook , Serge Semin Cc: linux-kernel@vger.kernel.org, Philippe Ombredanne , linux-ntb@googlegroups.com Subject: [PATCH] ntb: remove unneeded DRIVER_LICENSE #defines Message-ID: <20171117142038.GE17880@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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, especially when the string is defined just a few lines above the usage of it. Cc: Jon Mason Cc: Dave Jiang Cc: Allen Hubbe Cc: Gary R Hook Cc: Serge Semin Reported-by: Philippe Ombredanne Signed-off-by: Greg Kroah-Hartman --- drivers/ntb/ntb.c | 3 +-- drivers/ntb/test/ntb_perf.c | 3 +-- drivers/ntb/test/ntb_pingpong.c | 3 +-- drivers/ntb/test/ntb_tool.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/ntb/ntb.c b/drivers/ntb/ntb.c index 03b80d89b980..bdcd59b13c1f 100644 --- a/drivers/ntb/ntb.c +++ b/drivers/ntb/ntb.c @@ -63,12 +63,11 @@ #define DRIVER_NAME "ntb" #define DRIVER_DESCRIPTION "PCIe NTB Driver Framework" -#define DRIVER_LICENSE "Dual BSD/GPL" #define DRIVER_VERSION "1.0" #define DRIVER_RELDATE "24 March 2015" #define DRIVER_AUTHOR "Allen Hubbe " -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("Dual BSD/GPL"); MODULE_VERSION(DRIVER_VERSION); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESCRIPTION); diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c index 759f772fa00c..d2b2e5958540 100644 --- a/drivers/ntb/test/ntb_perf.c +++ b/drivers/ntb/test/ntb_perf.c @@ -63,7 +63,6 @@ #define DRIVER_NAME "ntb_perf" #define DRIVER_DESCRIPTION "PCIe NTB Performance Measurement Tool" -#define DRIVER_LICENSE "Dual BSD/GPL" #define DRIVER_VERSION "1.0" #define DRIVER_AUTHOR "Dave Jiang " @@ -78,7 +77,7 @@ #define MAX_SEG_ORDER 20 /* no larger than 1M for kmalloc buffer */ #define PIDX NTB_DEF_PEER_IDX -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("Dual BSD/GPL"); MODULE_VERSION(DRIVER_VERSION); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESCRIPTION); diff --git a/drivers/ntb/test/ntb_pingpong.c b/drivers/ntb/test/ntb_pingpong.c index 938a18bcfc3f..250cc286b768 100644 --- a/drivers/ntb/test/ntb_pingpong.c +++ b/drivers/ntb/test/ntb_pingpong.c @@ -68,12 +68,11 @@ #define DRIVER_NAME "ntb_pingpong" #define DRIVER_DESCRIPTION "PCIe NTB Simple Pingpong Client" -#define DRIVER_LICENSE "Dual BSD/GPL" #define DRIVER_VERSION "1.0" #define DRIVER_RELDATE "24 March 2015" #define DRIVER_AUTHOR "Allen Hubbe " -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("Dual BSD/GPL"); MODULE_VERSION(DRIVER_VERSION); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESCRIPTION); diff --git a/drivers/ntb/test/ntb_tool.c b/drivers/ntb/test/ntb_tool.c index a69815c45ce6..c45b8f798f7b 100644 --- a/drivers/ntb/test/ntb_tool.c +++ b/drivers/ntb/test/ntb_tool.c @@ -109,12 +109,11 @@ #define DRIVER_NAME "ntb_tool" #define DRIVER_DESCRIPTION "PCIe NTB Debugging Tool" -#define DRIVER_LICENSE "Dual BSD/GPL" #define DRIVER_VERSION "1.0" #define DRIVER_RELDATE "22 April 2015" #define DRIVER_AUTHOR "Allen Hubbe " -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("Dual BSD/GPL"); MODULE_VERSION(DRIVER_VERSION); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESCRIPTION); -- 2.15.0 From 1584342339242413457@xxx Fri Nov 17 19:23:17 +0000 2017 X-GM-THRID: 1584342339242413457 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread