Received: by 10.223.164.202 with SMTP id h10csp1111515wrb; Fri, 17 Nov 2017 14:11:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMbKmgk4Mtp9VLFiDVuFe/GguiR9REw0EcyytJDY4VzUSulQ07NB+N9nHbFmghI1sRakaeKK X-Received: by 10.98.80.208 with SMTP id g77mr3498664pfj.201.1510956701971; Fri, 17 Nov 2017 14:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510956701; cv=none; d=google.com; s=arc-20160816; b=BGPh69Shoa9QoevPmNJ6XuGr0QotvzRMupRkYizxgF/Flad105HQosDe+xPriRRT85 xxG+jUi4xczCAktUcnCu1/t/3fIDso9KhzKipLAhTj3arNeWp7ZcNShz/7ZwHAaIVMNz stJ/V5wDULNx4hSjSBT8SL67de4aCp1YPtx3pDDbfA0IAMRBgkPVmt9FYwSVfRnfE0aN 5lteru5kJ3g1dA+M5YlcSSHNd5a+IB9hrDnPwo5FKI53lNm8Hy782XJ94VY6DpzrrXp2 1aQeDF2ZULCyDhCHCMg/a+0YjfjUMF6waoJyu7gCfmu7seYmDwxODMvsHs1CTio+0+z/ /qjw== 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=Ub6zi/qMxcKJSIwibik81EAgxZzh1j9MVG27cc8+w38=; b=0MrtsFxT+axxkmGIuMMnyVrR7V22T1whuYEJPyybFLQfb5uekNSyTfZ+uKAX3RE+WC +AFUdcOs6f+q6Vh1HfLJ9R482o4wLwjLdbdXK4vhD6Xu71N+Nbzy2x+61swxxBsvjGkC FJSUfu8SIyjMMxh4Hgx5h5a6Rm6yRDmTnN2RxYiuwVEHUsi22W/jxcYtn19q5a+rAsHF Dn2vA/7rsCvlhXLh3U5+l/7H7Ujg2cJgLD+zRB8iXj1qtG1wZ2XwD8gNk1SONzaO/frS bIfpnRIVdQs66YQXaxWpveIKelsP8ENcGYbfzcqfSaVfi5ouaFSzpeEUWvk4L4//YzO+ 4lsw== 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 i8si3766092pfk.151.2017.11.17.14.11.28; Fri, 17 Nov 2017 14:11:41 -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 S934000AbdKQOVX (ORCPT + 93 others); Fri, 17 Nov 2017 09:21:23 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35792 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933834AbdKQOVR (ORCPT ); Fri, 17 Nov 2017 09:21:17 -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 11CFDA67; Fri, 17 Nov 2017 14:21:16 +0000 (UTC) Date: Fri, 17 Nov 2017 15:21:22 +0100 From: Greg Kroah-Hartman To: "James E.J. Bottomley" , "Martin K. Petersen" , Varun Prakash Cc: linux-kernel@vger.kernel.org, Philippe Ombredanne , linux-scsi@vger.kernel.org Subject: [PATCH] scsi: csiostor: remove unneeded DRIVER_LICENSE #define Message-ID: <20171117142122.GF17880@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 in a .h file far away from the .c file it is used in. Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: Varun Prakash Reported-by: Philippe Ombredanne Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/csiostor/csio_init.c | 2 +- drivers/scsi/csiostor/csio_init.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index 28a9c7d706cb..abd71379bce3 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c @@ -1255,7 +1255,7 @@ module_init(csio_init); module_exit(csio_exit); MODULE_AUTHOR(CSIO_DRV_AUTHOR); MODULE_DESCRIPTION(CSIO_DRV_DESC); -MODULE_LICENSE(CSIO_DRV_LICENSE); +MODULE_LICENSE("Dual BSD/GPL"); MODULE_DEVICE_TABLE(pci, csio_pci_tbl); MODULE_VERSION(CSIO_DRV_VERSION); MODULE_FIRMWARE(FW_FNAME_T5); diff --git a/drivers/scsi/csiostor/csio_init.h b/drivers/scsi/csiostor/csio_init.h index 96b31e5af91e..20244254325a 100644 --- a/drivers/scsi/csiostor/csio_init.h +++ b/drivers/scsi/csiostor/csio_init.h @@ -48,7 +48,6 @@ #include "csio_hw.h" #define CSIO_DRV_AUTHOR "Chelsio Communications" -#define CSIO_DRV_LICENSE "Dual BSD/GPL" #define CSIO_DRV_DESC "Chelsio FCoE driver" #define CSIO_DRV_VERSION "1.0.0-ko" -- 2.15.0 From 1584342442584787748@xxx Fri Nov 17 19:24:55 +0000 2017 X-GM-THRID: 1584342442584787748 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread