All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: csiostor: remove unneeded DRIVER_LICENSE #define
@ 2017-11-17 14:21 Greg Kroah-Hartman
  2017-11-17 14:54 ` Philippe Ombredanne
  2017-11-21  3:15 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2017-11-17 14:21 UTC (permalink / raw)
  To: James E.J. Bottomley, Martin K. Petersen, Varun Prakash
  Cc: linux-kernel, Philippe Ombredanne, linux-scsi

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" <jejb@linux.vnet.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Varun Prakash <varun@chelsio.com>
Reported-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: csiostor: remove unneeded DRIVER_LICENSE #define
  2017-11-17 14:21 [PATCH] scsi: csiostor: remove unneeded DRIVER_LICENSE #define Greg Kroah-Hartman
@ 2017-11-17 14:54 ` Philippe Ombredanne
  2017-11-21  3:15 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Ombredanne @ 2017-11-17 14:54 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: James E.J. Bottomley, Martin K. Petersen, Varun Prakash, LKML,
	linux-scsi

On Fri, Nov 17, 2017 at 3:21 PM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> 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" <jejb@linux.vnet.ibm.com>
> Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
> Cc: Varun Prakash <varun@chelsio.com>
> Reported-by: Philippe Ombredanne <pombredanne@nexb.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>


Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
-- 
Cordially
Philippe Ombredanne

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: csiostor: remove unneeded DRIVER_LICENSE #define
  2017-11-17 14:21 [PATCH] scsi: csiostor: remove unneeded DRIVER_LICENSE #define Greg Kroah-Hartman
  2017-11-17 14:54 ` Philippe Ombredanne
@ 2017-11-21  3:15 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2017-11-21  3:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: James E.J. Bottomley, Martin K. Petersen, Varun Prakash,
	linux-kernel, Philippe Ombredanne, linux-scsi


Greg,

> 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.

Applied to 4.16/scsi-queue, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-21  3:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-17 14:21 [PATCH] scsi: csiostor: remove unneeded DRIVER_LICENSE #define Greg Kroah-Hartman
2017-11-17 14:54 ` Philippe Ombredanne
2017-11-21  3:15 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.